using Newtonsoft.Json; using OfficeOpenXml.Attributes; using SqlSugar; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ARW.Model.Models.Business.Chat { [SugarTable("tb_chat_user")] public class ChatUser : BusinessBase { [SugarColumn(IsPrimaryKey = true, IsIdentity = true, ColumnName = "chat_user_id")] public int ChatUserId { get; set; } /// /// 用户id /// [JsonConverter(typeof(ValueToStringConverter))] [SugarColumn(IsPrimaryKey = true, ColumnName = "chat_user_guid")] public long ChatUserGuId { get; set; } /// /// 用户名 /// [SugarColumn(ColumnDescription = "用户名", ColumnName = "chat_user_name")] public string ChatUserName { get; set; } /// /// 密码 /// [JsonIgnore] [EpplusIgnore] public string Password { get; set; } /// /// 昵称 /// [SugarColumn(ColumnDescription = "昵称", ColumnName = "chat_user_nickname")] public string ChatUserNickName { get; set; } /// /// 性别(1:男,2:女) /// [SugarColumn(Length = 1, ColumnDescription = "性别(1:男,2:女)", IsNullable = true, ColumnName = "chat_user_sex")] public string Sex { get; set; } /// /// 年龄 /// [SugarColumn(ColumnDescription = "年龄", IsNullable = true, ColumnName = "chat_user_age")] public int? Age { get; set; } /// /// 用户图片(路径) /// [SugarColumn(ColumnDescription = "用户头像", IsNullable = true, ColumnName = "chat_user_img")] public string ChatUserImg { get; set; } /// /// 电话号码 /// [SugarColumn(ColumnDescription = "电话号码", IsNullable = true, ColumnName = "chat_user_phone")] public string Phone { get; set; } /// /// 邮箱 /// [SugarColumn(ColumnDescription = "邮箱", IsNullable = true, ColumnName = "chat_user_email")] public string Email { get; set; } /// /// 登录状态(1,在线 | 0,离线) /// [SugarColumn(ColumnDescription = "登录状态(1,在线 | 0,离线)", ColumnName = "chat_user_status")] public int? Status { get; set; } } }