diff --git a/src/migrations/20261002_114110_add_archive_photo_metadata_checked.json b/src/migrations/20261002_124956_add_archive_photo_metadata_checked.json similarity index 98% rename from src/migrations/20261002_114110_add_archive_photo_metadata_checked.json rename to src/migrations/20261002_124956_add_archive_photo_metadata_checked.json index a89814f4..c5e33fb1 100644 --- a/src/migrations/20261002_114110_add_archive_photo_metadata_checked.json +++ b/src/migrations/20261002_124956_add_archive_photo_metadata_checked.json @@ -10707,6 +10707,240 @@ "checkConstraints": {}, "isRLSEnabled": false }, + "public.face_figure_references": { + "name": "face_figure_references", + "schema": "", + "columns": { + "_order": { + "name": "_order", + "type": "integer", + "primaryKey": false, + "notNull": true + }, + "_parent_id": { + "name": "_parent_id", + "type": "integer", + "primaryKey": false, + "notNull": true + }, + "id": { + "name": "id", + "type": "varchar", + "primaryKey": true, + "notNull": true + }, + "vector": { + "name": "vector", + "type": "jsonb", + "primaryKey": false, + "notNull": false + }, + "model": { + "name": "model", + "type": "varchar", + "primaryKey": false, + "notNull": false + }, + "source": { + "name": "source", + "type": "varchar", + "primaryKey": false, + "notNull": true + }, + "added_at": { + "name": "added_at", + "type": "timestamp(3) with time zone", + "primaryKey": false, + "notNull": false + } + }, + "indexes": { + "face_figure_references_order_idx": { + "name": "face_figure_references_order_idx", + "columns": [ + { + "expression": "_order", + "isExpression": false, + "asc": true, + "nulls": "last" + } + ], + "isUnique": false, + "concurrently": false, + "method": "btree", + "with": {} + }, + "face_figure_references_parent_id_idx": { + "name": "face_figure_references_parent_id_idx", + "columns": [ + { + "expression": "_parent_id", + "isExpression": false, + "asc": true, + "nulls": "last" + } + ], + "isUnique": false, + "concurrently": false, + "method": "btree", + "with": {} + } + }, + "foreignKeys": { + "face_figure_references_parent_id_fk": { + "name": "face_figure_references_parent_id_fk", + "tableFrom": "face_figure_references", + "tableTo": "face_figure", + "columnsFrom": [ + "_parent_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "policies": {}, + "checkConstraints": {}, + "isRLSEnabled": false + }, + "public.face_figure": { + "name": "face_figure", + "schema": "", + "columns": { + "id": { + "name": "id", + "type": "serial", + "primaryKey": true, + "notNull": true + }, + "name": { + "name": "name", + "type": "varchar", + "primaryKey": false, + "notNull": true + }, + "slug": { + "name": "slug", + "type": "varchar", + "primaryKey": false, + "notNull": true + }, + "full_name": { + "name": "full_name", + "type": "varchar", + "primaryKey": false, + "notNull": false + }, + "active": { + "name": "active", + "type": "boolean", + "primaryKey": false, + "notNull": false, + "default": true + }, + "updated_at": { + "name": "updated_at", + "type": "timestamp(3) with time zone", + "primaryKey": false, + "notNull": true, + "default": "now()" + }, + "created_at": { + "name": "created_at", + "type": "timestamp(3) with time zone", + "primaryKey": false, + "notNull": true, + "default": "now()" + } + }, + "indexes": { + "face_figure_name_idx": { + "name": "face_figure_name_idx", + "columns": [ + { + "expression": "name", + "isExpression": false, + "asc": true, + "nulls": "last" + } + ], + "isUnique": true, + "concurrently": false, + "method": "btree", + "with": {} + }, + "face_figure_slug_idx": { + "name": "face_figure_slug_idx", + "columns": [ + { + "expression": "slug", + "isExpression": false, + "asc": true, + "nulls": "last" + } + ], + "isUnique": true, + "concurrently": false, + "method": "btree", + "with": {} + }, + "face_figure_active_idx": { + "name": "face_figure_active_idx", + "columns": [ + { + "expression": "active", + "isExpression": false, + "asc": true, + "nulls": "last" + } + ], + "isUnique": false, + "concurrently": false, + "method": "btree", + "with": {} + }, + "face_figure_updated_at_idx": { + "name": "face_figure_updated_at_idx", + "columns": [ + { + "expression": "updated_at", + "isExpression": false, + "asc": true, + "nulls": "last" + } + ], + "isUnique": false, + "concurrently": false, + "method": "btree", + "with": {} + }, + "face_figure_created_at_idx": { + "name": "face_figure_created_at_idx", + "columns": [ + { + "expression": "created_at", + "isExpression": false, + "asc": true, + "nulls": "last" + } + ], + "isUnique": false, + "concurrently": false, + "method": "btree", + "with": {} + } + }, + "foreignKeys": {}, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "policies": {}, + "checkConstraints": {}, + "isRLSEnabled": false + }, "public.content_event": { "name": "content_event", "schema": "", @@ -16861,6 +17095,12 @@ "primaryKey": false, "notNull": false }, + "face_figure_id": { + "name": "face_figure_id", + "type": "integer", + "primaryKey": false, + "notNull": false + }, "content_event_id": { "name": "content_event_id", "type": "integer", @@ -17457,6 +17697,21 @@ "method": "btree", "with": {} }, + "payload_locked_documents_rels_face_figure_id_idx": { + "name": "payload_locked_documents_rels_face_figure_id_idx", + "columns": [ + { + "expression": "face_figure_id", + "isExpression": false, + "asc": true, + "nulls": "last" + } + ], + "isUnique": false, + "concurrently": false, + "method": "btree", + "with": {} + }, "payload_locked_documents_rels_content_event_id_idx": { "name": "payload_locked_documents_rels_content_event_id_idx", "columns": [ @@ -18134,6 +18389,19 @@ "onDelete": "cascade", "onUpdate": "no action" }, + "payload_locked_documents_rels_face_figure_fk": { + "name": "payload_locked_documents_rels_face_figure_fk", + "tableFrom": "payload_locked_documents_rels", + "tableTo": "face_figure", + "columnsFrom": [ + "face_figure_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + }, "payload_locked_documents_rels_content_event_fk": { "name": "payload_locked_documents_rels_content_event_fk", "tableFrom": "payload_locked_documents_rels", @@ -20641,6 +20909,6 @@ "tables": {}, "columns": {} }, - "id": "259081ef-c28c-45ad-a0e8-3beebedb3863", + "id": "68630991-3b35-408a-a524-0e57d9e898cc", "prevId": "00000000-0000-0000-0000-000000000000" } \ No newline at end of file diff --git a/src/migrations/20261002_114110_add_archive_photo_metadata_checked.ts b/src/migrations/20261002_124956_add_archive_photo_metadata_checked.ts similarity index 100% rename from src/migrations/20261002_114110_add_archive_photo_metadata_checked.ts rename to src/migrations/20261002_124956_add_archive_photo_metadata_checked.ts diff --git a/src/migrations/index.ts b/src/migrations/index.ts index 7be5c15b..dfffc61f 100644 --- a/src/migrations/index.ts +++ b/src/migrations/index.ts @@ -93,7 +93,7 @@ import * as migration_20260926_163248_add_archive_photo_publication from './2026 import * as migration_20260927_193954_add_face_subject from './20260927_193954_add_face_subject'; import * as migration_20261001_040904_add_archive_photo_face from './20261001_040904_add_archive_photo_face'; import * as migration_20261001_235632_add_face_figure from './20261001_235632_add_face_figure'; -import * as migration_20261002_114110_add_archive_photo_metadata_checked from './20261002_114110_add_archive_photo_metadata_checked'; +import * as migration_20261002_124956_add_archive_photo_metadata_checked from './20261002_124956_add_archive_photo_metadata_checked'; export const migrations = [ { @@ -572,8 +572,8 @@ export const migrations = [ name: '20261001_235632_add_face_figure', }, { - up: migration_20261002_114110_add_archive_photo_metadata_checked.up, - down: migration_20261002_114110_add_archive_photo_metadata_checked.down, - name: '20261002_114110_add_archive_photo_metadata_checked' + up: migration_20261002_124956_add_archive_photo_metadata_checked.up, + down: migration_20261002_124956_add_archive_photo_metadata_checked.down, + name: '20261002_124956_add_archive_photo_metadata_checked' }, ];