using Microsoft.EntityFrameworkCore; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; namespace AsbCloudDb.Model { #nullable disable [Table("t_permission"), Comment("Разрешения на доступ к данным")] public class Permission : IId { [Key] [Column("id")] public int Id { get; set; } [Column("name"), Comment("Название")] [StringLength(255)] public string Name { get; set; } [Column("description"), Comment("Краткое описание")] [StringLength(255)] public string Description { get; set; } [InverseProperty(nameof(RelationUserRolePermission.Permission))] public virtual ICollection RelationUserRolePermissions { get; set; } } }