AdoS0DepartmentMaster.cs 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. namespace Admin.NET.Plugin.AiDOP.Entity.S0.Warehouse;
  2. /// <summary>
  3. /// 部门主数据(复刻 DepartmentMaster)
  4. /// </summary>
  5. [SugarTable("DepartmentMaster", "部门主数据(复刻 DepartmentMaster)")]
  6. [SugarIndex("uk_DepartmentMaster_domain_dept", nameof(DomainCode), OrderByType.Asc, nameof(Department), OrderByType.Asc, IsUnique = true)]
  7. public class AdoS0DepartmentMaster
  8. {
  9. [SugarColumn(ColumnName = "rec_id", ColumnDescription = "主键", IsPrimaryKey = true, IsIdentity = true, ColumnDataType = "bigint")]
  10. public long Id { get; set; }
  11. [SugarColumn(ColumnName = "company_ref_id", ColumnDescription = "关联公司 ID", ColumnDataType = "bigint")]
  12. public long CompanyRefId { get; set; }
  13. [SugarColumn(ColumnName = "factory_ref_id", ColumnDescription = "关联工厂 ID", ColumnDataType = "bigint")]
  14. public long FactoryRefId { get; set; }
  15. [SugarColumn(ColumnName = "domain_code", ColumnDescription = "工厂域编码", Length = 50)]
  16. public string DomainCode { get; set; } = string.Empty;
  17. [SugarColumn(ColumnName = "department", ColumnDescription = "部门编码", Length = 100)]
  18. public string Department { get; set; } = string.Empty;
  19. [SugarColumn(ColumnName = "descr", ColumnDescription = "部门说明", Length = 255, IsNullable = true)]
  20. public string? Descr { get; set; }
  21. [SugarColumn(ColumnName = "is_active", ColumnDescription = "是否启用", ColumnDataType = "boolean")]
  22. public bool IsActive { get; set; } = true;
  23. [SugarColumn(ColumnName = "create_user", ColumnDescription = "创建人", Length = 100, IsNullable = true)]
  24. public string? CreateUser { get; set; }
  25. [SugarColumn(ColumnName = "create_time", ColumnDescription = "创建时间")]
  26. public DateTime CreateTime { get; set; } = DateTime.Now;
  27. [SugarColumn(ColumnName = "update_user", ColumnDescription = "更新人", Length = 100, IsNullable = true)]
  28. public string? UpdateUser { get; set; }
  29. [SugarColumn(ColumnName = "update_time", ColumnDescription = "更新时间", IsNullable = true)]
  30. public DateTime? UpdateTime { get; set; }
  31. }