Skip to content

armgit / cindy

Public Imported from GitHub
0

Consider it done. The open-source AI agent that works out of the box · 想到,就能做到。开源、开箱即用的 AI Agent。

59.1 KB
Raw Blame
{
  "version": "6",
  "dialect": "sqlite",
  "id": "395a00d6-89eb-49e9-9aed-d3a8413b80a5",
  "prevId": "58c96af1-8d09-406e-8966-f01ce1ae2413",
  "tables": {
    "account_usage_snapshots": {
      "name": "account_usage_snapshots",
      "columns": {
        "agent_kind": {
          "name": "agent_kind",
          "type": "text",
          "primaryKey": true,
          "notNull": true,
          "autoincrement": false
        },
        "snapshot": {
          "name": "snapshot",
          "type": "text",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "updated_at": {
          "name": "updated_at",
          "type": "integer",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        }
      },
      "indexes": {},
      "foreignKeys": {},
      "compositePrimaryKeys": {},
      "uniqueConstraints": {},
      "checkConstraints": {}
    },
    "custom_providers": {
      "name": "custom_providers",
      "columns": {
        "id": {
          "name": "id",
          "type": "text",
          "primaryKey": true,
          "notNull": true,
          "autoincrement": false
        },
        "name": {
          "name": "name",
          "type": "text",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "runtimes": {
          "name": "runtimes",
          "type": "text",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false,
          "default": "'{}'"
        },
        "sort_order": {
          "name": "sort_order",
          "type": "integer",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false,
          "default": 0
        },
        "created_at": {
          "name": "created_at",
          "type": "integer",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "updated_at": {
          "name": "updated_at",
          "type": "integer",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        }
      },
      "indexes": {
        "idx_custom_providers_sort_order": {
          "name": "idx_custom_providers_sort_order",
          "columns": [
            "sort_order"
          ],
          "isUnique": false
        }
      },
      "foreignKeys": {},
      "compositePrimaryKeys": {},
      "uniqueConstraints": {},
      "checkConstraints": {}
    },
    "daily_model_usage": {
      "name": "daily_model_usage",
      "columns": {
        "day": {
          "name": "day",
          "type": "text",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "agent_kind": {
          "name": "agent_kind",
          "type": "text",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "model": {
          "name": "model",
          "type": "text",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "cost_usd": {
          "name": "cost_usd",
          "type": "real",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false,
          "default": 0
        },
        "input_tokens": {
          "name": "input_tokens",
          "type": "integer",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false,
          "default": 0
        },
        "output_tokens": {
          "name": "output_tokens",
          "type": "integer",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false,
          "default": 0
        },
        "cache_read_tokens": {
          "name": "cache_read_tokens",
          "type": "integer",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false,
          "default": 0
        },
        "cache_create_tokens": {
          "name": "cache_create_tokens",
          "type": "integer",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false,
          "default": 0
        },
        "updated_at": {
          "name": "updated_at",
          "type": "integer",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        }
      },
      "indexes": {},
      "foreignKeys": {},
      "compositePrimaryKeys": {
        "daily_model_usage_day_agent_kind_model_pk": {
          "columns": [
            "day",
            "agent_kind",
            "model"
          ],
          "name": "daily_model_usage_day_agent_kind_model_pk"
        }
      },
      "uniqueConstraints": {},
      "checkConstraints": {}
    },
    "daily_spend": {
      "name": "daily_spend",
      "columns": {
        "day": {
          "name": "day",
          "type": "text",
          "primaryKey": true,
          "notNull": true,
          "autoincrement": false
        },
        "cost_usd": {
          "name": "cost_usd",
          "type": "real",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false,
          "default": 0
        },
        "updated_at": {
          "name": "updated_at",
          "type": "integer",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        }
      },
      "indexes": {},
      "foreignKeys": {},
      "compositePrimaryKeys": {},
      "uniqueConstraints": {},
      "checkConstraints": {}
    },
    "embedding_jobs": {
      "name": "embedding_jobs",
      "columns": {
        "rowid": {
          "name": "rowid",
          "type": "integer",
          "primaryKey": true,
          "notNull": true,
          "autoincrement": true
        },
        "source": {
          "name": "source",
          "type": "text",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "source_id": {
          "name": "source_id",
          "type": "text",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "chunk_index": {
          "name": "chunk_index",
          "type": "integer",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false,
          "default": 0
        },
        "model_id": {
          "name": "model_id",
          "type": "text",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "vec_table": {
          "name": "vec_table",
          "type": "text",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "status": {
          "name": "status",
          "type": "text",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false,
          "default": "'pending'"
        },
        "attempts": {
          "name": "attempts",
          "type": "integer",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false,
          "default": 0
        },
        "last_error": {
          "name": "last_error",
          "type": "text",
          "primaryKey": false,
          "notNull": false,
          "autoincrement": false
        },
        "scheduled_at": {
          "name": "scheduled_at",
          "type": "integer",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "locked_at": {
          "name": "locked_at",
          "type": "integer",
          "primaryKey": false,
          "notNull": false,
          "autoincrement": false
        }
      },
      "indexes": {
        "uniq_embedding_jobs_natural": {
          "name": "uniq_embedding_jobs_natural",
          "columns": [
            "source",
            "source_id",
            "chunk_index",
            "model_id"
          ],
          "isUnique": true
        },
        "idx_embedding_jobs_status_scheduled": {
          "name": "idx_embedding_jobs_status_scheduled",
          "columns": [
            "status",
            "scheduled_at"
          ],
          "isUnique": false
        },
        "idx_embedding_jobs_source_id": {
          "name": "idx_embedding_jobs_source_id",
          "columns": [
            "source",
            "source_id"
          ],
          "isUnique": false
        }
      },
      "foreignKeys": {},
      "compositePrimaryKeys": {},
      "uniqueConstraints": {},
      "checkConstraints": {}
    },
    "embedding_meta": {
      "name": "embedding_meta",
      "columns": {
        "key": {
          "name": "key",
          "type": "text",
          "primaryKey": true,
          "notNull": true,
          "autoincrement": false
        },
        "value": {
          "name": "value",
          "type": "text",
          "primaryKey": false,
          "notNull": false,
          "autoincrement": false
        }
      },
      "indexes": {},
      "foreignKeys": {},
      "compositePrimaryKeys": {},
      "uniqueConstraints": {},
      "checkConstraints": {}
    },
    "im_bindings": {
      "name": "im_bindings",
      "columns": {
        "channel": {
          "name": "channel",
          "type": "text",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "bot_context_id": {
          "name": "bot_context_id",
          "type": "text",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "user_id": {
          "name": "user_id",
          "type": "text",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "scope_key": {
          "name": "scope_key",
          "type": "text",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false,
          "default": "''"
        },
        "target_session_id": {
          "name": "target_session_id",
          "type": "text",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "attached_at": {
          "name": "attached_at",
          "type": "integer",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "attached_via_card_message_id": {
          "name": "attached_via_card_message_id",
          "type": "text",
          "primaryKey": false,
          "notNull": false,
          "autoincrement": false
        }
      },
      "indexes": {
        "idx_im_bindings_target": {
          "name": "idx_im_bindings_target",
          "columns": [
            "target_session_id"
          ],
          "isUnique": false
        }
      },
      "foreignKeys": {
        "im_bindings_target_session_id_sessions_id_fk": {
          "name": "im_bindings_target_session_id_sessions_id_fk",
          "tableFrom": "im_bindings",
          "tableTo": "sessions",
          "columnsFrom": [
            "target_session_id"
          ],
          "columnsTo": [
            "id"
          ],
          "onDelete": "cascade",
          "onUpdate": "no action"
        }
      },
      "compositePrimaryKeys": {
        "im_bindings_channel_bot_context_id_user_id_scope_key_pk": {
          "columns": [
            "channel",
            "bot_context_id",
            "user_id",
            "scope_key"
          ],
          "name": "im_bindings_channel_bot_context_id_user_id_scope_key_pk"
        }
      },
      "uniqueConstraints": {},
      "checkConstraints": {}
    },
    "messages": {
      "name": "messages",
      "columns": {
        "id": {
          "name": "id",
          "type": "text",
          "primaryKey": true,
          "notNull": true,
          "autoincrement": false
        },
        "client_id": {
          "name": "client_id",
          "type": "text",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "session_id": {
          "name": "session_id",
          "type": "text",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "role": {
          "name": "role",
          "type": "text",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "content": {
          "name": "content",
          "type": "text",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "tool_use_id": {
          "name": "tool_use_id",
          "type": "text",
          "primaryKey": false,
          "notNull": false,
          "autoincrement": false
        },
        "agent_meta": {
          "name": "agent_meta",
          "type": "text",
          "primaryKey": false,
          "notNull": false,
          "autoincrement": false
        },
        "created_at": {
          "name": "created_at",
          "type": "integer",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "rewind_at": {
          "name": "rewind_at",
          "type": "integer",
          "primaryKey": false,
          "notNull": false,
          "autoincrement": false
        }
      },
      "indexes": {
        "uniq_messages_session_client": {
          "name": "uniq_messages_session_client",
          "columns": [
            "session_id",
            "client_id"
          ],
          "isUnique": true
        },
        "idx_messages_session_created": {
          "name": "idx_messages_session_created",
          "columns": [
            "session_id",
            "created_at"
          ],
          "isUnique": false
        },
        "idx_messages_created_at": {
          "name": "idx_messages_created_at",
          "columns": [
            "created_at",
            "id"
          ],
          "isUnique": false
        },
        "idx_messages_rewind_at": {
          "name": "idx_messages_rewind_at",
          "columns": [
            "rewind_at"
          ],
          "isUnique": false
        }
      },
      "foreignKeys": {
        "messages_session_id_sessions_id_fk": {
          "name": "messages_session_id_sessions_id_fk",
          "tableFrom": "messages",
          "tableTo": "sessions",
          "columnsFrom": [
            "session_id"
          ],
          "columnsTo": [
            "id"
          ],
          "onDelete": "cascade",
          "onUpdate": "no action"
        }
      },
      "compositePrimaryKeys": {},
      "uniqueConstraints": {},
      "checkConstraints": {}
    },
    "migration_history": {
      "name": "migration_history",
      "columns": {
        "seq": {
          "name": "seq",
          "type": "integer",
          "primaryKey": true,
          "notNull": true,
          "autoincrement": false
        },
        "file_name": {
          "name": "file_name",
          "type": "text",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "content_hash": {
          "name": "content_hash",
          "type": "text",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "applied_at": {
          "name": "applied_at",
          "type": "integer",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        }
      },
      "indexes": {},
      "foreignKeys": {},
      "compositePrimaryKeys": {},
      "uniqueConstraints": {},
      "checkConstraints": {}
    },
    "migration_meta": {
      "name": "migration_meta",
      "columns": {
        "key": {
          "name": "key",
          "type": "text",
          "primaryKey": true,
          "notNull": true,
          "autoincrement": false
        },
        "value": {
          "name": "value",
          "type": "text",
          "primaryKey": false,
          "notNull": false,
          "autoincrement": false
        }
      },
      "indexes": {},
      "foreignKeys": {},
      "compositePrimaryKeys": {},
      "uniqueConstraints": {},
      "checkConstraints": {}
    },
    "orca_teams": {
      "name": "orca_teams",
      "columns": {
        "id": {
          "name": "id",
          "type": "text",
          "primaryKey": true,
          "notNull": true,
          "autoincrement": false
        },
        "lead_session_id": {
          "name": "lead_session_id",
          "type": "text",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "status": {
          "name": "status",
          "type": "text",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false,
          "default": "'active'"
        },
        "completed_at": {
          "name": "completed_at",
          "type": "integer",
          "primaryKey": false,
          "notNull": false,
          "autoincrement": false
        },
        "created_at": {
          "name": "created_at",
          "type": "integer",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "updated_at": {
          "name": "updated_at",
          "type": "integer",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        }
      },
      "indexes": {
        "uniq_active_team_per_lead": {
          "name": "uniq_active_team_per_lead",
          "columns": [
            "lead_session_id"
          ],
          "isUnique": true,
          "where": "\"orca_teams\".\"status\" = 'active'"
        },
        "idx_orca_teams_status": {
          "name": "idx_orca_teams_status",
          "columns": [
            "status"
          ],
          "isUnique": false
        }
      },
      "foreignKeys": {
        "orca_teams_lead_session_id_sessions_id_fk": {
          "name": "orca_teams_lead_session_id_sessions_id_fk",
          "tableFrom": "orca_teams",
          "tableTo": "sessions",
          "columnsFrom": [
            "lead_session_id"
          ],
          "columnsTo": [
            "id"
          ],
          "onDelete": "cascade",
          "onUpdate": "no action"
        }
      },
      "compositePrimaryKeys": {},
      "uniqueConstraints": {},
      "checkConstraints": {}
    },
    "orca_workers": {
      "name": "orca_workers",
      "columns": {
        "id": {
          "name": "id",
          "type": "text",
          "primaryKey": true,
          "notNull": true,
          "autoincrement": false
        },
        "team_id": {
          "name": "team_id",
          "type": "text",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "session_id": {
          "name": "session_id",
          "type": "text",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "status": {
          "name": "status",
          "type": "text",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false,
          "default": "'idle'"
        },
        "label": {
          "name": "label",
          "type": "text",
          "primaryKey": false,
          "notNull": false,
          "autoincrement": false
        },
        "worktree_branch": {
          "name": "worktree_branch",
          "type": "text",
          "primaryKey": false,
          "notNull": false,
          "autoincrement": false
        },
        "role": {
          "name": "role",
          "type": "text",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false,
          "default": "'developer'"
        },
        "focused": {
          "name": "focused",
          "type": "integer",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false,
          "default": false
        },
        "idle_since": {
          "name": "idle_since",
          "type": "integer",
          "primaryKey": false,
          "notNull": false,
          "autoincrement": false
        },
        "created_at": {
          "name": "created_at",
          "type": "integer",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "updated_at": {
          "name": "updated_at",
          "type": "integer",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        }
      },
      "indexes": {
        "uniq_orca_workers_session_id": {
          "name": "uniq_orca_workers_session_id",
          "columns": [
            "session_id"
          ],
          "isUnique": true
        },
        "uniq_orca_workers_focused_per_team": {
          "name": "uniq_orca_workers_focused_per_team",
          "columns": [
            "team_id"
          ],
          "isUnique": true,
          "where": "\"orca_workers\".\"focused\" = true"
        },
        "idx_orca_workers_team_id": {
          "name": "idx_orca_workers_team_id",
          "columns": [
            "team_id"
          ],
          "isUnique": false
        },
        "idx_orca_workers_status": {
          "name": "idx_orca_workers_status",
          "columns": [
            "status"
          ],
          "isUnique": false
        }
      },
      "foreignKeys": {
        "orca_workers_team_id_orca_teams_id_fk": {
          "name": "orca_workers_team_id_orca_teams_id_fk",
          "tableFrom": "orca_workers",
          "tableTo": "orca_teams",
          "columnsFrom": [
            "team_id"
          ],
          "columnsTo": [
            "id"
          ],
          "onDelete": "cascade",
          "onUpdate": "no action"
        },
        "orca_workers_session_id_sessions_id_fk": {
          "name": "orca_workers_session_id_sessions_id_fk",
          "tableFrom": "orca_workers",
          "tableTo": "sessions",
          "columnsFrom": [
            "session_id"
          ],
          "columnsTo": [
            "id"
          ],
          "onDelete": "cascade",
          "onUpdate": "no action"
        }
      },
      "compositePrimaryKeys": {},
      "uniqueConstraints": {},
      "checkConstraints": {}
    },
    "project_aliases": {
      "name": "project_aliases",
      "columns": {
        "project_key": {
          "name": "project_key",
          "type": "text",
          "primaryKey": true,
          "notNull": true,
          "autoincrement": false
        },
        "alias": {
          "name": "alias",
          "type": "text",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "updated_at": {
          "name": "updated_at",
          "type": "integer",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        }
      },
      "indexes": {
        "idx_project_aliases_updated_at": {
          "name": "idx_project_aliases_updated_at",
          "columns": [
            "updated_at"
          ],
          "isUnique": false
        }
      },
      "foreignKeys": {},
      "compositePrimaryKeys": {},
      "uniqueConstraints": {},
      "checkConstraints": {}
    },
    "project_automation_consents": {
      "name": "project_automation_consents",
      "columns": {
        "working_dir": {
          "name": "working_dir",
          "type": "text",
          "primaryKey": true,
          "notNull": true,
          "autoincrement": false
        },
        "consented_at": {
          "name": "consented_at",
          "type": "integer",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "config_hash": {
          "name": "config_hash",
          "type": "text",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        }
      },
      "indexes": {},
      "foreignKeys": {},
      "compositePrimaryKeys": {},
      "uniqueConstraints": {},
      "checkConstraints": {}
    },
    "recent_workdirs": {
      "name": "recent_workdirs",
      "columns": {
        "path": {
          "name": "path",
          "type": "text",
          "primaryKey": true,
          "notNull": true,
          "autoincrement": false
        },
        "last_used_at": {
          "name": "last_used_at",
          "type": "integer",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        }
      },
      "indexes": {
        "idx_recent_workdirs_last_used_at": {
          "name": "idx_recent_workdirs_last_used_at",
          "columns": [
            "last_used_at"
          ],
          "isUnique": false
        }
      },
      "foreignKeys": {},
      "compositePrimaryKeys": {},
      "uniqueConstraints": {},
      "checkConstraints": {}
    },
    "schedule_runs": {
      "name": "schedule_runs",
      "columns": {
        "id": {
          "name": "id",
          "type": "text",
          "primaryKey": true,
          "notNull": true,
          "autoincrement": false
        },
        "schedule_id": {
          "name": "schedule_id",
          "type": "text",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "session_id": {
          "name": "session_id",
          "type": "text",
          "primaryKey": false,
          "notNull": false,
          "autoincrement": false
        },
        "fired_at": {
          "name": "fired_at",
          "type": "integer",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "finished_at": {
          "name": "finished_at",
          "type": "integer",
          "primaryKey": false,
          "notNull": false,
          "autoincrement": false
        },
        "status": {
          "name": "status",
          "type": "text",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "error_msg": {
          "name": "error_msg",
          "type": "text",
          "primaryKey": false,
          "notNull": false,
          "autoincrement": false
        },
        "result_text": {
          "name": "result_text",
          "type": "text",
          "primaryKey": false,
          "notNull": false,
          "autoincrement": false
        },
        "read_at": {
          "name": "read_at",
          "type": "integer",
          "primaryKey": false,
          "notNull": false,
          "autoincrement": false
        }
      },
      "indexes": {
        "idx_schedule_runs_schedule": {
          "name": "idx_schedule_runs_schedule",
          "columns": [
            "schedule_id",
            "fired_at"
          ],
          "isUnique": false
        }
      },
      "foreignKeys": {
        "schedule_runs_schedule_id_schedules_id_fk": {
          "name": "schedule_runs_schedule_id_schedules_id_fk",
          "tableFrom": "schedule_runs",
          "tableTo": "schedules",
          "columnsFrom": [
            "schedule_id"
          ],
          "columnsTo": [
            "id"
          ],
          "onDelete": "cascade",
          "onUpdate": "no action"
        },
        "schedule_runs_session_id_sessions_id_fk": {
          "name": "schedule_runs_session_id_sessions_id_fk",
          "tableFrom": "schedule_runs",
          "tableTo": "sessions",
          "columnsFrom": [
            "session_id"
          ],
          "columnsTo": [
            "id"
          ],
          "onDelete": "set null",
          "onUpdate": "no action"
        }
      },
      "compositePrimaryKeys": {},
      "uniqueConstraints": {},
      "checkConstraints": {}
    },
    "schedules": {
      "name": "schedules",
      "columns": {
        "id": {
          "name": "id",
          "type": "text",
          "primaryKey": true,
          "notNull": true,
          "autoincrement": false
        },
        "name": {
          "name": "name",
          "type": "text",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "prompt": {
          "name": "prompt",
          "type": "text",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "job_type": {
          "name": "job_type",
          "type": "text",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false,
          "default": "'prompt'"
        },
        "job_config": {
          "name": "job_config",
          "type": "text",
          "primaryKey": false,
          "notNull": false,
          "autoincrement": false
        },
        "source": {
          "name": "source",
          "type": "text",
          "primaryKey": false,
          "notNull": false,
          "autoincrement": false,
          "default": "'user'"
        },
        "project_config_id": {
          "name": "project_config_id",
          "type": "text",
          "primaryKey": false,
          "notNull": false,
          "autoincrement": false
        },
        "kind": {
          "name": "kind",
          "type": "text",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false,
          "default": "'cron'"
        },
        "cron_expr": {
          "name": "cron_expr",
          "type": "text",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "timezone": {
          "name": "timezone",
          "type": "text",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "recurring": {
          "name": "recurring",
          "type": "integer",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false,
          "default": true
        },
        "manual": {
          "name": "manual",
          "type": "integer",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false,
          "default": false
        },
        "interval_ms": {
          "name": "interval_ms",
          "type": "integer",
          "primaryKey": false,
          "notNull": false,
          "autoincrement": false
        },
        "agent_kind": {
          "name": "agent_kind",
          "type": "text",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "model": {
          "name": "model",
          "type": "text",
          "primaryKey": false,
          "notNull": false,
          "autoincrement": false
        },
        "provider_id": {
          "name": "provider_id",
          "type": "text",
          "primaryKey": false,
          "notNull": false,
          "autoincrement": false
        },
        "effort": {
          "name": "effort",
          "type": "text",
          "primaryKey": false,
          "notNull": false,
          "autoincrement": false
        },
        "fast_mode": {
          "name": "fast_mode",
          "type": "integer",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false,
          "default": false
        },
        "working_dir": {
          "name": "working_dir",
          "type": "text",
          "primaryKey": false,
          "notNull": false,
          "autoincrement": false
        },
        "workspace_kind": {
          "name": "workspace_kind",
          "type": "text",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false,
          "default": "'project'"
        },
        "use_worktree": {
          "name": "use_worktree",
          "type": "integer",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false,
          "default": false
        },
        "target_session_id": {
          "name": "target_session_id",
          "type": "text",
          "primaryKey": false,
          "notNull": false,
          "autoincrement": false
        },
        "persistent_session": {
          "name": "persistent_session",
          "type": "integer",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false,
          "default": false
        },
        "silent_when_idle": {
          "name": "silent_when_idle",
          "type": "integer",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false,
          "default": false
        },
        "notify_desktop": {
          "name": "notify_desktop",
          "type": "integer",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false,
          "default": true
        },
        "notify_feishu": {
          "name": "notify_feishu",
          "type": "integer",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false,
          "default": false
        },
        "status": {
          "name": "status",
          "type": "text",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false,
          "default": "'active'"
        },
        "created_at": {
          "name": "created_at",
          "type": "integer",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "updated_at": {
          "name": "updated_at",
          "type": "integer",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "last_fired_at": {
          "name": "last_fired_at",
          "type": "integer",
          "primaryKey": false,
          "notNull": false,
          "autoincrement": false
        },
        "last_finished_at": {
          "name": "last_finished_at",
          "type": "integer",
          "primaryKey": false,
          "notNull": false,
          "autoincrement": false
        },
        "next_fire_at": {
          "name": "next_fire_at",
          "type": "integer",
          "primaryKey": false,
          "notNull": false,
          "autoincrement": false
        },
        "expire_at": {
          "name": "expire_at",
          "type": "integer",
          "primaryKey": false,
          "notNull": false,
          "autoincrement": false
        }
      },
      "indexes": {
        "idx_schedules_active_next": {
          "name": "idx_schedules_active_next",
          "columns": [
            "status",
            "next_fire_at"
          ],
          "isUnique": false
        },
        "idx_schedules_target_session": {
          "name": "idx_schedules_target_session",
          "columns": [
            "target_session_id"
          ],
          "isUnique": false
        }
      },
      "foreignKeys": {
        "schedules_target_session_id_sessions_id_fk": {
          "name": "schedules_target_session_id_sessions_id_fk",
          "tableFrom": "schedules",
          "tableTo": "sessions",
          "columnsFrom": [
            "target_session_id"
          ],
          "columnsTo": [
            "id"
          ],
          "onDelete": "set null",
          "onUpdate": "no action"
        }
      },
      "compositePrimaryKeys": {},
      "uniqueConstraints": {},
      "checkConstraints": {}
    },
    "session_goals": {
      "name": "session_goals",
      "columns": {
        "session_id": {
          "name": "session_id",
          "type": "text",
          "primaryKey": true,
          "notNull": true,
          "autoincrement": false
        },
        "objective": {
          "name": "objective",
          "type": "text",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "status": {
          "name": "status",
          "type": "text",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false,
          "default": "'active'"
        },
        "budget_tokens": {
          "name": "budget_tokens",
          "type": "integer",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "max_turns": {
          "name": "max_turns",
          "type": "integer",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "turns_used": {
          "name": "turns_used",
          "type": "integer",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false,
          "default": 0
        },
        "tokens_used": {
          "name": "tokens_used",
          "type": "integer",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false,
          "default": 0
        },
        "no_progress_streak": {
          "name": "no_progress_streak",
          "type": "integer",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false,
          "default": 0
        },
        "last_reason": {
          "name": "last_reason",
          "type": "text",
          "primaryKey": false,
          "notNull": false,
          "autoincrement": false
        },
        "agent_kind": {
          "name": "agent_kind",
          "type": "text",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "started_at": {
          "name": "started_at",
          "type": "integer",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "updated_at": {
          "name": "updated_at",
          "type": "integer",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        }
      },
      "indexes": {
        "idx_session_goals_status": {
          "name": "idx_session_goals_status",
          "columns": [
            "status"
          ],
          "isUnique": false
        }
      },
      "foreignKeys": {
        "session_goals_session_id_sessions_id_fk": {
          "name": "session_goals_session_id_sessions_id_fk",
          "tableFrom": "session_goals",
          "tableTo": "sessions",
          "columnsFrom": [
            "session_id"
          ],
          "columnsTo": [
            "id"
          ],
          "onDelete": "cascade",
          "onUpdate": "no action"
        }
      },
      "compositePrimaryKeys": {},
      "uniqueConstraints": {},
      "checkConstraints": {}
    },
    "session_pr_refs": {
      "name": "session_pr_refs",
      "columns": {
        "id": {
          "name": "id",
          "type": "text",
          "primaryKey": true,
          "notNull": true,
          "autoincrement": false
        },
        "session_id": {
          "name": "session_id",
          "type": "text",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "owner": {
          "name": "owner",
          "type": "text",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "repo": {
          "name": "repo",
          "type": "text",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "pr_number": {
          "name": "pr_number",
          "type": "integer",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "url": {
          "name": "url",
          "type": "text",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "first_seen_at": {
          "name": "first_seen_at",
          "type": "integer",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "last_seen_at": {
          "name": "last_seen_at",
          "type": "integer",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        }
      },
      "indexes": {
        "uniq_session_pr_refs": {
          "name": "uniq_session_pr_refs",
          "columns": [
            "session_id",
            "owner",
            "repo",
            "pr_number"
          ],
          "isUnique": true
        },
        "idx_session_pr_refs_session_last_seen": {
          "name": "idx_session_pr_refs_session_last_seen",
          "columns": [
            "session_id",
            "last_seen_at"
          ],
          "isUnique": false
        }
      },
      "foreignKeys": {
        "session_pr_refs_session_id_sessions_id_fk": {
          "name": "session_pr_refs_session_id_sessions_id_fk",
          "tableFrom": "session_pr_refs",
          "tableTo": "sessions",
          "columnsFrom": [
            "session_id"
          ],
          "columnsTo": [
            "id"
          ],
          "onDelete": "cascade",
          "onUpdate": "no action"
        }
      },
      "compositePrimaryKeys": {},
      "uniqueConstraints": {},
      "checkConstraints": {}
    },
    "sessions": {
      "name": "sessions",
      "columns": {
        "id": {
          "name": "id",
          "type": "text",
          "primaryKey": true,
          "notNull": true,
          "autoincrement": false
        },
        "title": {
          "name": "title",
          "type": "text",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false,
          "default": "'New Maker'"
        },
        "working_dir": {
          "name": "working_dir",
          "type": "text",
          "primaryKey": false,
          "notNull": false,
          "autoincrement": false
        },
        "workspace_kind": {
          "name": "workspace_kind",
          "type": "text",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false,
          "default": "'project'"
        },
        "model": {
          "name": "model",
          "type": "text",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false,
          "default": "'claude-sonnet-4-6'"
        },
        "effort": {
          "name": "effort",
          "type": "text",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false,
          "default": "'high'"
        },
        "permission_mode": {
          "name": "permission_mode",
          "type": "text",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false,
          "default": "'ask'"
        },
        "status": {
          "name": "status",
          "type": "text",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false,
          "default": "'active'"
        },
        "sdk_session_id": {
          "name": "sdk_session_id",
          "type": "text",
          "primaryKey": false,
          "notNull": false,
          "autoincrement": false
        },
        "total_token_usage": {
          "name": "total_token_usage",
          "type": "integer",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false,
          "default": 0
        },
        "total_cost_usd": {
          "name": "total_cost_usd",
          "type": "real",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false,
          "default": 0
        },
        "context_tokens": {
          "name": "context_tokens",
          "type": "integer",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false,
          "default": 0
        },
        "context_window": {
          "name": "context_window",
          "type": "integer",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false,
          "default": 0
        },
        "fast_mode": {
          "name": "fast_mode",
          "type": "integer",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false,
          "default": false
        },
        "cleared_at": {
          "name": "cleared_at",
          "type": "integer",
          "primaryKey": false,
          "notNull": false,
          "autoincrement": false
        },
        "pinned_at": {
          "name": "pinned_at",
          "type": "integer",
          "primaryKey": false,
          "notNull": false,
          "autoincrement": false
        },
        "summary": {
          "name": "summary",
          "type": "text",
          "primaryKey": false,
          "notNull": false,
          "autoincrement": false
        },
        "provider_id": {
          "name": "provider_id",
          "type": "text",
          "primaryKey": false,
          "notNull": false,
          "autoincrement": false
        },
        "user_send_at": {
          "name": "user_send_at",
          "type": "integer",
          "primaryKey": false,
          "notNull": false,
          "autoincrement": false
        },
        "agent_kind": {
          "name": "agent_kind",
          "type": "text",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false,
          "default": "'cc'"
        },
        "orca_role": {
          "name": "orca_role",
          "type": "text",
          "primaryKey": false,
          "notNull": false,
          "autoincrement": false
        },
        "parent_session_id": {
          "name": "parent_session_id",
          "type": "text",
          "primaryKey": false,
          "notNull": false,
          "autoincrement": false
        },
        "forked_at_message_id": {
          "name": "forked_at_message_id",
          "type": "text",
          "primaryKey": false,
          "notNull": false,
          "autoincrement": false
        },
        "worktree_path": {
          "name": "worktree_path",
          "type": "text",
          "primaryKey": false,
          "notNull": false,
          "autoincrement": false
        },
        "source": {
          "name": "source",
          "type": "text",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false,
          "default": "'desktop'"
        },
        "feishu_open_id": {
          "name": "feishu_open_id",
          "type": "text",
          "primaryKey": false,
          "notNull": false,
          "autoincrement": false
        },
        "feishu_bot_app_id": {
          "name": "feishu_bot_app_id",
          "type": "text",
          "primaryKey": false,
          "notNull": false,
          "autoincrement": false
        },
        "im_bot_context_id": {
          "name": "im_bot_context_id",
          "type": "text",
          "primaryKey": false,
          "notNull": false,
          "autoincrement": false
        },
        "im_user_id": {
          "name": "im_user_id",
          "type": "text",
          "primaryKey": false,
          "notNull": false,
          "autoincrement": false
        },
        "used_project_context": {
          "name": "used_project_context",
          "type": "integer",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false,
          "default": false
        },
        "codex_history_has_product_prompt": {
          "name": "codex_history_has_product_prompt",
          "type": "integer",
          "primaryKey": false,
          "notNull": false,
          "autoincrement": false
        },
        "extra_dirs": {
          "name": "extra_dirs",
          "type": "text",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false,
          "default": "'[]'"
        },
        "remote_host_id": {
          "name": "remote_host_id",
          "type": "text",
          "primaryKey": false,
          "notNull": false,
          "autoincrement": false
        },
        "created_at": {
          "name": "created_at",
          "type": "integer",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "updated_at": {
          "name": "updated_at",
          "type": "integer",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        }
      },
      "indexes": {
        "idx_sessions_updated_at": {
          "name": "idx_sessions_updated_at",
          "columns": [
            "updated_at"
          ],
          "isUnique": false
        },
        "idx_sessions_user_send_at": {
          "name": "idx_sessions_user_send_at",
          "columns": [
            "user_send_at"
          ],
          "isUnique": false
        },
        "idx_sessions_sdk_session_id": {
          "name": "idx_sessions_sdk_session_id",
          "columns": [
            "sdk_session_id"
          ],
          "isUnique": false
        },
        "idx_sessions_workdir_created": {
          "name": "idx_sessions_workdir_created",
          "columns": [
            "working_dir",
            "created_at",
            "id"
          ],
          "isUnique": false
        },
        "idx_sessions_created_at": {
          "name": "idx_sessions_created_at",
          "columns": [
            "created_at",
            "id"
          ],
          "isUnique": false
        },
        "idx_sessions_workspace_kind": {
          "name": "idx_sessions_workspace_kind",
          "columns": [
            "workspace_kind"
          ],
          "isUnique": false
        },
        "idx_sessions_parent_session_id": {
          "name": "idx_sessions_parent_session_id",
          "columns": [
            "parent_session_id"
          ],
          "isUnique": false
        },
        "idx_sessions_orca_role": {
          "name": "idx_sessions_orca_role",
          "columns": [
            "orca_role"
          ],
          "isUnique": false
        },
        "idx_sessions_worktree_path": {
          "name": "idx_sessions_worktree_path",
          "columns": [
            "worktree_path"
          ],
          "isUnique": false
        },
        "idx_sessions_feishu_lookup": {
          "name": "idx_sessions_feishu_lookup",
          "columns": [
            "source",
            "feishu_bot_app_id",
            "feishu_open_id"
          ],
          "isUnique": false
        },
        "idx_sessions_im_lookup": {
          "name": "idx_sessions_im_lookup",
          "columns": [
            "source",
            "im_bot_context_id",
            "im_user_id"
          ],
          "isUnique": false
        }
      },
      "foreignKeys": {
        "sessions_parent_session_id_sessions_id_fk": {
          "name": "sessions_parent_session_id_sessions_id_fk",
          "tableFrom": "sessions",
          "tableTo": "sessions",
          "columnsFrom": [
            "parent_session_id"
          ],
          "columnsTo": [
            "id"
          ],
          "onDelete": "set null",
          "onUpdate": "no action"
        }
      },
      "compositePrimaryKeys": {},
      "uniqueConstraints": {},
      "checkConstraints": {}
    },
    "skill_usage_exposures": {
      "name": "skill_usage_exposures",
      "columns": {
        "id": {
          "name": "id",
          "type": "text",
          "primaryKey": true,
          "notNull": true,
          "autoincrement": false
        },
        "analyzer_version": {
          "name": "analyzer_version",
          "type": "text",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false,
          "default": "'6'"
        },
        "raw_file_path": {
          "name": "raw_file_path",
          "type": "text",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "raw_line_no": {
          "name": "raw_line_no",
          "type": "integer",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "session_id": {
          "name": "session_id",
          "type": "text",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "sdk_session_id": {
          "name": "sdk_session_id",
          "type": "text",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "agent_kind": {
          "name": "agent_kind",
          "type": "text",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "skill_name": {
          "name": "skill_name",
          "type": "text",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "skill_path": {
          "name": "skill_path",
          "type": "text",
          "primaryKey": false,
          "notNull": false,
          "autoincrement": false
        },
        "skill_document_hash": {
          "name": "skill_document_hash",
          "type": "text",
          "primaryKey": false,
          "notNull": false,
          "autoincrement": false
        },
        "exposure_content_hash": {
          "name": "exposure_content_hash",
          "type": "text",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "document_hash_source": {
          "name": "document_hash_source",
          "type": "text",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "source": {
          "name": "source",
          "type": "text",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "tool_use_id": {
          "name": "tool_use_id",
          "type": "text",
          "primaryKey": false,
          "notNull": false,
          "autoincrement": false
        },
        "seen_at": {
          "name": "seen_at",
          "type": "integer",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "tool_call_count": {
          "name": "tool_call_count",
          "type": "integer",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false,
          "default": 0
        },
        "repeated_tool_call_count": {
          "name": "repeated_tool_call_count",
          "type": "integer",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false,
          "default": 0
        },
        "tool_error_count": {
          "name": "tool_error_count",
          "type": "integer",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false,
          "default": 0
        },
        "command_call_count": {
          "name": "command_call_count",
          "type": "integer",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false,
          "default": 0
        },
        "command_failure_count": {
          "name": "command_failure_count",
          "type": "integer",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false,
          "default": 0
        }
      },
      "indexes": {
        "idx_skill_usage_exposures_skill_document_version": {
          "name": "idx_skill_usage_exposures_skill_document_version",
          "columns": [
            "analyzer_version",
            "skill_name",
            "skill_document_hash"
          ],
          "isUnique": false
        },
        "idx_skill_usage_exposures_session": {
          "name": "idx_skill_usage_exposures_session",
          "columns": [
            "session_id"
          ],
          "isUnique": false
        },
        "idx_skill_usage_exposures_raw_file": {
          "name": "idx_skill_usage_exposures_raw_file",
          "columns": [
            "raw_file_path"
          ],
          "isUnique": false
        }
      },
      "foreignKeys": {
        "skill_usage_exposures_raw_file_path_skill_usage_sources_raw_file_path_fk": {
          "name": "skill_usage_exposures_raw_file_path_skill_usage_sources_raw_file_path_fk",
          "tableFrom": "skill_usage_exposures",
          "tableTo": "skill_usage_sources",
          "columnsFrom": [
            "raw_file_path"
          ],
          "columnsTo": [
            "raw_file_path"
          ],
          "onDelete": "cascade",
          "onUpdate": "no action"
        }
      },
      "compositePrimaryKeys": {},
      "uniqueConstraints": {},
      "checkConstraints": {}
    },
    "skill_usage_sources": {
      "name": "skill_usage_sources",
      "columns": {
        "raw_file_path": {
          "name": "raw_file_path",
          "type": "text",
          "primaryKey": true,
          "notNull": true,
          "autoincrement": false
        },
        "analyzer_version": {
          "name": "analyzer_version",
          "type": "text",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false,
          "default": "'6'"
        },
        "agent_kind": {
          "name": "agent_kind",
          "type": "text",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "session_id": {
          "name": "session_id",
          "type": "text",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "sdk_session_id": {
          "name": "sdk_session_id",
          "type": "text",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "mtime_ms": {
          "name": "mtime_ms",
          "type": "integer",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false,
          "default": 0
        },
        "size_bytes": {
          "name": "size_bytes",
          "type": "integer",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false,
          "default": 0
        },
        "last_scanned_at": {
          "name": "last_scanned_at",
          "type": "integer",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "status": {
          "name": "status",
          "type": "text",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false,
          "default": "'ok'"
        },
        "error": {
          "name": "error",
          "type": "text",
          "primaryKey": false,
          "notNull": false,
          "autoincrement": false
        }
      },
      "indexes": {
        "idx_skill_usage_sources_session": {
          "name": "idx_skill_usage_sources_session",
          "columns": [
            "session_id"
          ],
          "isUnique": false
        },
        "idx_skill_usage_sources_sdk_session": {
          "name": "idx_skill_usage_sources_sdk_session",
          "columns": [
            "sdk_session_id"
          ],
          "isUnique": false
        }
      },
      "foreignKeys": {},
      "compositePrimaryKeys": {},
      "uniqueConstraints": {},
      "checkConstraints": {}
    },
    "vec_table_meta": {
      "name": "vec_table_meta",
      "columns": {
        "vec_table": {
          "name": "vec_table",
          "type": "text",
          "primaryKey": true,
          "notNull": true,
          "autoincrement": false
        },
        "source": {
          "name": "source",
          "type": "text",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "model_id": {
          "name": "model_id",
          "type": "text",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "dim": {
          "name": "dim",
          "type": "integer",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "registered_at": {
          "name": "registered_at",
          "type": "integer",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "notes": {
          "name": "notes",
          "type": "text",
          "primaryKey": false,
          "notNull": false,
          "autoincrement": false
        }
      },
      "indexes": {},
      "foreignKeys": {},
      "compositePrimaryKeys": {},
      "uniqueConstraints": {},
      "checkConstraints": {}
    }
  },
  "views": {},
  "enums": {},
  "_meta": {
    "schemas": {},
    "tables": {},
    "columns": {}
  },
  "internal": {
    "indexes": {}
  }
}