ChatRoomForGpt/ARW-net/ARW.Model/Models/Business/Chat/ChatUser.cs
2023-04-04 18:15:13 +08:00

83 lines
2.6 KiB
C#
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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; }
/// <summary>
/// 用户id
/// </summary>
[JsonConverter(typeof(ValueToStringConverter))]
[SugarColumn(IsPrimaryKey = true, ColumnName = "chat_user_guid")]
public long ChatUserGuId { get; set; }
/// <summary>
/// 用户名
/// </summary>
[SugarColumn(ColumnDescription = "用户名", ColumnName = "chat_user_name")]
public string ChatUserName { get; set; }
/// <summary>
/// 密码
/// </summary>
[JsonIgnore]
[EpplusIgnore]
public string Password { get; set; }
/// <summary>
/// 昵称
/// </summary>
[SugarColumn(ColumnDescription = "昵称", ColumnName = "chat_user_nickname")]
public string ChatUserNickName { get; set; }
/// <summary>
/// 性别(1:男2:女)
/// </summary>
[SugarColumn(Length = 1, ColumnDescription = "性别(1:男2:女)", IsNullable = true, ColumnName = "chat_user_sex")]
public string Sex { get; set; }
/// <summary>
/// 年龄
/// </summary>
[SugarColumn(ColumnDescription = "年龄", IsNullable = true, ColumnName = "chat_user_age")]
public int? Age { get; set; }
/// <summary>
/// 用户图片(路径)
/// </summary>
[SugarColumn(ColumnDescription = "用户头像", IsNullable = true, ColumnName = "chat_user_img")]
public string ChatUserImg { get; set; }
/// <summary>
/// 电话号码
/// </summary>
[SugarColumn(ColumnDescription = "电话号码", IsNullable = true, ColumnName = "chat_user_phone")]
public string Phone { get; set; }
/// <summary>
/// 邮箱
/// </summary>
[SugarColumn(ColumnDescription = "邮箱", IsNullable = true, ColumnName = "chat_user_email")]
public string Email { get; set; }
/// <summary>
/// 登录状态(1,在线 | 0,离线)
/// </summary>
[SugarColumn(ColumnDescription = "登录状态(1,在线 | 0,离线)", ColumnName = "chat_user_status")]
public int? Status { get; set; }
}
}