using Admin.NET.Core;
namespace Admin.NET.Application.Entity;
///
/// 单位
///
[SugarTable("SysUnit","单位")]
public class SysUnit : EntityTenant
{
///
/// 创建者部门Id
///
[SugarColumn(ColumnName = "CreateOrgId", ColumnDescription = "创建者部门Id")]
public long? CreateOrgId { get; set; }
///
/// 创建者部门名称
///
[SugarColumn(ColumnName = "CreateOrgName", ColumnDescription = "创建者部门名称", Length = 64)]
public string? CreateOrgName { get; set; }
///
/// 名称
///
[Required]
[SugarColumn(ColumnName = "Name", ColumnDescription = "名称", Length = 64)]
public string Name { get; set; }
///
/// 编码
///
[Required]
[SugarColumn(ColumnName = "CodeNum", ColumnDescription = "编码", Length = 32)]
public string CodeNum { get; set; }
///
/// 是否启用
///
[Required]
[SugarColumn(ColumnName = "IsEnable", ColumnDescription = "是否启用")]
public bool IsEnable { get; set; }
///
/// 代码
///
[SugarColumn(ColumnName = "Code", ColumnDescription = "代码", Length = 64)]
public string? Code { get; set; }
///
/// 换算率
///
[SugarColumn(ColumnName = "Rate", ColumnDescription = "换算率")]
public int? Rate { get; set; }
///
/// 作为基本单位
///
[SugarColumn(ColumnName = "IsBaseUnit", ColumnDescription = "作为基本单位")]
public bool? IsBaseUnit { get; set; }
///
/// 精度
///
[SugarColumn(ColumnName = "Accuracy", ColumnDescription = "精度")]
public int? Accuracy { get; set; }
///
/// 外部编码
///
[SugarColumn(ColumnName = "ExternalNumber", ColumnDescription = "外部编码", Length = 32)]
public string? ExternalNumber { get; set; }
///
/// 备注
///
[SugarColumn(ColumnName = "Remarks", ColumnDescription = "备注", Length = 128)]
public string? Remarks { get; set; }
///
/// 单位组ID
///
[SugarColumn(ColumnName = "GroupUnitId", ColumnDescription = "单位组ID")]
public long? GroupUnitId { get; set; }
///
/// 子单位数量
///
[SugarColumn(ColumnName = "ChildUnitCount", ColumnDescription = "子单位数量")]
public int ChildUnitCount { get; set; }
}