AdoMdpRebuildLock.cs 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. namespace Admin.NET.Plugin.AiDOP.Entity.SmartOps;
  2. [SugarTable("ado_mdp_rebuild_lock", "模块看板重算作用域锁")]
  3. public class AdoMdpRebuildLock
  4. {
  5. [SugarColumn(ColumnName = "lock_name", Length = 160, IsPrimaryKey = true)]
  6. public string LockName { get; set; } = string.Empty;
  7. [SugarColumn(ColumnName = "module_code", Length = 8)]
  8. public string ModuleCode { get; set; } = string.Empty;
  9. [SugarColumn(ColumnName = "tenant_id")]
  10. public long TenantId { get; set; }
  11. [SugarColumn(ColumnName = "factory_id")]
  12. public long FactoryId { get; set; }
  13. [SugarColumn(ColumnName = "holder_id", Length = 100, IsNullable = true)]
  14. public string HolderId { get; set; }
  15. [SugarColumn(ColumnName = "job_id", IsNullable = true)]
  16. public long? JobId { get; set; }
  17. [SugarColumn(ColumnName = "status", Length = 20)]
  18. public string Status { get; set; } = "FREE";
  19. [SugarColumn(ColumnName = "acquired_at", IsNullable = true)]
  20. public DateTime? AcquiredAt { get; set; }
  21. [SugarColumn(ColumnName = "heartbeat_at", IsNullable = true)]
  22. public DateTime? HeartbeatAt { get; set; }
  23. [SugarColumn(ColumnName = "create_time")]
  24. public DateTime CreateTime { get; set; }
  25. [SugarColumn(ColumnName = "update_time")]
  26. public DateTime UpdateTime { get; set; }
  27. }