using MongoDB.Bson; using MongoDB.Bson.Serialization.Attributes; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Database { public class Album { [BsonRepresentation(BsonType.Int32)] public int Id { get; set; } public string Title { get; set; } public string Description { get; set; } } public class Location { [BsonRepresentation(BsonType.Int32)] public int Id { get; set; } public string Name { get; set; } public string ShortName { get; set; } } public class Author { [BsonRepresentation(BsonType.Int32)] public int Id { get; set; } public string Name { get; set; } public string PhoneNum { get; set; } public string Email { get; set; } } public class Photo { [BsonRepresentation(BsonType.Int32)] public int Id { get; set; } public string Title { get; set; } public string Description { get; set; } public string Privacy { get; set; } public DateTime UploadDate { get; set; } public string ImagePath { get; set; } public int AlbumId { get; set; } public int LocationId { get; set; } public int AuthorId { get; set; } } public class Comment { [BsonRepresentation(BsonType.Int32)] public int Id { get; set; } public DateTime PostDate { get; set; } public string Content { get; set; } public int PhotoId { get; set; } } public class Sequence { [BsonRepresentation(BsonType.String)] public string Id { get; set; } public int Count { get; set; } } }