| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124 |
- namespace Admin.NET.Plugin.AiDOP.Entity.S0.Warehouse;
- /// <summary>
- /// 单号规则主数据(复刻 NbrControl)
- /// </summary>
- [SugarTable("NbrControl", "单号规则主数据(复刻 NbrControl)")]
- [SugarIndex("uk_NbrControl_domain_nbrtype", nameof(DomainCode), OrderByType.Asc, nameof(NbrType), OrderByType.Asc, IsUnique = true)]
- public class AdoS0NbrControl : ITenantIdFilter
- {
- [SugarColumn(ColumnName = "RecID", ColumnDescription = "主键", IsPrimaryKey = true, IsIdentity = true, ColumnDataType = "int")]
- public int Id { get; set; }
- [SugarColumn(ColumnName = "NbrType", ColumnDescription = "单号类型编码", Length = 50, IsNullable = true)]
- public string? NbrType { get; set; }
- [SugarColumn(ColumnName = "Description", ColumnDescription = "描述", Length = 50, IsNullable = true)]
- public string? Description { get; set; }
- [SugarColumn(ColumnName = "NbrPre1", ColumnDescription = "前缀1", Length = 50, IsNullable = true)]
- public string? NbrPre1 { get; set; }
- [SugarColumn(ColumnName = "NbrPre2", ColumnDescription = "前缀2", Length = 50, IsNullable = true)]
- public string? NbrPre2 { get; set; }
- [SugarColumn(ColumnName = "NbrPre3", ColumnDescription = "前缀3", Length = 50, IsNullable = true)]
- public string? NbrPre3 { get; set; }
- [SugarColumn(ColumnName = "NextValue", ColumnDescription = "下一值", IsNullable = true)]
- public int? NextValue { 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 = "IniValue", ColumnDescription = "初始值", IsNullable = true)]
- public int? IniValue { get; set; }
- [SugarColumn(ColumnName = "MinValue", ColumnDescription = "最小值", IsNullable = true)]
- public int? MinValue { get; set; }
- [SugarColumn(ColumnName = "MaxValue", ColumnDescription = "最大值", IsNullable = true)]
- public int? MaxValue { get; set; }
- [SugarColumn(ColumnName = "ResetValue", ColumnDescription = "重置值", IsNullable = true)]
- public int? ResetValue { get; set; }
- [SugarColumn(ColumnName = "AllowReset", ColumnDescription = "允许重置", ColumnDataType = "bit(1)", IsNullable = true)]
- public bool? AllowReset { get; set; }
- [SugarColumn(ColumnName = "AllowSkip", ColumnDescription = "允许跳号", ColumnDataType = "bit(1)", IsNullable = true)]
- public bool? AllowSkip { get; set; }
- [SugarColumn(ColumnName = "AllowManual", ColumnDescription = "允许手动", ColumnDataType = "bit(1)", IsNullable = true)]
- public bool? AllowManual { get; set; }
- [SugarColumn(ColumnName = "DateType", ColumnDescription = "日期类型", Length = 50, IsNullable = true)]
- public string? DateType { get; set; }
- [SugarColumn(ColumnName = "EffectiveDate", ColumnDescription = "生效日期", IsNullable = true)]
- public DateTime? EffectiveDate { get; set; }
- [SugarColumn(ColumnName = "ExpireDate", ColumnDescription = "失效日期", IsNullable = true)]
- public DateTime? ExpireDate { get; set; }
- [SugarColumn(ColumnName = "ResetByDate", ColumnDescription = "是否按日期重置", ColumnDataType = "boolean", IsNullable = true)]
- public bool? ResetByDate { get; set; }
- [SugarColumn(ColumnName = "ArrayMethod", ColumnDescription = "排序方式", Length = 50, IsNullable = true)]
- public string? ArrayMethod { get; set; }
- [SugarColumn(ColumnName = "IsDateType", ColumnDescription = "是否含日期", ColumnDataType = "bit(1)", IsNullable = true)]
- public bool? IsDateType { get; set; }
- [SugarColumn(ColumnName = "BusinessID", ColumnDescription = "业务ID", IsNullable = true)]
- public long? BusinessId { get; set; }
- [SugarColumn(ColumnName = "IsActive", ColumnDescription = "是否启用", ColumnDataType = "boolean", IsNullable = true)]
- public bool? IsActive { get; set; }
- [SugarColumn(ColumnName = "IsConfirm", ColumnDescription = "是否确认", ColumnDataType = "boolean", IsNullable = true)]
- public bool? IsConfirm { get; set; }
- [SugarColumn(ColumnName = "Domain", ColumnDescription = "域", Length = 50, IsNullable = true)]
- public string? Domain { get; set; }
- [SugarColumn(ColumnName = "AddDate", ColumnDescription = "新增日期", IsNullable = true)]
- public DateTime? AddDate { get; set; }
- [SugarColumn(ColumnName = "IniDate", ColumnDescription = "初始日期", IsNullable = true)]
- public DateTime? IniDate { get; set; }
- [SugarColumn(ColumnName = "IniNextValue", ColumnDescription = "初始下一值", IsNullable = true)]
- public int? IniNextValue { get; set; }
- [SugarColumn(ColumnName = "IsStart", ColumnDescription = "是否起始", ColumnDataType = "boolean", IsNullable = true)]
- public bool? IsStart { get; set; }
- [SugarColumn(ColumnName = "IsChanged", ColumnDescription = "是否已变更", ColumnDataType = "boolean", IsNullable = true)]
- public bool? IsChanged { get; set; }
- // 与现网表一致:PascalCase 审计列(CreateTime 等)。EnableUnderLine 时由 SqlSugarSetup 对本类型跳过列名下划线转换,避免误加 create_time。
- [SugarColumn(ColumnName = "CreateUser", ColumnDescription = "创建人", Length = 24, IsNullable = true)]
- public string? CreateUser { get; set; }
- [SugarColumn(ColumnName = "CreateTime", ColumnDescription = "创建时间", IsNullable = true)]
- public DateTime? CreateTime { get; set; }
- [SugarColumn(ColumnName = "UpdateUser", ColumnDescription = "更新人", Length = 24, IsNullable = true)]
- public string? UpdateUser { get; set; }
- [SugarColumn(ColumnName = "UpdateTime", ColumnDescription = "更新时间", IsNullable = true)]
- public DateTime? UpdateTime { get; set; }
- [SugarColumn(ColumnName = "EffectiveTime", ColumnDescription = "生效时间", IsNullable = true)]
- public DateTime? EffectiveTime { get; set; }
- [SugarColumn(ColumnName = "tenant_id", IsNullable = true)]
- public long? TenantId { get; set; }
- }
|