| | |
| | | /// </summary> |
| | | [Description("用户模型")] |
| | | [CoderFirst] |
| | | public class User:BaseModelBase |
| | | public class User: BaseModel |
| | | { |
| | | /// <summary> |
| | | /// 用户Id |
| | |
| | | /// <summary> |
| | | /// 电话 |
| | | /// </summary> |
| | | [SugarColumn(ColumnDescription = "电话")] |
| | | [SugarColumn(ColumnDescription = "电话", ColumnDataType = "nvarchar(30)", IsNullable = true)] |
| | | public string Phone { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 名称 |
| | | /// </summary> |
| | | [SugarColumn(ColumnDescription = "名称",Length =100)] |
| | | [SugarColumn(ColumnDescription = "名称", ColumnDataType = "nvarchar(100)")] |
| | | public string name { get; set; } |
| | | /// <summary> |
| | | /// 电话号码 |
| | | /// </summary> |
| | | [SugarColumn(ColumnDescription = "电话号码", Length = 30)] |
| | | [SugarColumn(ColumnDescription = "电话号码", ColumnDataType = "nvarchar(30)")] |
| | | public string ItCode { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 昵称 |
| | | /// </summary> |
| | | [SugarColumn(ColumnDescription = "昵称", Length = 100)] |
| | | public string Nickname { get; set; } |
| | | [SugarColumn(ColumnDescription = "用户昵称", ColumnDataType = "nvarchar(100)", IsNullable = true)] |
| | | public string? Nickname { get; set; } |
| | | |
| | | |
| | | /// <summary> |
| | | /// 密码 |
| | | /// </summary> |
| | | [SugarColumn(ColumnDescription = "密码", Length = 100)] |
| | | public string PassWord { get; set; } |
| | | [SugarColumn(ColumnDescription = "密码", ColumnDataType = "nvarchar(100)", IsNullable = true)] |
| | | public string? PassWord { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 头像地址 |
| | | /// </summary> |
| | | [SugarColumn(ColumnDescription = "头像地址")] |
| | | public string Avatar { get; set; } |
| | | [SugarColumn(ColumnDescription = "头像地址", ColumnDataType = "nvarchar(500)", IsNullable = true)] |
| | | public string? Avatar { get; set; } |
| | | /// <summary> |
| | | /// 微信APPID |
| | | /// 微信WxOpenId |
| | | /// </summary> |
| | | [SugarColumn(ColumnDescription = "WxAppId",Length =30)] |
| | | public string? WxAppId { get; set; } |
| | | [SugarColumn(ColumnDescription = "WxOpenId", ColumnDataType = "nvarchar(100)", IsNullable = true)] |
| | | public string? WxOpenId { get; set; } |
| | | |
| | | |
| | | /// <summary> |
| | | /// 用户表情。 |
| | | /// </summary> |
| | | [Navigate(NavigateType.OneToOne, nameof(Id),nameof(UserWorker.UserId))] |
| | | public UserWorker Worek { get; set; } |
| | | } |
| | | } |