using System; using System.Collections.Generic; using Newtonsoft.Json; using FreeSql.DataAnnotations; using FreeSql; namespace EMSServerModel.Model { /// /// 角色表 /// [JsonObject(MemberSerialization.OptIn)] public partial class Role : BaseEntity{ /// /// 角色编号 /// [JsonProperty, Column(IsPrimary = true, IsIdentity = true)] public long RoleId { get; set; } /// /// 角色名称 /// [JsonProperty, Column(DbType = "varchar(50)")] public string RoleName { get; set; } = string.Empty; /// /// 角色描述 /// [JsonProperty, Column(DbType = "varchar(50)")] public string RoleDesc { get; set; } = string.Empty; ///// ///// 创建时间 ///// //[JsonProperty, Column(DbType = "date")] //public DateTime CreateTime { get; set; } = DateTime.Now; /// /// 启用 /// [JsonProperty] public bool IsEnable { get; set; } = true; /// /// 角色用户多对多导航 /// [Navigate(ManyToMany = typeof(UserRole))] public virtual ICollection Users { get; protected set; } } }