53 lines
1.3 KiB
C#
53 lines
1.3 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using SqlSugar;
|
|
namespace AI.Common.Entities
|
|
{
|
|
/// <summary>
|
|
///
|
|
///</summary>
|
|
[SugarTable("prompts")]
|
|
public class Prompts
|
|
{
|
|
|
|
|
|
/// <summary>
|
|
/// 备 注:
|
|
/// 默认值:
|
|
///</summary>
|
|
[SugarColumn(ColumnName="id" ,IsPrimaryKey = true,IsIdentity = true) ]
|
|
public long Id { get; set; }
|
|
|
|
/// <summary>
|
|
/// 备 注:角色名称
|
|
/// 默认值:
|
|
///</summary>
|
|
[SugarColumn(ColumnName="name" ) ]
|
|
public string Name { get; set; } = null!;
|
|
|
|
/// <summary>
|
|
/// 备 注:提示词
|
|
/// 默认值:
|
|
///</summary>
|
|
[SugarColumn(ColumnName="prompt" ) ]
|
|
public string Prompt { get; set; } = null!;
|
|
|
|
/// <summary>
|
|
/// 备 注:
|
|
/// 默认值:
|
|
///</summary>
|
|
[SugarColumn(ColumnName="create_time", IsOnlyIgnoreInsert = true, IsOnlyIgnoreUpdate = true) ]
|
|
public DateTime CreateTime { get; set; }
|
|
|
|
/// <summary>
|
|
/// 备 注:
|
|
/// 默认值:
|
|
///</summary>
|
|
[SugarColumn(ColumnName="is_delete" ) ]
|
|
public bool IsDelete { get; set; }
|
|
|
|
|
|
}
|
|
|
|
} |