using Microsoft.EntityFrameworkCore; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; namespace YBEE.EQM.Core { /// /// 角色,内置固定角色全部放内置固定角色组 /// [Comment("角色")] public partial class SysRole : DEntityBase { /// /// 名称 /// [Comment("名称")] [Required, StringLength(80)] public string Name { get; set; } /// /// 角色组ID /// [Comment("角色组ID")] [Required] public int SysRoleGroupId { get; set; } /// /// 角色类型 /// [Comment("角色类型")] [Required] public RoleType RoleType { get; set; } /// /// 备注 /// [Comment("备注")] [StringLength(200)] public string Remark { get; set; } /// /// 状态 /// [Comment("状态")] [Required] public CommonStatus Status { get; set; } /// /// 数据权限范围 /// { /// educationStages: [1, 2], /// sysOrgIds: [101, 102], /// } /// [Comment("数据权限范围")] [Required, Column(TypeName = "json")] public string RoleDataScope { get; set; } = "{}"; /// /// 一对一引用(角色组) /// public virtual SysRoleGroup SysRoleGroup { get; set; } /// /// 一对一引用(创建人) /// public virtual SysUser CreateSysUser { get; set; } /// /// 一对一引用(修建人) /// public virtual SysUser UpdateSysUser { get; set; } } }