{ "id": "d5839a22-0118-42d7-9632-545e36e36848", "prevId": "89dc4030-a75f-4f23-a8dd-cf52b5c2d9c4", "version": "7", "dialect": "postgresql", "tables": { "public.events": { "name": "events", "schema": "", "columns": { "id": { "name": "id", "type": "serial", "primaryKey": true, "notNull": true }, "project_id": { "name": "project_id", "type": "integer", "primaryKey": false, "notNull": true }, "task_id": { "name": "task_id", "type": "integer", "primaryKey": false, "notNull": false }, "session_id": { "name": "session_id", "type": "integer", "primaryKey": false, "notNull": false }, "type": { "name": "type", "type": "text", "primaryKey": false, "notNull": true }, "payload": { "name": "payload", "type": "jsonb", "primaryKey": false, "notNull": false }, "created_at": { "name": "created_at", "type": "timestamp with time zone", "primaryKey": false, "notNull": true, "default": "now()" } }, "indexes": {}, "foreignKeys": { "events_project_id_projects_id_fk": { "name": "events_project_id_projects_id_fk", "tableFrom": "events", "tableTo": "projects", "columnsFrom": [ "project_id" ], "columnsTo": [ "id" ], "onDelete": "cascade", "onUpdate": "no action" }, "events_task_id_tasks_id_fk": { "name": "events_task_id_tasks_id_fk", "tableFrom": "events", "tableTo": "tasks", "columnsFrom": [ "task_id" ], "columnsTo": [ "id" ], "onDelete": "cascade", "onUpdate": "no action" }, "events_session_id_sessions_id_fk": { "name": "events_session_id_sessions_id_fk", "tableFrom": "events", "tableTo": "sessions", "columnsFrom": [ "session_id" ], "columnsTo": [ "id" ], "onDelete": "set null", "onUpdate": "no action" } }, "compositePrimaryKeys": {}, "uniqueConstraints": {}, "policies": {}, "checkConstraints": {}, "isRLSEnabled": false }, "public.goals": { "name": "goals", "schema": "", "columns": { "id": { "name": "id", "type": "serial", "primaryKey": true, "notNull": true }, "project_id": { "name": "project_id", "type": "integer", "primaryKey": false, "notNull": true }, "title": { "name": "title", "type": "text", "primaryKey": false, "notNull": true }, "description": { "name": "description", "type": "text", "primaryKey": false, "notNull": false }, "status": { "name": "status", "type": "goal_status", "typeSchema": "public", "primaryKey": false, "notNull": true, "default": "'open'" }, "created_at": { "name": "created_at", "type": "timestamp with time zone", "primaryKey": false, "notNull": true, "default": "now()" }, "updated_at": { "name": "updated_at", "type": "timestamp with time zone", "primaryKey": false, "notNull": true, "default": "now()" } }, "indexes": {}, "foreignKeys": { "goals_project_id_projects_id_fk": { "name": "goals_project_id_projects_id_fk", "tableFrom": "goals", "tableTo": "projects", "columnsFrom": [ "project_id" ], "columnsTo": [ "id" ], "onDelete": "cascade", "onUpdate": "no action" } }, "compositePrimaryKeys": {}, "uniqueConstraints": {}, "policies": {}, "checkConstraints": {}, "isRLSEnabled": false }, "public.oauth_clients": { "name": "oauth_clients", "schema": "", "columns": { "id": { "name": "id", "type": "text", "primaryKey": true, "notNull": true }, "name": { "name": "name", "type": "text", "primaryKey": false, "notNull": true }, "redirect_uris": { "name": "redirect_uris", "type": "jsonb", "primaryKey": false, "notNull": true }, "created_at": { "name": "created_at", "type": "timestamp with time zone", "primaryKey": false, "notNull": true, "default": "now()" } }, "indexes": {}, "foreignKeys": {}, "compositePrimaryKeys": {}, "uniqueConstraints": {}, "policies": {}, "checkConstraints": {}, "isRLSEnabled": false }, "public.oauth_codes": { "name": "oauth_codes", "schema": "", "columns": { "code_hash": { "name": "code_hash", "type": "text", "primaryKey": true, "notNull": true }, "client_id": { "name": "client_id", "type": "text", "primaryKey": false, "notNull": true }, "user_id": { "name": "user_id", "type": "integer", "primaryKey": false, "notNull": true }, "redirect_uri": { "name": "redirect_uri", "type": "text", "primaryKey": false, "notNull": true }, "code_challenge": { "name": "code_challenge", "type": "text", "primaryKey": false, "notNull": true }, "scope": { "name": "scope", "type": "text", "primaryKey": false, "notNull": false }, "expires_at": { "name": "expires_at", "type": "timestamp with time zone", "primaryKey": false, "notNull": true }, "used_at": { "name": "used_at", "type": "timestamp with time zone", "primaryKey": false, "notNull": false } }, "indexes": {}, "foreignKeys": { "oauth_codes_client_id_oauth_clients_id_fk": { "name": "oauth_codes_client_id_oauth_clients_id_fk", "tableFrom": "oauth_codes", "tableTo": "oauth_clients", "columnsFrom": [ "client_id" ], "columnsTo": [ "id" ], "onDelete": "cascade", "onUpdate": "no action" }, "oauth_codes_user_id_users_id_fk": { "name": "oauth_codes_user_id_users_id_fk", "tableFrom": "oauth_codes", "tableTo": "users", "columnsFrom": [ "user_id" ], "columnsTo": [ "id" ], "onDelete": "cascade", "onUpdate": "no action" } }, "compositePrimaryKeys": {}, "uniqueConstraints": {}, "policies": {}, "checkConstraints": {}, "isRLSEnabled": false }, "public.oauth_tokens": { "name": "oauth_tokens", "schema": "", "columns": { "token_hash": { "name": "token_hash", "type": "text", "primaryKey": true, "notNull": true }, "kind": { "name": "kind", "type": "text", "primaryKey": false, "notNull": true }, "client_id": { "name": "client_id", "type": "text", "primaryKey": false, "notNull": true }, "user_id": { "name": "user_id", "type": "integer", "primaryKey": false, "notNull": true }, "scope": { "name": "scope", "type": "text", "primaryKey": false, "notNull": false }, "expires_at": { "name": "expires_at", "type": "timestamp with time zone", "primaryKey": false, "notNull": true }, "revoked_at": { "name": "revoked_at", "type": "timestamp with time zone", "primaryKey": false, "notNull": false }, "created_at": { "name": "created_at", "type": "timestamp with time zone", "primaryKey": false, "notNull": true, "default": "now()" }, "last_used_at": { "name": "last_used_at", "type": "timestamp with time zone", "primaryKey": false, "notNull": false } }, "indexes": {}, "foreignKeys": { "oauth_tokens_client_id_oauth_clients_id_fk": { "name": "oauth_tokens_client_id_oauth_clients_id_fk", "tableFrom": "oauth_tokens", "tableTo": "oauth_clients", "columnsFrom": [ "client_id" ], "columnsTo": [ "id" ], "onDelete": "cascade", "onUpdate": "no action" }, "oauth_tokens_user_id_users_id_fk": { "name": "oauth_tokens_user_id_users_id_fk", "tableFrom": "oauth_tokens", "tableTo": "users", "columnsFrom": [ "user_id" ], "columnsTo": [ "id" ], "onDelete": "cascade", "onUpdate": "no action" } }, "compositePrimaryKeys": {}, "uniqueConstraints": {}, "policies": {}, "checkConstraints": {}, "isRLSEnabled": false }, "public.project_invites": { "name": "project_invites", "schema": "", "columns": { "project_id": { "name": "project_id", "type": "integer", "primaryKey": false, "notNull": true }, "login": { "name": "login", "type": "text", "primaryKey": false, "notNull": true }, "invited_by": { "name": "invited_by", "type": "integer", "primaryKey": false, "notNull": false }, "created_at": { "name": "created_at", "type": "timestamp with time zone", "primaryKey": false, "notNull": true, "default": "now()" } }, "indexes": {}, "foreignKeys": { "project_invites_project_id_projects_id_fk": { "name": "project_invites_project_id_projects_id_fk", "tableFrom": "project_invites", "tableTo": "projects", "columnsFrom": [ "project_id" ], "columnsTo": [ "id" ], "onDelete": "cascade", "onUpdate": "no action" }, "project_invites_invited_by_users_id_fk": { "name": "project_invites_invited_by_users_id_fk", "tableFrom": "project_invites", "tableTo": "users", "columnsFrom": [ "invited_by" ], "columnsTo": [ "id" ], "onDelete": "set null", "onUpdate": "no action" } }, "compositePrimaryKeys": { "project_invites_project_id_login_pk": { "name": "project_invites_project_id_login_pk", "columns": [ "project_id", "login" ] } }, "uniqueConstraints": {}, "policies": {}, "checkConstraints": {}, "isRLSEnabled": false }, "public.project_members": { "name": "project_members", "schema": "", "columns": { "project_id": { "name": "project_id", "type": "integer", "primaryKey": false, "notNull": true }, "user_id": { "name": "user_id", "type": "integer", "primaryKey": false, "notNull": true }, "added_by": { "name": "added_by", "type": "integer", "primaryKey": false, "notNull": false }, "created_at": { "name": "created_at", "type": "timestamp with time zone", "primaryKey": false, "notNull": true, "default": "now()" } }, "indexes": {}, "foreignKeys": { "project_members_project_id_projects_id_fk": { "name": "project_members_project_id_projects_id_fk", "tableFrom": "project_members", "tableTo": "projects", "columnsFrom": [ "project_id" ], "columnsTo": [ "id" ], "onDelete": "cascade", "onUpdate": "no action" }, "project_members_user_id_users_id_fk": { "name": "project_members_user_id_users_id_fk", "tableFrom": "project_members", "tableTo": "users", "columnsFrom": [ "user_id" ], "columnsTo": [ "id" ], "onDelete": "cascade", "onUpdate": "no action" }, "project_members_added_by_users_id_fk": { "name": "project_members_added_by_users_id_fk", "tableFrom": "project_members", "tableTo": "users", "columnsFrom": [ "added_by" ], "columnsTo": [ "id" ], "onDelete": "set null", "onUpdate": "no action" } }, "compositePrimaryKeys": { "project_members_project_id_user_id_pk": { "name": "project_members_project_id_user_id_pk", "columns": [ "project_id", "user_id" ] } }, "uniqueConstraints": {}, "policies": {}, "checkConstraints": {}, "isRLSEnabled": false }, "public.projects": { "name": "projects", "schema": "", "columns": { "id": { "name": "id", "type": "serial", "primaryKey": true, "notNull": true }, "slug": { "name": "slug", "type": "text", "primaryKey": false, "notNull": true }, "key": { "name": "key", "type": "text", "primaryKey": false, "notNull": true }, "name": { "name": "name", "type": "text", "primaryKey": false, "notNull": true }, "description": { "name": "description", "type": "text", "primaryKey": false, "notNull": false }, "gitea_owner": { "name": "gitea_owner", "type": "text", "primaryKey": false, "notNull": true }, "gitea_repo": { "name": "gitea_repo", "type": "text", "primaryKey": false, "notNull": true }, "default_branch": { "name": "default_branch", "type": "text", "primaryKey": false, "notNull": true, "default": "'main'" }, "workspace_path": { "name": "workspace_path", "type": "text", "primaryKey": false, "notNull": true }, "owner_id": { "name": "owner_id", "type": "integer", "primaryKey": false, "notNull": false }, "next_task_number": { "name": "next_task_number", "type": "integer", "primaryKey": false, "notNull": true, "default": 1 }, "created_at": { "name": "created_at", "type": "timestamp with time zone", "primaryKey": false, "notNull": true, "default": "now()" }, "updated_at": { "name": "updated_at", "type": "timestamp with time zone", "primaryKey": false, "notNull": true, "default": "now()" } }, "indexes": {}, "foreignKeys": { "projects_owner_id_users_id_fk": { "name": "projects_owner_id_users_id_fk", "tableFrom": "projects", "tableTo": "users", "columnsFrom": [ "owner_id" ], "columnsTo": [ "id" ], "onDelete": "set null", "onUpdate": "no action" } }, "compositePrimaryKeys": {}, "uniqueConstraints": { "projects_slug_unique": { "name": "projects_slug_unique", "nullsNotDistinct": false, "columns": [ "slug" ] }, "projects_key_unique": { "name": "projects_key_unique", "nullsNotDistinct": false, "columns": [ "key" ] } }, "policies": {}, "checkConstraints": {}, "isRLSEnabled": false }, "public.questions": { "name": "questions", "schema": "", "columns": { "id": { "name": "id", "type": "serial", "primaryKey": true, "notNull": true }, "project_id": { "name": "project_id", "type": "integer", "primaryKey": false, "notNull": true }, "task_id": { "name": "task_id", "type": "integer", "primaryKey": false, "notNull": false }, "session_id": { "name": "session_id", "type": "integer", "primaryKey": false, "notNull": false }, "kind": { "name": "kind", "type": "text", "primaryKey": false, "notNull": true }, "text": { "name": "text", "type": "text", "primaryKey": false, "notNull": true }, "options": { "name": "options", "type": "jsonb", "primaryKey": false, "notNull": false }, "answer": { "name": "answer", "type": "text", "primaryKey": false, "notNull": false }, "answered_via": { "name": "answered_via", "type": "text", "primaryKey": false, "notNull": false }, "telegram_message_id": { "name": "telegram_message_id", "type": "integer", "primaryKey": false, "notNull": false }, "awaiting_hook": { "name": "awaiting_hook", "type": "boolean", "primaryKey": false, "notNull": true, "default": false }, "created_at": { "name": "created_at", "type": "timestamp with time zone", "primaryKey": false, "notNull": true, "default": "now()" }, "answered_at": { "name": "answered_at", "type": "timestamp with time zone", "primaryKey": false, "notNull": false } }, "indexes": {}, "foreignKeys": { "questions_project_id_projects_id_fk": { "name": "questions_project_id_projects_id_fk", "tableFrom": "questions", "tableTo": "projects", "columnsFrom": [ "project_id" ], "columnsTo": [ "id" ], "onDelete": "cascade", "onUpdate": "no action" }, "questions_task_id_tasks_id_fk": { "name": "questions_task_id_tasks_id_fk", "tableFrom": "questions", "tableTo": "tasks", "columnsFrom": [ "task_id" ], "columnsTo": [ "id" ], "onDelete": "cascade", "onUpdate": "no action" }, "questions_session_id_sessions_id_fk": { "name": "questions_session_id_sessions_id_fk", "tableFrom": "questions", "tableTo": "sessions", "columnsFrom": [ "session_id" ], "columnsTo": [ "id" ], "onDelete": "set null", "onUpdate": "no action" } }, "compositePrimaryKeys": {}, "uniqueConstraints": {}, "policies": {}, "checkConstraints": {}, "isRLSEnabled": false }, "public.sessions": { "name": "sessions", "schema": "", "columns": { "id": { "name": "id", "type": "serial", "primaryKey": true, "notNull": true }, "project_id": { "name": "project_id", "type": "integer", "primaryKey": false, "notNull": true }, "task_id": { "name": "task_id", "type": "integer", "primaryKey": false, "notNull": false }, "tmux_name": { "name": "tmux_name", "type": "text", "primaryKey": false, "notNull": true }, "provider": { "name": "provider", "type": "text", "primaryKey": false, "notNull": true, "default": "'claude'" }, "claude_session_id": { "name": "claude_session_id", "type": "text", "primaryKey": false, "notNull": false }, "generation": { "name": "generation", "type": "integer", "primaryKey": false, "notNull": true, "default": 0 }, "auto_nudges": { "name": "auto_nudges", "type": "integer", "primaryKey": false, "notNull": true, "default": 0 }, "resume_at": { "name": "resume_at", "type": "timestamp with time zone", "primaryKey": false, "notNull": false }, "limit_probe_min": { "name": "limit_probe_min", "type": "integer", "primaryKey": false, "notNull": false }, "limit_resumes": { "name": "limit_resumes", "type": "integer", "primaryKey": false, "notNull": true, "default": 0 }, "limit_resumes_day": { "name": "limit_resumes_day", "type": "text", "primaryKey": false, "notNull": false }, "limit_resumed_at": { "name": "limit_resumed_at", "type": "timestamp with time zone", "primaryKey": false, "notNull": false }, "status": { "name": "status", "type": "session_status", "typeSchema": "public", "primaryKey": false, "notNull": true, "default": "'starting'" }, "last_activity_at": { "name": "last_activity_at", "type": "timestamp with time zone", "primaryKey": false, "notNull": false }, "created_at": { "name": "created_at", "type": "timestamp with time zone", "primaryKey": false, "notNull": true, "default": "now()" }, "ended_at": { "name": "ended_at", "type": "timestamp with time zone", "primaryKey": false, "notNull": false } }, "indexes": {}, "foreignKeys": { "sessions_project_id_projects_id_fk": { "name": "sessions_project_id_projects_id_fk", "tableFrom": "sessions", "tableTo": "projects", "columnsFrom": [ "project_id" ], "columnsTo": [ "id" ], "onDelete": "cascade", "onUpdate": "no action" }, "sessions_task_id_tasks_id_fk": { "name": "sessions_task_id_tasks_id_fk", "tableFrom": "sessions", "tableTo": "tasks", "columnsFrom": [ "task_id" ], "columnsTo": [ "id" ], "onDelete": "set null", "onUpdate": "no action" } }, "compositePrimaryKeys": {}, "uniqueConstraints": { "sessions_tmux_name_unique": { "name": "sessions_tmux_name_unique", "nullsNotDistinct": false, "columns": [ "tmux_name" ] } }, "policies": {}, "checkConstraints": {}, "isRLSEnabled": false }, "public.settings": { "name": "settings", "schema": "", "columns": { "key": { "name": "key", "type": "text", "primaryKey": true, "notNull": true }, "value": { "name": "value", "type": "jsonb", "primaryKey": false, "notNull": true }, "updated_at": { "name": "updated_at", "type": "timestamp with time zone", "primaryKey": false, "notNull": true, "default": "now()" } }, "indexes": {}, "foreignKeys": {}, "compositePrimaryKeys": {}, "uniqueConstraints": {}, "policies": {}, "checkConstraints": {}, "isRLSEnabled": false }, "public.tasks": { "name": "tasks", "schema": "", "columns": { "id": { "name": "id", "type": "serial", "primaryKey": true, "notNull": true }, "project_id": { "name": "project_id", "type": "integer", "primaryKey": false, "notNull": true }, "goal_id": { "name": "goal_id", "type": "integer", "primaryKey": false, "notNull": false }, "number": { "name": "number", "type": "integer", "primaryKey": false, "notNull": true }, "title": { "name": "title", "type": "text", "primaryKey": false, "notNull": true }, "description": { "name": "description", "type": "text", "primaryKey": false, "notNull": false }, "status": { "name": "status", "type": "task_status", "typeSchema": "public", "primaryKey": false, "notNull": true, "default": "'backlog'" }, "openspec_change": { "name": "openspec_change", "type": "text", "primaryKey": false, "notNull": false }, "pr_url": { "name": "pr_url", "type": "text", "primaryKey": false, "notNull": false }, "created_at": { "name": "created_at", "type": "timestamp with time zone", "primaryKey": false, "notNull": true, "default": "now()" }, "updated_at": { "name": "updated_at", "type": "timestamp with time zone", "primaryKey": false, "notNull": true, "default": "now()" } }, "indexes": { "tasks_project_number": { "name": "tasks_project_number", "columns": [ { "expression": "project_id", "isExpression": false, "asc": true, "nulls": "last" }, { "expression": "number", "isExpression": false, "asc": true, "nulls": "last" } ], "isUnique": true, "concurrently": false, "method": "btree", "with": {} } }, "foreignKeys": { "tasks_project_id_projects_id_fk": { "name": "tasks_project_id_projects_id_fk", "tableFrom": "tasks", "tableTo": "projects", "columnsFrom": [ "project_id" ], "columnsTo": [ "id" ], "onDelete": "cascade", "onUpdate": "no action" }, "tasks_goal_id_goals_id_fk": { "name": "tasks_goal_id_goals_id_fk", "tableFrom": "tasks", "tableTo": "goals", "columnsFrom": [ "goal_id" ], "columnsTo": [ "id" ], "onDelete": "set null", "onUpdate": "no action" } }, "compositePrimaryKeys": {}, "uniqueConstraints": {}, "policies": {}, "checkConstraints": {}, "isRLSEnabled": false }, "public.telegram_outbox": { "name": "telegram_outbox", "schema": "", "columns": { "id": { "name": "id", "type": "serial", "primaryKey": true, "notNull": true }, "dedupe_key": { "name": "dedupe_key", "type": "text", "primaryKey": false, "notNull": true }, "method": { "name": "method", "type": "text", "primaryKey": false, "notNull": true }, "params": { "name": "params", "type": "jsonb", "primaryKey": false, "notNull": true }, "question_id": { "name": "question_id", "type": "integer", "primaryKey": false, "notNull": false }, "status": { "name": "status", "type": "text", "primaryKey": false, "notNull": true, "default": "'pending'" }, "attempts": { "name": "attempts", "type": "integer", "primaryKey": false, "notNull": true, "default": 0 }, "next_attempt_at": { "name": "next_attempt_at", "type": "timestamp with time zone", "primaryKey": false, "notNull": true, "default": "now()" }, "telegram_message_id": { "name": "telegram_message_id", "type": "integer", "primaryKey": false, "notNull": false }, "error": { "name": "error", "type": "text", "primaryKey": false, "notNull": false }, "created_at": { "name": "created_at", "type": "timestamp with time zone", "primaryKey": false, "notNull": true, "default": "now()" }, "sent_at": { "name": "sent_at", "type": "timestamp with time zone", "primaryKey": false, "notNull": false } }, "indexes": {}, "foreignKeys": { "telegram_outbox_question_id_questions_id_fk": { "name": "telegram_outbox_question_id_questions_id_fk", "tableFrom": "telegram_outbox", "tableTo": "questions", "columnsFrom": [ "question_id" ], "columnsTo": [ "id" ], "onDelete": "set null", "onUpdate": "no action" } }, "compositePrimaryKeys": {}, "uniqueConstraints": { "telegram_outbox_dedupe_key_unique": { "name": "telegram_outbox_dedupe_key_unique", "nullsNotDistinct": false, "columns": [ "dedupe_key" ] } }, "policies": {}, "checkConstraints": {}, "isRLSEnabled": false }, "public.telegram_updates": { "name": "telegram_updates", "schema": "", "columns": { "update_id": { "name": "update_id", "type": "integer", "primaryKey": true, "notNull": true }, "status": { "name": "status", "type": "text", "primaryKey": false, "notNull": true }, "created_at": { "name": "created_at", "type": "timestamp with time zone", "primaryKey": false, "notNull": true, "default": "now()" } }, "indexes": {}, "foreignKeys": {}, "compositePrimaryKeys": {}, "uniqueConstraints": {}, "policies": {}, "checkConstraints": {}, "isRLSEnabled": false }, "public.users": { "name": "users", "schema": "", "columns": { "id": { "name": "id", "type": "serial", "primaryKey": true, "notNull": true }, "gitea_id": { "name": "gitea_id", "type": "integer", "primaryKey": false, "notNull": true }, "login": { "name": "login", "type": "text", "primaryKey": false, "notNull": true }, "name": { "name": "name", "type": "text", "primaryKey": false, "notNull": false }, "email": { "name": "email", "type": "text", "primaryKey": false, "notNull": false }, "avatar_url": { "name": "avatar_url", "type": "text", "primaryKey": false, "notNull": false }, "access_token_enc": { "name": "access_token_enc", "type": "text", "primaryKey": false, "notNull": false }, "refresh_token_enc": { "name": "refresh_token_enc", "type": "text", "primaryKey": false, "notNull": false }, "token_expires_at": { "name": "token_expires_at", "type": "timestamp with time zone", "primaryKey": false, "notNull": false }, "claude_token_enc": { "name": "claude_token_enc", "type": "text", "primaryKey": false, "notNull": false }, "claude_token_set_at": { "name": "claude_token_set_at", "type": "timestamp with time zone", "primaryKey": false, "notNull": false }, "telegram_chat_id": { "name": "telegram_chat_id", "type": "bigint", "primaryKey": false, "notNull": false }, "telegram_user_id": { "name": "telegram_user_id", "type": "bigint", "primaryKey": false, "notNull": false }, "telegram_username": { "name": "telegram_username", "type": "text", "primaryKey": false, "notNull": false }, "telegram_paired_at": { "name": "telegram_paired_at", "type": "timestamp with time zone", "primaryKey": false, "notNull": false }, "created_at": { "name": "created_at", "type": "timestamp with time zone", "primaryKey": false, "notNull": true, "default": "now()" }, "last_login_at": { "name": "last_login_at", "type": "timestamp with time zone", "primaryKey": false, "notNull": false } }, "indexes": {}, "foreignKeys": {}, "compositePrimaryKeys": {}, "uniqueConstraints": { "users_gitea_id_unique": { "name": "users_gitea_id_unique", "nullsNotDistinct": false, "columns": [ "gitea_id" ] }, "users_login_unique": { "name": "users_login_unique", "nullsNotDistinct": false, "columns": [ "login" ] }, "users_telegram_chat_id_unique": { "name": "users_telegram_chat_id_unique", "nullsNotDistinct": false, "columns": [ "telegram_chat_id" ] } }, "policies": {}, "checkConstraints": {}, "isRLSEnabled": false } }, "enums": { "public.goal_status": { "name": "goal_status", "schema": "public", "values": [ "open", "done", "archived" ] }, "public.session_status": { "name": "session_status", "schema": "public", "values": [ "starting", "running", "waiting_input", "idle", "stalled", "rate_limited", "done", "failed" ] }, "public.task_status": { "name": "task_status", "schema": "public", "values": [ "backlog", "proposing", "awaiting_approval", "in_progress", "review", "done", "blocked" ] } }, "schemas": {}, "sequences": {}, "roles": {}, "policies": {}, "views": {}, "_meta": { "columns": {}, "schemas": {}, "tables": {} } }