{ "version": "6", "dialect": "sqlite", "tables": { "users_sessions": { "name": "users_sessions", "columns": { "_order": { "name": "_order", "type": "integer", "primaryKey": false, "notNull": true, "autoincrement": false }, "_parent_id": { "name": "_parent_id", "type": "integer", "primaryKey": false, "notNull": true, "autoincrement": false }, "id": { "name": "id", "type": "text", "primaryKey": true, "notNull": true, "autoincrement": false }, "created_at": { "name": "created_at", "type": "text", "primaryKey": false, "notNull": false, "autoincrement": false }, "expires_at": { "name": "expires_at", "type": "text", "primaryKey": false, "notNull": true, "autoincrement": false } }, "indexes": { "users_sessions_order_idx": { "name": "users_sessions_order_idx", "columns": [ "_order" ], "isUnique": false }, "users_sessions_parent_id_idx": { "name": "users_sessions_parent_id_idx", "columns": [ "_parent_id" ], "isUnique": false } }, "foreignKeys": { "users_sessions_parent_id_fk": { "name": "users_sessions_parent_id_fk", "tableFrom": "users_sessions", "tableTo": "users", "columnsFrom": [ "_parent_id" ], "columnsTo": [ "id" ], "onDelete": "cascade", "onUpdate": "no action" } }, "compositePrimaryKeys": {}, "uniqueConstraints": {}, "checkConstraints": {} }, "users": { "name": "users", "columns": { "id": { "name": "id", "type": "integer", "primaryKey": true, "notNull": true, "autoincrement": false }, "updated_at": { "name": "updated_at", "type": "text", "primaryKey": false, "notNull": true, "autoincrement": false, "default": "(strftime('%Y-%m-%dT%H:%M:%fZ', 'now'))" }, "created_at": { "name": "created_at", "type": "text", "primaryKey": false, "notNull": true, "autoincrement": false, "default": "(strftime('%Y-%m-%dT%H:%M:%fZ', 'now'))" }, "email": { "name": "email", "type": "text", "primaryKey": false, "notNull": true, "autoincrement": false }, "reset_password_token": { "name": "reset_password_token", "type": "text", "primaryKey": false, "notNull": false, "autoincrement": false }, "reset_password_expiration": { "name": "reset_password_expiration", "type": "text", "primaryKey": false, "notNull": false, "autoincrement": false }, "salt": { "name": "salt", "type": "text", "primaryKey": false, "notNull": false, "autoincrement": false }, "hash": { "name": "hash", "type": "text", "primaryKey": false, "notNull": false, "autoincrement": false }, "reset_password_requested_at": { "name": "reset_password_requested_at", "type": "text", "primaryKey": false, "notNull": false, "autoincrement": false }, "login_attempts": { "name": "login_attempts", "type": "numeric", "primaryKey": false, "notNull": false, "autoincrement": false, "default": 0 }, "lock_until": { "name": "lock_until", "type": "text", "primaryKey": false, "notNull": false, "autoincrement": false } }, "indexes": { "users_updated_at_idx": { "name": "users_updated_at_idx", "columns": [ "updated_at" ], "isUnique": false }, "users_created_at_idx": { "name": "users_created_at_idx", "columns": [ "created_at" ], "isUnique": false }, "users_email_idx": { "name": "users_email_idx", "columns": [ "email" ], "isUnique": true } }, "foreignKeys": {}, "compositePrimaryKeys": {}, "uniqueConstraints": {}, "checkConstraints": {} }, "news": { "name": "news", "columns": { "id": { "name": "id", "type": "integer", "primaryKey": true, "notNull": true, "autoincrement": false }, "kind": { "name": "kind", "type": "text", "primaryKey": false, "notNull": false, "autoincrement": false, "default": "'news'" }, "date": { "name": "date", "type": "text", "primaryKey": false, "notNull": true, "autoincrement": false }, "updated_at": { "name": "updated_at", "type": "text", "primaryKey": false, "notNull": true, "autoincrement": false, "default": "(strftime('%Y-%m-%dT%H:%M:%fZ', 'now'))" }, "created_at": { "name": "created_at", "type": "text", "primaryKey": false, "notNull": true, "autoincrement": false, "default": "(strftime('%Y-%m-%dT%H:%M:%fZ', 'now'))" } }, "indexes": { "news_updated_at_idx": { "name": "news_updated_at_idx", "columns": [ "updated_at" ], "isUnique": false }, "news_created_at_idx": { "name": "news_created_at_idx", "columns": [ "created_at" ], "isUnique": false } }, "foreignKeys": {}, "compositePrimaryKeys": {}, "uniqueConstraints": {}, "checkConstraints": {} }, "news_locales": { "name": "news_locales", "columns": { "title": { "name": "title", "type": "text", "primaryKey": false, "notNull": true, "autoincrement": false }, "summary": { "name": "summary", "type": "text", "primaryKey": false, "notNull": false, "autoincrement": false }, "place": { "name": "place", "type": "text", "primaryKey": false, "notNull": false, "autoincrement": false }, "id": { "name": "id", "type": "integer", "primaryKey": true, "notNull": true, "autoincrement": false }, "_locale": { "name": "_locale", "type": "text", "primaryKey": false, "notNull": true, "autoincrement": false }, "_parent_id": { "name": "_parent_id", "type": "integer", "primaryKey": false, "notNull": true, "autoincrement": false } }, "indexes": { "news_locales_locale_parent_id_unique": { "name": "news_locales_locale_parent_id_unique", "columns": [ "_locale", "_parent_id" ], "isUnique": true }, "news_locales_parent_id_idx": { "name": "news_locales_parent_id_idx", "columns": [ "_parent_id" ], "isUnique": false } }, "foreignKeys": { "news_locales_parent_id_fk": { "name": "news_locales_parent_id_fk", "tableFrom": "news_locales", "tableTo": "news", "columnsFrom": [ "_parent_id" ], "columnsTo": [ "id" ], "onDelete": "cascade", "onUpdate": "no action" } }, "compositePrimaryKeys": {}, "uniqueConstraints": {}, "checkConstraints": {} }, "payload_kv": { "name": "payload_kv", "columns": { "id": { "name": "id", "type": "integer", "primaryKey": true, "notNull": true, "autoincrement": false }, "key": { "name": "key", "type": "text", "primaryKey": false, "notNull": true, "autoincrement": false }, "data": { "name": "data", "type": "text", "primaryKey": false, "notNull": true, "autoincrement": false } }, "indexes": { "payload_kv_key_idx": { "name": "payload_kv_key_idx", "columns": [ "key" ], "isUnique": true } }, "foreignKeys": {}, "compositePrimaryKeys": {}, "uniqueConstraints": {}, "checkConstraints": {} }, "payload_locked_documents": { "name": "payload_locked_documents", "columns": { "id": { "name": "id", "type": "integer", "primaryKey": true, "notNull": true, "autoincrement": false }, "global_slug": { "name": "global_slug", "type": "text", "primaryKey": false, "notNull": false, "autoincrement": false }, "updated_at": { "name": "updated_at", "type": "text", "primaryKey": false, "notNull": true, "autoincrement": false, "default": "(strftime('%Y-%m-%dT%H:%M:%fZ', 'now'))" }, "created_at": { "name": "created_at", "type": "text", "primaryKey": false, "notNull": true, "autoincrement": false, "default": "(strftime('%Y-%m-%dT%H:%M:%fZ', 'now'))" } }, "indexes": { "payload_locked_documents_global_slug_idx": { "name": "payload_locked_documents_global_slug_idx", "columns": [ "global_slug" ], "isUnique": false }, "payload_locked_documents_updated_at_idx": { "name": "payload_locked_documents_updated_at_idx", "columns": [ "updated_at" ], "isUnique": false }, "payload_locked_documents_created_at_idx": { "name": "payload_locked_documents_created_at_idx", "columns": [ "created_at" ], "isUnique": false } }, "foreignKeys": {}, "compositePrimaryKeys": {}, "uniqueConstraints": {}, "checkConstraints": {} }, "payload_locked_documents_rels": { "name": "payload_locked_documents_rels", "columns": { "id": { "name": "id", "type": "integer", "primaryKey": true, "notNull": true, "autoincrement": false }, "order": { "name": "order", "type": "integer", "primaryKey": false, "notNull": false, "autoincrement": false }, "parent_id": { "name": "parent_id", "type": "integer", "primaryKey": false, "notNull": true, "autoincrement": false }, "path": { "name": "path", "type": "text", "primaryKey": false, "notNull": true, "autoincrement": false }, "users_id": { "name": "users_id", "type": "integer", "primaryKey": false, "notNull": false, "autoincrement": false }, "news_id": { "name": "news_id", "type": "integer", "primaryKey": false, "notNull": false, "autoincrement": false } }, "indexes": { "payload_locked_documents_rels_order_idx": { "name": "payload_locked_documents_rels_order_idx", "columns": [ "order" ], "isUnique": false }, "payload_locked_documents_rels_parent_idx": { "name": "payload_locked_documents_rels_parent_idx", "columns": [ "parent_id" ], "isUnique": false }, "payload_locked_documents_rels_path_idx": { "name": "payload_locked_documents_rels_path_idx", "columns": [ "path" ], "isUnique": false }, "payload_locked_documents_rels_users_id_idx": { "name": "payload_locked_documents_rels_users_id_idx", "columns": [ "users_id" ], "isUnique": false }, "payload_locked_documents_rels_news_id_idx": { "name": "payload_locked_documents_rels_news_id_idx", "columns": [ "news_id" ], "isUnique": false } }, "foreignKeys": { "payload_locked_documents_rels_parent_fk": { "name": "payload_locked_documents_rels_parent_fk", "tableFrom": "payload_locked_documents_rels", "tableTo": "payload_locked_documents", "columnsFrom": [ "parent_id" ], "columnsTo": [ "id" ], "onDelete": "cascade", "onUpdate": "no action" }, "payload_locked_documents_rels_users_fk": { "name": "payload_locked_documents_rels_users_fk", "tableFrom": "payload_locked_documents_rels", "tableTo": "users", "columnsFrom": [ "users_id" ], "columnsTo": [ "id" ], "onDelete": "cascade", "onUpdate": "no action" }, "payload_locked_documents_rels_news_fk": { "name": "payload_locked_documents_rels_news_fk", "tableFrom": "payload_locked_documents_rels", "tableTo": "news", "columnsFrom": [ "news_id" ], "columnsTo": [ "id" ], "onDelete": "cascade", "onUpdate": "no action" } }, "compositePrimaryKeys": {}, "uniqueConstraints": {}, "checkConstraints": {} }, "payload_preferences": { "name": "payload_preferences", "columns": { "id": { "name": "id", "type": "integer", "primaryKey": true, "notNull": true, "autoincrement": false }, "key": { "name": "key", "type": "text", "primaryKey": false, "notNull": false, "autoincrement": false }, "value": { "name": "value", "type": "text", "primaryKey": false, "notNull": false, "autoincrement": false }, "updated_at": { "name": "updated_at", "type": "text", "primaryKey": false, "notNull": true, "autoincrement": false, "default": "(strftime('%Y-%m-%dT%H:%M:%fZ', 'now'))" }, "created_at": { "name": "created_at", "type": "text", "primaryKey": false, "notNull": true, "autoincrement": false, "default": "(strftime('%Y-%m-%dT%H:%M:%fZ', 'now'))" } }, "indexes": { "payload_preferences_key_idx": { "name": "payload_preferences_key_idx", "columns": [ "key" ], "isUnique": false }, "payload_preferences_updated_at_idx": { "name": "payload_preferences_updated_at_idx", "columns": [ "updated_at" ], "isUnique": false }, "payload_preferences_created_at_idx": { "name": "payload_preferences_created_at_idx", "columns": [ "created_at" ], "isUnique": false } }, "foreignKeys": {}, "compositePrimaryKeys": {}, "uniqueConstraints": {}, "checkConstraints": {} }, "payload_preferences_rels": { "name": "payload_preferences_rels", "columns": { "id": { "name": "id", "type": "integer", "primaryKey": true, "notNull": true, "autoincrement": false }, "order": { "name": "order", "type": "integer", "primaryKey": false, "notNull": false, "autoincrement": false }, "parent_id": { "name": "parent_id", "type": "integer", "primaryKey": false, "notNull": true, "autoincrement": false }, "path": { "name": "path", "type": "text", "primaryKey": false, "notNull": true, "autoincrement": false }, "users_id": { "name": "users_id", "type": "integer", "primaryKey": false, "notNull": false, "autoincrement": false } }, "indexes": { "payload_preferences_rels_order_idx": { "name": "payload_preferences_rels_order_idx", "columns": [ "order" ], "isUnique": false }, "payload_preferences_rels_parent_idx": { "name": "payload_preferences_rels_parent_idx", "columns": [ "parent_id" ], "isUnique": false }, "payload_preferences_rels_path_idx": { "name": "payload_preferences_rels_path_idx", "columns": [ "path" ], "isUnique": false }, "payload_preferences_rels_users_id_idx": { "name": "payload_preferences_rels_users_id_idx", "columns": [ "users_id" ], "isUnique": false } }, "foreignKeys": { "payload_preferences_rels_parent_fk": { "name": "payload_preferences_rels_parent_fk", "tableFrom": "payload_preferences_rels", "tableTo": "payload_preferences", "columnsFrom": [ "parent_id" ], "columnsTo": [ "id" ], "onDelete": "cascade", "onUpdate": "no action" }, "payload_preferences_rels_users_fk": { "name": "payload_preferences_rels_users_fk", "tableFrom": "payload_preferences_rels", "tableTo": "users", "columnsFrom": [ "users_id" ], "columnsTo": [ "id" ], "onDelete": "cascade", "onUpdate": "no action" } }, "compositePrimaryKeys": {}, "uniqueConstraints": {}, "checkConstraints": {} }, "payload_migrations": { "name": "payload_migrations", "columns": { "id": { "name": "id", "type": "integer", "primaryKey": true, "notNull": true, "autoincrement": false }, "name": { "name": "name", "type": "text", "primaryKey": false, "notNull": false, "autoincrement": false }, "batch": { "name": "batch", "type": "numeric", "primaryKey": false, "notNull": false, "autoincrement": false }, "updated_at": { "name": "updated_at", "type": "text", "primaryKey": false, "notNull": true, "autoincrement": false, "default": "(strftime('%Y-%m-%dT%H:%M:%fZ', 'now'))" }, "created_at": { "name": "created_at", "type": "text", "primaryKey": false, "notNull": true, "autoincrement": false, "default": "(strftime('%Y-%m-%dT%H:%M:%fZ', 'now'))" } }, "indexes": { "payload_migrations_updated_at_idx": { "name": "payload_migrations_updated_at_idx", "columns": [ "updated_at" ], "isUnique": false }, "payload_migrations_created_at_idx": { "name": "payload_migrations_created_at_idx", "columns": [ "created_at" ], "isUnique": false } }, "foreignKeys": {}, "compositePrimaryKeys": {}, "uniqueConstraints": {}, "checkConstraints": {} }, "home_directions": { "name": "home_directions", "columns": { "_order": { "name": "_order", "type": "integer", "primaryKey": false, "notNull": true, "autoincrement": false }, "_parent_id": { "name": "_parent_id", "type": "integer", "primaryKey": false, "notNull": true, "autoincrement": false }, "id": { "name": "id", "type": "text", "primaryKey": true, "notNull": true, "autoincrement": false } }, "indexes": { "home_directions_order_idx": { "name": "home_directions_order_idx", "columns": [ "_order" ], "isUnique": false }, "home_directions_parent_id_idx": { "name": "home_directions_parent_id_idx", "columns": [ "_parent_id" ], "isUnique": false } }, "foreignKeys": { "home_directions_parent_id_fk": { "name": "home_directions_parent_id_fk", "tableFrom": "home_directions", "tableTo": "home", "columnsFrom": [ "_parent_id" ], "columnsTo": [ "id" ], "onDelete": "cascade", "onUpdate": "no action" } }, "compositePrimaryKeys": {}, "uniqueConstraints": {}, "checkConstraints": {} }, "home_directions_locales": { "name": "home_directions_locales", "columns": { "title": { "name": "title", "type": "text", "primaryKey": false, "notNull": true, "autoincrement": false }, "text": { "name": "text", "type": "text", "primaryKey": false, "notNull": false, "autoincrement": false }, "id": { "name": "id", "type": "integer", "primaryKey": true, "notNull": true, "autoincrement": false }, "_locale": { "name": "_locale", "type": "text", "primaryKey": false, "notNull": true, "autoincrement": false }, "_parent_id": { "name": "_parent_id", "type": "text", "primaryKey": false, "notNull": true, "autoincrement": false } }, "indexes": { "home_directions_locales_locale_parent_id_unique": { "name": "home_directions_locales_locale_parent_id_unique", "columns": [ "_locale", "_parent_id" ], "isUnique": true }, "home_directions_locales_parent_id_idx": { "name": "home_directions_locales_parent_id_idx", "columns": [ "_parent_id" ], "isUnique": false } }, "foreignKeys": { "home_directions_locales_parent_id_fk": { "name": "home_directions_locales_parent_id_fk", "tableFrom": "home_directions_locales", "tableTo": "home_directions", "columnsFrom": [ "_parent_id" ], "columnsTo": [ "id" ], "onDelete": "cascade", "onUpdate": "no action" } }, "compositePrimaryKeys": {}, "uniqueConstraints": {}, "checkConstraints": {} }, "home_projects": { "name": "home_projects", "columns": { "_order": { "name": "_order", "type": "integer", "primaryKey": false, "notNull": true, "autoincrement": false }, "_parent_id": { "name": "_parent_id", "type": "integer", "primaryKey": false, "notNull": true, "autoincrement": false }, "id": { "name": "id", "type": "text", "primaryKey": true, "notNull": true, "autoincrement": false } }, "indexes": { "home_projects_order_idx": { "name": "home_projects_order_idx", "columns": [ "_order" ], "isUnique": false }, "home_projects_parent_id_idx": { "name": "home_projects_parent_id_idx", "columns": [ "_parent_id" ], "isUnique": false } }, "foreignKeys": { "home_projects_parent_id_fk": { "name": "home_projects_parent_id_fk", "tableFrom": "home_projects", "tableTo": "home", "columnsFrom": [ "_parent_id" ], "columnsTo": [ "id" ], "onDelete": "cascade", "onUpdate": "no action" } }, "compositePrimaryKeys": {}, "uniqueConstraints": {}, "checkConstraints": {} }, "home_projects_locales": { "name": "home_projects_locales", "columns": { "title": { "name": "title", "type": "text", "primaryKey": false, "notNull": true, "autoincrement": false }, "text": { "name": "text", "type": "text", "primaryKey": false, "notNull": false, "autoincrement": false }, "id": { "name": "id", "type": "integer", "primaryKey": true, "notNull": true, "autoincrement": false }, "_locale": { "name": "_locale", "type": "text", "primaryKey": false, "notNull": true, "autoincrement": false }, "_parent_id": { "name": "_parent_id", "type": "text", "primaryKey": false, "notNull": true, "autoincrement": false } }, "indexes": { "home_projects_locales_locale_parent_id_unique": { "name": "home_projects_locales_locale_parent_id_unique", "columns": [ "_locale", "_parent_id" ], "isUnique": true }, "home_projects_locales_parent_id_idx": { "name": "home_projects_locales_parent_id_idx", "columns": [ "_parent_id" ], "isUnique": false } }, "foreignKeys": { "home_projects_locales_parent_id_fk": { "name": "home_projects_locales_parent_id_fk", "tableFrom": "home_projects_locales", "tableTo": "home_projects", "columnsFrom": [ "_parent_id" ], "columnsTo": [ "id" ], "onDelete": "cascade", "onUpdate": "no action" } }, "compositePrimaryKeys": {}, "uniqueConstraints": {}, "checkConstraints": {} }, "home": { "name": "home", "columns": { "id": { "name": "id", "type": "integer", "primaryKey": true, "notNull": true, "autoincrement": false }, "contact_email": { "name": "contact_email", "type": "text", "primaryKey": false, "notNull": false, "autoincrement": false }, "updated_at": { "name": "updated_at", "type": "text", "primaryKey": false, "notNull": false, "autoincrement": false }, "created_at": { "name": "created_at", "type": "text", "primaryKey": false, "notNull": false, "autoincrement": false } }, "indexes": {}, "foreignKeys": {}, "compositePrimaryKeys": {}, "uniqueConstraints": {}, "checkConstraints": {} }, "home_locales": { "name": "home_locales", "columns": { "mission": { "name": "mission", "type": "text", "primaryKey": false, "notNull": false, "autoincrement": false }, "collaboration": { "name": "collaboration", "type": "text", "primaryKey": false, "notNull": false, "autoincrement": false }, "id": { "name": "id", "type": "integer", "primaryKey": true, "notNull": true, "autoincrement": false }, "_locale": { "name": "_locale", "type": "text", "primaryKey": false, "notNull": true, "autoincrement": false }, "_parent_id": { "name": "_parent_id", "type": "integer", "primaryKey": false, "notNull": true, "autoincrement": false } }, "indexes": { "home_locales_locale_parent_id_unique": { "name": "home_locales_locale_parent_id_unique", "columns": [ "_locale", "_parent_id" ], "isUnique": true }, "home_locales_parent_id_idx": { "name": "home_locales_parent_id_idx", "columns": [ "_parent_id" ], "isUnique": false } }, "foreignKeys": { "home_locales_parent_id_fk": { "name": "home_locales_parent_id_fk", "tableFrom": "home_locales", "tableTo": "home", "columnsFrom": [ "_parent_id" ], "columnsTo": [ "id" ], "onDelete": "cascade", "onUpdate": "no action" } }, "compositePrimaryKeys": {}, "uniqueConstraints": {}, "checkConstraints": {} } }, "views": {}, "enums": {}, "_meta": { "tables": {}, "columns": {} }, "internal": { "indexes": {} }, "id": "2dfc7d19-4c51-4a09-ad6e-07d04bd39505", "prevId": "00000000-0000-0000-0000-000000000000" }