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