You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

58 lines
1.6 KiB
C#

using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using DS.Module.Core;
using DS.Module.Core.Data;
using SqlSugar;
namespace DS.WMS.Core.Sys.Entity;
/// <summary>
/// 系统版本表
/// </summary>
[SqlSugar.SugarTable("sys_version")]
public class SysVersion: BaseModel<long>
{
/// <summary>
/// 版本号
/// </summary>
[Required, MaxLength(100)]
[SugarColumn(ColumnDescription = "版本号",Length =100)]
public string Version { get; set; }
/// <summary>
/// 标题
/// </summary>
[Required, MaxLength(100)]
[SugarColumn(ColumnDescription = "标题", Length = 100)]
public string Title { get; set; }
/// <summary>
/// 主库更新内容
/// </summary>
[SugarColumn(ColumnDescription = "主库更新内容", IsNullable = true, ColumnDataType=StaticConfig.CodeFirst_BigString)]
public string MainContent { get; set; }
/// <summary>
/// 租户库更新内容
/// </summary>
[SugarColumn(ColumnDescription = "租户库更新内容", IsNullable = true, ColumnDataType=StaticConfig.CodeFirst_BigString)]
public string TenantContent { get; set; }
/// <summary>
/// 排序
/// </summary>
[SugarColumn(ColumnDescription = "排序")]
public int? OrderNo { get; set; } = 100;
/// <summary>
/// 状态
/// </summary>
[SugarColumn(ColumnDescription = "状态")]
public StatusEnum? Status { get; set; } = StatusEnum.Enable;
/// <summary>
/// 执行标识
/// </summary>
[Description("执行标识")]
[SqlSugar.SugarColumn(ColumnDescription = "执行标识")]
public bool Executed { get; set; } = false;
}