DigitalFactory/Admin.NET/Admin.NET.Application/Entity/Custom.cs

69 lines
1.8 KiB
C#

using Admin.NET.Core;
namespace Admin.NET.Application.Entity;
/// <summary>
/// 客户
/// </summary>
[SugarTable("Custom","客户")]
public class Custom : EntityTenant
{
/// <summary>
/// 名称
/// </summary>
[Required]
[SugarColumn(ColumnName = "Name", ColumnDescription = "名称", Length = 32)]
public string Name { get; set; }
/// <summary>
/// 编码
/// </summary>
[SugarColumn(ColumnName = "CodeNum", ColumnDescription = "编码", Length = 32)]
public string? CodeNum { get; set; }
/// <summary>
/// 分类
/// </summary>
[Required]
[SugarColumn(ColumnName = "Classify", ColumnDescription = "分类")]
public long Classify { get; set; }
/// <summary>
/// 年龄
/// </summary>
[SugarColumn(ColumnName = "Age", ColumnDescription = "年龄")]
public int? Age { get; set; }
/// <summary>
/// 拓展字段整型
/// </summary>
[SugarColumn(ColumnName = "ExpandField", ColumnDescription = "拓展字段整型")]
public int? ExpandField { get; set; }
/// <summary>
/// 联系人
/// </summary>
[Required]
[SugarColumn(ColumnName = "Contacts", ColumnDescription = "联系人")]
public int Contacts { get; set; }
/// <summary>
/// 品牌
/// </summary>
[SugarColumn(ColumnName = "Brand", ColumnDescription = "品牌", Length = 32)]
public string? Brand { get; set; }
/// <summary>
/// 外部编码
/// </summary>
[SugarColumn(ColumnName = "ExternalNumber", ColumnDescription = "外部编码", Length = 32)]
public string? ExternalNumber { get; set; }
/// <summary>
/// 可用状态
/// </summary>
[Required]
[SugarColumn(ColumnName = "IsEnable", ColumnDescription = "可用状态")]
public bool IsEnable { get; set; }
}