{ "tables": [ { "name": "account", "columns": [ { "name": "id", "type": "TEXT", "nullable": false, "isPrimaryKey": true }, { "name": "account_id", "type": "TEXT", "nullable": false, "isPrimaryKey": false }, { "name": "provider_id", "type": "TEXT", "nullable": false, "isPrimaryKey": false }, { "name": "user_id", "type": "TEXT", "nullable": false, "isPrimaryKey": false, "foreignKey": { "table": "user", "column": "id" } }, { "name": "access_token", "type": "TEXT", "nullable": true, "isPrimaryKey": false }, { "name": "refresh_token", "type": "TEXT", "nullable": true, "isPrimaryKey": false }, { "name": "id_token", "type": "TEXT", "nullable": true, "isPrimaryKey": false }, { "name": "access_token_expires_at", "type": "date", "nullable": true, "isPrimaryKey": false }, { "name": "refresh_token_expires_at", "type": "date", "nullable": true, "isPrimaryKey": false }, { "name": "scope", "type": "TEXT", "nullable": true, "isPrimaryKey": false }, { "name": "password", "type": "TEXT", "nullable": true, "isPrimaryKey": false }, { "name": "created_at", "type": "date", "nullable": false, "isPrimaryKey": false }, { "name": "updated_at", "type": "date", "nullable": false, "isPrimaryKey": false } ] }, { "name": "audit", "columns": [ { "name": "audit_id", "type": "TEXT", "nullable": false, "isPrimaryKey": true }, { "name": "occurred_at", "type": "TEXT", "nullable": false, "isPrimaryKey": false }, { "name": "type", "type": "TEXT", "nullable": false, "isPrimaryKey": false }, { "name": "source", "type": "TEXT", "nullable": false, "isPrimaryKey": false }, { "name": "outcome", "type": "TEXT", "nullable": true, "isPrimaryKey": false }, { "name": "function_id", "type": "TEXT", "nullable": true, "isPrimaryKey": false }, { "name": "wire_type", "type": "TEXT", "nullable": true, "isPrimaryKey": false }, { "name": "trace_id", "type": "TEXT", "nullable": true, "isPrimaryKey": false }, { "name": "transaction_id", "type": "TEXT", "nullable": true, "isPrimaryKey": false }, { "name": "query_id", "type": "TEXT", "nullable": true, "isPrimaryKey": false }, { "name": "actor_user_id", "type": "TEXT", "nullable": true, "isPrimaryKey": false }, { "name": "actor_org_id", "type": "TEXT", "nullable": true, "isPrimaryKey": false }, { "name": "tables", "type": "TEXT", "nullable": true, "isPrimaryKey": false }, { "name": "changed_cols", "type": "TEXT", "nullable": true, "isPrimaryKey": false }, { "name": "event", "type": "TEXT", "nullable": true, "isPrimaryKey": false }, { "name": "old", "type": "TEXT", "nullable": true, "isPrimaryKey": false }, { "name": "data", "type": "TEXT", "nullable": true, "isPrimaryKey": false } ] }, { "name": "message_state", "columns": [ { "name": "id", "type": "INTEGER", "nullable": false, "isPrimaryKey": true }, { "name": "message", "type": "TEXT", "nullable": false, "isPrimaryKey": false }, { "name": "updated_at", "type": "TEXT", "nullable": false, "isPrimaryKey": false }, { "name": "updated_by_user_id", "type": "TEXT", "nullable": true, "isPrimaryKey": false, "foreignKey": { "table": "user", "column": "id" } } ] }, { "name": "session", "columns": [ { "name": "id", "type": "TEXT", "nullable": false, "isPrimaryKey": true }, { "name": "expires_at", "type": "date", "nullable": false, "isPrimaryKey": false }, { "name": "token", "type": "TEXT", "nullable": false, "isPrimaryKey": false }, { "name": "created_at", "type": "date", "nullable": false, "isPrimaryKey": false }, { "name": "updated_at", "type": "date", "nullable": false, "isPrimaryKey": false }, { "name": "ip_address", "type": "TEXT", "nullable": true, "isPrimaryKey": false }, { "name": "user_agent", "type": "TEXT", "nullable": true, "isPrimaryKey": false }, { "name": "user_id", "type": "TEXT", "nullable": false, "isPrimaryKey": false, "foreignKey": { "table": "user", "column": "id" } } ] }, { "name": "user", "columns": [ { "name": "id", "type": "TEXT", "nullable": false, "isPrimaryKey": true }, { "name": "name", "type": "TEXT", "nullable": false, "isPrimaryKey": false }, { "name": "email", "type": "TEXT", "nullable": false, "isPrimaryKey": false }, { "name": "email_verified", "type": "INTEGER", "nullable": false, "isPrimaryKey": false }, { "name": "image", "type": "TEXT", "nullable": true, "isPrimaryKey": false }, { "name": "created_at", "type": "date", "nullable": false, "isPrimaryKey": false }, { "name": "updated_at", "type": "date", "nullable": false, "isPrimaryKey": false } ] }, { "name": "verification", "columns": [ { "name": "id", "type": "TEXT", "nullable": false, "isPrimaryKey": true }, { "name": "identifier", "type": "TEXT", "nullable": false, "isPrimaryKey": false }, { "name": "value", "type": "TEXT", "nullable": false, "isPrimaryKey": false }, { "name": "expires_at", "type": "date", "nullable": false, "isPrimaryKey": false }, { "name": "created_at", "type": "date", "nullable": false, "isPrimaryKey": false }, { "name": "updated_at", "type": "date", "nullable": false, "isPrimaryKey": false } ] } ], "enums": [] }