2021-07-23 17:40:31 +05:00
|
|
|
|
using Microsoft.EntityFrameworkCore;
|
|
|
|
|
using System.ComponentModel.DataAnnotations;
|
|
|
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
|
|
|
|
|
|
|
|
namespace AsbCloudDb.Model
|
|
|
|
|
{
|
2022-05-06 10:58:52 +05:00
|
|
|
|
#nullable disable
|
2021-08-16 10:38:48 +05:00
|
|
|
|
[Table("t_file_category"), Comment("Категории файлов")]
|
2021-07-23 17:40:31 +05:00
|
|
|
|
public class FileCategory : IId
|
|
|
|
|
{
|
|
|
|
|
[Key]
|
|
|
|
|
[Column("id")]
|
|
|
|
|
public int Id { get; set; }
|
|
|
|
|
|
|
|
|
|
[Column("name"), Comment("Название категории")]
|
|
|
|
|
public string Name { get; set; }
|
2021-08-02 18:35:36 +05:00
|
|
|
|
|
|
|
|
|
[Column("short_name"), Comment("Короткое название категории")]
|
|
|
|
|
public string ShortName { get; set; }
|
2021-07-23 17:40:31 +05:00
|
|
|
|
}
|
|
|
|
|
}
|