SUBD_LAB/SUBD_LABA/Database/Models.cs
2024-05-14 17:48:22 +04:00

48 lines
1.1 KiB
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Database
{
public class Album
{
public int Id { get; set; }
public string Title { get; set; }
public string Description { get; set; }
}
public class Location
{
public int Id { get; set; }
public string Name { get; set; }
public string ShortName { get; set; }
}
public class Author
{
public int Id { get; set; }
public string Name { get; set; }
public string PhoneNum { get; set; }
public string Email { get; set; }
}
public class Photo
{
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
{
public int Id { get; set; }
public DateTime PostDate { get; set; }
public string Content { get; set; }
public int PhotoId { get; set; }
}
}