using System; using System.Collections.Generic; using System.Linq; using SqlSugar; using WGShare.Domain.Enums; using Yitter.IdGenerator; namespace WGShare.Domain.Entities { /// /// 用户表 /// [SugarTable("user")] public class User { /// /// /// [SugarColumn(ColumnName = "id", IsPrimaryKey = true, IsIdentity = true)] public string Id { get; set; } = YitIdHelper.NextId().ToString(); /// /// 是否删除 /// 默认值: b'0' /// [SugarColumn(ColumnName = "is_delete")] public bool IsDelete { get; set; } /// /// 创建时间 /// 默认值: CURRENT_TIMESTAMP /// [SugarColumn(ColumnName = "create_time", IsOnlyIgnoreInsert = true, IsOnlyIgnoreUpdate = true)] public DateTime CreateTime { get; set; } /// /// 修改时间 /// [SugarColumn(ColumnName = "modify_time", IsOnlyIgnoreInsert = true, IsOnlyIgnoreUpdate = true)] public DateTime ModifyTime { get; set; } /// /// 用户名称 /// [SugarColumn(ColumnName = "user_name")] public string UserName { get; set; } /// /// 账号 /// [SugarColumn(ColumnName = "account")] public string Account { get; set; } /// /// 密码 /// [SugarColumn(ColumnName = "pwd")] public string Pwd { get; set; } /// /// /// [SugarColumn(ColumnName = "role_id")] public string RoleId { get; set; } /// /// 租户id /// [SugarColumn(ColumnName = "tenant_id")] public string TenantId { get; set; } /// /// 是否匿名登录用户 /// [SugarColumn(ColumnName = "is_anonymous")] public bool IsAnonymous { get; set; } /// /// 共享屏幕Id /// [SugarColumn(ColumnName = "screen_share_id", IsOnlyIgnoreUpdate = true)] public string ScreenShareId { get; set; } /// /// 届 /// [SugarColumn(ColumnName = "year")] public int Year { get; set; } /// /// 科目 /// [SugarColumn(ColumnName = "subject")] public SubjectType Subject { get; set; } /// /// 科目名称 /// [SugarColumn(IsIgnore = true)] public string SubjectName { get; set; } [SugarColumn(IsIgnore = true)] public string RoleName { get; set; } [SugarColumn(IsIgnore = true)] public string TenantName { get; set; } /// /// 权限值 /// [SugarColumn(IsIgnore = true)] public int PermValue { get; set; } } }