using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; using Microsoft.EntityFrameworkCore; namespace AsbCloudDb.Model.Manuals; [Table("t_manual_directory"), Comment("Директория для инструкций")] public class ManualDirectory : IId { [Key] [Column("id")] public int Id { get; set; } [Column("name"), Comment("Название")] public string Name { get; set; } = null!; [Column("id_parent"), Comment("Id родительской директории")] public int? IdParent { get; set; } [ForeignKey(nameof(IdParent))] public virtual ManualDirectory? Parent { get; set; } public virtual ICollection? Children { get; set; } public virtual ICollection? Manuals { get; set; } }