67 lines
2.1 KiB
C#
67 lines
2.1 KiB
C#
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.ChatGPT
|
|
{
|
|
[SugarTable("tb_chat_gpt_log")]
|
|
public class ChatGPTLog : BusinessBase
|
|
{
|
|
[SugarColumn(IsPrimaryKey = true, IsIdentity = true, ColumnName = "chat_gpt_log_id")]
|
|
public int ChatGptLogId { get; set; }
|
|
|
|
/// <summary>
|
|
/// 聊天记录id
|
|
/// </summary>
|
|
[JsonConverter(typeof(ValueToStringConverter))]
|
|
[SugarColumn(IsPrimaryKey = true, ColumnName = "chat_gpt_log_guid")]
|
|
public long ChatGptLogGuId { get; set; }
|
|
|
|
/// <summary>
|
|
/// 发送人guid(外键)
|
|
/// </summary>
|
|
[JsonConverter(typeof(ValueToStringConverter))]
|
|
[SugarColumn(ColumnDescription = "发送人guid(外键)", ColumnName = "sender_guid")]
|
|
public long SenderGuId { get; set; }
|
|
|
|
/// <summary>
|
|
/// 接收人guid(外键)
|
|
/// </summary>
|
|
[JsonConverter(typeof(ValueToStringConverter))]
|
|
[SugarColumn(ColumnDescription = "接收人guid(外键)", ColumnName = "receiver_guid")]
|
|
public long ReceiverGuId { get; set; }
|
|
|
|
/// <summary>
|
|
/// 发送时间
|
|
/// </summary>
|
|
[SugarColumn(ColumnDescription = "发送时间", ColumnName = "chat_gpt_log_send_time")]
|
|
public DateTime ChatGptLogSendTime { get; set; }
|
|
|
|
/// <summary>
|
|
/// 内容
|
|
/// </summary>
|
|
[SugarColumn(ColumnDescription = "内容", ColumnDataType = "text", ColumnName = "chat_gpt_log_content")]
|
|
public string ChatGptLogContent { get; set; }
|
|
|
|
/// <summary>
|
|
/// 备注
|
|
/// </summary>
|
|
[SugarColumn(ColumnDescription = "备注", IsNullable = true, ColumnName = "chat_gpt_log_name")]
|
|
public string Remark { get; set; }
|
|
|
|
/// <summary>
|
|
/// 是否已读
|
|
/// </summary>
|
|
[SugarColumn(ColumnDescription = "是否已读", ColumnName = "isRead")]
|
|
public bool IsRead { get; set; }
|
|
|
|
}
|
|
|
|
|
|
}
|