2024-07-04 11:02:45 +05:00
|
|
|
using Microsoft.EntityFrameworkCore;
|
2021-07-23 17:40:31 +05:00
|
|
|
using System.ComponentModel.DataAnnotations;
|
|
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
|
|
|
|
|
|
namespace AsbCloudDb.Model
|
|
|
|
{
|
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("Название категории")]
|
2023-02-17 17:36:25 +05:00
|
|
|
public string Name { get; set; } = null!;
|
2021-08-02 18:35:36 +05:00
|
|
|
|
|
|
|
[Column("short_name"), Comment("Короткое название категории")]
|
2023-02-17 17:36:25 +05:00
|
|
|
public string? ShortName { get; set; }
|
2021-07-23 17:40:31 +05:00
|
|
|
}
|
|
|
|
}
|