Files
yaflay.ru/Models/Tables/Blogs.cs
Дмитрий Шиманский a5d39384ac pooko
2023-12-19 11:57:37 +03:00

27 lines
800 B
C#

using Microsoft.EntityFrameworkCore;
using System.ComponentModel.DataAnnotations.Schema;
namespace yaflay.ru.Models.Tables
{
[Table("Blogs", Schema = "public")]
public class Blogs
{
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
public int Id { get; set; }
public string Title { get; set; }
public string Text { get; set; }
public string Annotation { get; set; }
public string? ImageUrl { get; set; }
public DateTime dateTime { get; set; }
public Author author { get; set; }
}
public class Author
{
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
public int Id { get; set; }
public int discordId { get; set; }
public string discordNickName { get; set; }
}
}