diff --git a/internal/repository/migrations/sqlite3/10_node-table.up.sql b/internal/repository/migrations/sqlite3/10_node-table.up.sql index e4cb6c0..a11f20d 100644 --- a/internal/repository/migrations/sqlite3/10_node-table.up.sql +++ b/internal/repository/migrations/sqlite3/10_node-table.up.sql @@ -4,12 +4,12 @@ CREATE TABLE "node" ( cluster VARCHAR(255) NOT NULL, subcluster VARCHAR(255) NOT NULL, node_state VARCHAR(255) NOT NULL - CHECK (job_state IN ( + CHECK (node_state IN ( 'allocated', 'reserved', 'idle', 'mixed', 'down', 'unknown' )), health_state VARCHAR(255) NOT NULL - CHECK (job_state IN ( + CHECK (health_state IN ( 'full', 'partial', 'failed' )), meta_data TEXT, -- JSON