{ "id": "fe7a789b-95ef-4f75-8d5c-00d1e2b1a518", "prevId": "d41c9c0d-f4c9-4265-8482-fec7c3559852", "version": "7", "dialect": "postgresql", "tables": { "public.content_entries": { "name": "content_entries", "schema": "", "columns": { "id": { "name": "id", "type": "uuid", "primaryKey": true, "notNull": true, "default": "gen_random_uuid()" }, "site_id": { "name": "site_id", "type": "uuid", "primaryKey": false, "notNull": true }, "type_key": { "name": "type_key", "type": "text", "primaryKey": false, "notNull": true }, "lifecycle_status": { "name": "lifecycle_status", "type": "content_lifecycle_status", "typeSchema": "public", "primaryKey": false, "notNull": true }, "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": { "content_entries_site_type_idx": { "name": "content_entries_site_type_idx", "columns": [ { "expression": "site_id", "isExpression": false, "asc": true, "nulls": "last" }, { "expression": "type_key", "isExpression": false, "asc": true, "nulls": "last" } ], "isUnique": false, "concurrently": false, "method": "btree", "with": {} } }, "foreignKeys": { "content_entries_site_id_sites_id_fk": { "name": "content_entries_site_id_sites_id_fk", "tableFrom": "content_entries", "tableTo": "sites", "columnsFrom": [ "site_id" ], "columnsTo": [ "id" ], "onDelete": "no action", "onUpdate": "no action" } }, "compositePrimaryKeys": {}, "uniqueConstraints": {}, "policies": {}, "checkConstraints": {}, "isRLSEnabled": false }, "public.content_revisions": { "name": "content_revisions", "schema": "", "columns": { "id": { "name": "id", "type": "uuid", "primaryKey": true, "notNull": true, "default": "gen_random_uuid()" }, "site_id": { "name": "site_id", "type": "uuid", "primaryKey": false, "notNull": true }, "content_entry_id": { "name": "content_entry_id", "type": "uuid", "primaryKey": false, "notNull": true }, "locale": { "name": "locale", "type": "text", "primaryKey": false, "notNull": true }, "schema_version": { "name": "schema_version", "type": "integer", "primaryKey": false, "notNull": true }, "data": { "name": "data", "type": "jsonb", "primaryKey": false, "notNull": true }, "checksum": { "name": "checksum", "type": "text", "primaryKey": false, "notNull": true }, "source_kind": { "name": "source_kind", "type": "revision_source_kind", "typeSchema": "public", "primaryKey": false, "notNull": true }, "source_record_id": { "name": "source_record_id", "type": "uuid", "primaryKey": false, "notNull": false }, "import_job_id": { "name": "import_job_id", "type": "uuid", "primaryKey": false, "notNull": false }, "overridden_fields": { "name": "overridden_fields", "type": "jsonb", "primaryKey": false, "notNull": true, "default": "'[]'::jsonb" }, "created_by": { "name": "created_by", "type": "text", "primaryKey": false, "notNull": true }, "created_at": { "name": "created_at", "type": "timestamp with time zone", "primaryKey": false, "notNull": true, "default": "now()" } }, "indexes": {}, "foreignKeys": { "content_revisions_site_id_sites_id_fk": { "name": "content_revisions_site_id_sites_id_fk", "tableFrom": "content_revisions", "tableTo": "sites", "columnsFrom": [ "site_id" ], "columnsTo": [ "id" ], "onDelete": "no action", "onUpdate": "no action" }, "content_revisions_content_entry_id_content_entries_id_fk": { "name": "content_revisions_content_entry_id_content_entries_id_fk", "tableFrom": "content_revisions", "tableTo": "content_entries", "columnsFrom": [ "content_entry_id" ], "columnsTo": [ "id" ], "onDelete": "no action", "onUpdate": "no action" }, "content_revisions_import_job_id_import_jobs_id_fk": { "name": "content_revisions_import_job_id_import_jobs_id_fk", "tableFrom": "content_revisions", "tableTo": "import_jobs", "columnsFrom": [ "import_job_id" ], "columnsTo": [ "id" ], "onDelete": "no action", "onUpdate": "no action" } }, "compositePrimaryKeys": {}, "uniqueConstraints": {}, "policies": {}, "checkConstraints": {}, "isRLSEnabled": false }, "public.content_terms": { "name": "content_terms", "schema": "", "columns": { "site_id": { "name": "site_id", "type": "uuid", "primaryKey": false, "notNull": true }, "content_entry_id": { "name": "content_entry_id", "type": "uuid", "primaryKey": false, "notNull": true }, "term_id": { "name": "term_id", "type": "uuid", "primaryKey": false, "notNull": true }, "is_primary": { "name": "is_primary", "type": "boolean", "primaryKey": false, "notNull": true } }, "indexes": {}, "foreignKeys": { "content_terms_site_id_sites_id_fk": { "name": "content_terms_site_id_sites_id_fk", "tableFrom": "content_terms", "tableTo": "sites", "columnsFrom": [ "site_id" ], "columnsTo": [ "id" ], "onDelete": "no action", "onUpdate": "no action" }, "content_terms_content_entry_id_content_entries_id_fk": { "name": "content_terms_content_entry_id_content_entries_id_fk", "tableFrom": "content_terms", "tableTo": "content_entries", "columnsFrom": [ "content_entry_id" ], "columnsTo": [ "id" ], "onDelete": "no action", "onUpdate": "no action" }, "content_terms_term_id_terms_id_fk": { "name": "content_terms_term_id_terms_id_fk", "tableFrom": "content_terms", "tableTo": "terms", "columnsFrom": [ "term_id" ], "columnsTo": [ "id" ], "onDelete": "no action", "onUpdate": "no action" } }, "compositePrimaryKeys": { "content_terms_site_id_content_entry_id_term_id_pk": { "name": "content_terms_site_id_content_entry_id_term_id_pk", "columns": [ "site_id", "content_entry_id", "term_id" ] } }, "uniqueConstraints": {}, "policies": {}, "checkConstraints": {}, "isRLSEnabled": false }, "public.entry_locales": { "name": "entry_locales", "schema": "", "columns": { "id": { "name": "id", "type": "uuid", "primaryKey": true, "notNull": true, "default": "gen_random_uuid()" }, "site_id": { "name": "site_id", "type": "uuid", "primaryKey": false, "notNull": true }, "content_entry_id": { "name": "content_entry_id", "type": "uuid", "primaryKey": false, "notNull": true }, "locale": { "name": "locale", "type": "text", "primaryKey": false, "notNull": true }, "slug": { "name": "slug", "type": "text", "primaryKey": false, "notNull": true }, "current_revision_id": { "name": "current_revision_id", "type": "uuid", "primaryKey": false, "notNull": false }, "published_revision_id": { "name": "published_revision_id", "type": "uuid", "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": { "entry_locales_uq": { "name": "entry_locales_uq", "columns": [ { "expression": "site_id", "isExpression": false, "asc": true, "nulls": "last" }, { "expression": "content_entry_id", "isExpression": false, "asc": true, "nulls": "last" }, { "expression": "locale", "isExpression": false, "asc": true, "nulls": "last" } ], "isUnique": true, "concurrently": false, "method": "btree", "with": {} } }, "foreignKeys": { "entry_locales_site_id_sites_id_fk": { "name": "entry_locales_site_id_sites_id_fk", "tableFrom": "entry_locales", "tableTo": "sites", "columnsFrom": [ "site_id" ], "columnsTo": [ "id" ], "onDelete": "no action", "onUpdate": "no action" }, "entry_locales_content_entry_id_content_entries_id_fk": { "name": "entry_locales_content_entry_id_content_entries_id_fk", "tableFrom": "entry_locales", "tableTo": "content_entries", "columnsFrom": [ "content_entry_id" ], "columnsTo": [ "id" ], "onDelete": "no action", "onUpdate": "no action" } }, "compositePrimaryKeys": {}, "uniqueConstraints": {}, "policies": {}, "checkConstraints": {}, "isRLSEnabled": false }, "public.import_jobs": { "name": "import_jobs", "schema": "", "columns": { "id": { "name": "id", "type": "uuid", "primaryKey": true, "notNull": true, "default": "gen_random_uuid()" }, "site_id": { "name": "site_id", "type": "uuid", "primaryKey": false, "notNull": true }, "source_snapshot_id": { "name": "source_snapshot_id", "type": "uuid", "primaryKey": false, "notNull": true }, "status": { "name": "status", "type": "import_job_status", "typeSchema": "public", "primaryKey": false, "notNull": true }, "mapping_version": { "name": "mapping_version", "type": "text", "primaryKey": false, "notNull": true }, "idempotency_key": { "name": "idempotency_key", "type": "text", "primaryKey": false, "notNull": true }, "attempt": { "name": "attempt", "type": "integer", "primaryKey": false, "notNull": true, "default": 0 }, "started_at": { "name": "started_at", "type": "timestamp with time zone", "primaryKey": false, "notNull": false }, "finished_at": { "name": "finished_at", "type": "timestamp with time zone", "primaryKey": false, "notNull": false }, "error_code": { "name": "error_code", "type": "text", "primaryKey": false, "notNull": false }, "error_summary": { "name": "error_summary", "type": "text", "primaryKey": false, "notNull": false }, "report_path": { "name": "report_path", "type": "text", "primaryKey": false, "notNull": false }, "created_at": { "name": "created_at", "type": "timestamp with time zone", "primaryKey": false, "notNull": true, "default": "now()" } }, "indexes": {}, "foreignKeys": { "import_jobs_site_id_sites_id_fk": { "name": "import_jobs_site_id_sites_id_fk", "tableFrom": "import_jobs", "tableTo": "sites", "columnsFrom": [ "site_id" ], "columnsTo": [ "id" ], "onDelete": "no action", "onUpdate": "no action" }, "import_jobs_source_snapshot_id_source_snapshots_id_fk": { "name": "import_jobs_source_snapshot_id_source_snapshots_id_fk", "tableFrom": "import_jobs", "tableTo": "source_snapshots", "columnsFrom": [ "source_snapshot_id" ], "columnsTo": [ "id" ], "onDelete": "no action", "onUpdate": "no action" } }, "compositePrimaryKeys": {}, "uniqueConstraints": { "import_jobs_idempotency_key_unique": { "name": "import_jobs_idempotency_key_unique", "nullsNotDistinct": false, "columns": [ "idempotency_key" ] } }, "policies": {}, "checkConstraints": {}, "isRLSEnabled": false }, "public.media_assets": { "name": "media_assets", "schema": "", "columns": { "id": { "name": "id", "type": "uuid", "primaryKey": true, "notNull": true, "default": "gen_random_uuid()" }, "site_id": { "name": "site_id", "type": "uuid", "primaryKey": false, "notNull": true }, "source_connection_id": { "name": "source_connection_id", "type": "uuid", "primaryKey": false, "notNull": true }, "source_id": { "name": "source_id", "type": "text", "primaryKey": false, "notNull": false }, "source_url": { "name": "source_url", "type": "text", "primaryKey": false, "notNull": true }, "source_path": { "name": "source_path", "type": "text", "primaryKey": false, "notNull": true }, "storage_path": { "name": "storage_path", "type": "text", "primaryKey": false, "notNull": true }, "public_path": { "name": "public_path", "type": "text", "primaryKey": false, "notNull": true }, "sha256": { "name": "sha256", "type": "text", "primaryKey": false, "notNull": true }, "detected_mime": { "name": "detected_mime", "type": "text", "primaryKey": false, "notNull": true }, "declared_mime": { "name": "declared_mime", "type": "text", "primaryKey": false, "notNull": false }, "byte_size": { "name": "byte_size", "type": "bigint", "primaryKey": false, "notNull": true }, "width": { "name": "width", "type": "integer", "primaryKey": false, "notNull": false }, "height": { "name": "height", "type": "integer", "primaryKey": false, "notNull": false }, "alt_text": { "name": "alt_text", "type": "text", "primaryKey": false, "notNull": false }, "status": { "name": "status", "type": "media_asset_status", "typeSchema": "public", "primaryKey": false, "notNull": true }, "created_at": { "name": "created_at", "type": "timestamp with time zone", "primaryKey": false, "notNull": true, "default": "now()" } }, "indexes": { "media_assets_source_url_uq": { "name": "media_assets_source_url_uq", "columns": [ { "expression": "site_id", "isExpression": false, "asc": true, "nulls": "last" }, { "expression": "source_url", "isExpression": false, "asc": true, "nulls": "last" } ], "isUnique": true, "concurrently": false, "method": "btree", "with": {} }, "media_assets_public_path_uq": { "name": "media_assets_public_path_uq", "columns": [ { "expression": "site_id", "isExpression": false, "asc": true, "nulls": "last" }, { "expression": "public_path", "isExpression": false, "asc": true, "nulls": "last" } ], "isUnique": true, "concurrently": false, "method": "btree", "with": {} } }, "foreignKeys": { "media_assets_site_id_sites_id_fk": { "name": "media_assets_site_id_sites_id_fk", "tableFrom": "media_assets", "tableTo": "sites", "columnsFrom": [ "site_id" ], "columnsTo": [ "id" ], "onDelete": "no action", "onUpdate": "no action" }, "media_assets_source_connection_id_source_connections_id_fk": { "name": "media_assets_source_connection_id_source_connections_id_fk", "tableFrom": "media_assets", "tableTo": "source_connections", "columnsFrom": [ "source_connection_id" ], "columnsTo": [ "id" ], "onDelete": "no action", "onUpdate": "no action" } }, "compositePrimaryKeys": {}, "uniqueConstraints": {}, "policies": {}, "checkConstraints": {}, "isRLSEnabled": false }, "public.media_usages": { "name": "media_usages", "schema": "", "columns": { "site_id": { "name": "site_id", "type": "uuid", "primaryKey": false, "notNull": true }, "media_asset_id": { "name": "media_asset_id", "type": "uuid", "primaryKey": false, "notNull": true }, "content_revision_id": { "name": "content_revision_id", "type": "uuid", "primaryKey": false, "notNull": true }, "field_path": { "name": "field_path", "type": "text", "primaryKey": false, "notNull": true }, "source_url": { "name": "source_url", "type": "text", "primaryKey": false, "notNull": true } }, "indexes": {}, "foreignKeys": { "media_usages_site_id_sites_id_fk": { "name": "media_usages_site_id_sites_id_fk", "tableFrom": "media_usages", "tableTo": "sites", "columnsFrom": [ "site_id" ], "columnsTo": [ "id" ], "onDelete": "no action", "onUpdate": "no action" }, "media_usages_media_asset_id_media_assets_id_fk": { "name": "media_usages_media_asset_id_media_assets_id_fk", "tableFrom": "media_usages", "tableTo": "media_assets", "columnsFrom": [ "media_asset_id" ], "columnsTo": [ "id" ], "onDelete": "no action", "onUpdate": "no action" }, "media_usages_content_revision_id_content_revisions_id_fk": { "name": "media_usages_content_revision_id_content_revisions_id_fk", "tableFrom": "media_usages", "tableTo": "content_revisions", "columnsFrom": [ "content_revision_id" ], "columnsTo": [ "id" ], "onDelete": "no action", "onUpdate": "no action" } }, "compositePrimaryKeys": { "media_usages_media_asset_id_content_revision_id_field_path_pk": { "name": "media_usages_media_asset_id_content_revision_id_field_path_pk", "columns": [ "media_asset_id", "content_revision_id", "field_path" ] } }, "uniqueConstraints": {}, "policies": {}, "checkConstraints": {}, "isRLSEnabled": false }, "public.site_config_revisions": { "name": "site_config_revisions", "schema": "", "columns": { "id": { "name": "id", "type": "uuid", "primaryKey": true, "notNull": true, "default": "gen_random_uuid()" }, "site_id": { "name": "site_id", "type": "uuid", "primaryKey": false, "notNull": true }, "version": { "name": "version", "type": "integer", "primaryKey": false, "notNull": true }, "data": { "name": "data", "type": "jsonb", "primaryKey": false, "notNull": true }, "checksum": { "name": "checksum", "type": "text", "primaryKey": false, "notNull": true }, "created_at": { "name": "created_at", "type": "timestamp with time zone", "primaryKey": false, "notNull": true, "default": "now()" } }, "indexes": { "site_config_rev_uq": { "name": "site_config_rev_uq", "columns": [ { "expression": "site_id", "isExpression": false, "asc": true, "nulls": "last" }, { "expression": "version", "isExpression": false, "asc": true, "nulls": "last" } ], "isUnique": true, "concurrently": false, "method": "btree", "with": {} } }, "foreignKeys": { "site_config_revisions_site_id_sites_id_fk": { "name": "site_config_revisions_site_id_sites_id_fk", "tableFrom": "site_config_revisions", "tableTo": "sites", "columnsFrom": [ "site_id" ], "columnsTo": [ "id" ], "onDelete": "no action", "onUpdate": "no action" } }, "compositePrimaryKeys": {}, "uniqueConstraints": {}, "policies": {}, "checkConstraints": {}, "isRLSEnabled": false }, "public.sites": { "name": "sites", "schema": "", "columns": { "id": { "name": "id", "type": "uuid", "primaryKey": true, "notNull": true, "default": "gen_random_uuid()" }, "key": { "name": "key", "type": "text", "primaryKey": false, "notNull": true }, "name": { "name": "name", "type": "text", "primaryKey": false, "notNull": true }, "default_locale": { "name": "default_locale", "type": "text", "primaryKey": false, "notNull": true }, "production_origin": { "name": "production_origin", "type": "text", "primaryKey": false, "notNull": true }, "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": {}, "compositePrimaryKeys": {}, "uniqueConstraints": { "sites_key_unique": { "name": "sites_key_unique", "nullsNotDistinct": false, "columns": [ "key" ] } }, "policies": {}, "checkConstraints": {}, "isRLSEnabled": false }, "public.source_connections": { "name": "source_connections", "schema": "", "columns": { "id": { "name": "id", "type": "uuid", "primaryKey": true, "notNull": true, "default": "gen_random_uuid()" }, "site_id": { "name": "site_id", "type": "uuid", "primaryKey": false, "notNull": true }, "kind": { "name": "kind", "type": "source_connection_kind", "typeSchema": "public", "primaryKey": false, "notNull": true }, "name": { "name": "name", "type": "text", "primaryKey": false, "notNull": true }, "configuration": { "name": "configuration", "type": "jsonb", "primaryKey": false, "notNull": true }, "created_at": { "name": "created_at", "type": "timestamp with time zone", "primaryKey": false, "notNull": true, "default": "now()" } }, "indexes": {}, "foreignKeys": { "source_connections_site_id_sites_id_fk": { "name": "source_connections_site_id_sites_id_fk", "tableFrom": "source_connections", "tableTo": "sites", "columnsFrom": [ "site_id" ], "columnsTo": [ "id" ], "onDelete": "no action", "onUpdate": "no action" } }, "compositePrimaryKeys": {}, "uniqueConstraints": {}, "policies": {}, "checkConstraints": {}, "isRLSEnabled": false }, "public.source_records": { "name": "source_records", "schema": "", "columns": { "id": { "name": "id", "type": "uuid", "primaryKey": true, "notNull": true, "default": "gen_random_uuid()" }, "site_id": { "name": "site_id", "type": "uuid", "primaryKey": false, "notNull": true }, "source_connection_id": { "name": "source_connection_id", "type": "uuid", "primaryKey": false, "notNull": true }, "source_snapshot_id": { "name": "source_snapshot_id", "type": "uuid", "primaryKey": false, "notNull": true }, "import_job_id": { "name": "import_job_id", "type": "uuid", "primaryKey": false, "notNull": true }, "source_type": { "name": "source_type", "type": "text", "primaryKey": false, "notNull": true }, "source_id": { "name": "source_id", "type": "text", "primaryKey": false, "notNull": true }, "locale": { "name": "locale", "type": "text", "primaryKey": false, "notNull": true }, "source_url": { "name": "source_url", "type": "text", "primaryKey": false, "notNull": false }, "raw_location": { "name": "raw_location", "type": "text", "primaryKey": false, "notNull": true }, "source_checksum": { "name": "source_checksum", "type": "text", "primaryKey": false, "notNull": false }, "normalized_checksum": { "name": "normalized_checksum", "type": "text", "primaryKey": false, "notNull": false }, "parse_status": { "name": "parse_status", "type": "text", "primaryKey": false, "notNull": true }, "content_entry_id": { "name": "content_entry_id", "type": "uuid", "primaryKey": false, "notNull": false }, "created_at": { "name": "created_at", "type": "timestamp with time zone", "primaryKey": false, "notNull": true, "default": "now()" } }, "indexes": { "source_records_identity_uq": { "name": "source_records_identity_uq", "columns": [ { "expression": "site_id", "isExpression": false, "asc": true, "nulls": "last" }, { "expression": "source_connection_id", "isExpression": false, "asc": true, "nulls": "last" }, { "expression": "source_type", "isExpression": false, "asc": true, "nulls": "last" }, { "expression": "source_id", "isExpression": false, "asc": true, "nulls": "last" }, { "expression": "locale", "isExpression": false, "asc": true, "nulls": "last" }, { "expression": "source_snapshot_id", "isExpression": false, "asc": true, "nulls": "last" } ], "isUnique": true, "concurrently": false, "method": "btree", "with": {} } }, "foreignKeys": { "source_records_site_id_sites_id_fk": { "name": "source_records_site_id_sites_id_fk", "tableFrom": "source_records", "tableTo": "sites", "columnsFrom": [ "site_id" ], "columnsTo": [ "id" ], "onDelete": "no action", "onUpdate": "no action" }, "source_records_source_connection_id_source_connections_id_fk": { "name": "source_records_source_connection_id_source_connections_id_fk", "tableFrom": "source_records", "tableTo": "source_connections", "columnsFrom": [ "source_connection_id" ], "columnsTo": [ "id" ], "onDelete": "no action", "onUpdate": "no action" }, "source_records_source_snapshot_id_source_snapshots_id_fk": { "name": "source_records_source_snapshot_id_source_snapshots_id_fk", "tableFrom": "source_records", "tableTo": "source_snapshots", "columnsFrom": [ "source_snapshot_id" ], "columnsTo": [ "id" ], "onDelete": "no action", "onUpdate": "no action" }, "source_records_import_job_id_import_jobs_id_fk": { "name": "source_records_import_job_id_import_jobs_id_fk", "tableFrom": "source_records", "tableTo": "import_jobs", "columnsFrom": [ "import_job_id" ], "columnsTo": [ "id" ], "onDelete": "no action", "onUpdate": "no action" } }, "compositePrimaryKeys": {}, "uniqueConstraints": {}, "policies": {}, "checkConstraints": {}, "isRLSEnabled": false }, "public.source_snapshots": { "name": "source_snapshots", "schema": "", "columns": { "id": { "name": "id", "type": "uuid", "primaryKey": true, "notNull": true, "default": "gen_random_uuid()" }, "site_id": { "name": "site_id", "type": "uuid", "primaryKey": false, "notNull": true }, "source_connection_id": { "name": "source_connection_id", "type": "uuid", "primaryKey": false, "notNull": true }, "kind": { "name": "kind", "type": "source_snapshot_kind", "typeSchema": "public", "primaryKey": false, "notNull": true }, "storage_path": { "name": "storage_path", "type": "text", "primaryKey": false, "notNull": true }, "sha256": { "name": "sha256", "type": "text", "primaryKey": false, "notNull": true }, "byte_size": { "name": "byte_size", "type": "bigint", "primaryKey": false, "notNull": true }, "adapter_version": { "name": "adapter_version", "type": "text", "primaryKey": false, "notNull": true }, "captured_at": { "name": "captured_at", "type": "timestamp with time zone", "primaryKey": false, "notNull": true }, "metadata": { "name": "metadata", "type": "jsonb", "primaryKey": false, "notNull": true }, "created_at": { "name": "created_at", "type": "timestamp with time zone", "primaryKey": false, "notNull": true, "default": "now()" } }, "indexes": { "source_snapshots_uq": { "name": "source_snapshots_uq", "columns": [ { "expression": "site_id", "isExpression": false, "asc": true, "nulls": "last" }, { "expression": "kind", "isExpression": false, "asc": true, "nulls": "last" }, { "expression": "sha256", "isExpression": false, "asc": true, "nulls": "last" } ], "isUnique": true, "concurrently": false, "method": "btree", "with": {} } }, "foreignKeys": { "source_snapshots_site_id_sites_id_fk": { "name": "source_snapshots_site_id_sites_id_fk", "tableFrom": "source_snapshots", "tableTo": "sites", "columnsFrom": [ "site_id" ], "columnsTo": [ "id" ], "onDelete": "no action", "onUpdate": "no action" }, "source_snapshots_source_connection_id_source_connections_id_fk": { "name": "source_snapshots_source_connection_id_source_connections_id_fk", "tableFrom": "source_snapshots", "tableTo": "source_connections", "columnsFrom": [ "source_connection_id" ], "columnsTo": [ "id" ], "onDelete": "no action", "onUpdate": "no action" } }, "compositePrimaryKeys": {}, "uniqueConstraints": {}, "policies": {}, "checkConstraints": {}, "isRLSEnabled": false }, "public.taxonomies": { "name": "taxonomies", "schema": "", "columns": { "id": { "name": "id", "type": "uuid", "primaryKey": true, "notNull": true, "default": "gen_random_uuid()" }, "site_id": { "name": "site_id", "type": "uuid", "primaryKey": false, "notNull": true }, "key": { "name": "key", "type": "text", "primaryKey": false, "notNull": true }, "object_type": { "name": "object_type", "type": "text", "primaryKey": false, "notNull": true }, "public_base_path": { "name": "public_base_path", "type": "text", "primaryKey": false, "notNull": true } }, "indexes": { "taxonomies_uq": { "name": "taxonomies_uq", "columns": [ { "expression": "site_id", "isExpression": false, "asc": true, "nulls": "last" }, { "expression": "key", "isExpression": false, "asc": true, "nulls": "last" }, { "expression": "object_type", "isExpression": false, "asc": true, "nulls": "last" } ], "isUnique": true, "concurrently": false, "method": "btree", "with": {} } }, "foreignKeys": { "taxonomies_site_id_sites_id_fk": { "name": "taxonomies_site_id_sites_id_fk", "tableFrom": "taxonomies", "tableTo": "sites", "columnsFrom": [ "site_id" ], "columnsTo": [ "id" ], "onDelete": "no action", "onUpdate": "no action" } }, "compositePrimaryKeys": {}, "uniqueConstraints": {}, "policies": {}, "checkConstraints": {}, "isRLSEnabled": false }, "public.terms": { "name": "terms", "schema": "", "columns": { "id": { "name": "id", "type": "uuid", "primaryKey": true, "notNull": true, "default": "gen_random_uuid()" }, "site_id": { "name": "site_id", "type": "uuid", "primaryKey": false, "notNull": true }, "taxonomy_id": { "name": "taxonomy_id", "type": "uuid", "primaryKey": false, "notNull": true }, "source_id": { "name": "source_id", "type": "text", "primaryKey": false, "notNull": true }, "slug": { "name": "slug", "type": "text", "primaryKey": false, "notNull": true }, "name": { "name": "name", "type": "text", "primaryKey": false, "notNull": true }, "parent_term_id": { "name": "parent_term_id", "type": "uuid", "primaryKey": false, "notNull": false }, "data": { "name": "data", "type": "jsonb", "primaryKey": false, "notNull": true } }, "indexes": { "terms_identity_uq": { "name": "terms_identity_uq", "columns": [ { "expression": "site_id", "isExpression": false, "asc": true, "nulls": "last" }, { "expression": "taxonomy_id", "isExpression": false, "asc": true, "nulls": "last" }, { "expression": "source_id", "isExpression": false, "asc": true, "nulls": "last" } ], "isUnique": true, "concurrently": false, "method": "btree", "with": {} } }, "foreignKeys": { "terms_site_id_sites_id_fk": { "name": "terms_site_id_sites_id_fk", "tableFrom": "terms", "tableTo": "sites", "columnsFrom": [ "site_id" ], "columnsTo": [ "id" ], "onDelete": "no action", "onUpdate": "no action" }, "terms_taxonomy_id_taxonomies_id_fk": { "name": "terms_taxonomy_id_taxonomies_id_fk", "tableFrom": "terms", "tableTo": "taxonomies", "columnsFrom": [ "taxonomy_id" ], "columnsTo": [ "id" ], "onDelete": "no action", "onUpdate": "no action" }, "terms_parent_term_id_terms_id_fk": { "name": "terms_parent_term_id_terms_id_fk", "tableFrom": "terms", "tableTo": "terms", "columnsFrom": [ "parent_term_id" ], "columnsTo": [ "id" ], "onDelete": "no action", "onUpdate": "no action" } }, "compositePrimaryKeys": {}, "uniqueConstraints": {}, "policies": {}, "checkConstraints": {}, "isRLSEnabled": false } }, "enums": { "public.content_lifecycle_status": { "name": "content_lifecycle_status", "schema": "public", "values": [ "active", "archived" ] }, "public.import_job_status": { "name": "import_job_status", "schema": "public", "values": [ "queued", "running", "succeeded", "succeeded_with_issues", "failed", "cancelled", "stale" ] }, "public.media_asset_status": { "name": "media_asset_status", "schema": "public", "values": [ "ready", "missing", "quarantined", "unsupported" ] }, "public.revision_source_kind": { "name": "revision_source_kind", "schema": "public", "values": [ "import", "manual", "restore" ] }, "public.source_connection_kind": { "name": "source_connection_kind", "schema": "public", "values": [ "wxr" ] }, "public.source_snapshot_kind": { "name": "source_snapshot_kind", "schema": "public", "values": [ "wxr", "sitemap", "media_bundle", "manual_url_list" ] } }, "schemas": {}, "sequences": {}, "roles": {}, "policies": {}, "views": {}, "_meta": { "columns": {}, "schemas": {}, "tables": {} } }