diff --git a/packages/db/migrations/mysql/0049_add_server_branding_settings.sql b/packages/db/migrations/mysql/0048_add_header_preferences_and_branding.sql similarity index 52% rename from packages/db/migrations/mysql/0049_add_server_branding_settings.sql rename to packages/db/migrations/mysql/0048_add_header_preferences_and_branding.sql index 0c08e6881..c49b86ea0 100644 --- a/packages/db/migrations/mysql/0049_add_server_branding_settings.sql +++ b/packages/db/migrations/mysql/0048_add_header_preferences_and_branding.sql @@ -1,2 +1,4 @@ +ALTER TABLE `user` ADD `header_preferences` text DEFAULT ('{"version":3,"visible":true,"searchDisplay":"input","zones":{"left":[{"type":"builtin","id":"logo"}],"center":[{"type":"builtin","id":"search"}],"right":[{"type":"builtin","id":"boardEdit"},{"type":"builtin","id":"boardSettings"},{"type":"builtin","id":"user"}]}}') NOT NULL; +--> statement-breakpoint INSERT IGNORE INTO `serverSetting` (`setting_key`, `value`) VALUES ('branding', '{"json":{"appName":"Homarr","greeting":"","logoImageUrl":null,"faviconImageUrl":null,"primaryColor":"#fa5252","secondaryColor":"#fd7e14","lockPrimaryColor":false,"signInBackgroundImageUrl":null,"signInBackgroundOverlay":0.55,"authBranding":{"showAppName":true,"showLogo":true,"showGreeting":true},"defaultRadius":"md"}}'); diff --git a/packages/db/migrations/mysql/0048_add_user_header_preferences.sql b/packages/db/migrations/mysql/0048_add_user_header_preferences.sql deleted file mode 100644 index 47411b784..000000000 --- a/packages/db/migrations/mysql/0048_add_user_header_preferences.sql +++ /dev/null @@ -1 +0,0 @@ -ALTER TABLE `user` ADD `header_preferences` text DEFAULT ('{"version":3,"visible":true,"searchDisplay":"input","zones":{"left":[{"type":"builtin","id":"logo"}],"center":[{"type":"builtin","id":"search"}],"right":[{"type":"builtin","id":"boardEdit"},{"type":"builtin","id":"boardSettings"},{"type":"builtin","id":"user"}]}}') NOT NULL; diff --git a/packages/db/migrations/mysql/meta/0048_snapshot.json b/packages/db/migrations/mysql/meta/0048_snapshot.json index daa484a63..439702c24 100644 --- a/packages/db/migrations/mysql/meta/0048_snapshot.json +++ b/packages/db/migrations/mysql/meta/0048_snapshot.json @@ -1,7 +1,7 @@ { "version": "5", "dialect": "mysql", - "id": "d5db09f8-bda5-496d-a0c3-b7a4655252d5", + "id": "ec84f043-0abe-4b32-a9ea-7bfe6e790d6a", "prevId": "5d4a439e-2e7b-4845-a6b4-f24ca5b95408", "tables": { "account": { @@ -2492,42 +2492,6 @@ "uniqueConstraints": {}, "checkConstraint": {} }, - "trusted_certificate_hostname": { - "name": "trusted_certificate_hostname", - "columns": { - "hostname": { - "name": "hostname", - "type": "varchar(256)", - "primaryKey": false, - "notNull": true, - "autoincrement": false - }, - "thumbprint": { - "name": "thumbprint", - "type": "varchar(128)", - "primaryKey": false, - "notNull": true, - "autoincrement": false - }, - "certificate": { - "name": "certificate", - "type": "text", - "primaryKey": false, - "notNull": true, - "autoincrement": false - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": { - "trusted_certificate_hostname_hostname_thumbprint_pk": { - "name": "trusted_certificate_hostname_hostname_thumbprint_pk", - "columns": ["hostname", "thumbprint"] - } - }, - "uniqueConstraints": {}, - "checkConstraint": {} - }, "user": { "name": "user", "columns": { @@ -2802,6 +2766,42 @@ }, "uniqueConstraints": {}, "checkConstraint": {} + }, + "trusted_certificate_hostname": { + "name": "trusted_certificate_hostname", + "columns": { + "hostname": { + "name": "hostname", + "type": "varchar(256)", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "thumbprint": { + "name": "thumbprint", + "type": "varchar(128)", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "certificate": { + "name": "certificate", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + } + }, + "indexes": {}, + "foreignKeys": {}, + "compositePrimaryKeys": { + "trusted_certificate_hostname_hostname_thumbprint_pk": { + "name": "trusted_certificate_hostname_hostname_thumbprint_pk", + "columns": ["hostname", "thumbprint"] + } + }, + "uniqueConstraints": {}, + "checkConstraint": {} } }, "views": {}, diff --git a/packages/db/migrations/mysql/meta/0049_snapshot.json b/packages/db/migrations/mysql/meta/0049_snapshot.json deleted file mode 100644 index 5d9e40211..000000000 --- a/packages/db/migrations/mysql/meta/0049_snapshot.json +++ /dev/null @@ -1,2817 +0,0 @@ -{ - "id": "59e204ea-d000-45d4-9c54-b18a0f53b1a4", - "prevId": "d5db09f8-bda5-496d-a0c3-b7a4655252d5", - "version": "5", - "dialect": "mysql", - "tables": { - "account": { - "name": "account", - "columns": { - "user_id": { - "name": "user_id", - "type": "varchar(64)", - "primaryKey": false, - "notNull": true, - "autoincrement": false - }, - "type": { - "name": "type", - "type": "text", - "primaryKey": false, - "notNull": true, - "autoincrement": false - }, - "provider": { - "name": "provider", - "type": "varchar(64)", - "primaryKey": false, - "notNull": true, - "autoincrement": false - }, - "provider_account_id": { - "name": "provider_account_id", - "type": "varchar(64)", - "primaryKey": false, - "notNull": true, - "autoincrement": false - }, - "refresh_token": { - "name": "refresh_token", - "type": "text", - "primaryKey": false, - "notNull": false, - "autoincrement": false - }, - "access_token": { - "name": "access_token", - "type": "text", - "primaryKey": false, - "notNull": false, - "autoincrement": false - }, - "expires_at": { - "name": "expires_at", - "type": "int", - "primaryKey": false, - "notNull": false, - "autoincrement": false - }, - "token_type": { - "name": "token_type", - "type": "text", - "primaryKey": false, - "notNull": false, - "autoincrement": false - }, - "scope": { - "name": "scope", - "type": "text", - "primaryKey": false, - "notNull": false, - "autoincrement": false - }, - "id_token": { - "name": "id_token", - "type": "text", - "primaryKey": false, - "notNull": false, - "autoincrement": false - }, - "session_state": { - "name": "session_state", - "type": "text", - "primaryKey": false, - "notNull": false, - "autoincrement": false - } - }, - "indexes": { - "userId_idx": { - "name": "userId_idx", - "columns": ["user_id"], - "isUnique": false - } - }, - "foreignKeys": { - "account_user_id_user_id_fk": { - "name": "account_user_id_user_id_fk", - "tableFrom": "account", - "columnsFrom": ["user_id"], - "tableTo": "user", - "columnsTo": ["id"], - "onUpdate": "no action", - "onDelete": "cascade" - } - }, - "compositePrimaryKeys": { - "account_provider_provider_account_id_pk": { - "name": "account_provider_provider_account_id_pk", - "columns": ["provider", "provider_account_id"] - } - }, - "uniqueConstraints": {}, - "checkConstraint": {} - }, - "apiKey": { - "name": "apiKey", - "columns": { - "id": { - "name": "id", - "type": "varchar(64)", - "primaryKey": false, - "notNull": true, - "autoincrement": false - }, - "api_key": { - "name": "api_key", - "type": "text", - "primaryKey": false, - "notNull": true, - "autoincrement": false - }, - "user_id": { - "name": "user_id", - "type": "varchar(64)", - "primaryKey": false, - "notNull": true, - "autoincrement": false - } - }, - "indexes": {}, - "foreignKeys": { - "apiKey_user_id_user_id_fk": { - "name": "apiKey_user_id_user_id_fk", - "tableFrom": "apiKey", - "columnsFrom": ["user_id"], - "tableTo": "user", - "columnsTo": ["id"], - "onUpdate": "no action", - "onDelete": "cascade" - } - }, - "compositePrimaryKeys": { - "apiKey_id": { - "name": "apiKey_id", - "columns": ["id"] - } - }, - "uniqueConstraints": {}, - "checkConstraint": {} - }, - "app": { - "name": "app", - "columns": { - "id": { - "name": "id", - "type": "varchar(64)", - "primaryKey": false, - "notNull": true, - "autoincrement": false - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true, - "autoincrement": false - }, - "description": { - "name": "description", - "type": "text", - "primaryKey": false, - "notNull": false, - "autoincrement": false - }, - "icon_url": { - "name": "icon_url", - "type": "text", - "primaryKey": false, - "notNull": true, - "autoincrement": false - }, - "href": { - "name": "href", - "type": "text", - "primaryKey": false, - "notNull": false, - "autoincrement": false - }, - "ping_url": { - "name": "ping_url", - "type": "text", - "primaryKey": false, - "notNull": false, - "autoincrement": false - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": { - "app_id": { - "name": "app_id", - "columns": ["id"] - } - }, - "uniqueConstraints": {}, - "checkConstraint": {} - }, - "assistant_configuration": { - "name": "assistant_configuration", - "columns": { - "id": { - "name": "id", - "type": "varchar(64)", - "primaryKey": false, - "notNull": true, - "autoincrement": false, - "default": "'default'" - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "autoincrement": false, - "default": false - }, - "web_search_enabled": { - "name": "web_search_enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "autoincrement": false, - "default": false - }, - "provider": { - "name": "provider", - "type": "varchar(32)", - "primaryKey": false, - "notNull": true, - "autoincrement": false, - "default": "'openrouter'" - }, - "base_url": { - "name": "base_url", - "type": "varchar(2048)", - "primaryKey": false, - "notNull": true, - "autoincrement": false, - "default": "'https://openrouter.ai/api/v1'" - }, - "model_discovery_path": { - "name": "model_discovery_path", - "type": "varchar(512)", - "primaryKey": false, - "notNull": false, - "autoincrement": false, - "default": "'/models'" - }, - "encrypted_api_key": { - "name": "encrypted_api_key", - "type": "text", - "primaryKey": false, - "notNull": false, - "autoincrement": false - }, - "encrypted_headers": { - "name": "encrypted_headers", - "type": "text", - "primaryKey": false, - "notNull": false, - "autoincrement": false - }, - "model_id": { - "name": "model_id", - "type": "varchar(256)", - "primaryKey": false, - "notNull": false, - "autoincrement": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp", - "primaryKey": false, - "notNull": true, - "autoincrement": false, - "default": "(now())" - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": { - "assistant_configuration_id": { - "name": "assistant_configuration_id", - "columns": ["id"] - } - }, - "uniqueConstraints": {}, - "checkConstraint": {} - }, - "assistant_message": { - "name": "assistant_message", - "columns": { - "id": { - "name": "id", - "type": "varchar(128)", - "primaryKey": false, - "notNull": true, - "autoincrement": false - }, - "thread_id": { - "name": "thread_id", - "type": "varchar(64)", - "primaryKey": false, - "notNull": true, - "autoincrement": false - }, - "parent_id": { - "name": "parent_id", - "type": "varchar(128)", - "primaryKey": false, - "notNull": false, - "autoincrement": false - }, - "format": { - "name": "format", - "type": "varchar(64)", - "primaryKey": false, - "notNull": true, - "autoincrement": false, - "default": "'ai-sdk/v6'" - }, - "content": { - "name": "content", - "type": "mediumtext", - "primaryKey": false, - "notNull": true, - "autoincrement": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp", - "primaryKey": false, - "notNull": true, - "autoincrement": false, - "default": "(now())" - } - }, - "indexes": { - "assistant_message__thread_id_created_at_idx": { - "name": "assistant_message__thread_id_created_at_idx", - "columns": ["thread_id", "created_at"], - "isUnique": false - } - }, - "foreignKeys": { - "assistant_message_thread_id_assistant_thread_id_fk": { - "name": "assistant_message_thread_id_assistant_thread_id_fk", - "tableFrom": "assistant_message", - "columnsFrom": ["thread_id"], - "tableTo": "assistant_thread", - "columnsTo": ["id"], - "onUpdate": "no action", - "onDelete": "cascade" - } - }, - "compositePrimaryKeys": { - "assistant_message_id": { - "name": "assistant_message_id", - "columns": ["id"] - } - }, - "uniqueConstraints": {}, - "checkConstraint": {} - }, - "assistant_thread": { - "name": "assistant_thread", - "columns": { - "id": { - "name": "id", - "type": "varchar(64)", - "primaryKey": false, - "notNull": true, - "autoincrement": false - }, - "user_id": { - "name": "user_id", - "type": "varchar(64)", - "primaryKey": false, - "notNull": true, - "autoincrement": false - }, - "title": { - "name": "title", - "type": "varchar(256)", - "primaryKey": false, - "notNull": false, - "autoincrement": false - }, - "model_id": { - "name": "model_id", - "type": "varchar(256)", - "primaryKey": false, - "notNull": false, - "autoincrement": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp", - "primaryKey": false, - "notNull": true, - "autoincrement": false, - "default": "(now())" - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp", - "primaryKey": false, - "notNull": true, - "autoincrement": false, - "default": "(now())" - } - }, - "indexes": { - "assistant_thread__user_id_updated_at_idx": { - "name": "assistant_thread__user_id_updated_at_idx", - "columns": ["user_id", "updated_at"], - "isUnique": false - } - }, - "foreignKeys": { - "assistant_thread_user_id_user_id_fk": { - "name": "assistant_thread_user_id_user_id_fk", - "tableFrom": "assistant_thread", - "columnsFrom": ["user_id"], - "tableTo": "user", - "columnsTo": ["id"], - "onUpdate": "no action", - "onDelete": "cascade" - } - }, - "compositePrimaryKeys": { - "assistant_thread_id": { - "name": "assistant_thread_id", - "columns": ["id"] - } - }, - "uniqueConstraints": {}, - "checkConstraint": {} - }, - "boardGroupPermission": { - "name": "boardGroupPermission", - "columns": { - "board_id": { - "name": "board_id", - "type": "varchar(64)", - "primaryKey": false, - "notNull": true, - "autoincrement": false - }, - "group_id": { - "name": "group_id", - "type": "varchar(64)", - "primaryKey": false, - "notNull": true, - "autoincrement": false - }, - "permission": { - "name": "permission", - "type": "varchar(128)", - "primaryKey": false, - "notNull": true, - "autoincrement": false - } - }, - "indexes": {}, - "foreignKeys": { - "boardGroupPermission_board_id_board_id_fk": { - "name": "boardGroupPermission_board_id_board_id_fk", - "tableFrom": "boardGroupPermission", - "columnsFrom": ["board_id"], - "tableTo": "board", - "columnsTo": ["id"], - "onUpdate": "no action", - "onDelete": "cascade" - }, - "boardGroupPermission_group_id_group_id_fk": { - "name": "boardGroupPermission_group_id_group_id_fk", - "tableFrom": "boardGroupPermission", - "columnsFrom": ["group_id"], - "tableTo": "group", - "columnsTo": ["id"], - "onUpdate": "no action", - "onDelete": "cascade" - } - }, - "compositePrimaryKeys": { - "boardGroupPermission_board_id_group_id_permission_pk": { - "name": "boardGroupPermission_board_id_group_id_permission_pk", - "columns": ["board_id", "group_id", "permission"] - } - }, - "uniqueConstraints": {}, - "checkConstraint": {} - }, - "boardUserPermission": { - "name": "boardUserPermission", - "columns": { - "board_id": { - "name": "board_id", - "type": "varchar(64)", - "primaryKey": false, - "notNull": true, - "autoincrement": false - }, - "user_id": { - "name": "user_id", - "type": "varchar(64)", - "primaryKey": false, - "notNull": true, - "autoincrement": false - }, - "permission": { - "name": "permission", - "type": "varchar(128)", - "primaryKey": false, - "notNull": true, - "autoincrement": false - } - }, - "indexes": {}, - "foreignKeys": { - "boardUserPermission_board_id_board_id_fk": { - "name": "boardUserPermission_board_id_board_id_fk", - "tableFrom": "boardUserPermission", - "columnsFrom": ["board_id"], - "tableTo": "board", - "columnsTo": ["id"], - "onUpdate": "no action", - "onDelete": "cascade" - }, - "boardUserPermission_user_id_user_id_fk": { - "name": "boardUserPermission_user_id_user_id_fk", - "tableFrom": "boardUserPermission", - "columnsFrom": ["user_id"], - "tableTo": "user", - "columnsTo": ["id"], - "onUpdate": "no action", - "onDelete": "cascade" - } - }, - "compositePrimaryKeys": { - "boardUserPermission_board_id_user_id_permission_pk": { - "name": "boardUserPermission_board_id_user_id_permission_pk", - "columns": ["board_id", "user_id", "permission"] - } - }, - "uniqueConstraints": {}, - "checkConstraint": {} - }, - "board": { - "name": "board", - "columns": { - "id": { - "name": "id", - "type": "varchar(64)", - "primaryKey": false, - "notNull": true, - "autoincrement": false - }, - "name": { - "name": "name", - "type": "varchar(256)", - "primaryKey": false, - "notNull": true, - "autoincrement": false - }, - "is_public": { - "name": "is_public", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "autoincrement": false, - "default": false - }, - "creator_id": { - "name": "creator_id", - "type": "varchar(64)", - "primaryKey": false, - "notNull": false, - "autoincrement": false - }, - "page_title": { - "name": "page_title", - "type": "text", - "primaryKey": false, - "notNull": false, - "autoincrement": false - }, - "meta_title": { - "name": "meta_title", - "type": "text", - "primaryKey": false, - "notNull": false, - "autoincrement": false - }, - "logo_image_url": { - "name": "logo_image_url", - "type": "text", - "primaryKey": false, - "notNull": false, - "autoincrement": false - }, - "favicon_image_url": { - "name": "favicon_image_url", - "type": "text", - "primaryKey": false, - "notNull": false, - "autoincrement": false - }, - "background_image_url": { - "name": "background_image_url", - "type": "text", - "primaryKey": false, - "notNull": false, - "autoincrement": false - }, - "background_image_attachment": { - "name": "background_image_attachment", - "type": "text", - "primaryKey": false, - "notNull": true, - "autoincrement": false, - "default": "('fixed')" - }, - "background_image_repeat": { - "name": "background_image_repeat", - "type": "text", - "primaryKey": false, - "notNull": true, - "autoincrement": false, - "default": "('no-repeat')" - }, - "background_image_size": { - "name": "background_image_size", - "type": "text", - "primaryKey": false, - "notNull": true, - "autoincrement": false, - "default": "('cover')" - }, - "primary_color": { - "name": "primary_color", - "type": "text", - "primaryKey": false, - "notNull": true, - "autoincrement": false, - "default": "('#fa5252')" - }, - "secondary_color": { - "name": "secondary_color", - "type": "text", - "primaryKey": false, - "notNull": true, - "autoincrement": false, - "default": "('#fd7e14')" - }, - "opacity": { - "name": "opacity", - "type": "int", - "primaryKey": false, - "notNull": true, - "autoincrement": false, - "default": 100 - }, - "custom_css": { - "name": "custom_css", - "type": "text", - "primaryKey": false, - "notNull": false, - "autoincrement": false - }, - "icon_color": { - "name": "icon_color", - "type": "text", - "primaryKey": false, - "notNull": false, - "autoincrement": false - }, - "item_radius": { - "name": "item_radius", - "type": "text", - "primaryKey": false, - "notNull": true, - "autoincrement": false, - "default": "('lg')" - }, - "disable_status": { - "name": "disable_status", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "autoincrement": false, - "default": false - } - }, - "indexes": {}, - "foreignKeys": { - "board_creator_id_user_id_fk": { - "name": "board_creator_id_user_id_fk", - "tableFrom": "board", - "columnsFrom": ["creator_id"], - "tableTo": "user", - "columnsTo": ["id"], - "onUpdate": "no action", - "onDelete": "set null" - } - }, - "compositePrimaryKeys": { - "board_id": { - "name": "board_id", - "columns": ["id"] - } - }, - "uniqueConstraints": { - "board_name_unique": { - "name": "board_name_unique", - "columns": ["name"] - } - }, - "checkConstraint": {} - }, - "cron_job_configuration": { - "name": "cron_job_configuration", - "columns": { - "name": { - "name": "name", - "type": "varchar(256)", - "primaryKey": false, - "notNull": true, - "autoincrement": false - }, - "cron_expression": { - "name": "cron_expression", - "type": "varchar(32)", - "primaryKey": false, - "notNull": true, - "autoincrement": false - }, - "is_enabled": { - "name": "is_enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "autoincrement": false, - "default": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": { - "cron_job_configuration_name": { - "name": "cron_job_configuration_name", - "columns": ["name"] - } - }, - "uniqueConstraints": {}, - "checkConstraint": {} - }, - "custom_widget_v2_definition": { - "name": "custom_widget_v2_definition", - "columns": { - "id": { - "name": "id", - "type": "varchar(64)", - "primaryKey": false, - "notNull": true, - "autoincrement": false - }, - "name": { - "name": "name", - "type": "varchar(256)", - "primaryKey": false, - "notNull": true, - "autoincrement": false - }, - "description": { - "name": "description", - "type": "text", - "primaryKey": false, - "notNull": false, - "autoincrement": false - }, - "icon_url": { - "name": "icon_url", - "type": "text", - "primaryKey": false, - "notNull": false, - "autoincrement": false - }, - "sources": { - "name": "sources", - "type": "text", - "primaryKey": false, - "notNull": true, - "autoincrement": false - }, - "requests": { - "name": "requests", - "type": "text", - "primaryKey": false, - "notNull": true, - "autoincrement": false - }, - "options": { - "name": "options", - "type": "text", - "primaryKey": false, - "notNull": true, - "autoincrement": false - }, - "template": { - "name": "template", - "type": "text", - "primaryKey": false, - "notNull": true, - "autoincrement": false - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "autoincrement": false, - "default": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp", - "primaryKey": false, - "notNull": true, - "autoincrement": false, - "default": "(now())" - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp", - "primaryKey": false, - "notNull": true, - "autoincrement": false, - "default": "(now())" - }, - "creator_id": { - "name": "creator_id", - "type": "varchar(64)", - "primaryKey": false, - "notNull": false, - "autoincrement": false - } - }, - "indexes": {}, - "foreignKeys": { - "custom_widget_v2_definition_creator_id_user_id_fk": { - "name": "custom_widget_v2_definition_creator_id_user_id_fk", - "tableFrom": "custom_widget_v2_definition", - "columnsFrom": ["creator_id"], - "tableTo": "user", - "columnsTo": ["id"], - "onUpdate": "no action", - "onDelete": "set null" - } - }, - "compositePrimaryKeys": { - "custom_widget_v2_definition_id": { - "name": "custom_widget_v2_definition_id", - "columns": ["id"] - } - }, - "uniqueConstraints": {}, - "checkConstraint": {} - }, - "custom_widget_v2_secret": { - "name": "custom_widget_v2_secret", - "columns": { - "source_id": { - "name": "source_id", - "type": "varchar(64)", - "primaryKey": false, - "notNull": true, - "autoincrement": false - }, - "kind": { - "name": "kind", - "type": "varchar(64)", - "primaryKey": false, - "notNull": true, - "autoincrement": false - }, - "encrypted_value": { - "name": "encrypted_value", - "type": "text", - "primaryKey": false, - "notNull": true, - "autoincrement": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp", - "primaryKey": false, - "notNull": true, - "autoincrement": false - }, - "definition_id": { - "name": "definition_id", - "type": "varchar(64)", - "primaryKey": false, - "notNull": true, - "autoincrement": false - } - }, - "indexes": {}, - "foreignKeys": { - "custom_widget_v2_secret_definition_id_fk": { - "name": "custom_widget_v2_secret_definition_id_fk", - "tableFrom": "custom_widget_v2_secret", - "columnsFrom": ["definition_id"], - "tableTo": "custom_widget_v2_definition", - "columnsTo": ["id"], - "onUpdate": "no action", - "onDelete": "cascade" - } - }, - "compositePrimaryKeys": { - "custom_widget_v2_secret_definition_id_source_id_kind_pk": { - "name": "custom_widget_v2_secret_definition_id_source_id_kind_pk", - "columns": ["definition_id", "source_id", "kind"] - } - }, - "uniqueConstraints": {}, - "checkConstraint": {} - }, - "groupMember": { - "name": "groupMember", - "columns": { - "group_id": { - "name": "group_id", - "type": "varchar(64)", - "primaryKey": false, - "notNull": true, - "autoincrement": false - }, - "user_id": { - "name": "user_id", - "type": "varchar(64)", - "primaryKey": false, - "notNull": true, - "autoincrement": false - } - }, - "indexes": {}, - "foreignKeys": { - "groupMember_group_id_group_id_fk": { - "name": "groupMember_group_id_group_id_fk", - "tableFrom": "groupMember", - "columnsFrom": ["group_id"], - "tableTo": "group", - "columnsTo": ["id"], - "onUpdate": "no action", - "onDelete": "cascade" - }, - "groupMember_user_id_user_id_fk": { - "name": "groupMember_user_id_user_id_fk", - "tableFrom": "groupMember", - "columnsFrom": ["user_id"], - "tableTo": "user", - "columnsTo": ["id"], - "onUpdate": "no action", - "onDelete": "cascade" - } - }, - "compositePrimaryKeys": { - "groupMember_group_id_user_id_pk": { - "name": "groupMember_group_id_user_id_pk", - "columns": ["group_id", "user_id"] - } - }, - "uniqueConstraints": {}, - "checkConstraint": {} - }, - "groupPermission": { - "name": "groupPermission", - "columns": { - "group_id": { - "name": "group_id", - "type": "varchar(64)", - "primaryKey": false, - "notNull": true, - "autoincrement": false - }, - "permission": { - "name": "permission", - "type": "text", - "primaryKey": false, - "notNull": true, - "autoincrement": false - } - }, - "indexes": {}, - "foreignKeys": { - "groupPermission_group_id_group_id_fk": { - "name": "groupPermission_group_id_group_id_fk", - "tableFrom": "groupPermission", - "columnsFrom": ["group_id"], - "tableTo": "group", - "columnsTo": ["id"], - "onUpdate": "no action", - "onDelete": "cascade" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "checkConstraint": {} - }, - "group": { - "name": "group", - "columns": { - "id": { - "name": "id", - "type": "varchar(64)", - "primaryKey": false, - "notNull": true, - "autoincrement": false - }, - "name": { - "name": "name", - "type": "varchar(64)", - "primaryKey": false, - "notNull": true, - "autoincrement": false - }, - "owner_id": { - "name": "owner_id", - "type": "varchar(64)", - "primaryKey": false, - "notNull": false, - "autoincrement": false - }, - "home_board_id": { - "name": "home_board_id", - "type": "varchar(64)", - "primaryKey": false, - "notNull": false, - "autoincrement": false - }, - "mobile_home_board_id": { - "name": "mobile_home_board_id", - "type": "varchar(64)", - "primaryKey": false, - "notNull": false, - "autoincrement": false - }, - "position": { - "name": "position", - "type": "smallint", - "primaryKey": false, - "notNull": true, - "autoincrement": false - } - }, - "indexes": {}, - "foreignKeys": { - "group_owner_id_user_id_fk": { - "name": "group_owner_id_user_id_fk", - "tableFrom": "group", - "columnsFrom": ["owner_id"], - "tableTo": "user", - "columnsTo": ["id"], - "onUpdate": "no action", - "onDelete": "set null" - }, - "group_home_board_id_board_id_fk": { - "name": "group_home_board_id_board_id_fk", - "tableFrom": "group", - "columnsFrom": ["home_board_id"], - "tableTo": "board", - "columnsTo": ["id"], - "onUpdate": "no action", - "onDelete": "set null" - }, - "group_mobile_home_board_id_board_id_fk": { - "name": "group_mobile_home_board_id_board_id_fk", - "tableFrom": "group", - "columnsFrom": ["mobile_home_board_id"], - "tableTo": "board", - "columnsTo": ["id"], - "onUpdate": "no action", - "onDelete": "set null" - } - }, - "compositePrimaryKeys": { - "group_id": { - "name": "group_id", - "columns": ["id"] - } - }, - "uniqueConstraints": { - "group_name_unique": { - "name": "group_name_unique", - "columns": ["name"] - } - }, - "checkConstraint": {} - }, - "iconRepository": { - "name": "iconRepository", - "columns": { - "id": { - "name": "id", - "type": "varchar(64)", - "primaryKey": false, - "notNull": true, - "autoincrement": false - }, - "slug": { - "name": "slug", - "type": "varchar(150)", - "primaryKey": false, - "notNull": true, - "autoincrement": false - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": { - "iconRepository_id": { - "name": "iconRepository_id", - "columns": ["id"] - } - }, - "uniqueConstraints": {}, - "checkConstraint": {} - }, - "icon": { - "name": "icon", - "columns": { - "id": { - "name": "id", - "type": "varchar(64)", - "primaryKey": false, - "notNull": true, - "autoincrement": false - }, - "name": { - "name": "name", - "type": "varchar(250)", - "primaryKey": false, - "notNull": true, - "autoincrement": false - }, - "url": { - "name": "url", - "type": "text", - "primaryKey": false, - "notNull": true, - "autoincrement": false - }, - "checksum": { - "name": "checksum", - "type": "text", - "primaryKey": false, - "notNull": true, - "autoincrement": false - }, - "icon_repository_id": { - "name": "icon_repository_id", - "type": "varchar(64)", - "primaryKey": false, - "notNull": true, - "autoincrement": false - } - }, - "indexes": {}, - "foreignKeys": { - "icon_icon_repository_id_iconRepository_id_fk": { - "name": "icon_icon_repository_id_iconRepository_id_fk", - "tableFrom": "icon", - "columnsFrom": ["icon_repository_id"], - "tableTo": "iconRepository", - "columnsTo": ["id"], - "onUpdate": "no action", - "onDelete": "cascade" - } - }, - "compositePrimaryKeys": { - "icon_id": { - "name": "icon_id", - "columns": ["id"] - } - }, - "uniqueConstraints": {}, - "checkConstraint": {} - }, - "integrationGroupPermissions": { - "name": "integrationGroupPermissions", - "columns": { - "integration_id": { - "name": "integration_id", - "type": "varchar(64)", - "primaryKey": false, - "notNull": true, - "autoincrement": false - }, - "group_id": { - "name": "group_id", - "type": "varchar(64)", - "primaryKey": false, - "notNull": true, - "autoincrement": false - }, - "permission": { - "name": "permission", - "type": "varchar(128)", - "primaryKey": false, - "notNull": true, - "autoincrement": false - } - }, - "indexes": {}, - "foreignKeys": { - "integrationGroupPermissions_integration_id_integration_id_fk": { - "name": "integrationGroupPermissions_integration_id_integration_id_fk", - "tableFrom": "integrationGroupPermissions", - "columnsFrom": ["integration_id"], - "tableTo": "integration", - "columnsTo": ["id"], - "onUpdate": "no action", - "onDelete": "cascade" - }, - "integrationGroupPermissions_group_id_group_id_fk": { - "name": "integrationGroupPermissions_group_id_group_id_fk", - "tableFrom": "integrationGroupPermissions", - "columnsFrom": ["group_id"], - "tableTo": "group", - "columnsTo": ["id"], - "onUpdate": "no action", - "onDelete": "cascade" - } - }, - "compositePrimaryKeys": { - "integration_group_permission__pk": { - "name": "integration_group_permission__pk", - "columns": ["integration_id", "group_id", "permission"] - } - }, - "uniqueConstraints": {}, - "checkConstraint": {} - }, - "integration_item": { - "name": "integration_item", - "columns": { - "item_id": { - "name": "item_id", - "type": "varchar(64)", - "primaryKey": false, - "notNull": true, - "autoincrement": false - }, - "integration_id": { - "name": "integration_id", - "type": "varchar(64)", - "primaryKey": false, - "notNull": true, - "autoincrement": false - } - }, - "indexes": {}, - "foreignKeys": { - "integration_item_item_id_item_id_fk": { - "name": "integration_item_item_id_item_id_fk", - "tableFrom": "integration_item", - "columnsFrom": ["item_id"], - "tableTo": "item", - "columnsTo": ["id"], - "onUpdate": "no action", - "onDelete": "cascade" - }, - "integration_item_integration_id_integration_id_fk": { - "name": "integration_item_integration_id_integration_id_fk", - "tableFrom": "integration_item", - "columnsFrom": ["integration_id"], - "tableTo": "integration", - "columnsTo": ["id"], - "onUpdate": "no action", - "onDelete": "cascade" - } - }, - "compositePrimaryKeys": { - "integration_item_item_id_integration_id_pk": { - "name": "integration_item_item_id_integration_id_pk", - "columns": ["item_id", "integration_id"] - } - }, - "uniqueConstraints": {}, - "checkConstraint": {} - }, - "integrationSecret": { - "name": "integrationSecret", - "columns": { - "kind": { - "name": "kind", - "type": "varchar(64)", - "primaryKey": false, - "notNull": true, - "autoincrement": false - }, - "value": { - "name": "value", - "type": "text", - "primaryKey": false, - "notNull": true, - "autoincrement": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp", - "primaryKey": false, - "notNull": true, - "autoincrement": false - }, - "integration_id": { - "name": "integration_id", - "type": "varchar(64)", - "primaryKey": false, - "notNull": true, - "autoincrement": false - } - }, - "indexes": { - "integration_secret__kind_idx": { - "name": "integration_secret__kind_idx", - "columns": ["kind"], - "isUnique": false - }, - "integration_secret__updated_at_idx": { - "name": "integration_secret__updated_at_idx", - "columns": ["updated_at"], - "isUnique": false - } - }, - "foreignKeys": { - "integrationSecret_integration_id_integration_id_fk": { - "name": "integrationSecret_integration_id_integration_id_fk", - "tableFrom": "integrationSecret", - "columnsFrom": ["integration_id"], - "tableTo": "integration", - "columnsTo": ["id"], - "onUpdate": "no action", - "onDelete": "cascade" - } - }, - "compositePrimaryKeys": { - "integrationSecret_integration_id_kind_pk": { - "name": "integrationSecret_integration_id_kind_pk", - "columns": ["integration_id", "kind"] - } - }, - "uniqueConstraints": {}, - "checkConstraint": {} - }, - "integrationUserPermission": { - "name": "integrationUserPermission", - "columns": { - "integration_id": { - "name": "integration_id", - "type": "varchar(64)", - "primaryKey": false, - "notNull": true, - "autoincrement": false - }, - "user_id": { - "name": "user_id", - "type": "varchar(64)", - "primaryKey": false, - "notNull": true, - "autoincrement": false - }, - "permission": { - "name": "permission", - "type": "varchar(128)", - "primaryKey": false, - "notNull": true, - "autoincrement": false - } - }, - "indexes": {}, - "foreignKeys": { - "integrationUserPermission_integration_id_integration_id_fk": { - "name": "integrationUserPermission_integration_id_integration_id_fk", - "tableFrom": "integrationUserPermission", - "columnsFrom": ["integration_id"], - "tableTo": "integration", - "columnsTo": ["id"], - "onUpdate": "no action", - "onDelete": "cascade" - }, - "integrationUserPermission_user_id_user_id_fk": { - "name": "integrationUserPermission_user_id_user_id_fk", - "tableFrom": "integrationUserPermission", - "columnsFrom": ["user_id"], - "tableTo": "user", - "columnsTo": ["id"], - "onUpdate": "no action", - "onDelete": "cascade" - } - }, - "compositePrimaryKeys": { - "integrationUserPermission_integration_id_user_id_permission_pk": { - "name": "integrationUserPermission_integration_id_user_id_permission_pk", - "columns": ["integration_id", "user_id", "permission"] - } - }, - "uniqueConstraints": {}, - "checkConstraint": {} - }, - "integration": { - "name": "integration", - "columns": { - "id": { - "name": "id", - "type": "varchar(64)", - "primaryKey": false, - "notNull": true, - "autoincrement": false - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true, - "autoincrement": false - }, - "url": { - "name": "url", - "type": "text", - "primaryKey": false, - "notNull": true, - "autoincrement": false - }, - "kind": { - "name": "kind", - "type": "varchar(128)", - "primaryKey": false, - "notNull": true, - "autoincrement": false - }, - "app_id": { - "name": "app_id", - "type": "varchar(128)", - "primaryKey": false, - "notNull": false, - "autoincrement": false - } - }, - "indexes": { - "integration__kind_idx": { - "name": "integration__kind_idx", - "columns": ["kind"], - "isUnique": false - } - }, - "foreignKeys": { - "integration_app_id_app_id_fk": { - "name": "integration_app_id_app_id_fk", - "tableFrom": "integration", - "columnsFrom": ["app_id"], - "tableTo": "app", - "columnsTo": ["id"], - "onUpdate": "no action", - "onDelete": "set null" - } - }, - "compositePrimaryKeys": { - "integration_id": { - "name": "integration_id", - "columns": ["id"] - } - }, - "uniqueConstraints": {}, - "checkConstraint": {} - }, - "invite": { - "name": "invite", - "columns": { - "id": { - "name": "id", - "type": "varchar(64)", - "primaryKey": false, - "notNull": true, - "autoincrement": false - }, - "token": { - "name": "token", - "type": "varchar(512)", - "primaryKey": false, - "notNull": true, - "autoincrement": false - }, - "expiration_date": { - "name": "expiration_date", - "type": "timestamp", - "primaryKey": false, - "notNull": true, - "autoincrement": false - }, - "creator_id": { - "name": "creator_id", - "type": "varchar(64)", - "primaryKey": false, - "notNull": true, - "autoincrement": false - } - }, - "indexes": {}, - "foreignKeys": { - "invite_creator_id_user_id_fk": { - "name": "invite_creator_id_user_id_fk", - "tableFrom": "invite", - "columnsFrom": ["creator_id"], - "tableTo": "user", - "columnsTo": ["id"], - "onUpdate": "no action", - "onDelete": "cascade" - } - }, - "compositePrimaryKeys": { - "invite_id": { - "name": "invite_id", - "columns": ["id"] - } - }, - "uniqueConstraints": { - "invite_token_unique": { - "name": "invite_token_unique", - "columns": ["token"] - } - }, - "checkConstraint": {} - }, - "item_layout": { - "name": "item_layout", - "columns": { - "item_id": { - "name": "item_id", - "type": "varchar(64)", - "primaryKey": false, - "notNull": true, - "autoincrement": false - }, - "section_id": { - "name": "section_id", - "type": "varchar(64)", - "primaryKey": false, - "notNull": true, - "autoincrement": false - }, - "layout_id": { - "name": "layout_id", - "type": "varchar(64)", - "primaryKey": false, - "notNull": true, - "autoincrement": false - }, - "x_offset": { - "name": "x_offset", - "type": "int", - "primaryKey": false, - "notNull": true, - "autoincrement": false - }, - "y_offset": { - "name": "y_offset", - "type": "int", - "primaryKey": false, - "notNull": true, - "autoincrement": false - }, - "width": { - "name": "width", - "type": "int", - "primaryKey": false, - "notNull": true, - "autoincrement": false - }, - "height": { - "name": "height", - "type": "int", - "primaryKey": false, - "notNull": true, - "autoincrement": false - } - }, - "indexes": {}, - "foreignKeys": { - "item_layout_item_id_item_id_fk": { - "name": "item_layout_item_id_item_id_fk", - "tableFrom": "item_layout", - "columnsFrom": ["item_id"], - "tableTo": "item", - "columnsTo": ["id"], - "onUpdate": "no action", - "onDelete": "cascade" - }, - "item_layout_section_id_section_id_fk": { - "name": "item_layout_section_id_section_id_fk", - "tableFrom": "item_layout", - "columnsFrom": ["section_id"], - "tableTo": "section", - "columnsTo": ["id"], - "onUpdate": "no action", - "onDelete": "cascade" - }, - "item_layout_layout_id_layout_id_fk": { - "name": "item_layout_layout_id_layout_id_fk", - "tableFrom": "item_layout", - "columnsFrom": ["layout_id"], - "tableTo": "layout", - "columnsTo": ["id"], - "onUpdate": "no action", - "onDelete": "cascade" - } - }, - "compositePrimaryKeys": { - "item_layout_item_id_section_id_layout_id_pk": { - "name": "item_layout_item_id_section_id_layout_id_pk", - "columns": ["item_id", "section_id", "layout_id"] - } - }, - "uniqueConstraints": {}, - "checkConstraint": {} - }, - "item": { - "name": "item", - "columns": { - "id": { - "name": "id", - "type": "varchar(64)", - "primaryKey": false, - "notNull": true, - "autoincrement": false - }, - "board_id": { - "name": "board_id", - "type": "varchar(64)", - "primaryKey": false, - "notNull": true, - "autoincrement": false - }, - "kind": { - "name": "kind", - "type": "text", - "primaryKey": false, - "notNull": true, - "autoincrement": false - }, - "options": { - "name": "options", - "type": "text", - "primaryKey": false, - "notNull": true, - "autoincrement": false, - "default": "('{\"json\": {}}')" - }, - "advanced_options": { - "name": "advanced_options", - "type": "text", - "primaryKey": false, - "notNull": true, - "autoincrement": false, - "default": "('{\"json\": {}}')" - } - }, - "indexes": {}, - "foreignKeys": { - "item_board_id_board_id_fk": { - "name": "item_board_id_board_id_fk", - "tableFrom": "item", - "columnsFrom": ["board_id"], - "tableTo": "board", - "columnsTo": ["id"], - "onUpdate": "no action", - "onDelete": "cascade" - } - }, - "compositePrimaryKeys": { - "item_id": { - "name": "item_id", - "columns": ["id"] - } - }, - "uniqueConstraints": {}, - "checkConstraint": {} - }, - "layout": { - "name": "layout", - "columns": { - "id": { - "name": "id", - "type": "varchar(64)", - "primaryKey": false, - "notNull": true, - "autoincrement": false - }, - "name": { - "name": "name", - "type": "varchar(32)", - "primaryKey": false, - "notNull": true, - "autoincrement": false - }, - "board_id": { - "name": "board_id", - "type": "varchar(64)", - "primaryKey": false, - "notNull": true, - "autoincrement": false - }, - "column_count": { - "name": "column_count", - "type": "tinyint", - "primaryKey": false, - "notNull": true, - "autoincrement": false - }, - "left_gutter_column_count": { - "name": "left_gutter_column_count", - "type": "tinyint", - "primaryKey": false, - "notNull": true, - "autoincrement": false, - "default": 0 - }, - "right_gutter_column_count": { - "name": "right_gutter_column_count", - "type": "tinyint", - "primaryKey": false, - "notNull": true, - "autoincrement": false, - "default": 0 - }, - "breakpoint": { - "name": "breakpoint", - "type": "smallint", - "primaryKey": false, - "notNull": true, - "autoincrement": false, - "default": 0 - }, - "role": { - "name": "role", - "type": "varchar(16)", - "primaryKey": false, - "notNull": true, - "autoincrement": false, - "default": "'custom'" - } - }, - "indexes": {}, - "foreignKeys": { - "layout_board_id_board_id_fk": { - "name": "layout_board_id_board_id_fk", - "tableFrom": "layout", - "columnsFrom": ["board_id"], - "tableTo": "board", - "columnsTo": ["id"], - "onUpdate": "no action", - "onDelete": "cascade" - } - }, - "compositePrimaryKeys": { - "layout_id": { - "name": "layout_id", - "columns": ["id"] - } - }, - "uniqueConstraints": {}, - "checkConstraint": {} - }, - "custom_widget_definition": { - "name": "custom_widget_definition", - "columns": { - "id": { - "name": "id", - "type": "varchar(64)", - "primaryKey": false, - "notNull": true, - "autoincrement": false - }, - "name": { - "name": "name", - "type": "varchar(256)", - "primaryKey": false, - "notNull": true, - "autoincrement": false - }, - "description": { - "name": "description", - "type": "text", - "primaryKey": false, - "notNull": false, - "autoincrement": false - }, - "icon_url": { - "name": "icon_url", - "type": "text", - "primaryKey": false, - "notNull": false, - "autoincrement": false - }, - "url": { - "name": "url", - "type": "text", - "primaryKey": false, - "notNull": true, - "autoincrement": false - }, - "auth_type": { - "name": "auth_type", - "type": "varchar(32)", - "primaryKey": false, - "notNull": true, - "autoincrement": false, - "default": "'none'" - }, - "header_name": { - "name": "header_name", - "type": "varchar(256)", - "primaryKey": false, - "notNull": false, - "autoincrement": false - }, - "method": { - "name": "method", - "type": "varchar(16)", - "primaryKey": false, - "notNull": true, - "autoincrement": false, - "default": "'GET'" - }, - "request_body": { - "name": "request_body", - "type": "text", - "primaryKey": false, - "notNull": false, - "autoincrement": false - }, - "display_type": { - "name": "display_type", - "type": "varchar(32)", - "primaryKey": false, - "notNull": true, - "autoincrement": false, - "default": "'singleValue'" - }, - "display_config": { - "name": "display_config", - "type": "text", - "primaryKey": false, - "notNull": true, - "autoincrement": false, - "default": "('{\"json\": {}}')" - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "autoincrement": false, - "default": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp", - "primaryKey": false, - "notNull": true, - "autoincrement": false, - "default": "(now())" - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp", - "primaryKey": false, - "notNull": true, - "autoincrement": false, - "default": "(now())" - }, - "creator_id": { - "name": "creator_id", - "type": "varchar(64)", - "primaryKey": false, - "notNull": false, - "autoincrement": false - } - }, - "indexes": {}, - "foreignKeys": { - "custom_widget_definition_creator_id_user_id_fk": { - "name": "custom_widget_definition_creator_id_user_id_fk", - "tableFrom": "custom_widget_definition", - "columnsFrom": ["creator_id"], - "tableTo": "user", - "columnsTo": ["id"], - "onUpdate": "no action", - "onDelete": "set null" - } - }, - "compositePrimaryKeys": { - "custom_widget_definition_id": { - "name": "custom_widget_definition_id", - "columns": ["id"] - } - }, - "uniqueConstraints": {}, - "checkConstraint": {} - }, - "custom_widget_secret": { - "name": "custom_widget_secret", - "columns": { - "kind": { - "name": "kind", - "type": "varchar(64)", - "primaryKey": false, - "notNull": true, - "autoincrement": false - }, - "value": { - "name": "value", - "type": "text", - "primaryKey": false, - "notNull": true, - "autoincrement": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp", - "primaryKey": false, - "notNull": true, - "autoincrement": false - }, - "definition_id": { - "name": "definition_id", - "type": "varchar(64)", - "primaryKey": false, - "notNull": true, - "autoincrement": false - } - }, - "indexes": {}, - "foreignKeys": { - "cw_secret_definition_id_cw_definition_id_fk": { - "name": "cw_secret_definition_id_cw_definition_id_fk", - "tableFrom": "custom_widget_secret", - "columnsFrom": ["definition_id"], - "tableTo": "custom_widget_definition", - "columnsTo": ["id"], - "onUpdate": "no action", - "onDelete": "cascade" - } - }, - "compositePrimaryKeys": { - "custom_widget_secret_definition_id_kind_pk": { - "name": "custom_widget_secret_definition_id_kind_pk", - "columns": ["definition_id", "kind"] - } - }, - "uniqueConstraints": {}, - "checkConstraint": {} - }, - "media": { - "name": "media", - "columns": { - "id": { - "name": "id", - "type": "varchar(64)", - "primaryKey": false, - "notNull": true, - "autoincrement": false - }, - "name": { - "name": "name", - "type": "varchar(512)", - "primaryKey": false, - "notNull": true, - "autoincrement": false - }, - "content": { - "name": "content", - "type": "LONGBLOB", - "primaryKey": false, - "notNull": true, - "autoincrement": false - }, - "content_type": { - "name": "content_type", - "type": "text", - "primaryKey": false, - "notNull": true, - "autoincrement": false - }, - "size": { - "name": "size", - "type": "int", - "primaryKey": false, - "notNull": true, - "autoincrement": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp", - "primaryKey": false, - "notNull": true, - "autoincrement": false, - "default": "(now())" - }, - "creator_id": { - "name": "creator_id", - "type": "varchar(64)", - "primaryKey": false, - "notNull": false, - "autoincrement": false - } - }, - "indexes": {}, - "foreignKeys": { - "media_creator_id_user_id_fk": { - "name": "media_creator_id_user_id_fk", - "tableFrom": "media", - "columnsFrom": ["creator_id"], - "tableTo": "user", - "columnsTo": ["id"], - "onUpdate": "no action", - "onDelete": "set null" - } - }, - "compositePrimaryKeys": { - "media_id": { - "name": "media_id", - "columns": ["id"] - } - }, - "uniqueConstraints": {}, - "checkConstraint": {} - }, - "onboarding": { - "name": "onboarding", - "columns": { - "id": { - "name": "id", - "type": "varchar(64)", - "primaryKey": false, - "notNull": true, - "autoincrement": false - }, - "step": { - "name": "step", - "type": "varchar(64)", - "primaryKey": false, - "notNull": true, - "autoincrement": false - }, - "previous_step": { - "name": "previous_step", - "type": "varchar(64)", - "primaryKey": false, - "notNull": false, - "autoincrement": false - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": { - "onboarding_id": { - "name": "onboarding_id", - "columns": ["id"] - } - }, - "uniqueConstraints": {}, - "checkConstraint": {} - }, - "search_engine": { - "name": "search_engine", - "columns": { - "id": { - "name": "id", - "type": "varchar(64)", - "primaryKey": false, - "notNull": true, - "autoincrement": false - }, - "icon_url": { - "name": "icon_url", - "type": "text", - "primaryKey": false, - "notNull": true, - "autoincrement": false - }, - "name": { - "name": "name", - "type": "varchar(64)", - "primaryKey": false, - "notNull": true, - "autoincrement": false - }, - "short": { - "name": "short", - "type": "varchar(8)", - "primaryKey": false, - "notNull": true, - "autoincrement": false - }, - "description": { - "name": "description", - "type": "text", - "primaryKey": false, - "notNull": false, - "autoincrement": false - }, - "url_template": { - "name": "url_template", - "type": "text", - "primaryKey": false, - "notNull": false, - "autoincrement": false - }, - "type": { - "name": "type", - "type": "varchar(64)", - "primaryKey": false, - "notNull": true, - "autoincrement": false, - "default": "'generic'" - }, - "integration_id": { - "name": "integration_id", - "type": "varchar(64)", - "primaryKey": false, - "notNull": false, - "autoincrement": false - } - }, - "indexes": {}, - "foreignKeys": { - "search_engine_integration_id_integration_id_fk": { - "name": "search_engine_integration_id_integration_id_fk", - "tableFrom": "search_engine", - "columnsFrom": ["integration_id"], - "tableTo": "integration", - "columnsTo": ["id"], - "onUpdate": "no action", - "onDelete": "cascade" - } - }, - "compositePrimaryKeys": { - "search_engine_id": { - "name": "search_engine_id", - "columns": ["id"] - } - }, - "uniqueConstraints": { - "search_engine_short_unique": { - "name": "search_engine_short_unique", - "columns": ["short"] - } - }, - "checkConstraint": {} - }, - "section_collapse_state": { - "name": "section_collapse_state", - "columns": { - "user_id": { - "name": "user_id", - "type": "varchar(64)", - "primaryKey": false, - "notNull": true, - "autoincrement": false - }, - "section_id": { - "name": "section_id", - "type": "varchar(64)", - "primaryKey": false, - "notNull": true, - "autoincrement": false - }, - "collapsed": { - "name": "collapsed", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "autoincrement": false, - "default": false - } - }, - "indexes": {}, - "foreignKeys": { - "section_collapse_state_user_id_user_id_fk": { - "name": "section_collapse_state_user_id_user_id_fk", - "tableFrom": "section_collapse_state", - "columnsFrom": ["user_id"], - "tableTo": "user", - "columnsTo": ["id"], - "onUpdate": "no action", - "onDelete": "cascade" - }, - "section_collapse_state_section_id_section_id_fk": { - "name": "section_collapse_state_section_id_section_id_fk", - "tableFrom": "section_collapse_state", - "columnsFrom": ["section_id"], - "tableTo": "section", - "columnsTo": ["id"], - "onUpdate": "no action", - "onDelete": "cascade" - } - }, - "compositePrimaryKeys": { - "section_collapse_state_user_id_section_id_pk": { - "name": "section_collapse_state_user_id_section_id_pk", - "columns": ["user_id", "section_id"] - } - }, - "uniqueConstraints": {}, - "checkConstraint": {} - }, - "section_layout": { - "name": "section_layout", - "columns": { - "section_id": { - "name": "section_id", - "type": "varchar(64)", - "primaryKey": false, - "notNull": true, - "autoincrement": false - }, - "layout_id": { - "name": "layout_id", - "type": "varchar(64)", - "primaryKey": false, - "notNull": true, - "autoincrement": false - }, - "parent_section_id": { - "name": "parent_section_id", - "type": "varchar(64)", - "primaryKey": false, - "notNull": false, - "autoincrement": false - }, - "x_offset": { - "name": "x_offset", - "type": "int", - "primaryKey": false, - "notNull": true, - "autoincrement": false - }, - "y_offset": { - "name": "y_offset", - "type": "int", - "primaryKey": false, - "notNull": true, - "autoincrement": false - }, - "width": { - "name": "width", - "type": "int", - "primaryKey": false, - "notNull": true, - "autoincrement": false - }, - "height": { - "name": "height", - "type": "int", - "primaryKey": false, - "notNull": true, - "autoincrement": false - } - }, - "indexes": {}, - "foreignKeys": { - "section_layout_section_id_section_id_fk": { - "name": "section_layout_section_id_section_id_fk", - "tableFrom": "section_layout", - "columnsFrom": ["section_id"], - "tableTo": "section", - "columnsTo": ["id"], - "onUpdate": "no action", - "onDelete": "cascade" - }, - "section_layout_layout_id_layout_id_fk": { - "name": "section_layout_layout_id_layout_id_fk", - "tableFrom": "section_layout", - "columnsFrom": ["layout_id"], - "tableTo": "layout", - "columnsTo": ["id"], - "onUpdate": "no action", - "onDelete": "cascade" - }, - "section_layout_parent_section_id_section_id_fk": { - "name": "section_layout_parent_section_id_section_id_fk", - "tableFrom": "section_layout", - "columnsFrom": ["parent_section_id"], - "tableTo": "section", - "columnsTo": ["id"], - "onUpdate": "no action", - "onDelete": "cascade" - } - }, - "compositePrimaryKeys": { - "section_layout_section_id_layout_id_pk": { - "name": "section_layout_section_id_layout_id_pk", - "columns": ["section_id", "layout_id"] - } - }, - "uniqueConstraints": {}, - "checkConstraint": {} - }, - "section": { - "name": "section", - "columns": { - "id": { - "name": "id", - "type": "varchar(64)", - "primaryKey": false, - "notNull": true, - "autoincrement": false - }, - "board_id": { - "name": "board_id", - "type": "varchar(64)", - "primaryKey": false, - "notNull": true, - "autoincrement": false - }, - "kind": { - "name": "kind", - "type": "text", - "primaryKey": false, - "notNull": true, - "autoincrement": false - }, - "x_offset": { - "name": "x_offset", - "type": "int", - "primaryKey": false, - "notNull": false, - "autoincrement": false - }, - "y_offset": { - "name": "y_offset", - "type": "int", - "primaryKey": false, - "notNull": false, - "autoincrement": false - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": false, - "autoincrement": false - }, - "options": { - "name": "options", - "type": "text", - "primaryKey": false, - "notNull": false, - "autoincrement": false, - "default": "('{\"json\": {}}')" - } - }, - "indexes": {}, - "foreignKeys": { - "section_board_id_board_id_fk": { - "name": "section_board_id_board_id_fk", - "tableFrom": "section", - "columnsFrom": ["board_id"], - "tableTo": "board", - "columnsTo": ["id"], - "onUpdate": "no action", - "onDelete": "cascade" - } - }, - "compositePrimaryKeys": { - "section_id": { - "name": "section_id", - "columns": ["id"] - } - }, - "uniqueConstraints": {}, - "checkConstraint": {} - }, - "serverSetting": { - "name": "serverSetting", - "columns": { - "setting_key": { - "name": "setting_key", - "type": "varchar(64)", - "primaryKey": false, - "notNull": true, - "autoincrement": false - }, - "value": { - "name": "value", - "type": "text", - "primaryKey": false, - "notNull": true, - "autoincrement": false, - "default": "('{\"json\": {}}')" - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": { - "serverSetting_setting_key": { - "name": "serverSetting_setting_key", - "columns": ["setting_key"] - } - }, - "uniqueConstraints": { - "serverSetting_settingKey_unique": { - "name": "serverSetting_settingKey_unique", - "columns": ["setting_key"] - } - }, - "checkConstraint": {} - }, - "session": { - "name": "session", - "columns": { - "session_token": { - "name": "session_token", - "type": "varchar(512)", - "primaryKey": false, - "notNull": true, - "autoincrement": false - }, - "user_id": { - "name": "user_id", - "type": "varchar(64)", - "primaryKey": false, - "notNull": true, - "autoincrement": false - }, - "expires": { - "name": "expires", - "type": "timestamp", - "primaryKey": false, - "notNull": true, - "autoincrement": false - } - }, - "indexes": { - "user_id_idx": { - "name": "user_id_idx", - "columns": ["user_id"], - "isUnique": false - } - }, - "foreignKeys": { - "session_user_id_user_id_fk": { - "name": "session_user_id_user_id_fk", - "tableFrom": "session", - "columnsFrom": ["user_id"], - "tableTo": "user", - "columnsTo": ["id"], - "onUpdate": "no action", - "onDelete": "cascade" - } - }, - "compositePrimaryKeys": { - "session_session_token": { - "name": "session_session_token", - "columns": ["session_token"] - } - }, - "uniqueConstraints": {}, - "checkConstraint": {} - }, - "trusted_certificate_hostname": { - "name": "trusted_certificate_hostname", - "columns": { - "hostname": { - "name": "hostname", - "type": "varchar(256)", - "primaryKey": false, - "notNull": true, - "autoincrement": false - }, - "thumbprint": { - "name": "thumbprint", - "type": "varchar(128)", - "primaryKey": false, - "notNull": true, - "autoincrement": false - }, - "certificate": { - "name": "certificate", - "type": "text", - "primaryKey": false, - "notNull": true, - "autoincrement": false - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": { - "trusted_certificate_hostname_hostname_thumbprint_pk": { - "name": "trusted_certificate_hostname_hostname_thumbprint_pk", - "columns": ["hostname", "thumbprint"] - } - }, - "uniqueConstraints": {}, - "checkConstraint": {} - }, - "user": { - "name": "user", - "columns": { - "id": { - "name": "id", - "type": "varchar(64)", - "primaryKey": false, - "notNull": true, - "autoincrement": false - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": false, - "autoincrement": false - }, - "email": { - "name": "email", - "type": "text", - "primaryKey": false, - "notNull": false, - "autoincrement": false - }, - "email_verified": { - "name": "email_verified", - "type": "timestamp", - "primaryKey": false, - "notNull": false, - "autoincrement": false - }, - "image": { - "name": "image", - "type": "text", - "primaryKey": false, - "notNull": false, - "autoincrement": false - }, - "password": { - "name": "password", - "type": "text", - "primaryKey": false, - "notNull": false, - "autoincrement": false - }, - "provider": { - "name": "provider", - "type": "varchar(64)", - "primaryKey": false, - "notNull": true, - "autoincrement": false, - "default": "'credentials'" - }, - "home_board_id": { - "name": "home_board_id", - "type": "varchar(64)", - "primaryKey": false, - "notNull": false, - "autoincrement": false - }, - "mobile_home_board_id": { - "name": "mobile_home_board_id", - "type": "varchar(64)", - "primaryKey": false, - "notNull": false, - "autoincrement": false - }, - "default_search_engine_id": { - "name": "default_search_engine_id", - "type": "varchar(64)", - "primaryKey": false, - "notNull": false, - "autoincrement": false - }, - "open_search_in_new_tab": { - "name": "open_search_in_new_tab", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "autoincrement": false, - "default": false - }, - "ddg_bangs": { - "name": "ddg_bangs", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "autoincrement": false, - "default": true - }, - "color_scheme": { - "name": "color_scheme", - "type": "varchar(5)", - "primaryKey": false, - "notNull": true, - "autoincrement": false, - "default": "'dark'" - }, - "first_day_of_week": { - "name": "first_day_of_week", - "type": "tinyint", - "primaryKey": false, - "notNull": true, - "autoincrement": false, - "default": 1 - }, - "ping_icons_enabled": { - "name": "ping_icons_enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "autoincrement": false, - "default": false - }, - "enable_right_click_on_widgets": { - "name": "enable_right_click_on_widgets", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "autoincrement": false, - "default": true - }, - "header_preferences": { - "name": "header_preferences", - "type": "text", - "primaryKey": false, - "notNull": true, - "autoincrement": false, - "default": "('{\"version\":3,\"visible\":true,\"searchDisplay\":\"input\",\"zones\":{\"left\":[{\"type\":\"builtin\",\"id\":\"logo\"}],\"center\":[{\"type\":\"builtin\",\"id\":\"search\"}],\"right\":[{\"type\":\"builtin\",\"id\":\"boardEdit\"},{\"type\":\"builtin\",\"id\":\"boardSettings\"},{\"type\":\"builtin\",\"id\":\"user\"}]}}')" - }, - "completed_manage_tour": { - "name": "completed_manage_tour", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "autoincrement": false, - "default": false - }, - "completed_board_tour": { - "name": "completed_board_tour", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "autoincrement": false, - "default": false - } - }, - "indexes": {}, - "foreignKeys": { - "user_home_board_id_board_id_fk": { - "name": "user_home_board_id_board_id_fk", - "tableFrom": "user", - "columnsFrom": ["home_board_id"], - "tableTo": "board", - "columnsTo": ["id"], - "onUpdate": "no action", - "onDelete": "set null" - }, - "user_mobile_home_board_id_board_id_fk": { - "name": "user_mobile_home_board_id_board_id_fk", - "tableFrom": "user", - "columnsFrom": ["mobile_home_board_id"], - "tableTo": "board", - "columnsTo": ["id"], - "onUpdate": "no action", - "onDelete": "set null" - }, - "user_default_search_engine_id_search_engine_id_fk": { - "name": "user_default_search_engine_id_search_engine_id_fk", - "tableFrom": "user", - "columnsFrom": ["default_search_engine_id"], - "tableTo": "search_engine", - "columnsTo": ["id"], - "onUpdate": "no action", - "onDelete": "set null" - } - }, - "compositePrimaryKeys": { - "user_id": { - "name": "user_id", - "columns": ["id"] - } - }, - "uniqueConstraints": {}, - "checkConstraint": {} - }, - "verificationToken": { - "name": "verificationToken", - "columns": { - "identifier": { - "name": "identifier", - "type": "varchar(64)", - "primaryKey": false, - "notNull": true, - "autoincrement": false - }, - "token": { - "name": "token", - "type": "varchar(512)", - "primaryKey": false, - "notNull": true, - "autoincrement": false - }, - "expires": { - "name": "expires", - "type": "timestamp", - "primaryKey": false, - "notNull": true, - "autoincrement": false - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": { - "verificationToken_identifier_token_pk": { - "name": "verificationToken_identifier_token_pk", - "columns": ["identifier", "token"] - } - }, - "uniqueConstraints": {}, - "checkConstraint": {} - }, - "widget_secret": { - "name": "widget_secret", - "columns": { - "item_id": { - "name": "item_id", - "type": "varchar(64)", - "primaryKey": false, - "notNull": true, - "autoincrement": false - }, - "kind": { - "name": "kind", - "type": "varchar(64)", - "primaryKey": false, - "notNull": true, - "autoincrement": false - }, - "value": { - "name": "value", - "type": "text", - "primaryKey": false, - "notNull": true, - "autoincrement": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp", - "primaryKey": false, - "notNull": true, - "autoincrement": false - } - }, - "indexes": {}, - "foreignKeys": { - "widget_secret_item_id_item_id_fk": { - "name": "widget_secret_item_id_item_id_fk", - "tableFrom": "widget_secret", - "columnsFrom": ["item_id"], - "tableTo": "item", - "columnsTo": ["id"], - "onUpdate": "no action", - "onDelete": "cascade" - } - }, - "compositePrimaryKeys": { - "widget_secret_item_id_kind_pk": { - "name": "widget_secret_item_id_kind_pk", - "columns": ["item_id", "kind"] - } - }, - "uniqueConstraints": {}, - "checkConstraint": {} - } - }, - "views": {}, - "_meta": { - "columns": {}, - "schemas": {}, - "tables": {} - }, - "internal": { - "tables": {}, - "indexes": {} - } -} diff --git a/packages/db/migrations/mysql/meta/_journal.json b/packages/db/migrations/mysql/meta/_journal.json index d4b5c455d..79a69d531 100644 --- a/packages/db/migrations/mysql/meta/_journal.json +++ b/packages/db/migrations/mysql/meta/_journal.json @@ -341,15 +341,8 @@ { "idx": 48, "version": "5", - "when": 1787496042445, - "tag": "0048_add_user_header_preferences", - "breakpoints": true - }, - { - "idx": 49, - "version": "5", - "when": 1787496053718, - "tag": "0049_add_server_branding_settings", + "when": 1787556966768, + "tag": "0048_add_header_preferences_and_branding", "breakpoints": true } ] diff --git a/packages/db/migrations/postgresql/0015_add_server_branding_settings.sql b/packages/db/migrations/postgresql/0014_add_header_preferences_and_branding.sql similarity index 54% rename from packages/db/migrations/postgresql/0015_add_server_branding_settings.sql rename to packages/db/migrations/postgresql/0014_add_header_preferences_and_branding.sql index 7a88a960b..8f75ee391 100644 --- a/packages/db/migrations/postgresql/0015_add_server_branding_settings.sql +++ b/packages/db/migrations/postgresql/0014_add_header_preferences_and_branding.sql @@ -1,3 +1,5 @@ +ALTER TABLE "user" ADD COLUMN "header_preferences" text DEFAULT '{"version":3,"visible":true,"searchDisplay":"input","zones":{"left":[{"type":"builtin","id":"logo"}],"center":[{"type":"builtin","id":"search"}],"right":[{"type":"builtin","id":"boardEdit"},{"type":"builtin","id":"boardSettings"},{"type":"builtin","id":"user"}]}}' NOT NULL; +--> statement-breakpoint INSERT INTO "serverSetting" ("setting_key", "value") VALUES ('branding', '{"json":{"appName":"Homarr","greeting":"","logoImageUrl":null,"faviconImageUrl":null,"primaryColor":"#fa5252","secondaryColor":"#fd7e14","lockPrimaryColor":false,"signInBackgroundImageUrl":null,"signInBackgroundOverlay":0.55,"authBranding":{"showAppName":true,"showLogo":true,"showGreeting":true},"defaultRadius":"md"}}') ON CONFLICT ("setting_key") DO NOTHING; diff --git a/packages/db/migrations/postgresql/0014_add_user_header_preferences.sql b/packages/db/migrations/postgresql/0014_add_user_header_preferences.sql deleted file mode 100644 index 5684b7983..000000000 --- a/packages/db/migrations/postgresql/0014_add_user_header_preferences.sql +++ /dev/null @@ -1 +0,0 @@ -ALTER TABLE "user" ADD COLUMN "header_preferences" text DEFAULT '{"version":3,"visible":true,"searchDisplay":"input","zones":{"left":[{"type":"builtin","id":"logo"}],"center":[{"type":"builtin","id":"search"}],"right":[{"type":"builtin","id":"boardEdit"},{"type":"builtin","id":"boardSettings"},{"type":"builtin","id":"user"}]}}' NOT NULL; diff --git a/packages/db/migrations/postgresql/meta/0014_snapshot.json b/packages/db/migrations/postgresql/meta/0014_snapshot.json index fadb1457b..474506922 100644 --- a/packages/db/migrations/postgresql/meta/0014_snapshot.json +++ b/packages/db/migrations/postgresql/meta/0014_snapshot.json @@ -1,5 +1,5 @@ { - "id": "dec7f43d-ca63-4b3d-af66-0d94e4f06a80", + "id": "a1398ea3-5939-47f7-840c-2b9b693a2b0c", "prevId": "ab2696e9-42d1-4aa0-bc60-b6d9fc50a7dc", "version": "7", "dialect": "postgresql", @@ -2373,42 +2373,6 @@ "checkConstraints": {}, "isRLSEnabled": false }, - "public.trusted_certificate_hostname": { - "name": "trusted_certificate_hostname", - "schema": "", - "columns": { - "hostname": { - "name": "hostname", - "type": "varchar(256)", - "primaryKey": false, - "notNull": true - }, - "thumbprint": { - "name": "thumbprint", - "type": "varchar(128)", - "primaryKey": false, - "notNull": true - }, - "certificate": { - "name": "certificate", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": { - "trusted_certificate_hostname_hostname_thumbprint_pk": { - "name": "trusted_certificate_hostname_hostname_thumbprint_pk", - "columns": ["hostname", "thumbprint"] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, "public.user": { "name": "user", "schema": "", @@ -2661,6 +2625,42 @@ "policies": {}, "checkConstraints": {}, "isRLSEnabled": false + }, + "public.trusted_certificate_hostname": { + "name": "trusted_certificate_hostname", + "schema": "", + "columns": { + "hostname": { + "name": "hostname", + "type": "varchar(256)", + "primaryKey": false, + "notNull": true + }, + "thumbprint": { + "name": "thumbprint", + "type": "varchar(128)", + "primaryKey": false, + "notNull": true + }, + "certificate": { + "name": "certificate", + "type": "text", + "primaryKey": false, + "notNull": true + } + }, + "indexes": {}, + "foreignKeys": {}, + "compositePrimaryKeys": { + "trusted_certificate_hostname_hostname_thumbprint_pk": { + "name": "trusted_certificate_hostname_hostname_thumbprint_pk", + "columns": ["hostname", "thumbprint"] + } + }, + "uniqueConstraints": {}, + "policies": {}, + "checkConstraints": {}, + "isRLSEnabled": false } }, "enums": {}, diff --git a/packages/db/migrations/postgresql/meta/0015_snapshot.json b/packages/db/migrations/postgresql/meta/0015_snapshot.json deleted file mode 100644 index 431d54f14..000000000 --- a/packages/db/migrations/postgresql/meta/0015_snapshot.json +++ /dev/null @@ -1,2677 +0,0 @@ -{ - "id": "3e6b9b8e-d628-496d-bc0a-99ef6c82cf30", - "prevId": "dec7f43d-ca63-4b3d-af66-0d94e4f06a80", - "version": "7", - "dialect": "postgresql", - "tables": { - "public.account": { - "name": "account", - "schema": "", - "columns": { - "user_id": { - "name": "user_id", - "type": "varchar(64)", - "primaryKey": false, - "notNull": true - }, - "type": { - "name": "type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "varchar(64)", - "primaryKey": false, - "notNull": true - }, - "provider_account_id": { - "name": "provider_account_id", - "type": "varchar(64)", - "primaryKey": false, - "notNull": true - }, - "refresh_token": { - "name": "refresh_token", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "access_token": { - "name": "access_token", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "expires_at": { - "name": "expires_at", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "token_type": { - "name": "token_type", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "scope": { - "name": "scope", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "id_token": { - "name": "id_token", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "session_state": { - "name": "session_state", - "type": "text", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "userId_idx": { - "name": "userId_idx", - "columns": [ - { - "expression": "user_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "with": {}, - "method": "btree", - "concurrently": false - } - }, - "foreignKeys": { - "account_user_id_user_id_fk": { - "name": "account_user_id_user_id_fk", - "tableFrom": "account", - "columnsFrom": ["user_id"], - "tableTo": "user", - "columnsTo": ["id"], - "onUpdate": "no action", - "onDelete": "cascade" - } - }, - "compositePrimaryKeys": { - "account_provider_provider_account_id_pk": { - "name": "account_provider_provider_account_id_pk", - "columns": ["provider", "provider_account_id"] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.apiKey": { - "name": "apiKey", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "varchar(64)", - "primaryKey": true, - "notNull": true - }, - "api_key": { - "name": "api_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "user_id": { - "name": "user_id", - "type": "varchar(64)", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": { - "apiKey_user_id_user_id_fk": { - "name": "apiKey_user_id_user_id_fk", - "tableFrom": "apiKey", - "columnsFrom": ["user_id"], - "tableTo": "user", - "columnsTo": ["id"], - "onUpdate": "no action", - "onDelete": "cascade" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.app": { - "name": "app", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "varchar(64)", - "primaryKey": true, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "description": { - "name": "description", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "icon_url": { - "name": "icon_url", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "href": { - "name": "href", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "ping_url": { - "name": "ping_url", - "type": "text", - "primaryKey": false, - "notNull": false - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.assistant_configuration": { - "name": "assistant_configuration", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "varchar(64)", - "primaryKey": true, - "notNull": true, - "default": "'default'" - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "web_search_enabled": { - "name": "web_search_enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "provider": { - "name": "provider", - "type": "varchar(32)", - "primaryKey": false, - "notNull": true, - "default": "'openrouter'" - }, - "base_url": { - "name": "base_url", - "type": "varchar(2048)", - "primaryKey": false, - "notNull": true, - "default": "'https://openrouter.ai/api/v1'" - }, - "model_discovery_path": { - "name": "model_discovery_path", - "type": "varchar(512)", - "primaryKey": false, - "notNull": false, - "default": "'/models'" - }, - "encrypted_api_key": { - "name": "encrypted_api_key", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "encrypted_headers": { - "name": "encrypted_headers", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "model_id": { - "name": "model_id", - "type": "varchar(256)", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp", - "primaryKey": false, - "notNull": true, - "default": "now()" - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.assistant_message": { - "name": "assistant_message", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "varchar(128)", - "primaryKey": true, - "notNull": true - }, - "thread_id": { - "name": "thread_id", - "type": "varchar(64)", - "primaryKey": false, - "notNull": true - }, - "parent_id": { - "name": "parent_id", - "type": "varchar(128)", - "primaryKey": false, - "notNull": false - }, - "format": { - "name": "format", - "type": "varchar(64)", - "primaryKey": false, - "notNull": true, - "default": "'ai-sdk/v6'" - }, - "content": { - "name": "content", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp", - "primaryKey": false, - "notNull": true, - "default": "now()" - } - }, - "indexes": { - "assistant_message__thread_id_created_at_idx": { - "name": "assistant_message__thread_id_created_at_idx", - "columns": [ - { - "expression": "thread_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "with": {}, - "method": "btree", - "concurrently": false - } - }, - "foreignKeys": { - "assistant_message_thread_id_assistant_thread_id_fk": { - "name": "assistant_message_thread_id_assistant_thread_id_fk", - "tableFrom": "assistant_message", - "columnsFrom": ["thread_id"], - "tableTo": "assistant_thread", - "columnsTo": ["id"], - "onUpdate": "no action", - "onDelete": "cascade" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.assistant_thread": { - "name": "assistant_thread", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "varchar(64)", - "primaryKey": true, - "notNull": true - }, - "user_id": { - "name": "user_id", - "type": "varchar(64)", - "primaryKey": false, - "notNull": true - }, - "title": { - "name": "title", - "type": "varchar(256)", - "primaryKey": false, - "notNull": false - }, - "model_id": { - "name": "model_id", - "type": "varchar(256)", - "primaryKey": false, - "notNull": false - }, - "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": { - "assistant_thread__user_id_updated_at_idx": { - "name": "assistant_thread__user_id_updated_at_idx", - "columns": [ - { - "expression": "user_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "updated_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "with": {}, - "method": "btree", - "concurrently": false - } - }, - "foreignKeys": { - "assistant_thread_user_id_user_id_fk": { - "name": "assistant_thread_user_id_user_id_fk", - "tableFrom": "assistant_thread", - "columnsFrom": ["user_id"], - "tableTo": "user", - "columnsTo": ["id"], - "onUpdate": "no action", - "onDelete": "cascade" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.boardGroupPermission": { - "name": "boardGroupPermission", - "schema": "", - "columns": { - "board_id": { - "name": "board_id", - "type": "varchar(64)", - "primaryKey": false, - "notNull": true - }, - "group_id": { - "name": "group_id", - "type": "varchar(64)", - "primaryKey": false, - "notNull": true - }, - "permission": { - "name": "permission", - "type": "varchar(128)", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": { - "boardGroupPermission_board_id_board_id_fk": { - "name": "boardGroupPermission_board_id_board_id_fk", - "tableFrom": "boardGroupPermission", - "columnsFrom": ["board_id"], - "tableTo": "board", - "columnsTo": ["id"], - "onUpdate": "no action", - "onDelete": "cascade" - }, - "boardGroupPermission_group_id_group_id_fk": { - "name": "boardGroupPermission_group_id_group_id_fk", - "tableFrom": "boardGroupPermission", - "columnsFrom": ["group_id"], - "tableTo": "group", - "columnsTo": ["id"], - "onUpdate": "no action", - "onDelete": "cascade" - } - }, - "compositePrimaryKeys": { - "boardGroupPermission_board_id_group_id_permission_pk": { - "name": "boardGroupPermission_board_id_group_id_permission_pk", - "columns": ["board_id", "group_id", "permission"] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.boardUserPermission": { - "name": "boardUserPermission", - "schema": "", - "columns": { - "board_id": { - "name": "board_id", - "type": "varchar(64)", - "primaryKey": false, - "notNull": true - }, - "user_id": { - "name": "user_id", - "type": "varchar(64)", - "primaryKey": false, - "notNull": true - }, - "permission": { - "name": "permission", - "type": "varchar(128)", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": { - "boardUserPermission_board_id_board_id_fk": { - "name": "boardUserPermission_board_id_board_id_fk", - "tableFrom": "boardUserPermission", - "columnsFrom": ["board_id"], - "tableTo": "board", - "columnsTo": ["id"], - "onUpdate": "no action", - "onDelete": "cascade" - }, - "boardUserPermission_user_id_user_id_fk": { - "name": "boardUserPermission_user_id_user_id_fk", - "tableFrom": "boardUserPermission", - "columnsFrom": ["user_id"], - "tableTo": "user", - "columnsTo": ["id"], - "onUpdate": "no action", - "onDelete": "cascade" - } - }, - "compositePrimaryKeys": { - "boardUserPermission_board_id_user_id_permission_pk": { - "name": "boardUserPermission_board_id_user_id_permission_pk", - "columns": ["board_id", "user_id", "permission"] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.board": { - "name": "board", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "varchar(64)", - "primaryKey": true, - "notNull": true - }, - "name": { - "name": "name", - "type": "varchar(256)", - "primaryKey": false, - "notNull": true - }, - "is_public": { - "name": "is_public", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "creator_id": { - "name": "creator_id", - "type": "varchar(64)", - "primaryKey": false, - "notNull": false - }, - "page_title": { - "name": "page_title", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "meta_title": { - "name": "meta_title", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "logo_image_url": { - "name": "logo_image_url", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "favicon_image_url": { - "name": "favicon_image_url", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "background_image_url": { - "name": "background_image_url", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "background_image_attachment": { - "name": "background_image_attachment", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'fixed'" - }, - "background_image_repeat": { - "name": "background_image_repeat", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'no-repeat'" - }, - "background_image_size": { - "name": "background_image_size", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'cover'" - }, - "primary_color": { - "name": "primary_color", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'#fa5252'" - }, - "secondary_color": { - "name": "secondary_color", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'#fd7e14'" - }, - "opacity": { - "name": "opacity", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 100 - }, - "custom_css": { - "name": "custom_css", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "icon_color": { - "name": "icon_color", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "item_radius": { - "name": "item_radius", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'lg'" - }, - "disable_status": { - "name": "disable_status", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - } - }, - "indexes": {}, - "foreignKeys": { - "board_creator_id_user_id_fk": { - "name": "board_creator_id_user_id_fk", - "tableFrom": "board", - "columnsFrom": ["creator_id"], - "tableTo": "user", - "columnsTo": ["id"], - "onUpdate": "no action", - "onDelete": "set null" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": { - "board_name_unique": { - "name": "board_name_unique", - "columns": ["name"], - "nullsNotDistinct": false - } - }, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.cron_job_configuration": { - "name": "cron_job_configuration", - "schema": "", - "columns": { - "name": { - "name": "name", - "type": "varchar(256)", - "primaryKey": true, - "notNull": true - }, - "cron_expression": { - "name": "cron_expression", - "type": "varchar(32)", - "primaryKey": false, - "notNull": true - }, - "is_enabled": { - "name": "is_enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.custom_widget_v2_definition": { - "name": "custom_widget_v2_definition", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "varchar(64)", - "primaryKey": true, - "notNull": true - }, - "name": { - "name": "name", - "type": "varchar(256)", - "primaryKey": false, - "notNull": true - }, - "description": { - "name": "description", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "icon_url": { - "name": "icon_url", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "sources": { - "name": "sources", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "requests": { - "name": "requests", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "options": { - "name": "options", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "template": { - "name": "template", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": 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()" - }, - "creator_id": { - "name": "creator_id", - "type": "varchar(64)", - "primaryKey": false, - "notNull": false - } - }, - "indexes": {}, - "foreignKeys": { - "custom_widget_v2_definition_creator_id_user_id_fk": { - "name": "custom_widget_v2_definition_creator_id_user_id_fk", - "tableFrom": "custom_widget_v2_definition", - "columnsFrom": ["creator_id"], - "tableTo": "user", - "columnsTo": ["id"], - "onUpdate": "no action", - "onDelete": "set null" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.custom_widget_v2_secret": { - "name": "custom_widget_v2_secret", - "schema": "", - "columns": { - "source_id": { - "name": "source_id", - "type": "varchar(64)", - "primaryKey": false, - "notNull": true - }, - "kind": { - "name": "kind", - "type": "varchar(64)", - "primaryKey": false, - "notNull": true - }, - "encrypted_value": { - "name": "encrypted_value", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp", - "primaryKey": false, - "notNull": true - }, - "definition_id": { - "name": "definition_id", - "type": "varchar(64)", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": { - "custom_widget_v2_secret_definition_id_fk": { - "name": "custom_widget_v2_secret_definition_id_fk", - "tableFrom": "custom_widget_v2_secret", - "columnsFrom": ["definition_id"], - "tableTo": "custom_widget_v2_definition", - "columnsTo": ["id"], - "onUpdate": "no action", - "onDelete": "cascade" - } - }, - "compositePrimaryKeys": { - "custom_widget_v2_secret_definition_id_source_id_kind_pk": { - "name": "custom_widget_v2_secret_definition_id_source_id_kind_pk", - "columns": ["definition_id", "source_id", "kind"] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.groupMember": { - "name": "groupMember", - "schema": "", - "columns": { - "group_id": { - "name": "group_id", - "type": "varchar(64)", - "primaryKey": false, - "notNull": true - }, - "user_id": { - "name": "user_id", - "type": "varchar(64)", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": { - "groupMember_group_id_group_id_fk": { - "name": "groupMember_group_id_group_id_fk", - "tableFrom": "groupMember", - "columnsFrom": ["group_id"], - "tableTo": "group", - "columnsTo": ["id"], - "onUpdate": "no action", - "onDelete": "cascade" - }, - "groupMember_user_id_user_id_fk": { - "name": "groupMember_user_id_user_id_fk", - "tableFrom": "groupMember", - "columnsFrom": ["user_id"], - "tableTo": "user", - "columnsTo": ["id"], - "onUpdate": "no action", - "onDelete": "cascade" - } - }, - "compositePrimaryKeys": { - "groupMember_group_id_user_id_pk": { - "name": "groupMember_group_id_user_id_pk", - "columns": ["group_id", "user_id"] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.groupPermission": { - "name": "groupPermission", - "schema": "", - "columns": { - "group_id": { - "name": "group_id", - "type": "varchar(64)", - "primaryKey": false, - "notNull": true - }, - "permission": { - "name": "permission", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": { - "groupPermission_group_id_group_id_fk": { - "name": "groupPermission_group_id_group_id_fk", - "tableFrom": "groupPermission", - "columnsFrom": ["group_id"], - "tableTo": "group", - "columnsTo": ["id"], - "onUpdate": "no action", - "onDelete": "cascade" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.group": { - "name": "group", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "varchar(64)", - "primaryKey": true, - "notNull": true - }, - "name": { - "name": "name", - "type": "varchar(64)", - "primaryKey": false, - "notNull": true - }, - "owner_id": { - "name": "owner_id", - "type": "varchar(64)", - "primaryKey": false, - "notNull": false - }, - "home_board_id": { - "name": "home_board_id", - "type": "varchar(64)", - "primaryKey": false, - "notNull": false - }, - "mobile_home_board_id": { - "name": "mobile_home_board_id", - "type": "varchar(64)", - "primaryKey": false, - "notNull": false - }, - "position": { - "name": "position", - "type": "smallint", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": { - "group_owner_id_user_id_fk": { - "name": "group_owner_id_user_id_fk", - "tableFrom": "group", - "columnsFrom": ["owner_id"], - "tableTo": "user", - "columnsTo": ["id"], - "onUpdate": "no action", - "onDelete": "set null" - }, - "group_home_board_id_board_id_fk": { - "name": "group_home_board_id_board_id_fk", - "tableFrom": "group", - "columnsFrom": ["home_board_id"], - "tableTo": "board", - "columnsTo": ["id"], - "onUpdate": "no action", - "onDelete": "set null" - }, - "group_mobile_home_board_id_board_id_fk": { - "name": "group_mobile_home_board_id_board_id_fk", - "tableFrom": "group", - "columnsFrom": ["mobile_home_board_id"], - "tableTo": "board", - "columnsTo": ["id"], - "onUpdate": "no action", - "onDelete": "set null" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": { - "group_name_unique": { - "name": "group_name_unique", - "columns": ["name"], - "nullsNotDistinct": false - } - }, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.iconRepository": { - "name": "iconRepository", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "varchar(64)", - "primaryKey": true, - "notNull": true - }, - "slug": { - "name": "slug", - "type": "varchar(150)", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.icon": { - "name": "icon", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "varchar(64)", - "primaryKey": true, - "notNull": true - }, - "name": { - "name": "name", - "type": "varchar(250)", - "primaryKey": false, - "notNull": true - }, - "url": { - "name": "url", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "checksum": { - "name": "checksum", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "icon_repository_id": { - "name": "icon_repository_id", - "type": "varchar(64)", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": { - "icon_icon_repository_id_iconRepository_id_fk": { - "name": "icon_icon_repository_id_iconRepository_id_fk", - "tableFrom": "icon", - "columnsFrom": ["icon_repository_id"], - "tableTo": "iconRepository", - "columnsTo": ["id"], - "onUpdate": "no action", - "onDelete": "cascade" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.integrationGroupPermissions": { - "name": "integrationGroupPermissions", - "schema": "", - "columns": { - "integration_id": { - "name": "integration_id", - "type": "varchar(64)", - "primaryKey": false, - "notNull": true - }, - "group_id": { - "name": "group_id", - "type": "varchar(64)", - "primaryKey": false, - "notNull": true - }, - "permission": { - "name": "permission", - "type": "varchar(128)", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": { - "integrationGroupPermissions_integration_id_integration_id_fk": { - "name": "integrationGroupPermissions_integration_id_integration_id_fk", - "tableFrom": "integrationGroupPermissions", - "columnsFrom": ["integration_id"], - "tableTo": "integration", - "columnsTo": ["id"], - "onUpdate": "no action", - "onDelete": "cascade" - }, - "integrationGroupPermissions_group_id_group_id_fk": { - "name": "integrationGroupPermissions_group_id_group_id_fk", - "tableFrom": "integrationGroupPermissions", - "columnsFrom": ["group_id"], - "tableTo": "group", - "columnsTo": ["id"], - "onUpdate": "no action", - "onDelete": "cascade" - } - }, - "compositePrimaryKeys": { - "integration_group_permission__pk": { - "name": "integration_group_permission__pk", - "columns": ["integration_id", "group_id", "permission"] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.integration_item": { - "name": "integration_item", - "schema": "", - "columns": { - "item_id": { - "name": "item_id", - "type": "varchar(64)", - "primaryKey": false, - "notNull": true - }, - "integration_id": { - "name": "integration_id", - "type": "varchar(64)", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": { - "integration_item_item_id_item_id_fk": { - "name": "integration_item_item_id_item_id_fk", - "tableFrom": "integration_item", - "columnsFrom": ["item_id"], - "tableTo": "item", - "columnsTo": ["id"], - "onUpdate": "no action", - "onDelete": "cascade" - }, - "integration_item_integration_id_integration_id_fk": { - "name": "integration_item_integration_id_integration_id_fk", - "tableFrom": "integration_item", - "columnsFrom": ["integration_id"], - "tableTo": "integration", - "columnsTo": ["id"], - "onUpdate": "no action", - "onDelete": "cascade" - } - }, - "compositePrimaryKeys": { - "integration_item_item_id_integration_id_pk": { - "name": "integration_item_item_id_integration_id_pk", - "columns": ["item_id", "integration_id"] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.integrationSecret": { - "name": "integrationSecret", - "schema": "", - "columns": { - "kind": { - "name": "kind", - "type": "varchar(64)", - "primaryKey": false, - "notNull": true - }, - "value": { - "name": "value", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp", - "primaryKey": false, - "notNull": true - }, - "integration_id": { - "name": "integration_id", - "type": "varchar(64)", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "integration_secret__kind_idx": { - "name": "integration_secret__kind_idx", - "columns": [ - { - "expression": "kind", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "with": {}, - "method": "btree", - "concurrently": false - }, - "integration_secret__updated_at_idx": { - "name": "integration_secret__updated_at_idx", - "columns": [ - { - "expression": "updated_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "with": {}, - "method": "btree", - "concurrently": false - } - }, - "foreignKeys": { - "integrationSecret_integration_id_integration_id_fk": { - "name": "integrationSecret_integration_id_integration_id_fk", - "tableFrom": "integrationSecret", - "columnsFrom": ["integration_id"], - "tableTo": "integration", - "columnsTo": ["id"], - "onUpdate": "no action", - "onDelete": "cascade" - } - }, - "compositePrimaryKeys": { - "integrationSecret_integration_id_kind_pk": { - "name": "integrationSecret_integration_id_kind_pk", - "columns": ["integration_id", "kind"] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.integrationUserPermission": { - "name": "integrationUserPermission", - "schema": "", - "columns": { - "integration_id": { - "name": "integration_id", - "type": "varchar(64)", - "primaryKey": false, - "notNull": true - }, - "user_id": { - "name": "user_id", - "type": "varchar(64)", - "primaryKey": false, - "notNull": true - }, - "permission": { - "name": "permission", - "type": "varchar(128)", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": { - "integrationUserPermission_integration_id_integration_id_fk": { - "name": "integrationUserPermission_integration_id_integration_id_fk", - "tableFrom": "integrationUserPermission", - "columnsFrom": ["integration_id"], - "tableTo": "integration", - "columnsTo": ["id"], - "onUpdate": "no action", - "onDelete": "cascade" - }, - "integrationUserPermission_user_id_user_id_fk": { - "name": "integrationUserPermission_user_id_user_id_fk", - "tableFrom": "integrationUserPermission", - "columnsFrom": ["user_id"], - "tableTo": "user", - "columnsTo": ["id"], - "onUpdate": "no action", - "onDelete": "cascade" - } - }, - "compositePrimaryKeys": { - "integrationUserPermission_integration_id_user_id_permission_pk": { - "name": "integrationUserPermission_integration_id_user_id_permission_pk", - "columns": ["integration_id", "user_id", "permission"] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.integration": { - "name": "integration", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "varchar(64)", - "primaryKey": true, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "url": { - "name": "url", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "kind": { - "name": "kind", - "type": "varchar(128)", - "primaryKey": false, - "notNull": true - }, - "app_id": { - "name": "app_id", - "type": "varchar(128)", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "integration__kind_idx": { - "name": "integration__kind_idx", - "columns": [ - { - "expression": "kind", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "with": {}, - "method": "btree", - "concurrently": false - } - }, - "foreignKeys": { - "integration_app_id_app_id_fk": { - "name": "integration_app_id_app_id_fk", - "tableFrom": "integration", - "columnsFrom": ["app_id"], - "tableTo": "app", - "columnsTo": ["id"], - "onUpdate": "no action", - "onDelete": "set null" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.invite": { - "name": "invite", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "varchar(64)", - "primaryKey": true, - "notNull": true - }, - "token": { - "name": "token", - "type": "varchar(512)", - "primaryKey": false, - "notNull": true - }, - "expiration_date": { - "name": "expiration_date", - "type": "timestamp", - "primaryKey": false, - "notNull": true - }, - "creator_id": { - "name": "creator_id", - "type": "varchar(64)", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": { - "invite_creator_id_user_id_fk": { - "name": "invite_creator_id_user_id_fk", - "tableFrom": "invite", - "columnsFrom": ["creator_id"], - "tableTo": "user", - "columnsTo": ["id"], - "onUpdate": "no action", - "onDelete": "cascade" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": { - "invite_token_unique": { - "name": "invite_token_unique", - "columns": ["token"], - "nullsNotDistinct": false - } - }, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.item_layout": { - "name": "item_layout", - "schema": "", - "columns": { - "item_id": { - "name": "item_id", - "type": "varchar(64)", - "primaryKey": false, - "notNull": true - }, - "section_id": { - "name": "section_id", - "type": "varchar(64)", - "primaryKey": false, - "notNull": true - }, - "layout_id": { - "name": "layout_id", - "type": "varchar(64)", - "primaryKey": false, - "notNull": true - }, - "x_offset": { - "name": "x_offset", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "y_offset": { - "name": "y_offset", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "width": { - "name": "width", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "height": { - "name": "height", - "type": "integer", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": { - "item_layout_item_id_item_id_fk": { - "name": "item_layout_item_id_item_id_fk", - "tableFrom": "item_layout", - "columnsFrom": ["item_id"], - "tableTo": "item", - "columnsTo": ["id"], - "onUpdate": "no action", - "onDelete": "cascade" - }, - "item_layout_section_id_section_id_fk": { - "name": "item_layout_section_id_section_id_fk", - "tableFrom": "item_layout", - "columnsFrom": ["section_id"], - "tableTo": "section", - "columnsTo": ["id"], - "onUpdate": "no action", - "onDelete": "cascade" - }, - "item_layout_layout_id_layout_id_fk": { - "name": "item_layout_layout_id_layout_id_fk", - "tableFrom": "item_layout", - "columnsFrom": ["layout_id"], - "tableTo": "layout", - "columnsTo": ["id"], - "onUpdate": "no action", - "onDelete": "cascade" - } - }, - "compositePrimaryKeys": { - "item_layout_item_id_section_id_layout_id_pk": { - "name": "item_layout_item_id_section_id_layout_id_pk", - "columns": ["item_id", "section_id", "layout_id"] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.item": { - "name": "item", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "varchar(64)", - "primaryKey": true, - "notNull": true - }, - "board_id": { - "name": "board_id", - "type": "varchar(64)", - "primaryKey": false, - "notNull": true - }, - "kind": { - "name": "kind", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "options": { - "name": "options", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'{\"json\": {}}'" - }, - "advanced_options": { - "name": "advanced_options", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'{\"json\": {}}'" - } - }, - "indexes": {}, - "foreignKeys": { - "item_board_id_board_id_fk": { - "name": "item_board_id_board_id_fk", - "tableFrom": "item", - "columnsFrom": ["board_id"], - "tableTo": "board", - "columnsTo": ["id"], - "onUpdate": "no action", - "onDelete": "cascade" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.layout": { - "name": "layout", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "varchar(64)", - "primaryKey": true, - "notNull": true - }, - "name": { - "name": "name", - "type": "varchar(32)", - "primaryKey": false, - "notNull": true - }, - "board_id": { - "name": "board_id", - "type": "varchar(64)", - "primaryKey": false, - "notNull": true - }, - "column_count": { - "name": "column_count", - "type": "smallint", - "primaryKey": false, - "notNull": true - }, - "left_gutter_column_count": { - "name": "left_gutter_column_count", - "type": "smallint", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "right_gutter_column_count": { - "name": "right_gutter_column_count", - "type": "smallint", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "breakpoint": { - "name": "breakpoint", - "type": "smallint", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "role": { - "name": "role", - "type": "varchar(16)", - "primaryKey": false, - "notNull": true, - "default": "'custom'" - } - }, - "indexes": {}, - "foreignKeys": { - "layout_board_id_board_id_fk": { - "name": "layout_board_id_board_id_fk", - "tableFrom": "layout", - "columnsFrom": ["board_id"], - "tableTo": "board", - "columnsTo": ["id"], - "onUpdate": "no action", - "onDelete": "cascade" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.custom_widget_definition": { - "name": "custom_widget_definition", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "varchar(64)", - "primaryKey": true, - "notNull": true - }, - "name": { - "name": "name", - "type": "varchar(256)", - "primaryKey": false, - "notNull": true - }, - "description": { - "name": "description", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "icon_url": { - "name": "icon_url", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "url": { - "name": "url", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "auth_type": { - "name": "auth_type", - "type": "varchar(32)", - "primaryKey": false, - "notNull": true, - "default": "'none'" - }, - "header_name": { - "name": "header_name", - "type": "varchar(256)", - "primaryKey": false, - "notNull": false - }, - "method": { - "name": "method", - "type": "varchar(16)", - "primaryKey": false, - "notNull": true, - "default": "'GET'" - }, - "request_body": { - "name": "request_body", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "display_type": { - "name": "display_type", - "type": "varchar(32)", - "primaryKey": false, - "notNull": true, - "default": "'singleValue'" - }, - "display_config": { - "name": "display_config", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'{\"json\": {}}'" - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": 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()" - }, - "creator_id": { - "name": "creator_id", - "type": "varchar(64)", - "primaryKey": false, - "notNull": false - } - }, - "indexes": {}, - "foreignKeys": { - "custom_widget_definition_creator_id_user_id_fk": { - "name": "custom_widget_definition_creator_id_user_id_fk", - "tableFrom": "custom_widget_definition", - "columnsFrom": ["creator_id"], - "tableTo": "user", - "columnsTo": ["id"], - "onUpdate": "no action", - "onDelete": "set null" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.custom_widget_secret": { - "name": "custom_widget_secret", - "schema": "", - "columns": { - "kind": { - "name": "kind", - "type": "varchar(64)", - "primaryKey": false, - "notNull": true - }, - "value": { - "name": "value", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp", - "primaryKey": false, - "notNull": true - }, - "definition_id": { - "name": "definition_id", - "type": "varchar(64)", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": { - "custom_widget_secret_definition_id_custom_widget_definition_id_fk": { - "name": "custom_widget_secret_definition_id_custom_widget_definition_id_fk", - "tableFrom": "custom_widget_secret", - "columnsFrom": ["definition_id"], - "tableTo": "custom_widget_definition", - "columnsTo": ["id"], - "onUpdate": "no action", - "onDelete": "cascade" - } - }, - "compositePrimaryKeys": { - "custom_widget_secret_definition_id_kind_pk": { - "name": "custom_widget_secret_definition_id_kind_pk", - "columns": ["definition_id", "kind"] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.media": { - "name": "media", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "varchar(64)", - "primaryKey": true, - "notNull": true - }, - "name": { - "name": "name", - "type": "varchar(512)", - "primaryKey": false, - "notNull": true - }, - "content": { - "name": "content", - "type": "bytea", - "primaryKey": false, - "notNull": true - }, - "content_type": { - "name": "content_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "size": { - "name": "size", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "creator_id": { - "name": "creator_id", - "type": "varchar(64)", - "primaryKey": false, - "notNull": false - } - }, - "indexes": {}, - "foreignKeys": { - "media_creator_id_user_id_fk": { - "name": "media_creator_id_user_id_fk", - "tableFrom": "media", - "columnsFrom": ["creator_id"], - "tableTo": "user", - "columnsTo": ["id"], - "onUpdate": "no action", - "onDelete": "set null" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.onboarding": { - "name": "onboarding", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "varchar(64)", - "primaryKey": true, - "notNull": true - }, - "step": { - "name": "step", - "type": "varchar(64)", - "primaryKey": false, - "notNull": true - }, - "previous_step": { - "name": "previous_step", - "type": "varchar(64)", - "primaryKey": false, - "notNull": false - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.search_engine": { - "name": "search_engine", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "varchar(64)", - "primaryKey": true, - "notNull": true - }, - "icon_url": { - "name": "icon_url", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "varchar(64)", - "primaryKey": false, - "notNull": true - }, - "short": { - "name": "short", - "type": "varchar(8)", - "primaryKey": false, - "notNull": true - }, - "description": { - "name": "description", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "url_template": { - "name": "url_template", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "type": { - "name": "type", - "type": "varchar(64)", - "primaryKey": false, - "notNull": true, - "default": "'generic'" - }, - "integration_id": { - "name": "integration_id", - "type": "varchar(64)", - "primaryKey": false, - "notNull": false - } - }, - "indexes": {}, - "foreignKeys": { - "search_engine_integration_id_integration_id_fk": { - "name": "search_engine_integration_id_integration_id_fk", - "tableFrom": "search_engine", - "columnsFrom": ["integration_id"], - "tableTo": "integration", - "columnsTo": ["id"], - "onUpdate": "no action", - "onDelete": "cascade" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": { - "search_engine_short_unique": { - "name": "search_engine_short_unique", - "columns": ["short"], - "nullsNotDistinct": false - } - }, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.section_collapse_state": { - "name": "section_collapse_state", - "schema": "", - "columns": { - "user_id": { - "name": "user_id", - "type": "varchar(64)", - "primaryKey": false, - "notNull": true - }, - "section_id": { - "name": "section_id", - "type": "varchar(64)", - "primaryKey": false, - "notNull": true - }, - "collapsed": { - "name": "collapsed", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - } - }, - "indexes": {}, - "foreignKeys": { - "section_collapse_state_user_id_user_id_fk": { - "name": "section_collapse_state_user_id_user_id_fk", - "tableFrom": "section_collapse_state", - "columnsFrom": ["user_id"], - "tableTo": "user", - "columnsTo": ["id"], - "onUpdate": "no action", - "onDelete": "cascade" - }, - "section_collapse_state_section_id_section_id_fk": { - "name": "section_collapse_state_section_id_section_id_fk", - "tableFrom": "section_collapse_state", - "columnsFrom": ["section_id"], - "tableTo": "section", - "columnsTo": ["id"], - "onUpdate": "no action", - "onDelete": "cascade" - } - }, - "compositePrimaryKeys": { - "section_collapse_state_user_id_section_id_pk": { - "name": "section_collapse_state_user_id_section_id_pk", - "columns": ["user_id", "section_id"] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.section_layout": { - "name": "section_layout", - "schema": "", - "columns": { - "section_id": { - "name": "section_id", - "type": "varchar(64)", - "primaryKey": false, - "notNull": true - }, - "layout_id": { - "name": "layout_id", - "type": "varchar(64)", - "primaryKey": false, - "notNull": true - }, - "parent_section_id": { - "name": "parent_section_id", - "type": "varchar(64)", - "primaryKey": false, - "notNull": false - }, - "x_offset": { - "name": "x_offset", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "y_offset": { - "name": "y_offset", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "width": { - "name": "width", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "height": { - "name": "height", - "type": "integer", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": { - "section_layout_section_id_section_id_fk": { - "name": "section_layout_section_id_section_id_fk", - "tableFrom": "section_layout", - "columnsFrom": ["section_id"], - "tableTo": "section", - "columnsTo": ["id"], - "onUpdate": "no action", - "onDelete": "cascade" - }, - "section_layout_layout_id_layout_id_fk": { - "name": "section_layout_layout_id_layout_id_fk", - "tableFrom": "section_layout", - "columnsFrom": ["layout_id"], - "tableTo": "layout", - "columnsTo": ["id"], - "onUpdate": "no action", - "onDelete": "cascade" - }, - "section_layout_parent_section_id_section_id_fk": { - "name": "section_layout_parent_section_id_section_id_fk", - "tableFrom": "section_layout", - "columnsFrom": ["parent_section_id"], - "tableTo": "section", - "columnsTo": ["id"], - "onUpdate": "no action", - "onDelete": "cascade" - } - }, - "compositePrimaryKeys": { - "section_layout_section_id_layout_id_pk": { - "name": "section_layout_section_id_layout_id_pk", - "columns": ["section_id", "layout_id"] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.section": { - "name": "section", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "varchar(64)", - "primaryKey": true, - "notNull": true - }, - "board_id": { - "name": "board_id", - "type": "varchar(64)", - "primaryKey": false, - "notNull": true - }, - "kind": { - "name": "kind", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "x_offset": { - "name": "x_offset", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "y_offset": { - "name": "y_offset", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "options": { - "name": "options", - "type": "text", - "primaryKey": false, - "notNull": false, - "default": "'{\"json\": {}}'" - } - }, - "indexes": {}, - "foreignKeys": { - "section_board_id_board_id_fk": { - "name": "section_board_id_board_id_fk", - "tableFrom": "section", - "columnsFrom": ["board_id"], - "tableTo": "board", - "columnsTo": ["id"], - "onUpdate": "no action", - "onDelete": "cascade" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.serverSetting": { - "name": "serverSetting", - "schema": "", - "columns": { - "setting_key": { - "name": "setting_key", - "type": "varchar(64)", - "primaryKey": true, - "notNull": true - }, - "value": { - "name": "value", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'{\"json\": {}}'" - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": { - "serverSetting_settingKey_unique": { - "name": "serverSetting_settingKey_unique", - "columns": ["setting_key"], - "nullsNotDistinct": false - } - }, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.session": { - "name": "session", - "schema": "", - "columns": { - "session_token": { - "name": "session_token", - "type": "varchar(512)", - "primaryKey": true, - "notNull": true - }, - "user_id": { - "name": "user_id", - "type": "varchar(64)", - "primaryKey": false, - "notNull": true - }, - "expires": { - "name": "expires", - "type": "timestamp", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "user_id_idx": { - "name": "user_id_idx", - "columns": [ - { - "expression": "user_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "with": {}, - "method": "btree", - "concurrently": false - } - }, - "foreignKeys": { - "session_user_id_user_id_fk": { - "name": "session_user_id_user_id_fk", - "tableFrom": "session", - "columnsFrom": ["user_id"], - "tableTo": "user", - "columnsTo": ["id"], - "onUpdate": "no action", - "onDelete": "cascade" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.trusted_certificate_hostname": { - "name": "trusted_certificate_hostname", - "schema": "", - "columns": { - "hostname": { - "name": "hostname", - "type": "varchar(256)", - "primaryKey": false, - "notNull": true - }, - "thumbprint": { - "name": "thumbprint", - "type": "varchar(128)", - "primaryKey": false, - "notNull": true - }, - "certificate": { - "name": "certificate", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": { - "trusted_certificate_hostname_hostname_thumbprint_pk": { - "name": "trusted_certificate_hostname_hostname_thumbprint_pk", - "columns": ["hostname", "thumbprint"] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.user": { - "name": "user", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "varchar(64)", - "primaryKey": true, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "email": { - "name": "email", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "email_verified": { - "name": "email_verified", - "type": "timestamp", - "primaryKey": false, - "notNull": false - }, - "image": { - "name": "image", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "password": { - "name": "password", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "provider": { - "name": "provider", - "type": "varchar(64)", - "primaryKey": false, - "notNull": true, - "default": "'credentials'" - }, - "home_board_id": { - "name": "home_board_id", - "type": "varchar(64)", - "primaryKey": false, - "notNull": false - }, - "mobile_home_board_id": { - "name": "mobile_home_board_id", - "type": "varchar(64)", - "primaryKey": false, - "notNull": false - }, - "default_search_engine_id": { - "name": "default_search_engine_id", - "type": "varchar(64)", - "primaryKey": false, - "notNull": false - }, - "open_search_in_new_tab": { - "name": "open_search_in_new_tab", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "ddg_bangs": { - "name": "ddg_bangs", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "color_scheme": { - "name": "color_scheme", - "type": "varchar(5)", - "primaryKey": false, - "notNull": true, - "default": "'dark'" - }, - "first_day_of_week": { - "name": "first_day_of_week", - "type": "smallint", - "primaryKey": false, - "notNull": true, - "default": 1 - }, - "ping_icons_enabled": { - "name": "ping_icons_enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "enable_right_click_on_widgets": { - "name": "enable_right_click_on_widgets", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "header_preferences": { - "name": "header_preferences", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'{\"version\":3,\"visible\":true,\"searchDisplay\":\"input\",\"zones\":{\"left\":[{\"type\":\"builtin\",\"id\":\"logo\"}],\"center\":[{\"type\":\"builtin\",\"id\":\"search\"}],\"right\":[{\"type\":\"builtin\",\"id\":\"boardEdit\"},{\"type\":\"builtin\",\"id\":\"boardSettings\"},{\"type\":\"builtin\",\"id\":\"user\"}]}}'" - }, - "completed_manage_tour": { - "name": "completed_manage_tour", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "completed_board_tour": { - "name": "completed_board_tour", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - } - }, - "indexes": {}, - "foreignKeys": { - "user_home_board_id_board_id_fk": { - "name": "user_home_board_id_board_id_fk", - "tableFrom": "user", - "columnsFrom": ["home_board_id"], - "tableTo": "board", - "columnsTo": ["id"], - "onUpdate": "no action", - "onDelete": "set null" - }, - "user_mobile_home_board_id_board_id_fk": { - "name": "user_mobile_home_board_id_board_id_fk", - "tableFrom": "user", - "columnsFrom": ["mobile_home_board_id"], - "tableTo": "board", - "columnsTo": ["id"], - "onUpdate": "no action", - "onDelete": "set null" - }, - "user_default_search_engine_id_search_engine_id_fk": { - "name": "user_default_search_engine_id_search_engine_id_fk", - "tableFrom": "user", - "columnsFrom": ["default_search_engine_id"], - "tableTo": "search_engine", - "columnsTo": ["id"], - "onUpdate": "no action", - "onDelete": "set null" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.verificationToken": { - "name": "verificationToken", - "schema": "", - "columns": { - "identifier": { - "name": "identifier", - "type": "varchar(64)", - "primaryKey": false, - "notNull": true - }, - "token": { - "name": "token", - "type": "varchar(512)", - "primaryKey": false, - "notNull": true - }, - "expires": { - "name": "expires", - "type": "timestamp", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": { - "verificationToken_identifier_token_pk": { - "name": "verificationToken_identifier_token_pk", - "columns": ["identifier", "token"] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.widget_secret": { - "name": "widget_secret", - "schema": "", - "columns": { - "item_id": { - "name": "item_id", - "type": "varchar(64)", - "primaryKey": false, - "notNull": true - }, - "kind": { - "name": "kind", - "type": "varchar(64)", - "primaryKey": false, - "notNull": true - }, - "value": { - "name": "value", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": { - "widget_secret_item_id_item_id_fk": { - "name": "widget_secret_item_id_item_id_fk", - "tableFrom": "widget_secret", - "columnsFrom": ["item_id"], - "tableTo": "item", - "columnsTo": ["id"], - "onUpdate": "no action", - "onDelete": "cascade" - } - }, - "compositePrimaryKeys": { - "widget_secret_item_id_kind_pk": { - "name": "widget_secret_item_id_kind_pk", - "columns": ["item_id", "kind"] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - } - }, - "enums": {}, - "schemas": {}, - "views": {}, - "sequences": {}, - "roles": {}, - "policies": {}, - "_meta": { - "columns": {}, - "schemas": {}, - "tables": {} - } -} diff --git a/packages/db/migrations/postgresql/meta/_journal.json b/packages/db/migrations/postgresql/meta/_journal.json index 42474bb13..ffbdc6fd2 100644 --- a/packages/db/migrations/postgresql/meta/_journal.json +++ b/packages/db/migrations/postgresql/meta/_journal.json @@ -103,15 +103,8 @@ { "idx": 14, "version": "7", - "when": 1787496042486, - "tag": "0014_add_user_header_preferences", - "breakpoints": true - }, - { - "idx": 15, - "version": "7", - "when": 1787496053659, - "tag": "0015_add_server_branding_settings", + "when": 1787556966592, + "tag": "0014_add_header_preferences_and_branding", "breakpoints": true } ] diff --git a/packages/db/migrations/sqlite/0047_add_server_branding_settings.sql b/packages/db/migrations/sqlite/0046_add_header_preferences_and_branding.sql similarity index 54% rename from packages/db/migrations/sqlite/0047_add_server_branding_settings.sql rename to packages/db/migrations/sqlite/0046_add_header_preferences_and_branding.sql index b7964edf3..24fddf138 100644 --- a/packages/db/migrations/sqlite/0047_add_server_branding_settings.sql +++ b/packages/db/migrations/sqlite/0046_add_header_preferences_and_branding.sql @@ -1,3 +1,5 @@ +ALTER TABLE `user` ADD `header_preferences` text DEFAULT '{"version":3,"visible":true,"searchDisplay":"input","zones":{"left":[{"type":"builtin","id":"logo"}],"center":[{"type":"builtin","id":"search"}],"right":[{"type":"builtin","id":"boardEdit"},{"type":"builtin","id":"boardSettings"},{"type":"builtin","id":"user"}]}}' NOT NULL; +--> statement-breakpoint INSERT INTO `serverSetting` (`setting_key`, `value`) VALUES ('branding', '{"json":{"appName":"Homarr","greeting":"","logoImageUrl":null,"faviconImageUrl":null,"primaryColor":"#fa5252","secondaryColor":"#fd7e14","lockPrimaryColor":false,"signInBackgroundImageUrl":null,"signInBackgroundOverlay":0.55,"authBranding":{"showAppName":true,"showLogo":true,"showGreeting":true},"defaultRadius":"md"}}') ON CONFLICT (`setting_key`) DO NOTHING; diff --git a/packages/db/migrations/sqlite/0046_add_user_header_preferences.sql b/packages/db/migrations/sqlite/0046_add_user_header_preferences.sql deleted file mode 100644 index a9db8f58e..000000000 --- a/packages/db/migrations/sqlite/0046_add_user_header_preferences.sql +++ /dev/null @@ -1 +0,0 @@ -ALTER TABLE `user` ADD `header_preferences` text DEFAULT '{"version":3,"visible":true,"searchDisplay":"input","zones":{"left":[{"type":"builtin","id":"logo"}],"center":[{"type":"builtin","id":"search"}],"right":[{"type":"builtin","id":"boardEdit"},{"type":"builtin","id":"boardSettings"},{"type":"builtin","id":"user"}]}}' NOT NULL; diff --git a/packages/db/migrations/sqlite/meta/0046_snapshot.json b/packages/db/migrations/sqlite/meta/0046_snapshot.json index 7397a8052..2aec9f4ca 100644 --- a/packages/db/migrations/sqlite/meta/0046_snapshot.json +++ b/packages/db/migrations/sqlite/meta/0046_snapshot.json @@ -1,7 +1,7 @@ { "version": "6", "dialect": "sqlite", - "id": "8b2aca95-c639-49e9-a3e4-e9d61432a9fe", + "id": "efc119da-0745-4f07-a783-0dd19f24cb4f", "prevId": "5114a19e-3b78-482a-a68b-69874a05ee76", "tables": { "account": { diff --git a/packages/db/migrations/sqlite/meta/0047_snapshot.json b/packages/db/migrations/sqlite/meta/0047_snapshot.json deleted file mode 100644 index c44989031..000000000 --- a/packages/db/migrations/sqlite/meta/0047_snapshot.json +++ /dev/null @@ -1,2707 +0,0 @@ -{ - "id": "7ed5db74-d195-4e56-be00-f93bb43f32ea", - "prevId": "8b2aca95-c639-49e9-a3e4-e9d61432a9fe", - "version": "6", - "dialect": "sqlite", - "tables": { - "account": { - "name": "account", - "columns": { - "user_id": { - "name": "user_id", - "type": "text", - "primaryKey": false, - "notNull": true, - "autoincrement": false - }, - "type": { - "name": "type", - "type": "text", - "primaryKey": false, - "notNull": true, - "autoincrement": false - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true, - "autoincrement": false - }, - "provider_account_id": { - "name": "provider_account_id", - "type": "text", - "primaryKey": false, - "notNull": true, - "autoincrement": false - }, - "refresh_token": { - "name": "refresh_token", - "type": "text", - "primaryKey": false, - "notNull": false, - "autoincrement": false - }, - "access_token": { - "name": "access_token", - "type": "text", - "primaryKey": false, - "notNull": false, - "autoincrement": false - }, - "expires_at": { - "name": "expires_at", - "type": "integer", - "primaryKey": false, - "notNull": false, - "autoincrement": false - }, - "token_type": { - "name": "token_type", - "type": "text", - "primaryKey": false, - "notNull": false, - "autoincrement": false - }, - "scope": { - "name": "scope", - "type": "text", - "primaryKey": false, - "notNull": false, - "autoincrement": false - }, - "id_token": { - "name": "id_token", - "type": "text", - "primaryKey": false, - "notNull": false, - "autoincrement": false - }, - "session_state": { - "name": "session_state", - "type": "text", - "primaryKey": false, - "notNull": false, - "autoincrement": false - } - }, - "indexes": { - "userId_idx": { - "name": "userId_idx", - "columns": ["user_id"], - "isUnique": false - } - }, - "foreignKeys": { - "account_user_id_user_id_fk": { - "name": "account_user_id_user_id_fk", - "tableFrom": "account", - "columnsFrom": ["user_id"], - "tableTo": "user", - "columnsTo": ["id"], - "onUpdate": "no action", - "onDelete": "cascade" - } - }, - "compositePrimaryKeys": { - "account_provider_provider_account_id_pk": { - "columns": ["provider", "provider_account_id"], - "name": "account_provider_provider_account_id_pk" - } - }, - "uniqueConstraints": {}, - "checkConstraints": {} - }, - "apiKey": { - "name": "apiKey", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true, - "autoincrement": false - }, - "api_key": { - "name": "api_key", - "type": "text", - "primaryKey": false, - "notNull": true, - "autoincrement": false - }, - "user_id": { - "name": "user_id", - "type": "text", - "primaryKey": false, - "notNull": true, - "autoincrement": false - } - }, - "indexes": {}, - "foreignKeys": { - "apiKey_user_id_user_id_fk": { - "name": "apiKey_user_id_user_id_fk", - "tableFrom": "apiKey", - "columnsFrom": ["user_id"], - "tableTo": "user", - "columnsTo": ["id"], - "onUpdate": "no action", - "onDelete": "cascade" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "checkConstraints": {} - }, - "app": { - "name": "app", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true, - "autoincrement": false - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true, - "autoincrement": false - }, - "description": { - "name": "description", - "type": "text", - "primaryKey": false, - "notNull": false, - "autoincrement": false - }, - "icon_url": { - "name": "icon_url", - "type": "text", - "primaryKey": false, - "notNull": true, - "autoincrement": false - }, - "href": { - "name": "href", - "type": "text", - "primaryKey": false, - "notNull": false, - "autoincrement": false - }, - "ping_url": { - "name": "ping_url", - "type": "text", - "primaryKey": false, - "notNull": false, - "autoincrement": false - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "checkConstraints": {} - }, - "assistant_configuration": { - "name": "assistant_configuration", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true, - "autoincrement": false, - "default": "'default'" - }, - "enabled": { - "name": "enabled", - "type": "integer", - "primaryKey": false, - "notNull": true, - "autoincrement": false, - "default": false - }, - "web_search_enabled": { - "name": "web_search_enabled", - "type": "integer", - "primaryKey": false, - "notNull": true, - "autoincrement": false, - "default": false - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true, - "autoincrement": false, - "default": "'openrouter'" - }, - "base_url": { - "name": "base_url", - "type": "text", - "primaryKey": false, - "notNull": true, - "autoincrement": false, - "default": "'https://openrouter.ai/api/v1'" - }, - "model_discovery_path": { - "name": "model_discovery_path", - "type": "text", - "primaryKey": false, - "notNull": false, - "autoincrement": false, - "default": "'/models'" - }, - "encrypted_api_key": { - "name": "encrypted_api_key", - "type": "text", - "primaryKey": false, - "notNull": false, - "autoincrement": false - }, - "encrypted_headers": { - "name": "encrypted_headers", - "type": "text", - "primaryKey": false, - "notNull": false, - "autoincrement": false - }, - "model_id": { - "name": "model_id", - "type": "text", - "primaryKey": false, - "notNull": false, - "autoincrement": false - }, - "updated_at": { - "name": "updated_at", - "type": "integer", - "primaryKey": false, - "notNull": true, - "autoincrement": false, - "default": "(unixepoch())" - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "checkConstraints": {} - }, - "assistant_message": { - "name": "assistant_message", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true, - "autoincrement": false - }, - "thread_id": { - "name": "thread_id", - "type": "text", - "primaryKey": false, - "notNull": true, - "autoincrement": false - }, - "parent_id": { - "name": "parent_id", - "type": "text", - "primaryKey": false, - "notNull": false, - "autoincrement": false - }, - "format": { - "name": "format", - "type": "text", - "primaryKey": false, - "notNull": true, - "autoincrement": false, - "default": "'ai-sdk/v6'" - }, - "content": { - "name": "content", - "type": "text", - "primaryKey": false, - "notNull": true, - "autoincrement": false - }, - "created_at": { - "name": "created_at", - "type": "integer", - "primaryKey": false, - "notNull": true, - "autoincrement": false, - "default": "(unixepoch())" - } - }, - "indexes": { - "assistant_message__thread_id_created_at_idx": { - "name": "assistant_message__thread_id_created_at_idx", - "columns": ["thread_id", "created_at"], - "isUnique": false - } - }, - "foreignKeys": { - "assistant_message_thread_id_assistant_thread_id_fk": { - "name": "assistant_message_thread_id_assistant_thread_id_fk", - "tableFrom": "assistant_message", - "columnsFrom": ["thread_id"], - "tableTo": "assistant_thread", - "columnsTo": ["id"], - "onUpdate": "no action", - "onDelete": "cascade" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "checkConstraints": {} - }, - "assistant_thread": { - "name": "assistant_thread", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true, - "autoincrement": false - }, - "user_id": { - "name": "user_id", - "type": "text", - "primaryKey": false, - "notNull": true, - "autoincrement": false - }, - "title": { - "name": "title", - "type": "text", - "primaryKey": false, - "notNull": false, - "autoincrement": false - }, - "model_id": { - "name": "model_id", - "type": "text", - "primaryKey": false, - "notNull": false, - "autoincrement": false - }, - "created_at": { - "name": "created_at", - "type": "integer", - "primaryKey": false, - "notNull": true, - "autoincrement": false, - "default": "(unixepoch())" - }, - "updated_at": { - "name": "updated_at", - "type": "integer", - "primaryKey": false, - "notNull": true, - "autoincrement": false, - "default": "(unixepoch())" - } - }, - "indexes": { - "assistant_thread__user_id_updated_at_idx": { - "name": "assistant_thread__user_id_updated_at_idx", - "columns": ["user_id", "updated_at"], - "isUnique": false - } - }, - "foreignKeys": { - "assistant_thread_user_id_user_id_fk": { - "name": "assistant_thread_user_id_user_id_fk", - "tableFrom": "assistant_thread", - "columnsFrom": ["user_id"], - "tableTo": "user", - "columnsTo": ["id"], - "onUpdate": "no action", - "onDelete": "cascade" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "checkConstraints": {} - }, - "boardGroupPermission": { - "name": "boardGroupPermission", - "columns": { - "board_id": { - "name": "board_id", - "type": "text", - "primaryKey": false, - "notNull": true, - "autoincrement": false - }, - "group_id": { - "name": "group_id", - "type": "text", - "primaryKey": false, - "notNull": true, - "autoincrement": false - }, - "permission": { - "name": "permission", - "type": "text", - "primaryKey": false, - "notNull": true, - "autoincrement": false - } - }, - "indexes": {}, - "foreignKeys": { - "boardGroupPermission_board_id_board_id_fk": { - "name": "boardGroupPermission_board_id_board_id_fk", - "tableFrom": "boardGroupPermission", - "columnsFrom": ["board_id"], - "tableTo": "board", - "columnsTo": ["id"], - "onUpdate": "no action", - "onDelete": "cascade" - }, - "boardGroupPermission_group_id_group_id_fk": { - "name": "boardGroupPermission_group_id_group_id_fk", - "tableFrom": "boardGroupPermission", - "columnsFrom": ["group_id"], - "tableTo": "group", - "columnsTo": ["id"], - "onUpdate": "no action", - "onDelete": "cascade" - } - }, - "compositePrimaryKeys": { - "boardGroupPermission_board_id_group_id_permission_pk": { - "columns": ["board_id", "group_id", "permission"], - "name": "boardGroupPermission_board_id_group_id_permission_pk" - } - }, - "uniqueConstraints": {}, - "checkConstraints": {} - }, - "boardUserPermission": { - "name": "boardUserPermission", - "columns": { - "board_id": { - "name": "board_id", - "type": "text", - "primaryKey": false, - "notNull": true, - "autoincrement": false - }, - "user_id": { - "name": "user_id", - "type": "text", - "primaryKey": false, - "notNull": true, - "autoincrement": false - }, - "permission": { - "name": "permission", - "type": "text", - "primaryKey": false, - "notNull": true, - "autoincrement": false - } - }, - "indexes": {}, - "foreignKeys": { - "boardUserPermission_board_id_board_id_fk": { - "name": "boardUserPermission_board_id_board_id_fk", - "tableFrom": "boardUserPermission", - "columnsFrom": ["board_id"], - "tableTo": "board", - "columnsTo": ["id"], - "onUpdate": "no action", - "onDelete": "cascade" - }, - "boardUserPermission_user_id_user_id_fk": { - "name": "boardUserPermission_user_id_user_id_fk", - "tableFrom": "boardUserPermission", - "columnsFrom": ["user_id"], - "tableTo": "user", - "columnsTo": ["id"], - "onUpdate": "no action", - "onDelete": "cascade" - } - }, - "compositePrimaryKeys": { - "boardUserPermission_board_id_user_id_permission_pk": { - "columns": ["board_id", "user_id", "permission"], - "name": "boardUserPermission_board_id_user_id_permission_pk" - } - }, - "uniqueConstraints": {}, - "checkConstraints": {} - }, - "board": { - "name": "board", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true, - "autoincrement": false - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true, - "autoincrement": false - }, - "is_public": { - "name": "is_public", - "type": "integer", - "primaryKey": false, - "notNull": true, - "autoincrement": false, - "default": false - }, - "creator_id": { - "name": "creator_id", - "type": "text", - "primaryKey": false, - "notNull": false, - "autoincrement": false - }, - "page_title": { - "name": "page_title", - "type": "text", - "primaryKey": false, - "notNull": false, - "autoincrement": false - }, - "meta_title": { - "name": "meta_title", - "type": "text", - "primaryKey": false, - "notNull": false, - "autoincrement": false - }, - "logo_image_url": { - "name": "logo_image_url", - "type": "text", - "primaryKey": false, - "notNull": false, - "autoincrement": false - }, - "favicon_image_url": { - "name": "favicon_image_url", - "type": "text", - "primaryKey": false, - "notNull": false, - "autoincrement": false - }, - "background_image_url": { - "name": "background_image_url", - "type": "text", - "primaryKey": false, - "notNull": false, - "autoincrement": false - }, - "background_image_attachment": { - "name": "background_image_attachment", - "type": "text", - "primaryKey": false, - "notNull": true, - "autoincrement": false, - "default": "'fixed'" - }, - "background_image_repeat": { - "name": "background_image_repeat", - "type": "text", - "primaryKey": false, - "notNull": true, - "autoincrement": false, - "default": "'no-repeat'" - }, - "background_image_size": { - "name": "background_image_size", - "type": "text", - "primaryKey": false, - "notNull": true, - "autoincrement": false, - "default": "'cover'" - }, - "primary_color": { - "name": "primary_color", - "type": "text", - "primaryKey": false, - "notNull": true, - "autoincrement": false, - "default": "'#fa5252'" - }, - "secondary_color": { - "name": "secondary_color", - "type": "text", - "primaryKey": false, - "notNull": true, - "autoincrement": false, - "default": "'#fd7e14'" - }, - "opacity": { - "name": "opacity", - "type": "integer", - "primaryKey": false, - "notNull": true, - "autoincrement": false, - "default": 100 - }, - "custom_css": { - "name": "custom_css", - "type": "text", - "primaryKey": false, - "notNull": false, - "autoincrement": false - }, - "icon_color": { - "name": "icon_color", - "type": "text", - "primaryKey": false, - "notNull": false, - "autoincrement": false - }, - "item_radius": { - "name": "item_radius", - "type": "text", - "primaryKey": false, - "notNull": true, - "autoincrement": false, - "default": "'lg'" - }, - "disable_status": { - "name": "disable_status", - "type": "integer", - "primaryKey": false, - "notNull": true, - "autoincrement": false, - "default": false - } - }, - "indexes": { - "board_name_unique": { - "name": "board_name_unique", - "columns": ["name"], - "isUnique": true - } - }, - "foreignKeys": { - "board_creator_id_user_id_fk": { - "name": "board_creator_id_user_id_fk", - "tableFrom": "board", - "columnsFrom": ["creator_id"], - "tableTo": "user", - "columnsTo": ["id"], - "onUpdate": "no action", - "onDelete": "set null" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "checkConstraints": {} - }, - "cron_job_configuration": { - "name": "cron_job_configuration", - "columns": { - "name": { - "name": "name", - "type": "text", - "primaryKey": true, - "notNull": true, - "autoincrement": false - }, - "cron_expression": { - "name": "cron_expression", - "type": "text", - "primaryKey": false, - "notNull": true, - "autoincrement": false - }, - "is_enabled": { - "name": "is_enabled", - "type": "integer", - "primaryKey": false, - "notNull": true, - "autoincrement": false, - "default": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "checkConstraints": {} - }, - "custom_widget_v2_definition": { - "name": "custom_widget_v2_definition", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true, - "autoincrement": false - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true, - "autoincrement": false - }, - "description": { - "name": "description", - "type": "text", - "primaryKey": false, - "notNull": false, - "autoincrement": false - }, - "icon_url": { - "name": "icon_url", - "type": "text", - "primaryKey": false, - "notNull": false, - "autoincrement": false - }, - "sources": { - "name": "sources", - "type": "text", - "primaryKey": false, - "notNull": true, - "autoincrement": false - }, - "requests": { - "name": "requests", - "type": "text", - "primaryKey": false, - "notNull": true, - "autoincrement": false - }, - "options": { - "name": "options", - "type": "text", - "primaryKey": false, - "notNull": true, - "autoincrement": false - }, - "template": { - "name": "template", - "type": "text", - "primaryKey": false, - "notNull": true, - "autoincrement": false - }, - "enabled": { - "name": "enabled", - "type": "integer", - "primaryKey": false, - "notNull": true, - "autoincrement": false, - "default": true - }, - "created_at": { - "name": "created_at", - "type": "integer", - "primaryKey": false, - "notNull": true, - "autoincrement": false, - "default": "(unixepoch())" - }, - "updated_at": { - "name": "updated_at", - "type": "integer", - "primaryKey": false, - "notNull": true, - "autoincrement": false, - "default": "(unixepoch())" - }, - "creator_id": { - "name": "creator_id", - "type": "text", - "primaryKey": false, - "notNull": false, - "autoincrement": false - } - }, - "indexes": {}, - "foreignKeys": { - "custom_widget_v2_definition_creator_id_user_id_fk": { - "name": "custom_widget_v2_definition_creator_id_user_id_fk", - "tableFrom": "custom_widget_v2_definition", - "columnsFrom": ["creator_id"], - "tableTo": "user", - "columnsTo": ["id"], - "onUpdate": "no action", - "onDelete": "set null" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "checkConstraints": {} - }, - "custom_widget_v2_secret": { - "name": "custom_widget_v2_secret", - "columns": { - "source_id": { - "name": "source_id", - "type": "text", - "primaryKey": false, - "notNull": true, - "autoincrement": false - }, - "kind": { - "name": "kind", - "type": "text", - "primaryKey": false, - "notNull": true, - "autoincrement": false - }, - "encrypted_value": { - "name": "encrypted_value", - "type": "text", - "primaryKey": false, - "notNull": true, - "autoincrement": false - }, - "updated_at": { - "name": "updated_at", - "type": "integer", - "primaryKey": false, - "notNull": true, - "autoincrement": false - }, - "definition_id": { - "name": "definition_id", - "type": "text", - "primaryKey": false, - "notNull": true, - "autoincrement": false - } - }, - "indexes": {}, - "foreignKeys": { - "custom_widget_v2_secret_definition_id_fk": { - "name": "custom_widget_v2_secret_definition_id_fk", - "tableFrom": "custom_widget_v2_secret", - "columnsFrom": ["definition_id"], - "tableTo": "custom_widget_v2_definition", - "columnsTo": ["id"], - "onUpdate": "no action", - "onDelete": "cascade" - } - }, - "compositePrimaryKeys": { - "custom_widget_v2_secret_definition_id_source_id_kind_pk": { - "columns": ["definition_id", "source_id", "kind"], - "name": "custom_widget_v2_secret_definition_id_source_id_kind_pk" - } - }, - "uniqueConstraints": {}, - "checkConstraints": {} - }, - "groupMember": { - "name": "groupMember", - "columns": { - "group_id": { - "name": "group_id", - "type": "text", - "primaryKey": false, - "notNull": true, - "autoincrement": false - }, - "user_id": { - "name": "user_id", - "type": "text", - "primaryKey": false, - "notNull": true, - "autoincrement": false - } - }, - "indexes": {}, - "foreignKeys": { - "groupMember_group_id_group_id_fk": { - "name": "groupMember_group_id_group_id_fk", - "tableFrom": "groupMember", - "columnsFrom": ["group_id"], - "tableTo": "group", - "columnsTo": ["id"], - "onUpdate": "no action", - "onDelete": "cascade" - }, - "groupMember_user_id_user_id_fk": { - "name": "groupMember_user_id_user_id_fk", - "tableFrom": "groupMember", - "columnsFrom": ["user_id"], - "tableTo": "user", - "columnsTo": ["id"], - "onUpdate": "no action", - "onDelete": "cascade" - } - }, - "compositePrimaryKeys": { - "groupMember_group_id_user_id_pk": { - "columns": ["group_id", "user_id"], - "name": "groupMember_group_id_user_id_pk" - } - }, - "uniqueConstraints": {}, - "checkConstraints": {} - }, - "groupPermission": { - "name": "groupPermission", - "columns": { - "group_id": { - "name": "group_id", - "type": "text", - "primaryKey": false, - "notNull": true, - "autoincrement": false - }, - "permission": { - "name": "permission", - "type": "text", - "primaryKey": false, - "notNull": true, - "autoincrement": false - } - }, - "indexes": {}, - "foreignKeys": { - "groupPermission_group_id_group_id_fk": { - "name": "groupPermission_group_id_group_id_fk", - "tableFrom": "groupPermission", - "columnsFrom": ["group_id"], - "tableTo": "group", - "columnsTo": ["id"], - "onUpdate": "no action", - "onDelete": "cascade" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "checkConstraints": {} - }, - "group": { - "name": "group", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true, - "autoincrement": false - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true, - "autoincrement": false - }, - "owner_id": { - "name": "owner_id", - "type": "text", - "primaryKey": false, - "notNull": false, - "autoincrement": false - }, - "home_board_id": { - "name": "home_board_id", - "type": "text", - "primaryKey": false, - "notNull": false, - "autoincrement": false - }, - "mobile_home_board_id": { - "name": "mobile_home_board_id", - "type": "text", - "primaryKey": false, - "notNull": false, - "autoincrement": false - }, - "position": { - "name": "position", - "type": "integer", - "primaryKey": false, - "notNull": true, - "autoincrement": false - } - }, - "indexes": { - "group_name_unique": { - "name": "group_name_unique", - "columns": ["name"], - "isUnique": true - } - }, - "foreignKeys": { - "group_owner_id_user_id_fk": { - "name": "group_owner_id_user_id_fk", - "tableFrom": "group", - "columnsFrom": ["owner_id"], - "tableTo": "user", - "columnsTo": ["id"], - "onUpdate": "no action", - "onDelete": "set null" - }, - "group_home_board_id_board_id_fk": { - "name": "group_home_board_id_board_id_fk", - "tableFrom": "group", - "columnsFrom": ["home_board_id"], - "tableTo": "board", - "columnsTo": ["id"], - "onUpdate": "no action", - "onDelete": "set null" - }, - "group_mobile_home_board_id_board_id_fk": { - "name": "group_mobile_home_board_id_board_id_fk", - "tableFrom": "group", - "columnsFrom": ["mobile_home_board_id"], - "tableTo": "board", - "columnsTo": ["id"], - "onUpdate": "no action", - "onDelete": "set null" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "checkConstraints": {} - }, - "iconRepository": { - "name": "iconRepository", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true, - "autoincrement": false - }, - "slug": { - "name": "slug", - "type": "text", - "primaryKey": false, - "notNull": true, - "autoincrement": false - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "checkConstraints": {} - }, - "icon": { - "name": "icon", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true, - "autoincrement": false - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true, - "autoincrement": false - }, - "url": { - "name": "url", - "type": "text", - "primaryKey": false, - "notNull": true, - "autoincrement": false - }, - "checksum": { - "name": "checksum", - "type": "text", - "primaryKey": false, - "notNull": true, - "autoincrement": false - }, - "icon_repository_id": { - "name": "icon_repository_id", - "type": "text", - "primaryKey": false, - "notNull": true, - "autoincrement": false - } - }, - "indexes": {}, - "foreignKeys": { - "icon_icon_repository_id_iconRepository_id_fk": { - "name": "icon_icon_repository_id_iconRepository_id_fk", - "tableFrom": "icon", - "columnsFrom": ["icon_repository_id"], - "tableTo": "iconRepository", - "columnsTo": ["id"], - "onUpdate": "no action", - "onDelete": "cascade" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "checkConstraints": {} - }, - "integrationGroupPermissions": { - "name": "integrationGroupPermissions", - "columns": { - "integration_id": { - "name": "integration_id", - "type": "text", - "primaryKey": false, - "notNull": true, - "autoincrement": false - }, - "group_id": { - "name": "group_id", - "type": "text", - "primaryKey": false, - "notNull": true, - "autoincrement": false - }, - "permission": { - "name": "permission", - "type": "text", - "primaryKey": false, - "notNull": true, - "autoincrement": false - } - }, - "indexes": {}, - "foreignKeys": { - "integrationGroupPermissions_integration_id_integration_id_fk": { - "name": "integrationGroupPermissions_integration_id_integration_id_fk", - "tableFrom": "integrationGroupPermissions", - "columnsFrom": ["integration_id"], - "tableTo": "integration", - "columnsTo": ["id"], - "onUpdate": "no action", - "onDelete": "cascade" - }, - "integrationGroupPermissions_group_id_group_id_fk": { - "name": "integrationGroupPermissions_group_id_group_id_fk", - "tableFrom": "integrationGroupPermissions", - "columnsFrom": ["group_id"], - "tableTo": "group", - "columnsTo": ["id"], - "onUpdate": "no action", - "onDelete": "cascade" - } - }, - "compositePrimaryKeys": { - "integrationGroupPermissions_integration_id_group_id_permission_pk": { - "columns": ["integration_id", "group_id", "permission"], - "name": "integrationGroupPermissions_integration_id_group_id_permission_pk" - } - }, - "uniqueConstraints": {}, - "checkConstraints": {} - }, - "integration_item": { - "name": "integration_item", - "columns": { - "item_id": { - "name": "item_id", - "type": "text", - "primaryKey": false, - "notNull": true, - "autoincrement": false - }, - "integration_id": { - "name": "integration_id", - "type": "text", - "primaryKey": false, - "notNull": true, - "autoincrement": false - } - }, - "indexes": {}, - "foreignKeys": { - "integration_item_item_id_item_id_fk": { - "name": "integration_item_item_id_item_id_fk", - "tableFrom": "integration_item", - "columnsFrom": ["item_id"], - "tableTo": "item", - "columnsTo": ["id"], - "onUpdate": "no action", - "onDelete": "cascade" - }, - "integration_item_integration_id_integration_id_fk": { - "name": "integration_item_integration_id_integration_id_fk", - "tableFrom": "integration_item", - "columnsFrom": ["integration_id"], - "tableTo": "integration", - "columnsTo": ["id"], - "onUpdate": "no action", - "onDelete": "cascade" - } - }, - "compositePrimaryKeys": { - "integration_item_item_id_integration_id_pk": { - "columns": ["item_id", "integration_id"], - "name": "integration_item_item_id_integration_id_pk" - } - }, - "uniqueConstraints": {}, - "checkConstraints": {} - }, - "integrationSecret": { - "name": "integrationSecret", - "columns": { - "kind": { - "name": "kind", - "type": "text", - "primaryKey": false, - "notNull": true, - "autoincrement": false - }, - "value": { - "name": "value", - "type": "text", - "primaryKey": false, - "notNull": true, - "autoincrement": false - }, - "updated_at": { - "name": "updated_at", - "type": "integer", - "primaryKey": false, - "notNull": true, - "autoincrement": false - }, - "integration_id": { - "name": "integration_id", - "type": "text", - "primaryKey": false, - "notNull": true, - "autoincrement": false - } - }, - "indexes": { - "integration_secret__kind_idx": { - "name": "integration_secret__kind_idx", - "columns": ["kind"], - "isUnique": false - }, - "integration_secret__updated_at_idx": { - "name": "integration_secret__updated_at_idx", - "columns": ["updated_at"], - "isUnique": false - } - }, - "foreignKeys": { - "integrationSecret_integration_id_integration_id_fk": { - "name": "integrationSecret_integration_id_integration_id_fk", - "tableFrom": "integrationSecret", - "columnsFrom": ["integration_id"], - "tableTo": "integration", - "columnsTo": ["id"], - "onUpdate": "no action", - "onDelete": "cascade" - } - }, - "compositePrimaryKeys": { - "integrationSecret_integration_id_kind_pk": { - "columns": ["integration_id", "kind"], - "name": "integrationSecret_integration_id_kind_pk" - } - }, - "uniqueConstraints": {}, - "checkConstraints": {} - }, - "integrationUserPermission": { - "name": "integrationUserPermission", - "columns": { - "integration_id": { - "name": "integration_id", - "type": "text", - "primaryKey": false, - "notNull": true, - "autoincrement": false - }, - "user_id": { - "name": "user_id", - "type": "text", - "primaryKey": false, - "notNull": true, - "autoincrement": false - }, - "permission": { - "name": "permission", - "type": "text", - "primaryKey": false, - "notNull": true, - "autoincrement": false - } - }, - "indexes": {}, - "foreignKeys": { - "integrationUserPermission_integration_id_integration_id_fk": { - "name": "integrationUserPermission_integration_id_integration_id_fk", - "tableFrom": "integrationUserPermission", - "columnsFrom": ["integration_id"], - "tableTo": "integration", - "columnsTo": ["id"], - "onUpdate": "no action", - "onDelete": "cascade" - }, - "integrationUserPermission_user_id_user_id_fk": { - "name": "integrationUserPermission_user_id_user_id_fk", - "tableFrom": "integrationUserPermission", - "columnsFrom": ["user_id"], - "tableTo": "user", - "columnsTo": ["id"], - "onUpdate": "no action", - "onDelete": "cascade" - } - }, - "compositePrimaryKeys": { - "integrationUserPermission_integration_id_user_id_permission_pk": { - "columns": ["integration_id", "user_id", "permission"], - "name": "integrationUserPermission_integration_id_user_id_permission_pk" - } - }, - "uniqueConstraints": {}, - "checkConstraints": {} - }, - "integration": { - "name": "integration", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true, - "autoincrement": false - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true, - "autoincrement": false - }, - "url": { - "name": "url", - "type": "text", - "primaryKey": false, - "notNull": true, - "autoincrement": false - }, - "kind": { - "name": "kind", - "type": "text", - "primaryKey": false, - "notNull": true, - "autoincrement": false - }, - "app_id": { - "name": "app_id", - "type": "text", - "primaryKey": false, - "notNull": false, - "autoincrement": false - } - }, - "indexes": { - "integration__kind_idx": { - "name": "integration__kind_idx", - "columns": ["kind"], - "isUnique": false - } - }, - "foreignKeys": { - "integration_app_id_app_id_fk": { - "name": "integration_app_id_app_id_fk", - "tableFrom": "integration", - "columnsFrom": ["app_id"], - "tableTo": "app", - "columnsTo": ["id"], - "onUpdate": "no action", - "onDelete": "set null" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "checkConstraints": {} - }, - "invite": { - "name": "invite", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true, - "autoincrement": false - }, - "token": { - "name": "token", - "type": "text", - "primaryKey": false, - "notNull": true, - "autoincrement": false - }, - "expiration_date": { - "name": "expiration_date", - "type": "integer", - "primaryKey": false, - "notNull": true, - "autoincrement": false - }, - "creator_id": { - "name": "creator_id", - "type": "text", - "primaryKey": false, - "notNull": true, - "autoincrement": false - } - }, - "indexes": { - "invite_token_unique": { - "name": "invite_token_unique", - "columns": ["token"], - "isUnique": true - } - }, - "foreignKeys": { - "invite_creator_id_user_id_fk": { - "name": "invite_creator_id_user_id_fk", - "tableFrom": "invite", - "columnsFrom": ["creator_id"], - "tableTo": "user", - "columnsTo": ["id"], - "onUpdate": "no action", - "onDelete": "cascade" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "checkConstraints": {} - }, - "item_layout": { - "name": "item_layout", - "columns": { - "item_id": { - "name": "item_id", - "type": "text", - "primaryKey": false, - "notNull": true, - "autoincrement": false - }, - "section_id": { - "name": "section_id", - "type": "text", - "primaryKey": false, - "notNull": true, - "autoincrement": false - }, - "layout_id": { - "name": "layout_id", - "type": "text", - "primaryKey": false, - "notNull": true, - "autoincrement": false - }, - "x_offset": { - "name": "x_offset", - "type": "integer", - "primaryKey": false, - "notNull": true, - "autoincrement": false - }, - "y_offset": { - "name": "y_offset", - "type": "integer", - "primaryKey": false, - "notNull": true, - "autoincrement": false - }, - "width": { - "name": "width", - "type": "integer", - "primaryKey": false, - "notNull": true, - "autoincrement": false - }, - "height": { - "name": "height", - "type": "integer", - "primaryKey": false, - "notNull": true, - "autoincrement": false - } - }, - "indexes": {}, - "foreignKeys": { - "item_layout_item_id_item_id_fk": { - "name": "item_layout_item_id_item_id_fk", - "tableFrom": "item_layout", - "columnsFrom": ["item_id"], - "tableTo": "item", - "columnsTo": ["id"], - "onUpdate": "no action", - "onDelete": "cascade" - }, - "item_layout_section_id_section_id_fk": { - "name": "item_layout_section_id_section_id_fk", - "tableFrom": "item_layout", - "columnsFrom": ["section_id"], - "tableTo": "section", - "columnsTo": ["id"], - "onUpdate": "no action", - "onDelete": "cascade" - }, - "item_layout_layout_id_layout_id_fk": { - "name": "item_layout_layout_id_layout_id_fk", - "tableFrom": "item_layout", - "columnsFrom": ["layout_id"], - "tableTo": "layout", - "columnsTo": ["id"], - "onUpdate": "no action", - "onDelete": "cascade" - } - }, - "compositePrimaryKeys": { - "item_layout_item_id_section_id_layout_id_pk": { - "columns": ["item_id", "section_id", "layout_id"], - "name": "item_layout_item_id_section_id_layout_id_pk" - } - }, - "uniqueConstraints": {}, - "checkConstraints": {} - }, - "item": { - "name": "item", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true, - "autoincrement": false - }, - "board_id": { - "name": "board_id", - "type": "text", - "primaryKey": false, - "notNull": true, - "autoincrement": false - }, - "kind": { - "name": "kind", - "type": "text", - "primaryKey": false, - "notNull": true, - "autoincrement": false - }, - "options": { - "name": "options", - "type": "text", - "primaryKey": false, - "notNull": true, - "autoincrement": false, - "default": "'{\"json\": {}}'" - }, - "advanced_options": { - "name": "advanced_options", - "type": "text", - "primaryKey": false, - "notNull": true, - "autoincrement": false, - "default": "'{\"json\": {}}'" - } - }, - "indexes": {}, - "foreignKeys": { - "item_board_id_board_id_fk": { - "name": "item_board_id_board_id_fk", - "tableFrom": "item", - "columnsFrom": ["board_id"], - "tableTo": "board", - "columnsTo": ["id"], - "onUpdate": "no action", - "onDelete": "cascade" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "checkConstraints": {} - }, - "layout": { - "name": "layout", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true, - "autoincrement": false - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true, - "autoincrement": false - }, - "board_id": { - "name": "board_id", - "type": "text", - "primaryKey": false, - "notNull": true, - "autoincrement": false - }, - "column_count": { - "name": "column_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "autoincrement": false - }, - "left_gutter_column_count": { - "name": "left_gutter_column_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "autoincrement": false, - "default": 0 - }, - "right_gutter_column_count": { - "name": "right_gutter_column_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "autoincrement": false, - "default": 0 - }, - "breakpoint": { - "name": "breakpoint", - "type": "integer", - "primaryKey": false, - "notNull": true, - "autoincrement": false, - "default": 0 - }, - "role": { - "name": "role", - "type": "text", - "primaryKey": false, - "notNull": true, - "autoincrement": false, - "default": "'custom'" - } - }, - "indexes": {}, - "foreignKeys": { - "layout_board_id_board_id_fk": { - "name": "layout_board_id_board_id_fk", - "tableFrom": "layout", - "columnsFrom": ["board_id"], - "tableTo": "board", - "columnsTo": ["id"], - "onUpdate": "no action", - "onDelete": "cascade" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "checkConstraints": {} - }, - "custom_widget_definition": { - "name": "custom_widget_definition", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true, - "autoincrement": false - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true, - "autoincrement": false - }, - "description": { - "name": "description", - "type": "text", - "primaryKey": false, - "notNull": false, - "autoincrement": false - }, - "icon_url": { - "name": "icon_url", - "type": "text", - "primaryKey": false, - "notNull": false, - "autoincrement": false - }, - "url": { - "name": "url", - "type": "text", - "primaryKey": false, - "notNull": true, - "autoincrement": false - }, - "auth_type": { - "name": "auth_type", - "type": "text", - "primaryKey": false, - "notNull": true, - "autoincrement": false, - "default": "'none'" - }, - "header_name": { - "name": "header_name", - "type": "text", - "primaryKey": false, - "notNull": false, - "autoincrement": false - }, - "method": { - "name": "method", - "type": "text", - "primaryKey": false, - "notNull": true, - "autoincrement": false, - "default": "'GET'" - }, - "request_body": { - "name": "request_body", - "type": "text", - "primaryKey": false, - "notNull": false, - "autoincrement": false - }, - "display_type": { - "name": "display_type", - "type": "text", - "primaryKey": false, - "notNull": true, - "autoincrement": false, - "default": "'singleValue'" - }, - "display_config": { - "name": "display_config", - "type": "text", - "primaryKey": false, - "notNull": true, - "autoincrement": false, - "default": "'{\"json\": {}}'" - }, - "enabled": { - "name": "enabled", - "type": "integer", - "primaryKey": false, - "notNull": true, - "autoincrement": false, - "default": true - }, - "created_at": { - "name": "created_at", - "type": "integer", - "primaryKey": false, - "notNull": true, - "autoincrement": false, - "default": "(unixepoch())" - }, - "updated_at": { - "name": "updated_at", - "type": "integer", - "primaryKey": false, - "notNull": true, - "autoincrement": false, - "default": "(unixepoch())" - }, - "creator_id": { - "name": "creator_id", - "type": "text", - "primaryKey": false, - "notNull": false, - "autoincrement": false - } - }, - "indexes": {}, - "foreignKeys": { - "custom_widget_definition_creator_id_user_id_fk": { - "name": "custom_widget_definition_creator_id_user_id_fk", - "tableFrom": "custom_widget_definition", - "columnsFrom": ["creator_id"], - "tableTo": "user", - "columnsTo": ["id"], - "onUpdate": "no action", - "onDelete": "set null" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "checkConstraints": {} - }, - "custom_widget_secret": { - "name": "custom_widget_secret", - "columns": { - "kind": { - "name": "kind", - "type": "text", - "primaryKey": false, - "notNull": true, - "autoincrement": false - }, - "value": { - "name": "value", - "type": "text", - "primaryKey": false, - "notNull": true, - "autoincrement": false - }, - "updated_at": { - "name": "updated_at", - "type": "integer", - "primaryKey": false, - "notNull": true, - "autoincrement": false - }, - "definition_id": { - "name": "definition_id", - "type": "text", - "primaryKey": false, - "notNull": true, - "autoincrement": false - } - }, - "indexes": {}, - "foreignKeys": { - "custom_widget_secret_definition_id_custom_widget_definition_id_fk": { - "name": "custom_widget_secret_definition_id_custom_widget_definition_id_fk", - "tableFrom": "custom_widget_secret", - "columnsFrom": ["definition_id"], - "tableTo": "custom_widget_definition", - "columnsTo": ["id"], - "onUpdate": "no action", - "onDelete": "cascade" - } - }, - "compositePrimaryKeys": { - "custom_widget_secret_definition_id_kind_pk": { - "columns": ["definition_id", "kind"], - "name": "custom_widget_secret_definition_id_kind_pk" - } - }, - "uniqueConstraints": {}, - "checkConstraints": {} - }, - "media": { - "name": "media", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true, - "autoincrement": false - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true, - "autoincrement": false - }, - "content": { - "name": "content", - "type": "blob", - "primaryKey": false, - "notNull": true, - "autoincrement": false - }, - "content_type": { - "name": "content_type", - "type": "text", - "primaryKey": false, - "notNull": true, - "autoincrement": false - }, - "size": { - "name": "size", - "type": "integer", - "primaryKey": false, - "notNull": true, - "autoincrement": false - }, - "created_at": { - "name": "created_at", - "type": "integer", - "primaryKey": false, - "notNull": true, - "autoincrement": false, - "default": "(unixepoch())" - }, - "creator_id": { - "name": "creator_id", - "type": "text", - "primaryKey": false, - "notNull": false, - "autoincrement": false - } - }, - "indexes": {}, - "foreignKeys": { - "media_creator_id_user_id_fk": { - "name": "media_creator_id_user_id_fk", - "tableFrom": "media", - "columnsFrom": ["creator_id"], - "tableTo": "user", - "columnsTo": ["id"], - "onUpdate": "no action", - "onDelete": "set null" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "checkConstraints": {} - }, - "onboarding": { - "name": "onboarding", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true, - "autoincrement": false - }, - "step": { - "name": "step", - "type": "text", - "primaryKey": false, - "notNull": true, - "autoincrement": false - }, - "previous_step": { - "name": "previous_step", - "type": "text", - "primaryKey": false, - "notNull": false, - "autoincrement": false - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "checkConstraints": {} - }, - "search_engine": { - "name": "search_engine", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true, - "autoincrement": false - }, - "icon_url": { - "name": "icon_url", - "type": "text", - "primaryKey": false, - "notNull": true, - "autoincrement": false - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true, - "autoincrement": false - }, - "short": { - "name": "short", - "type": "text", - "primaryKey": false, - "notNull": true, - "autoincrement": false - }, - "description": { - "name": "description", - "type": "text", - "primaryKey": false, - "notNull": false, - "autoincrement": false - }, - "url_template": { - "name": "url_template", - "type": "text", - "primaryKey": false, - "notNull": false, - "autoincrement": false - }, - "type": { - "name": "type", - "type": "text", - "primaryKey": false, - "notNull": true, - "autoincrement": false, - "default": "'generic'" - }, - "integration_id": { - "name": "integration_id", - "type": "text", - "primaryKey": false, - "notNull": false, - "autoincrement": false - } - }, - "indexes": { - "search_engine_short_unique": { - "name": "search_engine_short_unique", - "columns": ["short"], - "isUnique": true - } - }, - "foreignKeys": { - "search_engine_integration_id_integration_id_fk": { - "name": "search_engine_integration_id_integration_id_fk", - "tableFrom": "search_engine", - "columnsFrom": ["integration_id"], - "tableTo": "integration", - "columnsTo": ["id"], - "onUpdate": "no action", - "onDelete": "cascade" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "checkConstraints": {} - }, - "section_collapse_state": { - "name": "section_collapse_state", - "columns": { - "user_id": { - "name": "user_id", - "type": "text", - "primaryKey": false, - "notNull": true, - "autoincrement": false - }, - "section_id": { - "name": "section_id", - "type": "text", - "primaryKey": false, - "notNull": true, - "autoincrement": false - }, - "collapsed": { - "name": "collapsed", - "type": "integer", - "primaryKey": false, - "notNull": true, - "autoincrement": false, - "default": false - } - }, - "indexes": {}, - "foreignKeys": { - "section_collapse_state_user_id_user_id_fk": { - "name": "section_collapse_state_user_id_user_id_fk", - "tableFrom": "section_collapse_state", - "columnsFrom": ["user_id"], - "tableTo": "user", - "columnsTo": ["id"], - "onUpdate": "no action", - "onDelete": "cascade" - }, - "section_collapse_state_section_id_section_id_fk": { - "name": "section_collapse_state_section_id_section_id_fk", - "tableFrom": "section_collapse_state", - "columnsFrom": ["section_id"], - "tableTo": "section", - "columnsTo": ["id"], - "onUpdate": "no action", - "onDelete": "cascade" - } - }, - "compositePrimaryKeys": { - "section_collapse_state_user_id_section_id_pk": { - "columns": ["user_id", "section_id"], - "name": "section_collapse_state_user_id_section_id_pk" - } - }, - "uniqueConstraints": {}, - "checkConstraints": {} - }, - "section_layout": { - "name": "section_layout", - "columns": { - "section_id": { - "name": "section_id", - "type": "text", - "primaryKey": false, - "notNull": true, - "autoincrement": false - }, - "layout_id": { - "name": "layout_id", - "type": "text", - "primaryKey": false, - "notNull": true, - "autoincrement": false - }, - "parent_section_id": { - "name": "parent_section_id", - "type": "text", - "primaryKey": false, - "notNull": false, - "autoincrement": false - }, - "x_offset": { - "name": "x_offset", - "type": "integer", - "primaryKey": false, - "notNull": true, - "autoincrement": false - }, - "y_offset": { - "name": "y_offset", - "type": "integer", - "primaryKey": false, - "notNull": true, - "autoincrement": false - }, - "width": { - "name": "width", - "type": "integer", - "primaryKey": false, - "notNull": true, - "autoincrement": false - }, - "height": { - "name": "height", - "type": "integer", - "primaryKey": false, - "notNull": true, - "autoincrement": false - } - }, - "indexes": {}, - "foreignKeys": { - "section_layout_section_id_section_id_fk": { - "name": "section_layout_section_id_section_id_fk", - "tableFrom": "section_layout", - "columnsFrom": ["section_id"], - "tableTo": "section", - "columnsTo": ["id"], - "onUpdate": "no action", - "onDelete": "cascade" - }, - "section_layout_layout_id_layout_id_fk": { - "name": "section_layout_layout_id_layout_id_fk", - "tableFrom": "section_layout", - "columnsFrom": ["layout_id"], - "tableTo": "layout", - "columnsTo": ["id"], - "onUpdate": "no action", - "onDelete": "cascade" - }, - "section_layout_parent_section_id_section_id_fk": { - "name": "section_layout_parent_section_id_section_id_fk", - "tableFrom": "section_layout", - "columnsFrom": ["parent_section_id"], - "tableTo": "section", - "columnsTo": ["id"], - "onUpdate": "no action", - "onDelete": "cascade" - } - }, - "compositePrimaryKeys": { - "section_layout_section_id_layout_id_pk": { - "columns": ["section_id", "layout_id"], - "name": "section_layout_section_id_layout_id_pk" - } - }, - "uniqueConstraints": {}, - "checkConstraints": {} - }, - "section": { - "name": "section", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true, - "autoincrement": false - }, - "board_id": { - "name": "board_id", - "type": "text", - "primaryKey": false, - "notNull": true, - "autoincrement": false - }, - "kind": { - "name": "kind", - "type": "text", - "primaryKey": false, - "notNull": true, - "autoincrement": false - }, - "x_offset": { - "name": "x_offset", - "type": "integer", - "primaryKey": false, - "notNull": false, - "autoincrement": false - }, - "y_offset": { - "name": "y_offset", - "type": "integer", - "primaryKey": false, - "notNull": false, - "autoincrement": false - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": false, - "autoincrement": false - }, - "options": { - "name": "options", - "type": "text", - "primaryKey": false, - "notNull": false, - "autoincrement": false, - "default": "'{\"json\": {}}'" - } - }, - "indexes": {}, - "foreignKeys": { - "section_board_id_board_id_fk": { - "name": "section_board_id_board_id_fk", - "tableFrom": "section", - "columnsFrom": ["board_id"], - "tableTo": "board", - "columnsTo": ["id"], - "onUpdate": "no action", - "onDelete": "cascade" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "checkConstraints": {} - }, - "serverSetting": { - "name": "serverSetting", - "columns": { - "setting_key": { - "name": "setting_key", - "type": "text", - "primaryKey": true, - "notNull": true, - "autoincrement": false - }, - "value": { - "name": "value", - "type": "text", - "primaryKey": false, - "notNull": true, - "autoincrement": false, - "default": "'{\"json\": {}}'" - } - }, - "indexes": { - "serverSetting_settingKey_unique": { - "name": "serverSetting_settingKey_unique", - "columns": ["setting_key"], - "isUnique": true - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "checkConstraints": {} - }, - "session": { - "name": "session", - "columns": { - "session_token": { - "name": "session_token", - "type": "text", - "primaryKey": true, - "notNull": true, - "autoincrement": false - }, - "user_id": { - "name": "user_id", - "type": "text", - "primaryKey": false, - "notNull": true, - "autoincrement": false - }, - "expires": { - "name": "expires", - "type": "integer", - "primaryKey": false, - "notNull": true, - "autoincrement": false - } - }, - "indexes": { - "user_id_idx": { - "name": "user_id_idx", - "columns": ["user_id"], - "isUnique": false - } - }, - "foreignKeys": { - "session_user_id_user_id_fk": { - "name": "session_user_id_user_id_fk", - "tableFrom": "session", - "columnsFrom": ["user_id"], - "tableTo": "user", - "columnsTo": ["id"], - "onUpdate": "no action", - "onDelete": "cascade" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "checkConstraints": {} - }, - "trusted_certificate_hostname": { - "name": "trusted_certificate_hostname", - "columns": { - "hostname": { - "name": "hostname", - "type": "text", - "primaryKey": false, - "notNull": true, - "autoincrement": false - }, - "thumbprint": { - "name": "thumbprint", - "type": "text", - "primaryKey": false, - "notNull": true, - "autoincrement": false - }, - "certificate": { - "name": "certificate", - "type": "text", - "primaryKey": false, - "notNull": true, - "autoincrement": false - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": { - "trusted_certificate_hostname_hostname_thumbprint_pk": { - "columns": ["hostname", "thumbprint"], - "name": "trusted_certificate_hostname_hostname_thumbprint_pk" - } - }, - "uniqueConstraints": {}, - "checkConstraints": {} - }, - "user": { - "name": "user", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true, - "autoincrement": false - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": false, - "autoincrement": false - }, - "email": { - "name": "email", - "type": "text", - "primaryKey": false, - "notNull": false, - "autoincrement": false - }, - "email_verified": { - "name": "email_verified", - "type": "integer", - "primaryKey": false, - "notNull": false, - "autoincrement": false - }, - "image": { - "name": "image", - "type": "text", - "primaryKey": false, - "notNull": false, - "autoincrement": false - }, - "password": { - "name": "password", - "type": "text", - "primaryKey": false, - "notNull": false, - "autoincrement": false - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true, - "autoincrement": false, - "default": "'credentials'" - }, - "home_board_id": { - "name": "home_board_id", - "type": "text", - "primaryKey": false, - "notNull": false, - "autoincrement": false - }, - "mobile_home_board_id": { - "name": "mobile_home_board_id", - "type": "text", - "primaryKey": false, - "notNull": false, - "autoincrement": false - }, - "default_search_engine_id": { - "name": "default_search_engine_id", - "type": "text", - "primaryKey": false, - "notNull": false, - "autoincrement": false - }, - "open_search_in_new_tab": { - "name": "open_search_in_new_tab", - "type": "integer", - "primaryKey": false, - "notNull": true, - "autoincrement": false, - "default": true - }, - "ddg_bangs": { - "name": "ddg_bangs", - "type": "integer", - "primaryKey": false, - "notNull": true, - "autoincrement": false, - "default": true - }, - "color_scheme": { - "name": "color_scheme", - "type": "text", - "primaryKey": false, - "notNull": true, - "autoincrement": false, - "default": "'dark'" - }, - "first_day_of_week": { - "name": "first_day_of_week", - "type": "integer", - "primaryKey": false, - "notNull": true, - "autoincrement": false, - "default": 1 - }, - "ping_icons_enabled": { - "name": "ping_icons_enabled", - "type": "integer", - "primaryKey": false, - "notNull": true, - "autoincrement": false, - "default": false - }, - "enable_right_click_on_widgets": { - "name": "enable_right_click_on_widgets", - "type": "integer", - "primaryKey": false, - "notNull": true, - "autoincrement": false, - "default": true - }, - "header_preferences": { - "name": "header_preferences", - "type": "text", - "primaryKey": false, - "notNull": true, - "autoincrement": false, - "default": "'{\"version\":3,\"visible\":true,\"searchDisplay\":\"input\",\"zones\":{\"left\":[{\"type\":\"builtin\",\"id\":\"logo\"}],\"center\":[{\"type\":\"builtin\",\"id\":\"search\"}],\"right\":[{\"type\":\"builtin\",\"id\":\"boardEdit\"},{\"type\":\"builtin\",\"id\":\"boardSettings\"},{\"type\":\"builtin\",\"id\":\"user\"}]}}'" - }, - "completed_manage_tour": { - "name": "completed_manage_tour", - "type": "integer", - "primaryKey": false, - "notNull": true, - "autoincrement": false, - "default": false - }, - "completed_board_tour": { - "name": "completed_board_tour", - "type": "integer", - "primaryKey": false, - "notNull": true, - "autoincrement": false, - "default": false - } - }, - "indexes": {}, - "foreignKeys": { - "user_home_board_id_board_id_fk": { - "name": "user_home_board_id_board_id_fk", - "tableFrom": "user", - "columnsFrom": ["home_board_id"], - "tableTo": "board", - "columnsTo": ["id"], - "onUpdate": "no action", - "onDelete": "set null" - }, - "user_mobile_home_board_id_board_id_fk": { - "name": "user_mobile_home_board_id_board_id_fk", - "tableFrom": "user", - "columnsFrom": ["mobile_home_board_id"], - "tableTo": "board", - "columnsTo": ["id"], - "onUpdate": "no action", - "onDelete": "set null" - }, - "user_default_search_engine_id_search_engine_id_fk": { - "name": "user_default_search_engine_id_search_engine_id_fk", - "tableFrom": "user", - "columnsFrom": ["default_search_engine_id"], - "tableTo": "search_engine", - "columnsTo": ["id"], - "onUpdate": "no action", - "onDelete": "set null" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "checkConstraints": {} - }, - "verificationToken": { - "name": "verificationToken", - "columns": { - "identifier": { - "name": "identifier", - "type": "text", - "primaryKey": false, - "notNull": true, - "autoincrement": false - }, - "token": { - "name": "token", - "type": "text", - "primaryKey": false, - "notNull": true, - "autoincrement": false - }, - "expires": { - "name": "expires", - "type": "integer", - "primaryKey": false, - "notNull": true, - "autoincrement": false - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": { - "verificationToken_identifier_token_pk": { - "columns": ["identifier", "token"], - "name": "verificationToken_identifier_token_pk" - } - }, - "uniqueConstraints": {}, - "checkConstraints": {} - }, - "widget_secret": { - "name": "widget_secret", - "columns": { - "item_id": { - "name": "item_id", - "type": "text", - "primaryKey": false, - "notNull": true, - "autoincrement": false - }, - "kind": { - "name": "kind", - "type": "text", - "primaryKey": false, - "notNull": true, - "autoincrement": false - }, - "value": { - "name": "value", - "type": "text", - "primaryKey": false, - "notNull": true, - "autoincrement": false - }, - "updated_at": { - "name": "updated_at", - "type": "integer", - "primaryKey": false, - "notNull": true, - "autoincrement": false - } - }, - "indexes": {}, - "foreignKeys": { - "widget_secret_item_id_item_id_fk": { - "name": "widget_secret_item_id_item_id_fk", - "tableFrom": "widget_secret", - "columnsFrom": ["item_id"], - "tableTo": "item", - "columnsTo": ["id"], - "onUpdate": "no action", - "onDelete": "cascade" - } - }, - "compositePrimaryKeys": { - "widget_secret_item_id_kind_pk": { - "columns": ["item_id", "kind"], - "name": "widget_secret_item_id_kind_pk" - } - }, - "uniqueConstraints": {}, - "checkConstraints": {} - } - }, - "views": {}, - "enums": {}, - "_meta": { - "columns": {}, - "schemas": {}, - "tables": {} - }, - "internal": { - "indexes": {} - } -} diff --git a/packages/db/migrations/sqlite/meta/_journal.json b/packages/db/migrations/sqlite/meta/_journal.json index a1e292bfc..c51331604 100644 --- a/packages/db/migrations/sqlite/meta/_journal.json +++ b/packages/db/migrations/sqlite/meta/_journal.json @@ -327,15 +327,8 @@ { "idx": 46, "version": "6", - "when": 1787496042447, - "tag": "0046_add_user_header_preferences", - "breakpoints": true - }, - { - "idx": 47, - "version": "6", - "when": 1787496053654, - "tag": "0047_add_server_branding_settings", + "when": 1787556956665, + "tag": "0046_add_header_preferences_and_branding", "breakpoints": true } ]