namespace Admin.NET.Plugin.AiDOP.Entity.S0.Supply; /// /// 品类采购前置期主数据(品类 + 物料属性维度)。 /// [SugarTable("S0CategoryLeadTime", "品类采购前置期主数据")] [SugarIndex("uk_S0CategoryLeadTime_factory_category_owner", nameof(FactoryRefId), OrderByType.Asc, nameof(CategoryCode), OrderByType.Asc, nameof(OwnerApplication), OrderByType.Asc, IsUnique = true)] public class AdoS0CategoryLeadTime { [SugarColumn(ColumnName = "rec_id", IsPrimaryKey = true, IsIdentity = true, ColumnDataType = "bigint")] public long Id { get; set; } [SugarColumn(ColumnName = "company_ref_id", ColumnDataType = "bigint")] public long CompanyRefId { get; set; } [SugarColumn(ColumnName = "factory_ref_id", ColumnDataType = "bigint")] public long FactoryRefId { get; set; } [SugarColumn(ColumnName = "domain_code", Length = 50, IsNullable = true)] public string? DomainCode { get; set; } [SugarColumn(ColumnName = "category_code", Length = 100)] public string CategoryCode { get; set; } = string.Empty; [SugarColumn(ColumnName = "category_name", Length = 200, IsNullable = true)] public string? CategoryName { get; set; } [SugarColumn(ColumnName = "owner_application", Length = 100)] public string OwnerApplication { get; set; } = string.Empty; [SugarColumn(ColumnName = "lead_time_days")] public int LeadTimeDays { get; set; } [SugarColumn(ColumnName = "remarks", Length = 500, IsNullable = true)] public string? Remarks { get; set; } [SugarColumn(ColumnName = "is_active", ColumnDataType = "boolean")] public bool IsActive { get; set; } = true; [SugarColumn(ColumnName = "create_user", Length = 100, IsNullable = true)] public string? CreateUser { get; set; } [SugarColumn(ColumnName = "create_time")] public DateTime CreateTime { get; set; } = DateTime.Now; [SugarColumn(ColumnName = "update_user", Length = 100, IsNullable = true)] public string? UpdateUser { get; set; } [SugarColumn(ColumnName = "update_time", IsNullable = true)] public DateTime? UpdateTime { get; set; } }