{ "id": "8ec6e31f-1daa-4930-8bf8-2b4996e17270", "prevId": "00000000-0000-0000-0000-000000000000", "version": "7", "dialect": "postgresql", "tables": { "public.organizations": { "name": "organizations", "schema": "", "columns": { "id": { "name": "id", "type": "uuid", "primaryKey": true, "notNull": true, "default": "gen_random_uuid()" }, "name": { "name": "name", "type": "text", "primaryKey": false, "notNull": true }, "slug": { "name": "slug", "type": "text", "primaryKey": false, "notNull": true }, "email": { "name": "email", "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": {}, "compositePrimaryKeys": {}, "uniqueConstraints": { "organizations_slug_unique": { "name": "organizations_slug_unique", "nullsNotDistinct": false, "columns": ["slug"] }, "organizations_email_unique": { "name": "organizations_email_unique", "nullsNotDistinct": false, "columns": ["email"] } }, "policies": {}, "checkConstraints": {}, "isRLSEnabled": false }, "public.projects": { "name": "projects", "schema": "", "columns": { "id": { "name": "id", "type": "uuid", "primaryKey": true, "notNull": true, "default": "gen_random_uuid()" }, "name": { "name": "name", "type": "text", "primaryKey": false, "notNull": true }, "slug": { "name": "slug", "type": "text", "primaryKey": false, "notNull": true }, "organization_id": { "name": "organization_id", "type": "uuid", "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": { "projects_organization_id_organizations_id_fk": { "name": "projects_organization_id_organizations_id_fk", "tableFrom": "projects", "tableTo": "organizations", "columnsFrom": ["organization_id"], "columnsTo": ["id"], "onDelete": "cascade", "onUpdate": "no action" } }, "compositePrimaryKeys": {}, "uniqueConstraints": { "projects_organization_id_slug_unique": { "name": "projects_organization_id_slug_unique", "nullsNotDistinct": false, "columns": ["organization_id", "slug"] } }, "policies": {}, "checkConstraints": {}, "isRLSEnabled": false }, "public.api_keys": { "name": "api_keys", "schema": "", "columns": { "id": { "name": "id", "type": "uuid", "primaryKey": true, "notNull": true, "default": "gen_random_uuid()" }, "key_hash": { "name": "key_hash", "type": "text", "primaryKey": false, "notNull": true }, "key_prefix": { "name": "key_prefix", "type": "text", "primaryKey": false, "notNull": true, "default": "'bnt_'" }, "key_type": { "name": "key_type", "type": "text", "primaryKey": false, "notNull": true }, "organization_id": { "name": "organization_id", "type": "uuid", "primaryKey": false, "notNull": false }, "project_id": { "name": "project_id", "type": "uuid", "primaryKey": false, "notNull": false }, "scopes": { "name": "scopes", "type": "jsonb", "primaryKey": false, "notNull": true, "default": "'[\"generate\"]'::jsonb" }, "created_at": { "name": "created_at", "type": "timestamp", "primaryKey": false, "notNull": true, "default": "now()" }, "expires_at": { "name": "expires_at", "type": "timestamp", "primaryKey": false, "notNull": false }, "last_used_at": { "name": "last_used_at", "type": "timestamp", "primaryKey": false, "notNull": false }, "is_active": { "name": "is_active", "type": "boolean", "primaryKey": false, "notNull": true, "default": true }, "name": { "name": "name", "type": "text", "primaryKey": false, "notNull": false }, "created_by": { "name": "created_by", "type": "uuid", "primaryKey": false, "notNull": false } }, "indexes": {}, "foreignKeys": { "api_keys_organization_id_organizations_id_fk": { "name": "api_keys_organization_id_organizations_id_fk", "tableFrom": "api_keys", "tableTo": "organizations", "columnsFrom": ["organization_id"], "columnsTo": ["id"], "onDelete": "cascade", "onUpdate": "no action" }, "api_keys_project_id_projects_id_fk": { "name": "api_keys_project_id_projects_id_fk", "tableFrom": "api_keys", "tableTo": "projects", "columnsFrom": ["project_id"], "columnsTo": ["id"], "onDelete": "cascade", "onUpdate": "no action" } }, "compositePrimaryKeys": {}, "uniqueConstraints": { "api_keys_key_hash_unique": { "name": "api_keys_key_hash_unique", "nullsNotDistinct": false, "columns": ["key_hash"] } }, "policies": {}, "checkConstraints": {}, "isRLSEnabled": false } }, "enums": {}, "schemas": {}, "sequences": {}, "roles": {}, "policies": {}, "views": {}, "_meta": { "columns": {}, "schemas": {}, "tables": {} } }