{ "id": "4e03f61d-b976-41b4-bbad-7655f73bf0fc", "prevId": "a5fcd4b7-d6f7-4fcc-a826-0d4ed8d3c7dc", "version": "5", "dialect": "pg", "tables": { "machines": { "name": "machines", "schema": "comfy_deploy", "columns": { "id": { "name": "id", "type": "uuid", "primaryKey": true, "notNull": true, "default": "gen_random_uuid()" }, "user_id": { "name": "user_id", "type": "text", "primaryKey": false, "notNull": true }, "name": { "name": "name", "type": "text", "primaryKey": false, "notNull": true }, "endpoint": { "name": "endpoint", "type": "text", "primaryKey": false, "notNull": true }, "created_at": { "name": "created_at", "type": "timestamp", "primaryKey": false, "notNull": true, "default": "now()" }, "updated_at": { "name": "updated_at", "type": "timestamp", "primaryKey": false, "notNull": true, "default": "now()" } }, "indexes": {}, "foreignKeys": { "machines_user_id_users_id_fk": { "name": "machines_user_id_users_id_fk", "tableFrom": "machines", "tableTo": "users", "columnsFrom": [ "user_id" ], "columnsTo": [ "id" ], "onDelete": "no action", "onUpdate": "no action" } }, "compositePrimaryKeys": {}, "uniqueConstraints": {} }, "users": { "name": "users", "schema": "comfy_deploy", "columns": { "id": { "name": "id", "type": "text", "primaryKey": true, "notNull": true }, "username": { "name": "username", "type": "text", "primaryKey": false, "notNull": true }, "name": { "name": "name", "type": "text", "primaryKey": false, "notNull": true }, "created_at": { "name": "created_at", "type": "timestamp", "primaryKey": false, "notNull": false, "default": "now()" }, "updated_at": { "name": "updated_at", "type": "timestamp", "primaryKey": false, "notNull": false, "default": "now()" } }, "indexes": {}, "foreignKeys": {}, "compositePrimaryKeys": {}, "uniqueConstraints": {} }, "workflow_runs": { "name": "workflow_runs", "schema": "comfy_deploy", "columns": { "id": { "name": "id", "type": "uuid", "primaryKey": true, "notNull": true, "default": "gen_random_uuid()" }, "workflow_version_id": { "name": "workflow_version_id", "type": "uuid", "primaryKey": false, "notNull": true }, "workflow_id": { "name": "workflow_id", "type": "uuid", "primaryKey": false, "notNull": true }, "machine_id": { "name": "machine_id", "type": "uuid", "primaryKey": false, "notNull": true }, "status": { "name": "status", "type": "workflow_run_status", "primaryKey": false, "notNull": true, "default": "'not-started'" }, "ended_at": { "name": "ended_at", "type": "timestamp", "primaryKey": false, "notNull": false }, "created_at": { "name": "created_at", "type": "timestamp", "primaryKey": false, "notNull": true, "default": "now()" } }, "indexes": {}, "foreignKeys": { "workflow_runs_workflow_version_id_workflow_versions_id_fk": { "name": "workflow_runs_workflow_version_id_workflow_versions_id_fk", "tableFrom": "workflow_runs", "tableTo": "workflow_versions", "columnsFrom": [ "workflow_version_id" ], "columnsTo": [ "id" ], "onDelete": "no action", "onUpdate": "no action" }, "workflow_runs_workflow_id_workflows_id_fk": { "name": "workflow_runs_workflow_id_workflows_id_fk", "tableFrom": "workflow_runs", "tableTo": "workflows", "columnsFrom": [ "workflow_id" ], "columnsTo": [ "id" ], "onDelete": "no action", "onUpdate": "no action" }, "workflow_runs_machine_id_machines_id_fk": { "name": "workflow_runs_machine_id_machines_id_fk", "tableFrom": "workflow_runs", "tableTo": "machines", "columnsFrom": [ "machine_id" ], "columnsTo": [ "id" ], "onDelete": "no action", "onUpdate": "no action" } }, "compositePrimaryKeys": {}, "uniqueConstraints": {} }, "workflows": { "name": "workflows", "schema": "comfy_deploy", "columns": { "id": { "name": "id", "type": "uuid", "primaryKey": true, "notNull": true, "default": "gen_random_uuid()" }, "user_id": { "name": "user_id", "type": "text", "primaryKey": false, "notNull": true }, "name": { "name": "name", "type": "text", "primaryKey": false, "notNull": true }, "created_at": { "name": "created_at", "type": "timestamp", "primaryKey": false, "notNull": true, "default": "now()" }, "updated_at": { "name": "updated_at", "type": "timestamp", "primaryKey": false, "notNull": true, "default": "now()" } }, "indexes": {}, "foreignKeys": { "workflows_user_id_users_id_fk": { "name": "workflows_user_id_users_id_fk", "tableFrom": "workflows", "tableTo": "users", "columnsFrom": [ "user_id" ], "columnsTo": [ "id" ], "onDelete": "cascade", "onUpdate": "no action" } }, "compositePrimaryKeys": {}, "uniqueConstraints": {} }, "workflow_versions": { "name": "workflow_versions", "schema": "comfy_deploy", "columns": { "workflow_id": { "name": "workflow_id", "type": "uuid", "primaryKey": false, "notNull": true }, "id": { "name": "id", "type": "uuid", "primaryKey": true, "notNull": true, "default": "gen_random_uuid()" }, "workflow": { "name": "workflow", "type": "jsonb", "primaryKey": false, "notNull": false }, "workflow_api": { "name": "workflow_api", "type": "jsonb", "primaryKey": false, "notNull": false }, "version": { "name": "version", "type": "integer", "primaryKey": false, "notNull": true }, "created_at": { "name": "created_at", "type": "timestamp", "primaryKey": false, "notNull": true, "default": "now()" }, "updated_at": { "name": "updated_at", "type": "timestamp", "primaryKey": false, "notNull": true, "default": "now()" } }, "indexes": {}, "foreignKeys": { "workflow_versions_workflow_id_workflows_id_fk": { "name": "workflow_versions_workflow_id_workflows_id_fk", "tableFrom": "workflow_versions", "tableTo": "workflows", "columnsFrom": [ "workflow_id" ], "columnsTo": [ "id" ], "onDelete": "cascade", "onUpdate": "no action" } }, "compositePrimaryKeys": {}, "uniqueConstraints": {} } }, "enums": { "workflow_run_status": { "name": "workflow_run_status", "values": { "not-started": "not-started", "running": "running", "success": "success", "failed": "failed" } } }, "schemas": { "comfy_deploy": "comfy_deploy" }, "_meta": { "schemas": {}, "tables": {}, "columns": {} } }