forked from ddrilling/AsbCloudServer
2d9388cb2a
This reverts commit ad34e6445c
.
25 lines
880 B
C#
25 lines
880 B
C#
using Microsoft.EntityFrameworkCore;
|
|
using System.Collections.Generic;
|
|
using System.ComponentModel.DataAnnotations;
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
|
|
namespace AsbCloudDb.Model
|
|
{
|
|
[Table("t_permission"), Comment("Разрешения на доступ к данным")]
|
|
public class Permission
|
|
{
|
|
[Key]
|
|
[Column("id")]
|
|
public int Id { get; set; }
|
|
|
|
[Column("caption"), Comment("Название")]
|
|
[StringLength(255)]
|
|
public string Caption { get; set; }
|
|
|
|
[Column("type"), Comment("1-чтение, 2-запись, 3-чтение и запись")]
|
|
public int Type { get; set; }
|
|
|
|
[InverseProperty(nameof(RelationUserRolePermission.Permission))]
|
|
public virtual ICollection<RelationUserRolePermission> RelationUserRolesPermissions { get; set; }
|
|
}
|
|
} |