namespace Admin.NET.Plugin.AiDOP.Entity.S0.Warehouse; /// /// 成本中心主数据(复刻 CostCtrMaster) /// [SugarTable("CostCtrMaster", "成本中心主数据(复刻 CostCtrMaster)")] [SugarIndex("uk_CostCtrMaster_domain_code", nameof(DomainCode), OrderByType.Asc, nameof(CostCtr), OrderByType.Asc, IsUnique = true)] public class AdoS0CostCtrMaster { [SugarColumn(ColumnName = "rec_id", ColumnDescription = "主键", IsPrimaryKey = true, IsIdentity = true, ColumnDataType = "bigint")] public long Id { get; set; } [SugarColumn(ColumnName = "company_ref_id", ColumnDescription = "关联公司 ID", ColumnDataType = "bigint")] public long CompanyRefId { get; set; } [SugarColumn(ColumnName = "factory_ref_id", ColumnDescription = "关联工厂 ID", ColumnDataType = "bigint")] public long FactoryRefId { get; set; } [SugarColumn(ColumnName = "domain_code", ColumnDescription = "工厂域编码", Length = 50)] public string DomainCode { get; set; } = string.Empty; [SugarColumn(ColumnName = "cost_ctr", ColumnDescription = "成本中心编码", Length = 100)] public string CostCtr { get; set; } = string.Empty; [SugarColumn(ColumnName = "descr", ColumnDescription = "说明", Length = 255, IsNullable = true)] public string? Descr { get; set; } [SugarColumn(ColumnName = "ufld1", ColumnDescription = "自定义字段1", Length = 255, IsNullable = true)] public string? Ufld1 { get; set; } [SugarColumn(ColumnName = "eff_time", ColumnDescription = "生效时间", IsNullable = true)] public DateTime? EffTime { get; set; } [SugarColumn(ColumnName = "create_user", ColumnDescription = "创建人", Length = 100, IsNullable = true)] public string? CreateUser { get; set; } [SugarColumn(ColumnName = "create_time", ColumnDescription = "创建时间")] public DateTime CreateTime { get; set; } = DateTime.Now; [SugarColumn(ColumnName = "update_user", ColumnDescription = "更新人", Length = 100, IsNullable = true)] public string? UpdateUser { get; set; } [SugarColumn(ColumnName = "update_time", ColumnDescription = "更新时间", IsNullable = true)] public DateTime? UpdateTime { get; set; } }