forked from ddrilling/AsbCloudServer
31 lines
896 B
C#
31 lines
896 B
C#
using Microsoft.EntityFrameworkCore;
|
|
using System.ComponentModel.DataAnnotations;
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
using System.Text.Json.Serialization;
|
|
|
|
namespace AsbCloudDb.Model;
|
|
|
|
[Table("t_help_page"), Comment("Справки")]
|
|
public class HelpPage : IId
|
|
{
|
|
[Key]
|
|
[Column("id")]
|
|
public int Id { get; set; }
|
|
|
|
[Column("url_page"), Comment("Url страницы")]
|
|
public string UrlPage { get; set; } = null!;
|
|
|
|
[Column("id_category"), Comment("Id категории файла")]
|
|
public int IdCategory { get; set; }
|
|
|
|
[Column("name"), Comment("Название файла")]
|
|
public string Name { get; set; } = null!;
|
|
|
|
[Column("file_size"), Comment("Размер файла")]
|
|
public long Size { get; set; }
|
|
|
|
[JsonIgnore]
|
|
[ForeignKey(nameof(IdCategory))]
|
|
public virtual FileCategory FileCategory { get; set; } = null!;
|
|
}
|