{ "version": "6", "dialect": "sqlite", "tables": { "products_obrazky": { "name": "products_obrazky", "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 }, "obrazek_id": { "name": "obrazek_id", "type": "integer", "primaryKey": false, "notNull": true, "autoincrement": false } }, "indexes": { "products_obrazky_order_idx": { "name": "products_obrazky_order_idx", "columns": [ "_order" ], "isUnique": false }, "products_obrazky_parent_id_idx": { "name": "products_obrazky_parent_id_idx", "columns": [ "_parent_id" ], "isUnique": false }, "products_obrazky_obrazek_idx": { "name": "products_obrazky_obrazek_idx", "columns": [ "obrazek_id" ], "isUnique": false } }, "foreignKeys": { "products_obrazky_obrazek_id_media_id_fk": { "name": "products_obrazky_obrazek_id_media_id_fk", "tableFrom": "products_obrazky", "tableTo": "media", "columnsFrom": [ "obrazek_id" ], "columnsTo": [ "id" ], "onDelete": "set null", "onUpdate": "no action" }, "products_obrazky_parent_id_fk": { "name": "products_obrazky_parent_id_fk", "tableFrom": "products_obrazky", "tableTo": "products", "columnsFrom": [ "_parent_id" ], "columnsTo": [ "id" ], "onDelete": "cascade", "onUpdate": "no action" } }, "compositePrimaryKeys": {}, "uniqueConstraints": {}, "checkConstraints": {} }, "products_parametry": { "name": "products_parametry", "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 }, "nazev": { "name": "nazev", "type": "text", "primaryKey": false, "notNull": true, "autoincrement": false }, "hodnota": { "name": "hodnota", "type": "text", "primaryKey": false, "notNull": true, "autoincrement": false } }, "indexes": { "products_parametry_order_idx": { "name": "products_parametry_order_idx", "columns": [ "_order" ], "isUnique": false }, "products_parametry_parent_id_idx": { "name": "products_parametry_parent_id_idx", "columns": [ "_parent_id" ], "isUnique": false } }, "foreignKeys": { "products_parametry_parent_id_fk": { "name": "products_parametry_parent_id_fk", "tableFrom": "products_parametry", "tableTo": "products", "columnsFrom": [ "_parent_id" ], "columnsTo": [ "id" ], "onDelete": "cascade", "onUpdate": "no action" } }, "compositePrimaryKeys": {}, "uniqueConstraints": {}, "checkConstraints": {} }, "products": { "name": "products", "columns": { "id": { "name": "id", "type": "integer", "primaryKey": true, "notNull": true, "autoincrement": false }, "nazev": { "name": "nazev", "type": "text", "primaryKey": false, "notNull": true, "autoincrement": false }, "slug": { "name": "slug", "type": "text", "primaryKey": false, "notNull": false, "autoincrement": false }, "kategorie": { "name": "kategorie", "type": "text", "primaryKey": false, "notNull": true, "autoincrement": false, "default": "'zbrane'" }, "cena": { "name": "cena", "type": "numeric", "primaryKey": false, "notNull": true, "autoincrement": false }, "stav": { "name": "stav", "type": "text", "primaryKey": false, "notNull": true, "autoincrement": false, "default": "'skladem'" }, "skryto": { "name": "skryto", "type": "integer", "primaryKey": false, "notNull": false, "autoincrement": false, "default": false }, "popis": { "name": "popis", "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": { "products_slug_idx": { "name": "products_slug_idx", "columns": [ "slug" ], "isUnique": true }, "products_updated_at_idx": { "name": "products_updated_at_idx", "columns": [ "updated_at" ], "isUnique": false }, "products_created_at_idx": { "name": "products_created_at_idx", "columns": [ "created_at" ], "isUnique": false } }, "foreignKeys": {}, "compositePrimaryKeys": {}, "uniqueConstraints": {}, "checkConstraints": {} }, "media": { "name": "media", "columns": { "id": { "name": "id", "type": "integer", "primaryKey": true, "notNull": true, "autoincrement": false }, "alt": { "name": "alt", "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'))" }, "url": { "name": "url", "type": "text", "primaryKey": false, "notNull": false, "autoincrement": false }, "thumbnail_u_r_l": { "name": "thumbnail_u_r_l", "type": "text", "primaryKey": false, "notNull": false, "autoincrement": false }, "filename": { "name": "filename", "type": "text", "primaryKey": false, "notNull": false, "autoincrement": false }, "mime_type": { "name": "mime_type", "type": "text", "primaryKey": false, "notNull": false, "autoincrement": false }, "filesize": { "name": "filesize", "type": "numeric", "primaryKey": false, "notNull": false, "autoincrement": false }, "width": { "name": "width", "type": "numeric", "primaryKey": false, "notNull": false, "autoincrement": false }, "height": { "name": "height", "type": "numeric", "primaryKey": false, "notNull": false, "autoincrement": false }, "focal_x": { "name": "focal_x", "type": "numeric", "primaryKey": false, "notNull": false, "autoincrement": false }, "focal_y": { "name": "focal_y", "type": "numeric", "primaryKey": false, "notNull": false, "autoincrement": false }, "sizes_nahled_url": { "name": "sizes_nahled_url", "type": "text", "primaryKey": false, "notNull": false, "autoincrement": false }, "sizes_nahled_width": { "name": "sizes_nahled_width", "type": "numeric", "primaryKey": false, "notNull": false, "autoincrement": false }, "sizes_nahled_height": { "name": "sizes_nahled_height", "type": "numeric", "primaryKey": false, "notNull": false, "autoincrement": false }, "sizes_nahled_mime_type": { "name": "sizes_nahled_mime_type", "type": "text", "primaryKey": false, "notNull": false, "autoincrement": false }, "sizes_nahled_filesize": { "name": "sizes_nahled_filesize", "type": "numeric", "primaryKey": false, "notNull": false, "autoincrement": false }, "sizes_nahled_filename": { "name": "sizes_nahled_filename", "type": "text", "primaryKey": false, "notNull": false, "autoincrement": false }, "sizes_detail_url": { "name": "sizes_detail_url", "type": "text", "primaryKey": false, "notNull": false, "autoincrement": false }, "sizes_detail_width": { "name": "sizes_detail_width", "type": "numeric", "primaryKey": false, "notNull": false, "autoincrement": false }, "sizes_detail_height": { "name": "sizes_detail_height", "type": "numeric", "primaryKey": false, "notNull": false, "autoincrement": false }, "sizes_detail_mime_type": { "name": "sizes_detail_mime_type", "type": "text", "primaryKey": false, "notNull": false, "autoincrement": false }, "sizes_detail_filesize": { "name": "sizes_detail_filesize", "type": "numeric", "primaryKey": false, "notNull": false, "autoincrement": false }, "sizes_detail_filename": { "name": "sizes_detail_filename", "type": "text", "primaryKey": false, "notNull": false, "autoincrement": false } }, "indexes": { "media_updated_at_idx": { "name": "media_updated_at_idx", "columns": [ "updated_at" ], "isUnique": false }, "media_created_at_idx": { "name": "media_created_at_idx", "columns": [ "created_at" ], "isUnique": false }, "media_filename_idx": { "name": "media_filename_idx", "columns": [ "filename" ], "isUnique": true }, "media_sizes_nahled_sizes_nahled_filename_idx": { "name": "media_sizes_nahled_sizes_nahled_filename_idx", "columns": [ "sizes_nahled_filename" ], "isUnique": false }, "media_sizes_detail_sizes_detail_filename_idx": { "name": "media_sizes_detail_sizes_detail_filename_idx", "columns": [ "sizes_detail_filename" ], "isUnique": false } }, "foreignKeys": {}, "compositePrimaryKeys": {}, "uniqueConstraints": {}, "checkConstraints": {} }, "pages": { "name": "pages", "columns": { "id": { "name": "id", "type": "integer", "primaryKey": true, "notNull": true, "autoincrement": false }, "nazev": { "name": "nazev", "type": "text", "primaryKey": false, "notNull": true, "autoincrement": false }, "slug": { "name": "slug", "type": "text", "primaryKey": false, "notNull": true, "autoincrement": false }, "obsah": { "name": "obsah", "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": { "pages_slug_idx": { "name": "pages_slug_idx", "columns": [ "slug" ], "isUnique": true }, "pages_updated_at_idx": { "name": "pages_updated_at_idx", "columns": [ "updated_at" ], "isUnique": false }, "pages_created_at_idx": { "name": "pages_created_at_idx", "columns": [ "created_at" ], "isUnique": false } }, "foreignKeys": {}, "compositePrimaryKeys": {}, "uniqueConstraints": {}, "checkConstraints": {} }, "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 }, "jmeno": { "name": "jmeno", "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'))" }, "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 }, "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": {} }, "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 }, "products_id": { "name": "products_id", "type": "integer", "primaryKey": false, "notNull": false, "autoincrement": false }, "media_id": { "name": "media_id", "type": "integer", "primaryKey": false, "notNull": false, "autoincrement": false }, "pages_id": { "name": "pages_id", "type": "integer", "primaryKey": false, "notNull": false, "autoincrement": false }, "users_id": { "name": "users_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_products_id_idx": { "name": "payload_locked_documents_rels_products_id_idx", "columns": [ "products_id" ], "isUnique": false }, "payload_locked_documents_rels_media_id_idx": { "name": "payload_locked_documents_rels_media_id_idx", "columns": [ "media_id" ], "isUnique": false }, "payload_locked_documents_rels_pages_id_idx": { "name": "payload_locked_documents_rels_pages_id_idx", "columns": [ "pages_id" ], "isUnique": false }, "payload_locked_documents_rels_users_id_idx": { "name": "payload_locked_documents_rels_users_id_idx", "columns": [ "users_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_products_fk": { "name": "payload_locked_documents_rels_products_fk", "tableFrom": "payload_locked_documents_rels", "tableTo": "products", "columnsFrom": [ "products_id" ], "columnsTo": [ "id" ], "onDelete": "cascade", "onUpdate": "no action" }, "payload_locked_documents_rels_media_fk": { "name": "payload_locked_documents_rels_media_fk", "tableFrom": "payload_locked_documents_rels", "tableTo": "media", "columnsFrom": [ "media_id" ], "columnsTo": [ "id" ], "onDelete": "cascade", "onUpdate": "no action" }, "payload_locked_documents_rels_pages_fk": { "name": "payload_locked_documents_rels_pages_fk", "tableFrom": "payload_locked_documents_rels", "tableTo": "pages", "columnsFrom": [ "pages_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" } }, "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": {} } }, "views": {}, "enums": {}, "_meta": { "tables": {}, "columns": {} }, "internal": { "indexes": {} }, "id": "d13dd299-a513-4faa-916b-16f2328c7889", "prevId": "00000000-0000-0000-0000-000000000000" }