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

43 lines
1.1 KiB
C#

using Admin.NET.Core;
namespace Admin.NET.Application.Entity;
/// <summary>
/// 品牌
/// </summary>
[SugarTable("Brand","品牌")]
public class Brand : 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>
[SugarColumn(ColumnName = "OfficialAccount", ColumnDescription = "公众号", Length = 32)]
public string? OfficialAccount { get; set; }
/// <summary>
/// 可用状态
/// </summary>
[Required]
[SugarColumn(ColumnName = "IsEnable", ColumnDescription = "可用状态")]
public bool IsEnable { get; set; }
/// <summary>
/// 备注
/// </summary>
[SugarColumn(ColumnName = "Remarks", ColumnDescription = "备注", Length = 64)]
public string? Remarks { get; set; }
}