qazaq-legacy-foundation-web/src/migrations/20261117_124029_admin_panel.json
Peppa d78c5623bc
All checks were successful
peppa/lint lint: success за 2с
peppa/typecheck typecheck: success за 5с
peppa/test test: success за 1с
peppa/build build: success за 65с
ci / checks (pull_request) Successful in 1m54s
deploy / deploy (pull_request) Successful in 3m7s
QLFW-6: панель управления: проекты, новости, фото, «О фонде», контакты
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-17 17:44:03 +05:00

2200 lines
56 KiB
JSON

{
"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'"
},
"cover_id": {
"name": "cover_id",
"type": "integer",
"primaryKey": false,
"notNull": false,
"autoincrement": false
},
"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_cover_idx": {
"name": "news_cover_idx",
"columns": [
"cover_id"
],
"isUnique": false
},
"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": {
"news_cover_id_media_id_fk": {
"name": "news_cover_id_media_id_fk",
"tableFrom": "news",
"tableTo": "media",
"columnsFrom": [
"cover_id"
],
"columnsTo": [
"id"
],
"onDelete": "set null",
"onUpdate": "no action"
}
},
"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
},
"body": {
"name": "body",
"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": {}
},
"projects": {
"name": "projects",
"columns": {
"id": {
"name": "id",
"type": "integer",
"primaryKey": true,
"notNull": true,
"autoincrement": false
},
"slug": {
"name": "slug",
"type": "text",
"primaryKey": false,
"notNull": true,
"autoincrement": false
},
"cover_id": {
"name": "cover_id",
"type": "integer",
"primaryKey": false,
"notNull": false,
"autoincrement": false
},
"order": {
"name": "order",
"type": "numeric",
"primaryKey": false,
"notNull": false,
"autoincrement": false,
"default": 100
},
"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": {
"projects_slug_idx": {
"name": "projects_slug_idx",
"columns": [
"slug"
],
"isUnique": true
},
"projects_cover_idx": {
"name": "projects_cover_idx",
"columns": [
"cover_id"
],
"isUnique": false
},
"projects_updated_at_idx": {
"name": "projects_updated_at_idx",
"columns": [
"updated_at"
],
"isUnique": false
},
"projects_created_at_idx": {
"name": "projects_created_at_idx",
"columns": [
"created_at"
],
"isUnique": false
}
},
"foreignKeys": {
"projects_cover_id_media_id_fk": {
"name": "projects_cover_id_media_id_fk",
"tableFrom": "projects",
"tableTo": "media",
"columnsFrom": [
"cover_id"
],
"columnsTo": [
"id"
],
"onDelete": "set null",
"onUpdate": "no action"
}
},
"compositePrimaryKeys": {},
"uniqueConstraints": {},
"checkConstraints": {}
},
"projects_locales": {
"name": "projects_locales",
"columns": {
"title": {
"name": "title",
"type": "text",
"primaryKey": false,
"notNull": true,
"autoincrement": false
},
"summary": {
"name": "summary",
"type": "text",
"primaryKey": false,
"notNull": false,
"autoincrement": false
},
"body": {
"name": "body",
"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": {
"projects_locales_locale_parent_id_unique": {
"name": "projects_locales_locale_parent_id_unique",
"columns": [
"_locale",
"_parent_id"
],
"isUnique": true
},
"projects_locales_parent_id_idx": {
"name": "projects_locales_parent_id_idx",
"columns": [
"_parent_id"
],
"isUnique": false
}
},
"foreignKeys": {
"projects_locales_parent_id_fk": {
"name": "projects_locales_parent_id_fk",
"tableFrom": "projects_locales",
"tableTo": "projects",
"columnsFrom": [
"_parent_id"
],
"columnsTo": [
"id"
],
"onDelete": "cascade",
"onUpdate": "no action"
}
},
"compositePrimaryKeys": {},
"uniqueConstraints": {},
"checkConstraints": {}
},
"media": {
"name": "media",
"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'))"
},
"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
}
},
"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
}
},
"foreignKeys": {},
"compositePrimaryKeys": {},
"uniqueConstraints": {},
"checkConstraints": {}
},
"media_locales": {
"name": "media_locales",
"columns": {
"alt": {
"name": "alt",
"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": {
"media_locales_locale_parent_id_unique": {
"name": "media_locales_locale_parent_id_unique",
"columns": [
"_locale",
"_parent_id"
],
"isUnique": true
},
"media_locales_parent_id_idx": {
"name": "media_locales_parent_id_idx",
"columns": [
"_parent_id"
],
"isUnique": false
}
},
"foreignKeys": {
"media_locales_parent_id_fk": {
"name": "media_locales_parent_id_fk",
"tableFrom": "media_locales",
"tableTo": "media",
"columnsFrom": [
"_parent_id"
],
"columnsTo": [
"id"
],
"onDelete": "cascade",
"onUpdate": "no action"
}
},
"compositePrimaryKeys": {},
"uniqueConstraints": {},
"checkConstraints": {}
},
"inquiries": {
"name": "inquiries",
"columns": {
"id": {
"name": "id",
"type": "integer",
"primaryKey": true,
"notNull": true,
"autoincrement": false
},
"name": {
"name": "name",
"type": "text",
"primaryKey": false,
"notNull": true,
"autoincrement": false
},
"email": {
"name": "email",
"type": "text",
"primaryKey": false,
"notNull": true,
"autoincrement": false
},
"organization": {
"name": "organization",
"type": "text",
"primaryKey": false,
"notNull": false,
"autoincrement": false
},
"message": {
"name": "message",
"type": "text",
"primaryKey": false,
"notNull": true,
"autoincrement": false
},
"locale": {
"name": "locale",
"type": "text",
"primaryKey": false,
"notNull": false,
"autoincrement": false
},
"emailed": {
"name": "emailed",
"type": "integer",
"primaryKey": false,
"notNull": false,
"autoincrement": false,
"default": 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": {
"inquiries_updated_at_idx": {
"name": "inquiries_updated_at_idx",
"columns": [
"updated_at"
],
"isUnique": false
},
"inquiries_created_at_idx": {
"name": "inquiries_created_at_idx",
"columns": [
"created_at"
],
"isUnique": false
}
},
"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
},
"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
},
"projects_id": {
"name": "projects_id",
"type": "integer",
"primaryKey": false,
"notNull": false,
"autoincrement": false
},
"media_id": {
"name": "media_id",
"type": "integer",
"primaryKey": false,
"notNull": false,
"autoincrement": false
},
"inquiries_id": {
"name": "inquiries_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
},
"payload_locked_documents_rels_projects_id_idx": {
"name": "payload_locked_documents_rels_projects_id_idx",
"columns": [
"projects_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_inquiries_id_idx": {
"name": "payload_locked_documents_rels_inquiries_id_idx",
"columns": [
"inquiries_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"
},
"payload_locked_documents_rels_projects_fk": {
"name": "payload_locked_documents_rels_projects_fk",
"tableFrom": "payload_locked_documents_rels",
"tableTo": "projects",
"columnsFrom": [
"projects_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_inquiries_fk": {
"name": "payload_locked_documents_rels_inquiries_fk",
"tableFrom": "payload_locked_documents_rels",
"tableTo": "inquiries",
"columnsFrom": [
"inquiries_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": {}
},
"about": {
"name": "about",
"columns": {
"id": {
"name": "id",
"type": "integer",
"primaryKey": true,
"notNull": true,
"autoincrement": false
},
"photo_id": {
"name": "photo_id",
"type": "integer",
"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": {
"about_photo_idx": {
"name": "about_photo_idx",
"columns": [
"photo_id"
],
"isUnique": false
}
},
"foreignKeys": {
"about_photo_id_media_id_fk": {
"name": "about_photo_id_media_id_fk",
"tableFrom": "about",
"tableTo": "media",
"columnsFrom": [
"photo_id"
],
"columnsTo": [
"id"
],
"onDelete": "set null",
"onUpdate": "no action"
}
},
"compositePrimaryKeys": {},
"uniqueConstraints": {},
"checkConstraints": {}
},
"about_locales": {
"name": "about_locales",
"columns": {
"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": "integer",
"primaryKey": false,
"notNull": true,
"autoincrement": false
}
},
"indexes": {
"about_locales_locale_parent_id_unique": {
"name": "about_locales_locale_parent_id_unique",
"columns": [
"_locale",
"_parent_id"
],
"isUnique": true
},
"about_locales_parent_id_idx": {
"name": "about_locales_parent_id_idx",
"columns": [
"_parent_id"
],
"isUnique": false
}
},
"foreignKeys": {
"about_locales_parent_id_fk": {
"name": "about_locales_parent_id_fk",
"tableFrom": "about_locales",
"tableTo": "about",
"columnsFrom": [
"_parent_id"
],
"columnsTo": [
"id"
],
"onDelete": "cascade",
"onUpdate": "no action"
}
},
"compositePrimaryKeys": {},
"uniqueConstraints": {},
"checkConstraints": {}
},
"site_settings_socials": {
"name": "site_settings_socials",
"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
},
"label": {
"name": "label",
"type": "text",
"primaryKey": false,
"notNull": true,
"autoincrement": false
},
"url": {
"name": "url",
"type": "text",
"primaryKey": false,
"notNull": true,
"autoincrement": false
}
},
"indexes": {
"site_settings_socials_order_idx": {
"name": "site_settings_socials_order_idx",
"columns": [
"_order"
],
"isUnique": false
},
"site_settings_socials_parent_id_idx": {
"name": "site_settings_socials_parent_id_idx",
"columns": [
"_parent_id"
],
"isUnique": false
}
},
"foreignKeys": {
"site_settings_socials_parent_id_fk": {
"name": "site_settings_socials_parent_id_fk",
"tableFrom": "site_settings_socials",
"tableTo": "site_settings",
"columnsFrom": [
"_parent_id"
],
"columnsTo": [
"id"
],
"onDelete": "cascade",
"onUpdate": "no action"
}
},
"compositePrimaryKeys": {},
"uniqueConstraints": {},
"checkConstraints": {}
},
"site_settings": {
"name": "site_settings",
"columns": {
"id": {
"name": "id",
"type": "integer",
"primaryKey": true,
"notNull": true,
"autoincrement": false
},
"email": {
"name": "email",
"type": "text",
"primaryKey": false,
"notNull": false,
"autoincrement": false
},
"phone": {
"name": "phone",
"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": {}
},
"site_settings_locales": {
"name": "site_settings_locales",
"columns": {
"address": {
"name": "address",
"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": {
"site_settings_locales_locale_parent_id_unique": {
"name": "site_settings_locales_locale_parent_id_unique",
"columns": [
"_locale",
"_parent_id"
],
"isUnique": true
},
"site_settings_locales_parent_id_idx": {
"name": "site_settings_locales_parent_id_idx",
"columns": [
"_parent_id"
],
"isUnique": false
}
},
"foreignKeys": {
"site_settings_locales_parent_id_fk": {
"name": "site_settings_locales_parent_id_fk",
"tableFrom": "site_settings_locales",
"tableTo": "site_settings",
"columnsFrom": [
"_parent_id"
],
"columnsTo": [
"id"
],
"onDelete": "cascade",
"onUpdate": "no action"
}
},
"compositePrimaryKeys": {},
"uniqueConstraints": {},
"checkConstraints": {}
},
"legal": {
"name": "legal",
"columns": {
"id": {
"name": "id",
"type": "integer",
"primaryKey": true,
"notNull": true,
"autoincrement": false
},
"privacy_updated": {
"name": "privacy_updated",
"type": "text",
"primaryKey": false,
"notNull": false,
"autoincrement": false
},
"terms_updated": {
"name": "terms_updated",
"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": {}
},
"legal_locales": {
"name": "legal_locales",
"columns": {
"privacy_body": {
"name": "privacy_body",
"type": "text",
"primaryKey": false,
"notNull": false,
"autoincrement": false
},
"terms_body": {
"name": "terms_body",
"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": {
"legal_locales_locale_parent_id_unique": {
"name": "legal_locales_locale_parent_id_unique",
"columns": [
"_locale",
"_parent_id"
],
"isUnique": true
},
"legal_locales_parent_id_idx": {
"name": "legal_locales_parent_id_idx",
"columns": [
"_parent_id"
],
"isUnique": false
}
},
"foreignKeys": {
"legal_locales_parent_id_fk": {
"name": "legal_locales_parent_id_fk",
"tableFrom": "legal_locales",
"tableTo": "legal",
"columnsFrom": [
"_parent_id"
],
"columnsTo": [
"id"
],
"onDelete": "cascade",
"onUpdate": "no action"
}
},
"compositePrimaryKeys": {},
"uniqueConstraints": {},
"checkConstraints": {}
}
},
"views": {},
"enums": {},
"_meta": {
"tables": {},
"columns": {}
},
"internal": {
"indexes": {}
},
"id": "bb0f4b80-de2c-4c73-a46c-60d23575f3c2",
"prevId": "00000000-0000-0000-0000-000000000000"
}