feat(CUB-56): Agent State Database Migration #2
Reference in New Issue
Block a user
Delete Branch "agent/hex/CUB-56-agent-state-migration"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What
Create the
agentstable migration for the Control Center backend.Schema
id(uuid PK)status(PostgreSQL enum: active, idle, thinking, error)task(nullable text)progress(nullable int, 0-100 with check constraint)session_key(text, unique, not null)channel(text, not null)last_activity(timestamptz, not null)created_at(timestamptz, default now())updated_at(timestamptz, default now())Indexes
ix_agents_session_key(unique) — session lookupix_agents_channel— channel filteringix_agents_status— fleet health monitoringFiles
backend/Entities/Agent.cs— entity modelbackend/Entities/AgentStatus.cs— enumbackend/Configurations/AgentConfiguration.cs— EF Core type configbackend/Data/AppDbContext.cs— DbContextbackend/Data/AppDbContextFactory.cs— design-time factorybackend/Migrations/20260426101703_CreateAgentsTable.cs— migrationbackend/Program.cs— DI registrationLinear
Closes CUB-56
Pull request closed