forked from ddrilling/AsbCloudServer
1. Добавил модели для инструкций 2. Добавил инициализацию новых прав 3. Добавил новые миграции
25 lines
810 B
C#
25 lines
810 B
C#
using Microsoft.EntityFrameworkCore;
|
|
using System.ComponentModel.DataAnnotations;
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
|
|
namespace AsbCloudDb.Model
|
|
{
|
|
[Table("t_file_category"), Comment("Категории файлов")]
|
|
public class FileCategory : IId
|
|
{
|
|
public const int IdFileCategoryTypeManuals = 0;
|
|
|
|
[Key]
|
|
[Column("id")]
|
|
public int Id { get; set; }
|
|
|
|
[Column("name"), Comment("Название категории")]
|
|
public string Name { get; set; } = null!;
|
|
|
|
[Column("short_name"), Comment("Короткое название категории")]
|
|
public string? ShortName { get; set; }
|
|
|
|
[Column("type"), Comment("0 = Инструкции")]
|
|
public int? IdType { get; set; }
|
|
}
|
|
} |