| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849 |
- namespace Admin.NET.Plugin.AiDOP.Entity.S0.Manufacturing;
- /// <summary>
- /// 订单排程周期标准(建议工厂 + 订单类型维度)。
- /// </summary>
- [SugarTable("S0OrderScheduleCycle", "订单排程周期标准")]
- [SugarIndex("uk_S0OrderScheduleCycle_factory_ordertype",
- nameof(FactoryRefId), OrderByType.Asc,
- nameof(OrderType), OrderByType.Asc,
- IsUnique = true)]
- public class AdoS0OrderScheduleCycle
- {
- [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; }
- /// <summary>订单类型;空字符串表示默认/不限。</summary>
- [SugarColumn(ColumnName = "order_type", Length = 100)]
- public string OrderType { get; set; } = string.Empty;
- [SugarColumn(ColumnName = "std_hours")]
- public int StdHours { 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; }
- }
|