diff --git a/.github/workflows/dependabot.yml b/.github/workflows/dependabot.yml new file mode 100644 index 00000000..9495f9b8 --- /dev/null +++ b/.github/workflows/dependabot.yml @@ -0,0 +1,23 @@ +version: 2 +updates: + - package-ecosystem: 'npm' + directory: '/' + schedule: + interval: 'weekly' + open-pull-requests-limit: 3 + allow: + - dependency-name: 'payload' + - dependency-name: '@payloadcms/admin-bar' + - dependency-name: '@payloadcms/db-sqlite' + - dependency-name: '@payloadcms/email-nodemailer' + - dependency-name: '@payloadcms/email-resend' + - dependency-name: '@payloadcms/next' + - dependency-name: '@payloadcms/plugin-form-builder' + - dependency-name: '@payloadcms/plugin-multi-tenant' + - dependency-name: '@payloadcms/plugin-redirects' + - dependency-name: '@payloadcms/plugin-sentry' + - dependency-name: '@payloadcms/plugin-seo' + - dependency-name: '@payloadcms/richtext-lexical' + - dependency-name: '@payloadcms/storage-vercel-blob' + - dependency-name: '@payloadcms/ui' + - dependency-name: '@payloadcms/live-preview-react' diff --git a/docs/migration-safety.md b/docs/migration-safety.md index 79ae8362..9051b5ab 100644 --- a/docs/migration-safety.md +++ b/docs/migration-safety.md @@ -107,6 +107,80 @@ The simplest solution here is to keep fields that we want to remove and avoid mi This avoids needing the migration at all. It would be ideal to remove the data since we would be making the decision that we don't need it anymore but it is an acceptable trade off. +## Writing Custom Migrations to Replace Unsafe Auto-Generated Ones + +Sometimes Payload/Drizzle generates migrations that would cause data loss in production due to the `PRAGMA foreign_keys=OFF` issue. In these cases, you need to: +1. Manually simplify the migration to avoid the unsafe patterns +2. Preserve the JSON schema snapshot so Payload's diffing logic recognizes the schema is in sync + +### Understanding Payload's Migration System + +Payload uses Drizzle under the hood, which tracks the database schema state using JSON snapshot files: +- Each migration has **two files**: `{timestamp}_{name}.ts` and `{timestamp}_{name}.json` +- The **TypeScript file** contains the migration SQL commands +- The **JSON file** is a snapshot of the **expected schema state after the migration runs** +- When you run `pnpm payload migrate:create`, Drizzle compares your Payload config against the **latest JSON snapshot** to detect changes + +### Write your own, simplified migration + +#### Step 1: Analyze what actually needs to change + +Look at the auto-generated migration and identify the **actual schema change**. Often, a massive migration is just Drizzle's way of making a small change. + +One liner (compares the two most recent migrations): `diff -u --color=always $(ls -t src/migrations/*.json | sed -n '2p') $(ls -t src/migrations/*.json | sed -n '1p')` + +#### Step 2: Write a minimal, safe migration + +Replace the auto-generated migration using `await db.run()` sql statements or using the Payload Local API. + +**Key principles:** +- Avoid `PRAGMA foreign_keys=OFF` completely +- Avoid table recreation (`CREATE TABLE __new_*`, `DROP TABLE`, `ALTER TABLE RENAME`) +- Add clear comments explaining why you simplified it + +#### Step 3: Preserve the JSON schema snapshot + +**Critical:** Don't delete the JSON file! You need to keep it so Payload knows what the schema should look like after the migration. + +If you already deleted it or want to regenerate it: + +```bash +# Generate a new migration to get the correct JSON snapshot +pnpm payload migrate:create temp_for_json + +# Move the JSON file to your migration and delete the temp TS file +mv src/migrations/{temp_timestamp}_temp_for_json.json src/migrations/{your_migration_timestamp}.json +rm src/migrations/{temp_timestamp}_temp_for_json.ts +``` + +The JSON file represents the **target schema state** that Payload expects after running your migration. + +#### Step 4: Verify the schema is in sync + +Test that Payload's diffing logic recognizes your custom migration as correct: + +```bash +pnpm payload migrate:create test_check +``` + +You should see: **"No schema changes detected. Would you like to create a blank migration file?"** + +If Payload tries to generate another migration, it means your JSON snapshot doesn't match what Payload expects. You may need to regenerate the JSON file (Step 3). + +#### Step 5: Test the migration + +Follow the "Testing a migration locally" workflow above using a local Turso server to ensure: +- The migration runs without errors +- No data is lost +- The schema state matches expectations + +### When you can't write your own migration avoiding the table recreation pattern + +If the migration genuinely needs to modify table structures in ways that require `PRAGMA foreign_keys=OFF`: + +Keep the old schema and mark fields as `hidden: true` (see "The fix: keep old attributes" above) + + ## Known issues ## Implementation Details diff --git a/package.json b/package.json index b74feb84..3c1d0691 100644 --- a/package.json +++ b/package.json @@ -43,18 +43,18 @@ }, "dependencies": { "@libsql/client": "^0.15.4", - "@payloadcms/admin-bar": "3.58.0", - "@payloadcms/db-sqlite": "3.58.0", - "@payloadcms/email-nodemailer": "3.58.0", - "@payloadcms/email-resend": "3.58.0", - "@payloadcms/live-preview-react": "3.58.0", - "@payloadcms/next": "3.58.0", - "@payloadcms/plugin-form-builder": "3.58.0", - "@payloadcms/plugin-sentry": "3.58.0", - "@payloadcms/plugin-seo": "3.58.0", - "@payloadcms/richtext-lexical": "3.58.0", - "@payloadcms/storage-vercel-blob": "3.58.0", - "@payloadcms/ui": "3.58.0", + "@payloadcms/admin-bar": "3.61.0", + "@payloadcms/db-sqlite": "3.61.0", + "@payloadcms/email-nodemailer": "3.61.0", + "@payloadcms/email-resend": "3.61.0", + "@payloadcms/live-preview-react": "3.61.0", + "@payloadcms/next": "3.61.0", + "@payloadcms/plugin-form-builder": "3.61.0", + "@payloadcms/plugin-sentry": "3.61.0", + "@payloadcms/plugin-seo": "3.61.0", + "@payloadcms/richtext-lexical": "3.61.0", + "@payloadcms/storage-vercel-blob": "3.61.0", + "@payloadcms/ui": "3.61.0", "@radix-ui/react-accordion": "^1.2.4", "@radix-ui/react-avatar": "^1.1.7", "@radix-ui/react-checkbox": "^1.1.3", @@ -91,9 +91,9 @@ "next": "^15.4.7", "next-sitemap": "^4.2.3", "nextjs-toploader": "^3.9.17", - "payload": "3.58.0", - "pino": "^9.6.0", - "pino-pretty": "^13.1.1", + "payload": "3.61.0", + "pino": "9.14.0", + "pino-pretty": "13.1.2", "pluralize": "^8.0.0", "posthog-js": "^1.257.0", "posthog-node": "^5.5.1", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 29bd268c..6dd855e8 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -11,41 +11,41 @@ importers: specifier: ^0.15.4 version: 0.15.4 '@payloadcms/admin-bar': - specifier: 3.58.0 - version: 3.58.0(react-dom@19.1.0(react@19.1.0))(react@19.1.0) + specifier: 3.61.0 + version: 3.61.0(react-dom@19.1.0(react@19.1.0))(react@19.1.0) '@payloadcms/db-sqlite': - specifier: 3.58.0 - version: 3.58.0(@opentelemetry/api@1.9.0)(@types/pg@8.6.1)(payload@3.58.0(graphql@16.10.0)(typescript@5.7.2)) + specifier: 3.61.0 + version: 3.61.0(@opentelemetry/api@1.9.0)(@types/pg@8.6.1)(payload@3.61.0(graphql@16.10.0)(typescript@5.7.2)) '@payloadcms/email-nodemailer': - specifier: 3.58.0 - version: 3.58.0(payload@3.58.0(graphql@16.10.0)(typescript@5.7.2)) + specifier: 3.61.0 + version: 3.61.0(payload@3.61.0(graphql@16.10.0)(typescript@5.7.2)) '@payloadcms/email-resend': - specifier: 3.58.0 - version: 3.58.0(payload@3.58.0(graphql@16.10.0)(typescript@5.7.2)) + specifier: 3.61.0 + version: 3.61.0(payload@3.61.0(graphql@16.10.0)(typescript@5.7.2)) '@payloadcms/live-preview-react': - specifier: 3.58.0 - version: 3.58.0(react-dom@19.1.0(react@19.1.0))(react@19.1.0) + specifier: 3.61.0 + version: 3.61.0(react-dom@19.1.0(react@19.1.0))(react@19.1.0) '@payloadcms/next': - specifier: 3.58.0 - version: 3.58.0(@types/react@19.0.1)(graphql@16.10.0)(monaco-editor@0.52.2)(next@15.4.7(@babel/core@7.27.4)(@opentelemetry/api@1.9.0)(babel-plugin-macros@3.1.0)(react-dom@19.1.0(react@19.1.0))(react@19.1.0)(sass@1.77.4))(payload@3.58.0(graphql@16.10.0)(typescript@5.7.2))(react-dom@19.1.0(react@19.1.0))(react@19.1.0)(typescript@5.7.2) + specifier: 3.61.0 + version: 3.61.0(@types/react@19.0.1)(graphql@16.10.0)(monaco-editor@0.52.2)(next@15.4.7(@babel/core@7.27.4)(@opentelemetry/api@1.9.0)(babel-plugin-macros@3.1.0)(react-dom@19.1.0(react@19.1.0))(react@19.1.0)(sass@1.77.4))(payload@3.61.0(graphql@16.10.0)(typescript@5.7.2))(react-dom@19.1.0(react@19.1.0))(react@19.1.0)(typescript@5.7.2) '@payloadcms/plugin-form-builder': - specifier: 3.58.0 - version: 3.58.0(@types/react@19.0.1)(monaco-editor@0.52.2)(next@15.4.7(@babel/core@7.27.4)(@opentelemetry/api@1.9.0)(babel-plugin-macros@3.1.0)(react-dom@19.1.0(react@19.1.0))(react@19.1.0)(sass@1.77.4))(payload@3.58.0(graphql@16.10.0)(typescript@5.7.2))(react-dom@19.1.0(react@19.1.0))(react@19.1.0)(typescript@5.7.2) + specifier: 3.61.0 + version: 3.61.0(@types/react@19.0.1)(monaco-editor@0.52.2)(next@15.4.7(@babel/core@7.27.4)(@opentelemetry/api@1.9.0)(babel-plugin-macros@3.1.0)(react-dom@19.1.0(react@19.1.0))(react@19.1.0)(sass@1.77.4))(payload@3.61.0(graphql@16.10.0)(typescript@5.7.2))(react-dom@19.1.0(react@19.1.0))(react@19.1.0)(typescript@5.7.2) '@payloadcms/plugin-sentry': - specifier: 3.58.0 - version: 3.58.0(@opentelemetry/context-async-hooks@1.30.1(@opentelemetry/api@1.9.0))(@opentelemetry/core@1.30.1(@opentelemetry/api@1.9.0))(@opentelemetry/instrumentation@0.57.2(@opentelemetry/api@1.9.0))(@opentelemetry/sdk-trace-base@1.30.1(@opentelemetry/api@1.9.0))(next@15.4.7(@babel/core@7.27.4)(@opentelemetry/api@1.9.0)(babel-plugin-macros@3.1.0)(react-dom@19.1.0(react@19.1.0))(react@19.1.0)(sass@1.77.4))(payload@3.58.0(graphql@16.10.0)(typescript@5.7.2))(react-dom@19.1.0(react@19.1.0))(react@19.1.0)(webpack@5.100.2(esbuild@0.25.5)) + specifier: 3.61.0 + version: 3.61.0(@opentelemetry/context-async-hooks@1.30.1(@opentelemetry/api@1.9.0))(@opentelemetry/core@1.30.1(@opentelemetry/api@1.9.0))(@opentelemetry/instrumentation@0.57.2(@opentelemetry/api@1.9.0))(@opentelemetry/sdk-trace-base@1.30.1(@opentelemetry/api@1.9.0))(next@15.4.7(@babel/core@7.27.4)(@opentelemetry/api@1.9.0)(babel-plugin-macros@3.1.0)(react-dom@19.1.0(react@19.1.0))(react@19.1.0)(sass@1.77.4))(payload@3.61.0(graphql@16.10.0)(typescript@5.7.2))(react-dom@19.1.0(react@19.1.0))(react@19.1.0)(webpack@5.100.2(esbuild@0.25.5)) '@payloadcms/plugin-seo': - specifier: 3.58.0 - version: 3.58.0(@types/react@19.0.1)(monaco-editor@0.52.2)(next@15.4.7(@babel/core@7.27.4)(@opentelemetry/api@1.9.0)(babel-plugin-macros@3.1.0)(react-dom@19.1.0(react@19.1.0))(react@19.1.0)(sass@1.77.4))(payload@3.58.0(graphql@16.10.0)(typescript@5.7.2))(react-dom@19.1.0(react@19.1.0))(react@19.1.0)(typescript@5.7.2) + specifier: 3.61.0 + version: 3.61.0(@types/react@19.0.1)(monaco-editor@0.52.2)(next@15.4.7(@babel/core@7.27.4)(@opentelemetry/api@1.9.0)(babel-plugin-macros@3.1.0)(react-dom@19.1.0(react@19.1.0))(react@19.1.0)(sass@1.77.4))(payload@3.61.0(graphql@16.10.0)(typescript@5.7.2))(react-dom@19.1.0(react@19.1.0))(react@19.1.0)(typescript@5.7.2) '@payloadcms/richtext-lexical': - specifier: 3.58.0 - version: 3.58.0(@faceless-ui/modal@3.0.0(react-dom@19.1.0(react@19.1.0))(react@19.1.0))(@faceless-ui/scroll-info@2.0.0(react-dom@19.1.0(react@19.1.0))(react@19.1.0))(@payloadcms/next@3.58.0(@types/react@19.0.1)(graphql@16.10.0)(monaco-editor@0.52.2)(next@15.4.7(@babel/core@7.27.4)(@opentelemetry/api@1.9.0)(babel-plugin-macros@3.1.0)(react-dom@19.1.0(react@19.1.0))(react@19.1.0)(sass@1.77.4))(payload@3.58.0(graphql@16.10.0)(typescript@5.7.2))(react-dom@19.1.0(react@19.1.0))(react@19.1.0)(typescript@5.7.2))(@types/react@19.0.1)(monaco-editor@0.52.2)(next@15.4.7(@babel/core@7.27.4)(@opentelemetry/api@1.9.0)(babel-plugin-macros@3.1.0)(react-dom@19.1.0(react@19.1.0))(react@19.1.0)(sass@1.77.4))(payload@3.58.0(graphql@16.10.0)(typescript@5.7.2))(react-dom@19.1.0(react@19.1.0))(react@19.1.0)(typescript@5.7.2)(yjs@13.6.24) + specifier: 3.61.0 + version: 3.61.0(@faceless-ui/modal@3.0.0(react-dom@19.1.0(react@19.1.0))(react@19.1.0))(@faceless-ui/scroll-info@2.0.0(react-dom@19.1.0(react@19.1.0))(react@19.1.0))(@payloadcms/next@3.61.0(@types/react@19.0.1)(graphql@16.10.0)(monaco-editor@0.52.2)(next@15.4.7(@babel/core@7.27.4)(@opentelemetry/api@1.9.0)(babel-plugin-macros@3.1.0)(react-dom@19.1.0(react@19.1.0))(react@19.1.0)(sass@1.77.4))(payload@3.61.0(graphql@16.10.0)(typescript@5.7.2))(react-dom@19.1.0(react@19.1.0))(react@19.1.0)(typescript@5.7.2))(@types/react@19.0.1)(monaco-editor@0.52.2)(next@15.4.7(@babel/core@7.27.4)(@opentelemetry/api@1.9.0)(babel-plugin-macros@3.1.0)(react-dom@19.1.0(react@19.1.0))(react@19.1.0)(sass@1.77.4))(payload@3.61.0(graphql@16.10.0)(typescript@5.7.2))(react-dom@19.1.0(react@19.1.0))(react@19.1.0)(typescript@5.7.2)(yjs@13.6.24) '@payloadcms/storage-vercel-blob': - specifier: 3.58.0 - version: 3.58.0(@types/react@19.0.1)(monaco-editor@0.52.2)(next@15.4.7(@babel/core@7.27.4)(@opentelemetry/api@1.9.0)(babel-plugin-macros@3.1.0)(react-dom@19.1.0(react@19.1.0))(react@19.1.0)(sass@1.77.4))(payload@3.58.0(graphql@16.10.0)(typescript@5.7.2))(react-dom@19.1.0(react@19.1.0))(react@19.1.0)(typescript@5.7.2) + specifier: 3.61.0 + version: 3.61.0(@types/react@19.0.1)(monaco-editor@0.52.2)(next@15.4.7(@babel/core@7.27.4)(@opentelemetry/api@1.9.0)(babel-plugin-macros@3.1.0)(react-dom@19.1.0(react@19.1.0))(react@19.1.0)(sass@1.77.4))(payload@3.61.0(graphql@16.10.0)(typescript@5.7.2))(react-dom@19.1.0(react@19.1.0))(react@19.1.0)(typescript@5.7.2) '@payloadcms/ui': - specifier: 3.58.0 - version: 3.58.0(@types/react@19.0.1)(monaco-editor@0.52.2)(next@15.4.7(@babel/core@7.27.4)(@opentelemetry/api@1.9.0)(babel-plugin-macros@3.1.0)(react-dom@19.1.0(react@19.1.0))(react@19.1.0)(sass@1.77.4))(payload@3.58.0(graphql@16.10.0)(typescript@5.7.2))(react-dom@19.1.0(react@19.1.0))(react@19.1.0)(typescript@5.7.2) + specifier: 3.61.0 + version: 3.61.0(@types/react@19.0.1)(monaco-editor@0.52.2)(next@15.4.7(@babel/core@7.27.4)(@opentelemetry/api@1.9.0)(babel-plugin-macros@3.1.0)(react-dom@19.1.0(react@19.1.0))(react@19.1.0)(sass@1.77.4))(payload@3.61.0(graphql@16.10.0)(typescript@5.7.2))(react-dom@19.1.0(react@19.1.0))(react@19.1.0)(typescript@5.7.2) '@radix-ui/react-accordion': specifier: ^1.2.4 version: 1.2.8(@types/react-dom@19.0.1)(@types/react@19.0.1)(react-dom@19.1.0(react@19.1.0))(react@19.1.0) @@ -155,14 +155,14 @@ importers: specifier: ^3.9.17 version: 3.9.17(next@15.4.7(@babel/core@7.27.4)(@opentelemetry/api@1.9.0)(babel-plugin-macros@3.1.0)(react-dom@19.1.0(react@19.1.0))(react@19.1.0)(sass@1.77.4))(react-dom@19.1.0(react@19.1.0))(react@19.1.0) payload: - specifier: 3.58.0 - version: 3.58.0(graphql@16.10.0)(typescript@5.7.2) + specifier: 3.61.0 + version: 3.61.0(graphql@16.10.0)(typescript@5.7.2) pino: - specifier: ^9.6.0 - version: 9.6.0 + specifier: 9.14.0 + version: 9.14.0 pino-pretty: - specifier: ^13.1.1 - version: 13.1.1 + specifier: 13.1.2 + version: 13.1.2 pluralize: specifier: ^8.0.0 version: 8.0.0 @@ -878,15 +878,6 @@ packages: } deprecated: 'Merged into tsx: https://tsx.is' - '@esbuild/aix-ppc64@0.23.1': - resolution: - { - integrity: sha512-6VhYk1diRqrhBAqpJEdjASR/+WVRtfjpqKuNw11cLiaWpAT/Uu+nokB+UJnevzy/P9C/ty6AOe0dwueMrGh/iQ==, - } - engines: { node: '>=18' } - cpu: [ppc64] - os: [aix] - '@esbuild/aix-ppc64@0.25.0': resolution: { @@ -914,15 +905,6 @@ packages: cpu: [arm64] os: [android] - '@esbuild/android-arm64@0.23.1': - resolution: - { - integrity: sha512-xw50ipykXcLstLeWH7WRdQuysJqejuAGPd30vd1i5zSyKK3WE+ijzHmLKxdiCMtH1pHz78rOg0BKSYOSB/2Khw==, - } - engines: { node: '>=18' } - cpu: [arm64] - os: [android] - '@esbuild/android-arm64@0.25.0': resolution: { @@ -950,15 +932,6 @@ packages: cpu: [arm] os: [android] - '@esbuild/android-arm@0.23.1': - resolution: - { - integrity: sha512-uz6/tEy2IFm9RYOyvKl88zdzZfwEfKZmnX9Cj1BHjeSGNuGLuMD1kR8y5bteYmwqKm1tj8m4cb/aKEorr6fHWQ==, - } - engines: { node: '>=18' } - cpu: [arm] - os: [android] - '@esbuild/android-arm@0.25.0': resolution: { @@ -986,15 +959,6 @@ packages: cpu: [x64] os: [android] - '@esbuild/android-x64@0.23.1': - resolution: - { - integrity: sha512-nlN9B69St9BwUoB+jkyU090bru8L0NA3yFvAd7k8dNsVH8bi9a8cUAUSEcEEgTp2z3dbEDGJGfP6VUnkQnlReg==, - } - engines: { node: '>=18' } - cpu: [x64] - os: [android] - '@esbuild/android-x64@0.25.0': resolution: { @@ -1022,15 +986,6 @@ packages: cpu: [arm64] os: [darwin] - '@esbuild/darwin-arm64@0.23.1': - resolution: - { - integrity: sha512-YsS2e3Wtgnw7Wq53XXBLcV6JhRsEq8hkfg91ESVadIrzr9wO6jJDMZnCQbHm1Guc5t/CdDiFSSfWP58FNuvT3Q==, - } - engines: { node: '>=18' } - cpu: [arm64] - os: [darwin] - '@esbuild/darwin-arm64@0.25.0': resolution: { @@ -1058,15 +1013,6 @@ packages: cpu: [x64] os: [darwin] - '@esbuild/darwin-x64@0.23.1': - resolution: - { - integrity: sha512-aClqdgTDVPSEGgoCS8QDG37Gu8yc9lTHNAQlsztQ6ENetKEO//b8y31MMu2ZaPbn4kVsIABzVLXYLhCGekGDqw==, - } - engines: { node: '>=18' } - cpu: [x64] - os: [darwin] - '@esbuild/darwin-x64@0.25.0': resolution: { @@ -1094,15 +1040,6 @@ packages: cpu: [arm64] os: [freebsd] - '@esbuild/freebsd-arm64@0.23.1': - resolution: - { - integrity: sha512-h1k6yS8/pN/NHlMl5+v4XPfikhJulk4G+tKGFIOwURBSFzE8bixw1ebjluLOjfwtLqY0kewfjLSrO6tN2MgIhA==, - } - engines: { node: '>=18' } - cpu: [arm64] - os: [freebsd] - '@esbuild/freebsd-arm64@0.25.0': resolution: { @@ -1130,15 +1067,6 @@ packages: cpu: [x64] os: [freebsd] - '@esbuild/freebsd-x64@0.23.1': - resolution: - { - integrity: sha512-lK1eJeyk1ZX8UklqFd/3A60UuZ/6UVfGT2LuGo3Wp4/z7eRTRYY+0xOu2kpClP+vMTi9wKOfXi2vjUpO1Ro76g==, - } - engines: { node: '>=18' } - cpu: [x64] - os: [freebsd] - '@esbuild/freebsd-x64@0.25.0': resolution: { @@ -1166,15 +1094,6 @@ packages: cpu: [arm64] os: [linux] - '@esbuild/linux-arm64@0.23.1': - resolution: - { - integrity: sha512-/93bf2yxencYDnItMYV/v116zff6UyTjo4EtEQjUBeGiVpMmffDNUyD9UN2zV+V3LRV3/on4xdZ26NKzn6754g==, - } - engines: { node: '>=18' } - cpu: [arm64] - os: [linux] - '@esbuild/linux-arm64@0.25.0': resolution: { @@ -1202,15 +1121,6 @@ packages: cpu: [arm] os: [linux] - '@esbuild/linux-arm@0.23.1': - resolution: - { - integrity: sha512-CXXkzgn+dXAPs3WBwE+Kvnrf4WECwBdfjfeYHpMeVxWE0EceB6vhWGShs6wi0IYEqMSIzdOF1XjQ/Mkm5d7ZdQ==, - } - engines: { node: '>=18' } - cpu: [arm] - os: [linux] - '@esbuild/linux-arm@0.25.0': resolution: { @@ -1238,15 +1148,6 @@ packages: cpu: [ia32] os: [linux] - '@esbuild/linux-ia32@0.23.1': - resolution: - { - integrity: sha512-VTN4EuOHwXEkXzX5nTvVY4s7E/Krz7COC8xkftbbKRYAl96vPiUssGkeMELQMOnLOJ8k3BY1+ZY52tttZnHcXQ==, - } - engines: { node: '>=18' } - cpu: [ia32] - os: [linux] - '@esbuild/linux-ia32@0.25.0': resolution: { @@ -1274,15 +1175,6 @@ packages: cpu: [loong64] os: [linux] - '@esbuild/linux-loong64@0.23.1': - resolution: - { - integrity: sha512-Vx09LzEoBa5zDnieH8LSMRToj7ir/Jeq0Gu6qJ/1GcBq9GkfoEAoXvLiW1U9J1qE/Y/Oyaq33w5p2ZWrNNHNEw==, - } - engines: { node: '>=18' } - cpu: [loong64] - os: [linux] - '@esbuild/linux-loong64@0.25.0': resolution: { @@ -1310,15 +1202,6 @@ packages: cpu: [mips64el] os: [linux] - '@esbuild/linux-mips64el@0.23.1': - resolution: - { - integrity: sha512-nrFzzMQ7W4WRLNUOU5dlWAqa6yVeI0P78WKGUo7lg2HShq/yx+UYkeNSE0SSfSure0SqgnsxPvmAUu/vu0E+3Q==, - } - engines: { node: '>=18' } - cpu: [mips64el] - os: [linux] - '@esbuild/linux-mips64el@0.25.0': resolution: { @@ -1346,15 +1229,6 @@ packages: cpu: [ppc64] os: [linux] - '@esbuild/linux-ppc64@0.23.1': - resolution: - { - integrity: sha512-dKN8fgVqd0vUIjxuJI6P/9SSSe/mB9rvA98CSH2sJnlZ/OCZWO1DJvxj8jvKTfYUdGfcq2dDxoKaC6bHuTlgcw==, - } - engines: { node: '>=18' } - cpu: [ppc64] - os: [linux] - '@esbuild/linux-ppc64@0.25.0': resolution: { @@ -1382,15 +1256,6 @@ packages: cpu: [riscv64] os: [linux] - '@esbuild/linux-riscv64@0.23.1': - resolution: - { - integrity: sha512-5AV4Pzp80fhHL83JM6LoA6pTQVWgB1HovMBsLQ9OZWLDqVY8MVobBXNSmAJi//Csh6tcY7e7Lny2Hg1tElMjIA==, - } - engines: { node: '>=18' } - cpu: [riscv64] - os: [linux] - '@esbuild/linux-riscv64@0.25.0': resolution: { @@ -1418,15 +1283,6 @@ packages: cpu: [s390x] os: [linux] - '@esbuild/linux-s390x@0.23.1': - resolution: - { - integrity: sha512-9ygs73tuFCe6f6m/Tb+9LtYxWR4c9yg7zjt2cYkjDbDpV/xVn+68cQxMXCjUpYwEkze2RcU/rMnfIXNRFmSoDw==, - } - engines: { node: '>=18' } - cpu: [s390x] - os: [linux] - '@esbuild/linux-s390x@0.25.0': resolution: { @@ -1454,15 +1310,6 @@ packages: cpu: [x64] os: [linux] - '@esbuild/linux-x64@0.23.1': - resolution: - { - integrity: sha512-EV6+ovTsEXCPAp58g2dD68LxoP/wK5pRvgy0J/HxPGB009omFPv3Yet0HiaqvrIrgPTBuC6wCH1LTOY91EO5hQ==, - } - engines: { node: '>=18' } - cpu: [x64] - os: [linux] - '@esbuild/linux-x64@0.25.0': resolution: { @@ -1508,15 +1355,6 @@ packages: cpu: [x64] os: [netbsd] - '@esbuild/netbsd-x64@0.23.1': - resolution: - { - integrity: sha512-aevEkCNu7KlPRpYLjwmdcuNz6bDFiE7Z8XC4CPqExjTvrHugh28QzUXVOZtiYghciKUacNktqxdpymplil1beA==, - } - engines: { node: '>=18' } - cpu: [x64] - os: [netbsd] - '@esbuild/netbsd-x64@0.25.0': resolution: { @@ -1535,15 +1373,6 @@ packages: cpu: [x64] os: [netbsd] - '@esbuild/openbsd-arm64@0.23.1': - resolution: - { - integrity: sha512-3x37szhLexNA4bXhLrCC/LImN/YtWis6WXr1VESlfVtVeoFJBRINPJ3f0a/6LV8zpikqoUg4hyXw0sFBt5Cr+Q==, - } - engines: { node: '>=18' } - cpu: [arm64] - os: [openbsd] - '@esbuild/openbsd-arm64@0.25.0': resolution: { @@ -1571,15 +1400,6 @@ packages: cpu: [x64] os: [openbsd] - '@esbuild/openbsd-x64@0.23.1': - resolution: - { - integrity: sha512-aY2gMmKmPhxfU+0EdnN+XNtGbjfQgwZj43k8G3fyrDM/UdZww6xrWxmDkuz2eCZchqVeABjV5BpildOrUbBTqA==, - } - engines: { node: '>=18' } - cpu: [x64] - os: [openbsd] - '@esbuild/openbsd-x64@0.25.0': resolution: { @@ -1607,15 +1427,6 @@ packages: cpu: [x64] os: [sunos] - '@esbuild/sunos-x64@0.23.1': - resolution: - { - integrity: sha512-RBRT2gqEl0IKQABT4XTj78tpk9v7ehp+mazn2HbUeZl1YMdaGAQqhapjGTCe7uw7y0frDi4gS0uHzhvpFuI1sA==, - } - engines: { node: '>=18' } - cpu: [x64] - os: [sunos] - '@esbuild/sunos-x64@0.25.0': resolution: { @@ -1643,15 +1454,6 @@ packages: cpu: [arm64] os: [win32] - '@esbuild/win32-arm64@0.23.1': - resolution: - { - integrity: sha512-4O+gPR5rEBe2FpKOVyiJ7wNDPA8nGzDuJ6gN4okSA1gEOYZ67N8JPk58tkWtdtPeLz7lBnY6I5L3jdsr3S+A6A==, - } - engines: { node: '>=18' } - cpu: [arm64] - os: [win32] - '@esbuild/win32-arm64@0.25.0': resolution: { @@ -1679,15 +1481,6 @@ packages: cpu: [ia32] os: [win32] - '@esbuild/win32-ia32@0.23.1': - resolution: - { - integrity: sha512-BcaL0Vn6QwCwre3Y717nVHZbAa4UBEigzFm6VdsVdT/MbZ38xoj1X9HPkZhbmaBGUD1W8vxAfffbDe8bA6AKnQ==, - } - engines: { node: '>=18' } - cpu: [ia32] - os: [win32] - '@esbuild/win32-ia32@0.25.0': resolution: { @@ -1715,15 +1508,6 @@ packages: cpu: [x64] os: [win32] - '@esbuild/win32-x64@0.23.1': - resolution: - { - integrity: sha512-BHpFFeslkWrXWyUPnbKm+xYYVYruCinGcftSBaa8zoF9hZO4BcSCFUvHVTtzpIY6YzUnYtuEhZ+C9iEXjxnasg==, - } - engines: { node: '>=18' } - cpu: [x64] - os: [win32] - '@esbuild/win32-x64@0.25.0': resolution: { @@ -1899,15 +1683,6 @@ packages: react: '>=17.0.0' react-dom: '>=17.0.0' - '@floating-ui/react@0.27.5': - resolution: - { - integrity: sha512-BX3jKxo39Ba05pflcQmqPPwc0qdNsdNi/eweAFtoIdrJWNen2sVEWMEac3i6jU55Qfx+lOcdMNKYn2CtWmlnOQ==, - } - peerDependencies: - react: '>=17.0.0' - react-dom: '>=17.0.0' - '@floating-ui/utils@0.2.10': resolution: { @@ -3780,166 +3555,172 @@ packages: peerDependencies: '@opentelemetry/api': ^1.1.0 - '@payloadcms/admin-bar@3.58.0': + '@payloadcms/admin-bar@3.61.0': resolution: { - integrity: sha512-HrOZsXNsGd0THeaUEs1b7SSWaca2dr4GfbZYUUBAO/PhBY0OWJP5ZDe9t0N83kZfYPAn1Jl4l1CmQSyDtUY/nw==, + integrity: sha512-fvM/GOt0OE1aooVIO+5WPKdfIhvbC0x5avwJ+1HRBEjnuluxV9dJLfa98ziQcKwM+PbJhup/74RE3uxjxXt3fg==, } peerDependencies: react: ^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 react-dom: ^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 - '@payloadcms/db-sqlite@3.58.0': + '@payloadcms/db-sqlite@3.61.0': resolution: { - integrity: sha512-G5NDOnPe1EOApjvdznKz1/gShwE56sMrllwjc2q7RpIaKouznxX/oHzHdI38rUSsewy8pfLFjhdPlgnPkBSLMA==, + integrity: sha512-X/DkI1rCiCitV1nFtwWQJMIqSIbXlXPkL/7p1AtBA0MRV7BqmWfqBdhNZlhGITRwvbg3Xu6jfQMd9TDNVR3AuA==, } peerDependencies: - payload: 3.58.0 + payload: 3.61.0 - '@payloadcms/drizzle@3.58.0': + '@payloadcms/drizzle@3.61.0': resolution: { - integrity: sha512-rY9NpbHJz30AuV++9eiM/PUwnwGm+2EsA1HkgltgcDg7Ej5YS5/gk+gbHKWDd8RpGSwdVvSmr5+8thyV9Hh/6Q==, + integrity: sha512-hnBGKPhXsLSyGdZA/JxIz/2KtQGsyayAVvPpiFVHMUiczEDUd7zrhb1Qy6KGvBHIPNhO3ZuA8GIEtA5jwvxUFg==, } peerDependencies: - payload: 3.58.0 + payload: 3.61.0 - '@payloadcms/email-nodemailer@3.58.0': + '@payloadcms/email-nodemailer@3.61.0': resolution: { - integrity: sha512-lDprzB28O9Ke06UlPIWNx7RNNG+j5c5iugpM/xCi5fQr4XOsicRqDmlLfB6Xrz/4eckVv7ai+pg8WAb+vZlCVg==, + integrity: sha512-+CRdDnNn6DiWVPXHdcCyL2E9Ii7WkEtaR8NzqesJJ95qQkXSOg/+vqLEjN0R0jVyTN955i1UQlEU6034eFifYA==, } engines: { node: ^18.20.2 || >=20.9.0 } peerDependencies: - payload: 3.58.0 + payload: 3.61.0 - '@payloadcms/email-resend@3.58.0': + '@payloadcms/email-resend@3.61.0': resolution: { - integrity: sha512-m9g0g2DKFJh0E3PmT75fYD6yEvE8kKgNYvHXJ5RgDODTxhCdblV3+MohbKHE4mcYB/OkSjjBjYkziKyMACywqA==, + integrity: sha512-6/0T+qjEs0PEF6b3CAk+nmYoyT1tqF2Qo37wpX2BAxsS2W4IqAGbL5848DqNuvj1KbY6cvPDACwVSHzDTX0Z6w==, } engines: { node: ^18.20.2 || >=20.9.0 } peerDependencies: - payload: 3.58.0 + payload: 3.61.0 - '@payloadcms/graphql@3.58.0': + '@payloadcms/graphql@3.61.0': resolution: { - integrity: sha512-f8akk3of6Bl1Rp4bb6coBczll5IelUOs2mUSQyHvOGKbfz394FsNGX2WSl5DFaelEyyf/cVZpF7tgklvAN+DyA==, + integrity: sha512-6dT+6Omfr7QFe3zfs4m5/b2AjPOZ8KuIWcoxPNzh654y1a/vKivkhjDuVd2z88GEETonYBTkoBEzwgbdc2lOpA==, } hasBin: true peerDependencies: graphql: ^16.8.1 - payload: 3.58.0 + payload: 3.61.0 - '@payloadcms/live-preview-react@3.58.0': + '@payloadcms/live-preview-react@3.61.0': resolution: { - integrity: sha512-6rpzoA8c96EZnSLLf4aYZrG0cz8c7369ykfm/uwVgkeSN99Kq7wX08ex0WGwUM3Vzh+oAGa46gLCRqylg/Z29A==, + integrity: sha512-2zvbOo9ruc3VxcThMmh88mnHRy/2/WibHL48kYo3zi38LelAeDp15DANG/6mq6Rx2WUlPTBMcIc8MNH9ecuByw==, } peerDependencies: react: ^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 || ^19.0.0-rc-65a56d0e-20241020 react-dom: ^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 || ^19.0.0-rc-65a56d0e-20241020 - '@payloadcms/live-preview@3.58.0': + '@payloadcms/live-preview@3.61.0': resolution: { - integrity: sha512-cd79Pwi+ZmPLzJPhyDZPIhhdzzQ7Ok1Gj474qm+BwaqF0qSjcXwfSPG6UN2Mfdh/F38scbJAgCNZnJQPCWH2uw==, + integrity: sha512-ZA7Odo8S2RlSmYiPBrKhAXuLodUTcPvQF6QyiEOs/gJTWeve+mMjwC/UvuSSBMTeqaighqeBkiuiy0KRE72Pdw==, } - '@payloadcms/next@3.58.0': + '@payloadcms/next@3.61.0': resolution: { - integrity: sha512-z6akwPHNz/O/9n1OcY9yQBBLbYqmjzzueeT9EG8rW0L8a1oaXx+5Poed1vzdhXZGtTccLtcpJwMKY06QalqL9A==, + integrity: sha512-SLQ5hBzgWgbpMVqAMO9PZTjsGqHbhj3tlRuPyeRq+R7GzZbvWZQsgesxFgfcqK/e1VjIlPJNUDTj6RkJ6TE1PA==, } engines: { node: ^18.20.2 || >=20.9.0 } peerDependencies: graphql: ^16.8.1 next: ^15.2.3 - payload: 3.58.0 + payload: 3.61.0 - '@payloadcms/plugin-cloud-storage@3.58.0': + '@payloadcms/plugin-cloud-storage@3.61.0': resolution: { - integrity: sha512-sHA9rokpePAWL7hPDJgAToM9RfpeRdGmS2zAtfwFxo+IsiPEcvj+Cl9YKq1k8tj4rbVV0YDNel4WN6p/gRYLiA==, + integrity: sha512-a/Vyu2v477l2GMtA9891Kyf8WsI2J+0Cq7lHyehtlU/v6CUSAs8b6WOIQIegmIkkdIZrRmn2VebzVG7dDxzYMg==, } peerDependencies: - payload: 3.58.0 + payload: 3.61.0 react: ^19.0.0 || ^19.0.0-rc-65a56d0e-20241020 react-dom: ^19.0.0 || ^19.0.0-rc-65a56d0e-20241020 - '@payloadcms/plugin-form-builder@3.58.0': + '@payloadcms/plugin-form-builder@3.61.0': resolution: { - integrity: sha512-tOSX0D2+TMaGlB/ThPA7A6QHPArGIIFAfZ1J3+ZhpaFcFhUvSNjvZRD0kapzHiMrOqtkVp8VCeHmKIhYeqpg8g==, + integrity: sha512-Ulg5gcg4C8y8hRyRu0v+I79mQrf4D+uzX6aJ9ACz8BSFz+WQ6wbqxhrCwsfhwli+4UmPtml8FXjw1lbNtDBy4g==, } peerDependencies: - payload: 3.58.0 + payload: 3.61.0 react: ^19.0.0 || ^19.0.0-rc-65a56d0e-20241020 react-dom: ^19.0.0 || ^19.0.0-rc-65a56d0e-20241020 - '@payloadcms/plugin-sentry@3.58.0': + '@payloadcms/plugin-sentry@3.61.0': resolution: { - integrity: sha512-7g9Df9/74fmkq7FzNV+HVa8FCKsjDCbZiUzhRBukTmthkZnGPLVIqU/Eo/dVgTprIYEnJkStniozkA/9mlMZCg==, + integrity: sha512-g17Ol2y0PgNqjbFi3pc5B0Uq2TI/xMmWPfYws3wPfvac9VhPVT79i786+q/oVugqLWm1E22JHBOF5OIiZfRiTA==, } peerDependencies: - payload: 3.58.0 + payload: 3.61.0 react: ^19.0.0 || ^19.0.0-rc-65a56d0e-20241020 react-dom: ^19.0.0 || ^19.0.0-rc-65a56d0e-20241020 - '@payloadcms/plugin-seo@3.58.0': + '@payloadcms/plugin-seo@3.61.0': resolution: { - integrity: sha512-+1NA/AjW7c/r1XJRv/U+xs2hJAuRS1WBZxam4i2FM4GgwaKk1zJ/Oy6+09SmFD2ZFbOeLCMJcyzABSDSPRR1NQ==, + integrity: sha512-JngND5DYdCY99u5ghaFy73Yw14VMJvSoNkWZa6XPMFFVGGNja37lSBYxUBEjbOUwWPvogjjoPXWlFa3gYsNdqQ==, } peerDependencies: - payload: 3.58.0 + payload: 3.61.0 react: ^19.0.0 || ^19.0.0-rc-65a56d0e-20241020 react-dom: ^19.0.0 || ^19.0.0-rc-65a56d0e-20241020 - '@payloadcms/richtext-lexical@3.58.0': + '@payloadcms/richtext-lexical@3.61.0': resolution: { - integrity: sha512-VX+l3rgnpXZuoHgqePlHYaoeQD1efGl/B9SuP9bXM30Iq3kl0Q+8rtCQB40pgO3kZme+gK5wtZmmRwQ7ro4+sQ==, + integrity: sha512-hPj/KtnGLrPdDBoYNyGGn670tUvb83+G6lhtDR4Pcc9ZvmiOJ4dtPj/g+cUEnUe0l6MwK7RvsGCOolyjwFiEFQ==, } engines: { node: ^18.20.2 || >=20.9.0 } peerDependencies: '@faceless-ui/modal': 3.0.0 '@faceless-ui/scroll-info': 2.0.0 - '@payloadcms/next': 3.58.0 - payload: 3.58.0 + '@payloadcms/next': 3.61.0 + payload: 3.61.0 react: ^19.0.0 || ^19.0.0-rc-65a56d0e-20241020 react-dom: ^19.0.0 || ^19.0.0-rc-65a56d0e-20241020 - '@payloadcms/storage-vercel-blob@3.58.0': + '@payloadcms/storage-vercel-blob@3.61.0': resolution: { - integrity: sha512-1ISANMG6CJg4u557PQ6hkz9VZgYVlVxy+yV7m6QUUSIo+5TLsO8Xw0JV8F06Lk0ZeAscggtXMaSfE6ukcyyNtw==, + integrity: sha512-JIWTD+h/K5BLSLnjr5aiaw2HZ0k4u2LbUqI8m0OQjLjVnCmZynDPSjodDLjkWicNPjpFvEEgRyGxV9v23USgxw==, } engines: { node: ^18.20.2 || >=20.9.0 } peerDependencies: - payload: 3.58.0 + payload: 3.61.0 - '@payloadcms/translations@3.58.0': + '@payloadcms/translations@3.61.0': resolution: { - integrity: sha512-e665uK7C5qOgSWfW4FLOKf60hOyCEYwvwgkp9YeRjwwFOQjzTNsNCNz6zjDiSmlg+V8Ufxlww4fqH2o6TkjWvQ==, + integrity: sha512-XVQNVUZYZ+N8cLXyB7rH4vJYC4O5rlmbJ+s1OKkhDNdaDBKVm0vBAok3KX/rSxNYadYKdkEb6oEs9RotgAzNww==, } - '@payloadcms/ui@3.58.0': + '@payloadcms/ui@3.61.0': resolution: { - integrity: sha512-DbDVBKkVkCPZsOSaN0GnFnHIemXdAz9E38Wz2ZbCDLIpRza8cNkzLdCUcjWMHY1Nkz/gvXceH3hVvod2bvJCJA==, + integrity: sha512-2k5qAZhpfbu1DzjuVERAlvynghfXHXVhfpj76U+bthuKLDO3LZ+WpfpNDHro60gnlJDHR8n/Sue14rMMmVRirw==, } engines: { node: ^18.20.2 || >=20.9.0 } peerDependencies: next: ^15.2.3 - payload: 3.58.0 + payload: 3.61.0 react: ^19.0.0 || ^19.0.0-rc-65a56d0e-20241020 react-dom: ^19.0.0 || ^19.0.0-rc-65a56d0e-20241020 + '@pinojs/redact@0.4.0': + resolution: + { + integrity: sha512-k2ENnmBugE/rzQfEcdWHcCY+/FM3VLzH9cYEsbdsoqrvzAKRhUZeRNhAZvB8OitQJ1TBed3yqWtdjzS6wJKBwg==, + } + '@pkgjs/parseargs@0.11.0': resolution: { @@ -8072,17 +7853,17 @@ packages: } engines: { node: '>=12' } - drizzle-kit@0.31.4: + drizzle-kit@0.31.5: resolution: { - integrity: sha512-tCPWVZWZqWVx2XUsVpJRnH9Mx0ClVOf5YUHerZ5so1OKSlqww4zy1R5ksEdGRcO3tM3zj0PYN6V48TbQCL1RfA==, + integrity: sha512-+CHgPFzuoTQTt7cOYCV6MOw2w8vqEn/ap1yv4bpZOWL03u7rlVRQhUY0WYT3rHsgVTXwYQDZaSUJSQrMBUKuWg==, } hasBin: true - drizzle-orm@0.44.2: + drizzle-orm@0.44.6: resolution: { - integrity: sha512-zGAqBzWWkVSFjZpwPOrmCrgO++1kZ5H/rZ4qTGeGOe18iXGVJWf3WPfHOVwFIbmi8kHjfJstC6rJomzGx8g/dQ==, + integrity: sha512-uy6uarrrEOc9K1u5/uhBFJbdF5VJ5xQ/Yzbecw3eAYOunv5FDeYkR2m8iitocdHBOHbvorviKOW5GVw0U1j4LQ==, } peerDependencies: '@aws-sdk/client-rds-data': '>=3' @@ -8393,14 +8174,6 @@ packages: engines: { node: '>=12' } hasBin: true - esbuild@0.23.1: - resolution: - { - integrity: sha512-VVNz/9Sa0bs5SELtn3f7qhJCDPCF5oMEl5cO9/SSinpE9hbPVvxbd572HH5AKiP7WD8INO53GgfDDhRjkylHEg==, - } - engines: { node: '>=18' } - hasBin: true - esbuild@0.25.0: resolution: { @@ -8752,13 +8525,6 @@ packages: integrity: sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==, } - fast-redact@3.5.0: - resolution: - { - integrity: sha512-dwsoQlS7h9hMeYUq1W++23NDcBLV4KqONnITDV9DjfS3q1SgDGVrBdvvTLUotWtPSD7asWDV9/CmsZPy8Hf70A==, - } - engines: { node: '>=6' } - fast-safe-stringify@2.1.1: resolution: { @@ -10306,7 +10072,6 @@ packages: { integrity: sha512-T9eIRCs6b0J1SHKYIvD8+KCJMcWZ900iZyxdnSCdqxN12Z1ijzT+jY5nrk72Jw4B0HGzms2NgpryArlJqvc3Lw==, } - cpu: [x64, arm64, wasm32] os: [darwin, linux, win32] libsql@0.5.6: @@ -11003,10 +10768,10 @@ packages: integrity: sha512-xxOWJsBKtzAq7DY0J+DTzuz58K8e7sJbdgwkbMWQe8UYB6ekmsQ45q0M/tJDsGaZmbC+l7n57UV8Hl5tHxO9uw==, } - nodemailer@6.9.16: + nodemailer@7.0.9: resolution: { - integrity: sha512-psAuZdTIRN08HKVd/E8ObdV6NO7NTBY3KsC30F7M4H1OnmLCUNaS56FpYxyb26zWLSyYF9Ozch9KYHhHegsiOQ==, + integrity: sha512-9/Qm0qXIByEP8lEV2qOqcAW7bRpL8CR9jcTwk3NBnHJNmP9fIJ86g2fgmIXqHY+nj55ZEMwWqYAT2QTDpRUYiQ==, } engines: { node: '>=6.0.0' } @@ -11332,10 +11097,10 @@ packages: } engines: { node: '>=8' } - payload@3.58.0: + payload@3.61.0: resolution: { - integrity: sha512-r0vuhPkpIA72zEgnJeVPbxFjI7p47tCrfFXkyJTo4IlOPGhCE1o/cJHC3rn6id8OCJvK35oBVkkTJ3wPMVIWCQ==, + integrity: sha512-w4okfsyzMVC2i7Jv6z/D7gmQJXbp4sPi1mZ2z7eaSXvqybtOtcVQmOjaeSq6M7IepFBNCnsCEZsosCyvInKCCA==, } engines: { node: ^18.20.2 || >=20.9.0 } hasBin: true @@ -11416,17 +11181,10 @@ packages: integrity: sha512-F63x5tizV6WCh4R6RHyi2Ml+M70DNRXt/+HANowMflpgGFMAym/VKm6G7ZOQRjqN7XbGxK1Lg9t6ZrtzOaivMw==, } - pino-pretty@13.0.0: - resolution: - { - integrity: sha512-cQBBIVG3YajgoUjo1FdKVRX6t9XPxwB9lcNJVD5GCnNM4Y6T12YYx8c6zEejxQsU0wrg9TwmDulcE9LR7qcJqA==, - } - hasBin: true - - pino-pretty@13.1.1: + pino-pretty@13.1.2: resolution: { - integrity: sha512-TNNEOg0eA0u+/WuqH0MH0Xui7uqVk9D74ESOpjtebSQYbNWJk/dIxCXIxFsNfeN53JmtWqYHP2OrIZjT/CBEnA==, + integrity: sha512-3cN0tCakkT4f3zo9RXDIhy6GTvtYD6bK4CRBLN9j3E/ePqN1tugAXD5rGVfoChW6s0hiek+eyYlLNqc/BG7vBQ==, } hasBin: true @@ -11436,17 +11194,10 @@ packages: integrity: sha512-e906FRY0+tV27iq4juKzSYPbUj2do2X2JX4EzSca1631EB2QJQUqGbDuERal7LCtOpxl6x3+nvo9NPZcmjkiFA==, } - pino@9.5.0: + pino@9.14.0: resolution: { - integrity: sha512-xSEmD4pLnV54t0NOUN16yCl7RIB1c5UUOse5HSyEXtBp+FgFQyPeDutc+Q2ZO7/22vImV7VfEjH/1zV2QuqvYw==, - } - hasBin: true - - pino@9.6.0: - resolution: - { - integrity: sha512-i85pKRCt4qMjZ1+L7sy2Ag4t1atFcdbEt76+7iRJn1g2BvsnRMGu9p8pivl9fs63M2kF/A0OacFZhTub+m/qMg==, + integrity: sha512-8OEwKp5juEvb/MjpIc4hjqfgCNysrS94RIOMXYvpYCdm/jglrKEiAYmiumbmGhCvs+IcInsphYDFwqrjr7398w==, } hasBin: true @@ -11679,10 +11430,10 @@ packages: integrity: sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag==, } - process-warning@4.0.1: + process-warning@5.0.0: resolution: { - integrity: sha512-3c2LzQ3rY9d0hc1emcsHhfT9Jwz0cChib/QN89oME2R451w5fy3f0afAhERFZAwrbDU43wk12d0ORBpDVME50Q==, + integrity: sha512-a39t9ApHNx2L4+HBnQKqxxHNs1r7KF+Intd8Q/g1bUh6q0WIp9voPXJ/x0j+ZL45KF1pJd9+q2jLIRMfvEshkA==, } progress@2.0.3: @@ -12235,12 +11986,6 @@ packages: integrity: sha512-o/mRQGk9Rcer/jEEw/yw4mwo3EU/NvYvp577/Btqrym9Qy5/MdWGBqipbALgd2lrdWTJ5/gqDusxfnQBxOxT2Q==, } - secure-json-parse@2.7.0: - resolution: - { - integrity: sha512-6aU+Rwsezw7VR8/nyvKTx8QpWH9FrcYiXXlqC4z5d5XQBDRqtbfsRjnwGyqbi3gddNtWHuEk9OANUotL26qKUw==, - } - secure-json-parse@4.0.0: resolution: { @@ -13060,18 +12805,18 @@ packages: integrity: sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w==, } - tsx@4.19.2: + tsx@4.20.3: resolution: { - integrity: sha512-pOUl6Vo2LUq/bSa8S5q7b91cgNSjctn9ugq/+Mvow99qW6x/UZYwzxy/3NmqoT66eHYfCVvFvACC58UBPFf28g==, + integrity: sha512-qjbnuR9Tr+FJOMBqJCW5ehvIo/buZq7vH7qD7JziU98h6l3qGy0a/yPFjwO+y0/T7GFpNgNAvEcPPVfyT8rrPQ==, } engines: { node: '>=18.0.0' } hasBin: true - tsx@4.20.3: + tsx@4.20.6: resolution: { - integrity: sha512-qjbnuR9Tr+FJOMBqJCW5ehvIo/buZq7vH7qD7JziU98h6l3qGy0a/yPFjwO+y0/T7GFpNgNAvEcPPVfyT8rrPQ==, + integrity: sha512-ytQKuwgmrrkDTFP4LjR0ToE2nqgy886GpvRSpU0JAnrdBYppuY5rLkRUYPU1yCryb24SsKBTL/hlDQAEFVwtZg==, } engines: { node: '>=18.0.0' } hasBin: true @@ -14169,9 +13914,6 @@ snapshots: '@esbuild-kit/core-utils': 3.3.2 get-tsconfig: 4.10.0 - '@esbuild/aix-ppc64@0.23.1': - optional: true - '@esbuild/aix-ppc64@0.25.0': optional: true @@ -14181,9 +13923,6 @@ snapshots: '@esbuild/android-arm64@0.18.20': optional: true - '@esbuild/android-arm64@0.23.1': - optional: true - '@esbuild/android-arm64@0.25.0': optional: true @@ -14193,9 +13932,6 @@ snapshots: '@esbuild/android-arm@0.18.20': optional: true - '@esbuild/android-arm@0.23.1': - optional: true - '@esbuild/android-arm@0.25.0': optional: true @@ -14205,9 +13941,6 @@ snapshots: '@esbuild/android-x64@0.18.20': optional: true - '@esbuild/android-x64@0.23.1': - optional: true - '@esbuild/android-x64@0.25.0': optional: true @@ -14217,9 +13950,6 @@ snapshots: '@esbuild/darwin-arm64@0.18.20': optional: true - '@esbuild/darwin-arm64@0.23.1': - optional: true - '@esbuild/darwin-arm64@0.25.0': optional: true @@ -14229,9 +13959,6 @@ snapshots: '@esbuild/darwin-x64@0.18.20': optional: true - '@esbuild/darwin-x64@0.23.1': - optional: true - '@esbuild/darwin-x64@0.25.0': optional: true @@ -14241,9 +13968,6 @@ snapshots: '@esbuild/freebsd-arm64@0.18.20': optional: true - '@esbuild/freebsd-arm64@0.23.1': - optional: true - '@esbuild/freebsd-arm64@0.25.0': optional: true @@ -14253,9 +13977,6 @@ snapshots: '@esbuild/freebsd-x64@0.18.20': optional: true - '@esbuild/freebsd-x64@0.23.1': - optional: true - '@esbuild/freebsd-x64@0.25.0': optional: true @@ -14265,9 +13986,6 @@ snapshots: '@esbuild/linux-arm64@0.18.20': optional: true - '@esbuild/linux-arm64@0.23.1': - optional: true - '@esbuild/linux-arm64@0.25.0': optional: true @@ -14277,9 +13995,6 @@ snapshots: '@esbuild/linux-arm@0.18.20': optional: true - '@esbuild/linux-arm@0.23.1': - optional: true - '@esbuild/linux-arm@0.25.0': optional: true @@ -14289,9 +14004,6 @@ snapshots: '@esbuild/linux-ia32@0.18.20': optional: true - '@esbuild/linux-ia32@0.23.1': - optional: true - '@esbuild/linux-ia32@0.25.0': optional: true @@ -14301,9 +14013,6 @@ snapshots: '@esbuild/linux-loong64@0.18.20': optional: true - '@esbuild/linux-loong64@0.23.1': - optional: true - '@esbuild/linux-loong64@0.25.0': optional: true @@ -14313,9 +14022,6 @@ snapshots: '@esbuild/linux-mips64el@0.18.20': optional: true - '@esbuild/linux-mips64el@0.23.1': - optional: true - '@esbuild/linux-mips64el@0.25.0': optional: true @@ -14325,9 +14031,6 @@ snapshots: '@esbuild/linux-ppc64@0.18.20': optional: true - '@esbuild/linux-ppc64@0.23.1': - optional: true - '@esbuild/linux-ppc64@0.25.0': optional: true @@ -14337,9 +14040,6 @@ snapshots: '@esbuild/linux-riscv64@0.18.20': optional: true - '@esbuild/linux-riscv64@0.23.1': - optional: true - '@esbuild/linux-riscv64@0.25.0': optional: true @@ -14349,9 +14049,6 @@ snapshots: '@esbuild/linux-s390x@0.18.20': optional: true - '@esbuild/linux-s390x@0.23.1': - optional: true - '@esbuild/linux-s390x@0.25.0': optional: true @@ -14361,9 +14058,6 @@ snapshots: '@esbuild/linux-x64@0.18.20': optional: true - '@esbuild/linux-x64@0.23.1': - optional: true - '@esbuild/linux-x64@0.25.0': optional: true @@ -14379,18 +14073,12 @@ snapshots: '@esbuild/netbsd-x64@0.18.20': optional: true - '@esbuild/netbsd-x64@0.23.1': - optional: true - '@esbuild/netbsd-x64@0.25.0': optional: true '@esbuild/netbsd-x64@0.25.5': optional: true - '@esbuild/openbsd-arm64@0.23.1': - optional: true - '@esbuild/openbsd-arm64@0.25.0': optional: true @@ -14400,9 +14088,6 @@ snapshots: '@esbuild/openbsd-x64@0.18.20': optional: true - '@esbuild/openbsd-x64@0.23.1': - optional: true - '@esbuild/openbsd-x64@0.25.0': optional: true @@ -14412,9 +14097,6 @@ snapshots: '@esbuild/sunos-x64@0.18.20': optional: true - '@esbuild/sunos-x64@0.23.1': - optional: true - '@esbuild/sunos-x64@0.25.0': optional: true @@ -14424,9 +14106,6 @@ snapshots: '@esbuild/win32-arm64@0.18.20': optional: true - '@esbuild/win32-arm64@0.23.1': - optional: true - '@esbuild/win32-arm64@0.25.0': optional: true @@ -14436,9 +14115,6 @@ snapshots: '@esbuild/win32-ia32@0.18.20': optional: true - '@esbuild/win32-ia32@0.23.1': - optional: true - '@esbuild/win32-ia32@0.25.0': optional: true @@ -14448,9 +14124,6 @@ snapshots: '@esbuild/win32-x64@0.18.20': optional: true - '@esbuild/win32-x64@0.23.1': - optional: true - '@esbuild/win32-x64@0.25.0': optional: true @@ -14569,14 +14242,6 @@ snapshots: react-dom: 19.1.0(react@19.1.0) tabbable: 6.2.0 - '@floating-ui/react@0.27.5(react-dom@19.1.0(react@19.1.0))(react@19.1.0)': - dependencies: - '@floating-ui/react-dom': 2.1.2(react-dom@19.1.0(react@19.1.0))(react@19.1.0) - '@floating-ui/utils': 0.2.9 - react: 19.1.0 - react-dom: 19.1.0(react@19.1.0) - tabbable: 6.2.0 - '@floating-ui/utils@0.2.10': {} '@floating-ui/utils@0.2.9': {} @@ -15902,19 +15567,19 @@ snapshots: '@opentelemetry/api': 1.9.0 '@opentelemetry/core': 1.30.1(@opentelemetry/api@1.9.0) - '@payloadcms/admin-bar@3.58.0(react-dom@19.1.0(react@19.1.0))(react@19.1.0)': + '@payloadcms/admin-bar@3.61.0(react-dom@19.1.0(react@19.1.0))(react@19.1.0)': dependencies: react: 19.1.0 react-dom: 19.1.0(react@19.1.0) - '@payloadcms/db-sqlite@3.58.0(@opentelemetry/api@1.9.0)(@types/pg@8.6.1)(payload@3.58.0(graphql@16.10.0)(typescript@5.7.2))': + '@payloadcms/db-sqlite@3.61.0(@opentelemetry/api@1.9.0)(@types/pg@8.6.1)(payload@3.61.0(graphql@16.10.0)(typescript@5.7.2))': dependencies: '@libsql/client': 0.14.0 - '@payloadcms/drizzle': 3.58.0(@libsql/client@0.14.0)(@opentelemetry/api@1.9.0)(@types/pg@8.6.1)(payload@3.58.0(graphql@16.10.0)(typescript@5.7.2)) + '@payloadcms/drizzle': 3.61.0(@libsql/client@0.14.0)(@opentelemetry/api@1.9.0)(@types/pg@8.6.1)(payload@3.61.0(graphql@16.10.0)(typescript@5.7.2)) console-table-printer: 2.12.1 - drizzle-kit: 0.31.4 - drizzle-orm: 0.44.2(@libsql/client@0.14.0)(@opentelemetry/api@1.9.0)(@types/pg@8.6.1) - payload: 3.58.0(graphql@16.10.0)(typescript@5.7.2) + drizzle-kit: 0.31.5 + drizzle-orm: 0.44.6(@libsql/client@0.14.0)(@opentelemetry/api@1.9.0)(@types/pg@8.6.1) + payload: 3.61.0(graphql@16.10.0)(typescript@5.7.2) prompts: 2.4.2 to-snake-case: 1.0.0 uuid: 9.0.0 @@ -15951,12 +15616,12 @@ snapshots: - supports-color - utf-8-validate - '@payloadcms/drizzle@3.58.0(@libsql/client@0.14.0)(@opentelemetry/api@1.9.0)(@types/pg@8.6.1)(payload@3.58.0(graphql@16.10.0)(typescript@5.7.2))': + '@payloadcms/drizzle@3.61.0(@libsql/client@0.14.0)(@opentelemetry/api@1.9.0)(@types/pg@8.6.1)(payload@3.61.0(graphql@16.10.0)(typescript@5.7.2))': dependencies: console-table-printer: 2.12.1 dequal: 2.0.3 - drizzle-orm: 0.44.2(@libsql/client@0.14.0)(@opentelemetry/api@1.9.0)(@types/pg@8.6.1) - payload: 3.58.0(graphql@16.10.0)(typescript@5.7.2) + drizzle-orm: 0.44.6(@libsql/client@0.14.0)(@opentelemetry/api@1.9.0)(@types/pg@8.6.1) + payload: 3.61.0(graphql@16.10.0)(typescript@5.7.2) prompts: 2.4.2 to-snake-case: 1.0.0 uuid: 9.0.0 @@ -15991,40 +15656,40 @@ snapshots: - sql.js - sqlite3 - '@payloadcms/email-nodemailer@3.58.0(payload@3.58.0(graphql@16.10.0)(typescript@5.7.2))': + '@payloadcms/email-nodemailer@3.61.0(payload@3.61.0(graphql@16.10.0)(typescript@5.7.2))': dependencies: - nodemailer: 6.9.16 - payload: 3.58.0(graphql@16.10.0)(typescript@5.7.2) + nodemailer: 7.0.9 + payload: 3.61.0(graphql@16.10.0)(typescript@5.7.2) - '@payloadcms/email-resend@3.58.0(payload@3.58.0(graphql@16.10.0)(typescript@5.7.2))': + '@payloadcms/email-resend@3.61.0(payload@3.61.0(graphql@16.10.0)(typescript@5.7.2))': dependencies: - payload: 3.58.0(graphql@16.10.0)(typescript@5.7.2) + payload: 3.61.0(graphql@16.10.0)(typescript@5.7.2) - '@payloadcms/graphql@3.58.0(graphql@16.10.0)(payload@3.58.0(graphql@16.10.0)(typescript@5.7.2))(typescript@5.7.2)': + '@payloadcms/graphql@3.61.0(graphql@16.10.0)(payload@3.61.0(graphql@16.10.0)(typescript@5.7.2))(typescript@5.7.2)': dependencies: graphql: 16.10.0 graphql-scalars: 1.22.2(graphql@16.10.0) - payload: 3.58.0(graphql@16.10.0)(typescript@5.7.2) + payload: 3.61.0(graphql@16.10.0)(typescript@5.7.2) pluralize: 8.0.0 ts-essentials: 10.0.3(typescript@5.7.2) - tsx: 4.19.2 + tsx: 4.20.6 transitivePeerDependencies: - typescript - '@payloadcms/live-preview-react@3.58.0(react-dom@19.1.0(react@19.1.0))(react@19.1.0)': + '@payloadcms/live-preview-react@3.61.0(react-dom@19.1.0(react@19.1.0))(react@19.1.0)': dependencies: - '@payloadcms/live-preview': 3.58.0 + '@payloadcms/live-preview': 3.61.0 react: 19.1.0 react-dom: 19.1.0(react@19.1.0) - '@payloadcms/live-preview@3.58.0': {} + '@payloadcms/live-preview@3.61.0': {} - '@payloadcms/next@3.58.0(@types/react@19.0.1)(graphql@16.10.0)(monaco-editor@0.52.2)(next@15.4.7(@babel/core@7.27.4)(@opentelemetry/api@1.9.0)(babel-plugin-macros@3.1.0)(react-dom@19.1.0(react@19.1.0))(react@19.1.0)(sass@1.77.4))(payload@3.58.0(graphql@16.10.0)(typescript@5.7.2))(react-dom@19.1.0(react@19.1.0))(react@19.1.0)(typescript@5.7.2)': + '@payloadcms/next@3.61.0(@types/react@19.0.1)(graphql@16.10.0)(monaco-editor@0.52.2)(next@15.4.7(@babel/core@7.27.4)(@opentelemetry/api@1.9.0)(babel-plugin-macros@3.1.0)(react-dom@19.1.0(react@19.1.0))(react@19.1.0)(sass@1.77.4))(payload@3.61.0(graphql@16.10.0)(typescript@5.7.2))(react-dom@19.1.0(react@19.1.0))(react@19.1.0)(typescript@5.7.2)': dependencies: '@dnd-kit/core': 6.0.8(react-dom@19.1.0(react@19.1.0))(react@19.1.0) - '@payloadcms/graphql': 3.58.0(graphql@16.10.0)(payload@3.58.0(graphql@16.10.0)(typescript@5.7.2))(typescript@5.7.2) - '@payloadcms/translations': 3.58.0 - '@payloadcms/ui': 3.58.0(@types/react@19.0.1)(monaco-editor@0.52.2)(next@15.4.7(@babel/core@7.27.4)(@opentelemetry/api@1.9.0)(babel-plugin-macros@3.1.0)(react-dom@19.1.0(react@19.1.0))(react@19.1.0)(sass@1.77.4))(payload@3.58.0(graphql@16.10.0)(typescript@5.7.2))(react-dom@19.1.0(react@19.1.0))(react@19.1.0)(typescript@5.7.2) + '@payloadcms/graphql': 3.61.0(graphql@16.10.0)(payload@3.61.0(graphql@16.10.0)(typescript@5.7.2))(typescript@5.7.2) + '@payloadcms/translations': 3.61.0 + '@payloadcms/ui': 3.61.0(@types/react@19.0.1)(monaco-editor@0.52.2)(next@15.4.7(@babel/core@7.27.4)(@opentelemetry/api@1.9.0)(babel-plugin-macros@3.1.0)(react-dom@19.1.0(react@19.1.0))(react@19.1.0)(sass@1.77.4))(payload@3.61.0(graphql@16.10.0)(typescript@5.7.2))(react-dom@19.1.0(react@19.1.0))(react@19.1.0)(typescript@5.7.2) busboy: 1.6.0 dequal: 2.0.3 file-type: 19.3.0 @@ -16034,7 +15699,7 @@ snapshots: http-status: 2.1.0 next: 15.4.7(@babel/core@7.27.4)(@opentelemetry/api@1.9.0)(babel-plugin-macros@3.1.0)(react-dom@19.1.0(react@19.1.0))(react@19.1.0)(sass@1.77.4) path-to-regexp: 6.3.0 - payload: 3.58.0(graphql@16.10.0)(typescript@5.7.2) + payload: 3.61.0(graphql@16.10.0)(typescript@5.7.2) qs-esm: 7.0.2 sass: 1.77.4 uuid: 10.0.0 @@ -16046,11 +15711,11 @@ snapshots: - supports-color - typescript - '@payloadcms/plugin-cloud-storage@3.58.0(@types/react@19.0.1)(monaco-editor@0.52.2)(next@15.4.7(@babel/core@7.27.4)(@opentelemetry/api@1.9.0)(babel-plugin-macros@3.1.0)(react-dom@19.1.0(react@19.1.0))(react@19.1.0)(sass@1.77.4))(payload@3.58.0(graphql@16.10.0)(typescript@5.7.2))(react-dom@19.1.0(react@19.1.0))(react@19.1.0)(typescript@5.7.2)': + '@payloadcms/plugin-cloud-storage@3.61.0(@types/react@19.0.1)(monaco-editor@0.52.2)(next@15.4.7(@babel/core@7.27.4)(@opentelemetry/api@1.9.0)(babel-plugin-macros@3.1.0)(react-dom@19.1.0(react@19.1.0))(react@19.1.0)(sass@1.77.4))(payload@3.61.0(graphql@16.10.0)(typescript@5.7.2))(react-dom@19.1.0(react@19.1.0))(react@19.1.0)(typescript@5.7.2)': dependencies: - '@payloadcms/ui': 3.58.0(@types/react@19.0.1)(monaco-editor@0.52.2)(next@15.4.7(@babel/core@7.27.4)(@opentelemetry/api@1.9.0)(babel-plugin-macros@3.1.0)(react-dom@19.1.0(react@19.1.0))(react@19.1.0)(sass@1.77.4))(payload@3.58.0(graphql@16.10.0)(typescript@5.7.2))(react-dom@19.1.0(react@19.1.0))(react@19.1.0)(typescript@5.7.2) + '@payloadcms/ui': 3.61.0(@types/react@19.0.1)(monaco-editor@0.52.2)(next@15.4.7(@babel/core@7.27.4)(@opentelemetry/api@1.9.0)(babel-plugin-macros@3.1.0)(react-dom@19.1.0(react@19.1.0))(react@19.1.0)(sass@1.77.4))(payload@3.61.0(graphql@16.10.0)(typescript@5.7.2))(react-dom@19.1.0(react@19.1.0))(react@19.1.0)(typescript@5.7.2) find-node-modules: 2.1.3 - payload: 3.58.0(graphql@16.10.0)(typescript@5.7.2) + payload: 3.61.0(graphql@16.10.0)(typescript@5.7.2) range-parser: 1.2.1 react: 19.1.0 react-dom: 19.1.0(react@19.1.0) @@ -16061,11 +15726,11 @@ snapshots: - supports-color - typescript - '@payloadcms/plugin-form-builder@3.58.0(@types/react@19.0.1)(monaco-editor@0.52.2)(next@15.4.7(@babel/core@7.27.4)(@opentelemetry/api@1.9.0)(babel-plugin-macros@3.1.0)(react-dom@19.1.0(react@19.1.0))(react@19.1.0)(sass@1.77.4))(payload@3.58.0(graphql@16.10.0)(typescript@5.7.2))(react-dom@19.1.0(react@19.1.0))(react@19.1.0)(typescript@5.7.2)': + '@payloadcms/plugin-form-builder@3.61.0(@types/react@19.0.1)(monaco-editor@0.52.2)(next@15.4.7(@babel/core@7.27.4)(@opentelemetry/api@1.9.0)(babel-plugin-macros@3.1.0)(react-dom@19.1.0(react@19.1.0))(react@19.1.0)(sass@1.77.4))(payload@3.61.0(graphql@16.10.0)(typescript@5.7.2))(react-dom@19.1.0(react@19.1.0))(react@19.1.0)(typescript@5.7.2)': dependencies: - '@payloadcms/ui': 3.58.0(@types/react@19.0.1)(monaco-editor@0.52.2)(next@15.4.7(@babel/core@7.27.4)(@opentelemetry/api@1.9.0)(babel-plugin-macros@3.1.0)(react-dom@19.1.0(react@19.1.0))(react@19.1.0)(sass@1.77.4))(payload@3.58.0(graphql@16.10.0)(typescript@5.7.2))(react-dom@19.1.0(react@19.1.0))(react@19.1.0)(typescript@5.7.2) + '@payloadcms/ui': 3.61.0(@types/react@19.0.1)(monaco-editor@0.52.2)(next@15.4.7(@babel/core@7.27.4)(@opentelemetry/api@1.9.0)(babel-plugin-macros@3.1.0)(react-dom@19.1.0(react@19.1.0))(react@19.1.0)(sass@1.77.4))(payload@3.61.0(graphql@16.10.0)(typescript@5.7.2))(react-dom@19.1.0(react@19.1.0))(react@19.1.0)(typescript@5.7.2) escape-html: 1.0.3 - payload: 3.58.0(graphql@16.10.0)(typescript@5.7.2) + payload: 3.61.0(graphql@16.10.0)(typescript@5.7.2) react: 19.1.0 react-dom: 19.1.0(react@19.1.0) transitivePeerDependencies: @@ -16075,11 +15740,11 @@ snapshots: - supports-color - typescript - '@payloadcms/plugin-sentry@3.58.0(@opentelemetry/context-async-hooks@1.30.1(@opentelemetry/api@1.9.0))(@opentelemetry/core@1.30.1(@opentelemetry/api@1.9.0))(@opentelemetry/instrumentation@0.57.2(@opentelemetry/api@1.9.0))(@opentelemetry/sdk-trace-base@1.30.1(@opentelemetry/api@1.9.0))(next@15.4.7(@babel/core@7.27.4)(@opentelemetry/api@1.9.0)(babel-plugin-macros@3.1.0)(react-dom@19.1.0(react@19.1.0))(react@19.1.0)(sass@1.77.4))(payload@3.58.0(graphql@16.10.0)(typescript@5.7.2))(react-dom@19.1.0(react@19.1.0))(react@19.1.0)(webpack@5.100.2(esbuild@0.25.5))': + '@payloadcms/plugin-sentry@3.61.0(@opentelemetry/context-async-hooks@1.30.1(@opentelemetry/api@1.9.0))(@opentelemetry/core@1.30.1(@opentelemetry/api@1.9.0))(@opentelemetry/instrumentation@0.57.2(@opentelemetry/api@1.9.0))(@opentelemetry/sdk-trace-base@1.30.1(@opentelemetry/api@1.9.0))(next@15.4.7(@babel/core@7.27.4)(@opentelemetry/api@1.9.0)(babel-plugin-macros@3.1.0)(react-dom@19.1.0(react@19.1.0))(react@19.1.0)(sass@1.77.4))(payload@3.61.0(graphql@16.10.0)(typescript@5.7.2))(react-dom@19.1.0(react@19.1.0))(react@19.1.0)(webpack@5.100.2(esbuild@0.25.5))': dependencies: '@sentry/nextjs': 8.55.0(@opentelemetry/context-async-hooks@1.30.1(@opentelemetry/api@1.9.0))(@opentelemetry/core@1.30.1(@opentelemetry/api@1.9.0))(@opentelemetry/instrumentation@0.57.2(@opentelemetry/api@1.9.0))(@opentelemetry/sdk-trace-base@1.30.1(@opentelemetry/api@1.9.0))(next@15.4.7(@babel/core@7.27.4)(@opentelemetry/api@1.9.0)(babel-plugin-macros@3.1.0)(react-dom@19.1.0(react@19.1.0))(react@19.1.0)(sass@1.77.4))(react@19.1.0)(webpack@5.100.2(esbuild@0.25.5)) '@sentry/types': 8.55.0 - payload: 3.58.0(graphql@16.10.0)(typescript@5.7.2) + payload: 3.61.0(graphql@16.10.0)(typescript@5.7.2) react: 19.1.0 react-dom: 19.1.0(react@19.1.0) transitivePeerDependencies: @@ -16092,11 +15757,11 @@ snapshots: - supports-color - webpack - '@payloadcms/plugin-seo@3.58.0(@types/react@19.0.1)(monaco-editor@0.52.2)(next@15.4.7(@babel/core@7.27.4)(@opentelemetry/api@1.9.0)(babel-plugin-macros@3.1.0)(react-dom@19.1.0(react@19.1.0))(react@19.1.0)(sass@1.77.4))(payload@3.58.0(graphql@16.10.0)(typescript@5.7.2))(react-dom@19.1.0(react@19.1.0))(react@19.1.0)(typescript@5.7.2)': + '@payloadcms/plugin-seo@3.61.0(@types/react@19.0.1)(monaco-editor@0.52.2)(next@15.4.7(@babel/core@7.27.4)(@opentelemetry/api@1.9.0)(babel-plugin-macros@3.1.0)(react-dom@19.1.0(react@19.1.0))(react@19.1.0)(sass@1.77.4))(payload@3.61.0(graphql@16.10.0)(typescript@5.7.2))(react-dom@19.1.0(react@19.1.0))(react@19.1.0)(typescript@5.7.2)': dependencies: - '@payloadcms/translations': 3.58.0 - '@payloadcms/ui': 3.58.0(@types/react@19.0.1)(monaco-editor@0.52.2)(next@15.4.7(@babel/core@7.27.4)(@opentelemetry/api@1.9.0)(babel-plugin-macros@3.1.0)(react-dom@19.1.0(react@19.1.0))(react@19.1.0)(sass@1.77.4))(payload@3.58.0(graphql@16.10.0)(typescript@5.7.2))(react-dom@19.1.0(react@19.1.0))(react@19.1.0)(typescript@5.7.2) - payload: 3.58.0(graphql@16.10.0)(typescript@5.7.2) + '@payloadcms/translations': 3.61.0 + '@payloadcms/ui': 3.61.0(@types/react@19.0.1)(monaco-editor@0.52.2)(next@15.4.7(@babel/core@7.27.4)(@opentelemetry/api@1.9.0)(babel-plugin-macros@3.1.0)(react-dom@19.1.0(react@19.1.0))(react@19.1.0)(sass@1.77.4))(payload@3.61.0(graphql@16.10.0)(typescript@5.7.2))(react-dom@19.1.0(react@19.1.0))(react@19.1.0)(typescript@5.7.2) + payload: 3.61.0(graphql@16.10.0)(typescript@5.7.2) react: 19.1.0 react-dom: 19.1.0(react@19.1.0) transitivePeerDependencies: @@ -16106,10 +15771,11 @@ snapshots: - supports-color - typescript - '@payloadcms/richtext-lexical@3.58.0(@faceless-ui/modal@3.0.0(react-dom@19.1.0(react@19.1.0))(react@19.1.0))(@faceless-ui/scroll-info@2.0.0(react-dom@19.1.0(react@19.1.0))(react@19.1.0))(@payloadcms/next@3.58.0(@types/react@19.0.1)(graphql@16.10.0)(monaco-editor@0.52.2)(next@15.4.7(@babel/core@7.27.4)(@opentelemetry/api@1.9.0)(babel-plugin-macros@3.1.0)(react-dom@19.1.0(react@19.1.0))(react@19.1.0)(sass@1.77.4))(payload@3.58.0(graphql@16.10.0)(typescript@5.7.2))(react-dom@19.1.0(react@19.1.0))(react@19.1.0)(typescript@5.7.2))(@types/react@19.0.1)(monaco-editor@0.52.2)(next@15.4.7(@babel/core@7.27.4)(@opentelemetry/api@1.9.0)(babel-plugin-macros@3.1.0)(react-dom@19.1.0(react@19.1.0))(react@19.1.0)(sass@1.77.4))(payload@3.58.0(graphql@16.10.0)(typescript@5.7.2))(react-dom@19.1.0(react@19.1.0))(react@19.1.0)(typescript@5.7.2)(yjs@13.6.24)': + '@payloadcms/richtext-lexical@3.61.0(@faceless-ui/modal@3.0.0(react-dom@19.1.0(react@19.1.0))(react@19.1.0))(@faceless-ui/scroll-info@2.0.0(react-dom@19.1.0(react@19.1.0))(react@19.1.0))(@payloadcms/next@3.61.0(@types/react@19.0.1)(graphql@16.10.0)(monaco-editor@0.52.2)(next@15.4.7(@babel/core@7.27.4)(@opentelemetry/api@1.9.0)(babel-plugin-macros@3.1.0)(react-dom@19.1.0(react@19.1.0))(react@19.1.0)(sass@1.77.4))(payload@3.61.0(graphql@16.10.0)(typescript@5.7.2))(react-dom@19.1.0(react@19.1.0))(react@19.1.0)(typescript@5.7.2))(@types/react@19.0.1)(monaco-editor@0.52.2)(next@15.4.7(@babel/core@7.27.4)(@opentelemetry/api@1.9.0)(babel-plugin-macros@3.1.0)(react-dom@19.1.0(react@19.1.0))(react@19.1.0)(sass@1.77.4))(payload@3.61.0(graphql@16.10.0)(typescript@5.7.2))(react-dom@19.1.0(react@19.1.0))(react@19.1.0)(typescript@5.7.2)(yjs@13.6.24)': dependencies: '@faceless-ui/modal': 3.0.0(react-dom@19.1.0(react@19.1.0))(react@19.1.0) '@faceless-ui/scroll-info': 2.0.0(react-dom@19.1.0(react@19.1.0))(react@19.1.0) + '@lexical/clipboard': 0.35.0 '@lexical/headless': 0.35.0 '@lexical/html': 0.35.0 '@lexical/link': 0.35.0 @@ -16120,9 +15786,9 @@ snapshots: '@lexical/selection': 0.35.0 '@lexical/table': 0.35.0 '@lexical/utils': 0.35.0 - '@payloadcms/next': 3.58.0(@types/react@19.0.1)(graphql@16.10.0)(monaco-editor@0.52.2)(next@15.4.7(@babel/core@7.27.4)(@opentelemetry/api@1.9.0)(babel-plugin-macros@3.1.0)(react-dom@19.1.0(react@19.1.0))(react@19.1.0)(sass@1.77.4))(payload@3.58.0(graphql@16.10.0)(typescript@5.7.2))(react-dom@19.1.0(react@19.1.0))(react@19.1.0)(typescript@5.7.2) - '@payloadcms/translations': 3.58.0 - '@payloadcms/ui': 3.58.0(@types/react@19.0.1)(monaco-editor@0.52.2)(next@15.4.7(@babel/core@7.27.4)(@opentelemetry/api@1.9.0)(babel-plugin-macros@3.1.0)(react-dom@19.1.0(react@19.1.0))(react@19.1.0)(sass@1.77.4))(payload@3.58.0(graphql@16.10.0)(typescript@5.7.2))(react-dom@19.1.0(react@19.1.0))(react@19.1.0)(typescript@5.7.2) + '@payloadcms/next': 3.61.0(@types/react@19.0.1)(graphql@16.10.0)(monaco-editor@0.52.2)(next@15.4.7(@babel/core@7.27.4)(@opentelemetry/api@1.9.0)(babel-plugin-macros@3.1.0)(react-dom@19.1.0(react@19.1.0))(react@19.1.0)(sass@1.77.4))(payload@3.61.0(graphql@16.10.0)(typescript@5.7.2))(react-dom@19.1.0(react@19.1.0))(react@19.1.0)(typescript@5.7.2) + '@payloadcms/translations': 3.61.0 + '@payloadcms/ui': 3.61.0(@types/react@19.0.1)(monaco-editor@0.52.2)(next@15.4.7(@babel/core@7.27.4)(@opentelemetry/api@1.9.0)(babel-plugin-macros@3.1.0)(react-dom@19.1.0(react@19.1.0))(react@19.1.0)(sass@1.77.4))(payload@3.61.0(graphql@16.10.0)(typescript@5.7.2))(react-dom@19.1.0(react@19.1.0))(react@19.1.0)(typescript@5.7.2) '@types/uuid': 10.0.0 acorn: 8.12.1 bson-objectid: 2.0.4 @@ -16134,7 +15800,7 @@ snapshots: mdast-util-from-markdown: 2.0.2 mdast-util-mdx-jsx: 3.1.3 micromark-extension-mdx-jsx: 3.0.1 - payload: 3.58.0(graphql@16.10.0)(typescript@5.7.2) + payload: 3.61.0(graphql@16.10.0)(typescript@5.7.2) qs-esm: 7.0.2 react: 19.1.0 react-dom: 19.1.0(react@19.1.0) @@ -16149,11 +15815,11 @@ snapshots: - typescript - yjs - '@payloadcms/storage-vercel-blob@3.58.0(@types/react@19.0.1)(monaco-editor@0.52.2)(next@15.4.7(@babel/core@7.27.4)(@opentelemetry/api@1.9.0)(babel-plugin-macros@3.1.0)(react-dom@19.1.0(react@19.1.0))(react@19.1.0)(sass@1.77.4))(payload@3.58.0(graphql@16.10.0)(typescript@5.7.2))(react-dom@19.1.0(react@19.1.0))(react@19.1.0)(typescript@5.7.2)': + '@payloadcms/storage-vercel-blob@3.61.0(@types/react@19.0.1)(monaco-editor@0.52.2)(next@15.4.7(@babel/core@7.27.4)(@opentelemetry/api@1.9.0)(babel-plugin-macros@3.1.0)(react-dom@19.1.0(react@19.1.0))(react@19.1.0)(sass@1.77.4))(payload@3.61.0(graphql@16.10.0)(typescript@5.7.2))(react-dom@19.1.0(react@19.1.0))(react@19.1.0)(typescript@5.7.2)': dependencies: - '@payloadcms/plugin-cloud-storage': 3.58.0(@types/react@19.0.1)(monaco-editor@0.52.2)(next@15.4.7(@babel/core@7.27.4)(@opentelemetry/api@1.9.0)(babel-plugin-macros@3.1.0)(react-dom@19.1.0(react@19.1.0))(react@19.1.0)(sass@1.77.4))(payload@3.58.0(graphql@16.10.0)(typescript@5.7.2))(react-dom@19.1.0(react@19.1.0))(react@19.1.0)(typescript@5.7.2) + '@payloadcms/plugin-cloud-storage': 3.61.0(@types/react@19.0.1)(monaco-editor@0.52.2)(next@15.4.7(@babel/core@7.27.4)(@opentelemetry/api@1.9.0)(babel-plugin-macros@3.1.0)(react-dom@19.1.0(react@19.1.0))(react@19.1.0)(sass@1.77.4))(payload@3.61.0(graphql@16.10.0)(typescript@5.7.2))(react-dom@19.1.0(react@19.1.0))(react@19.1.0)(typescript@5.7.2) '@vercel/blob': 0.22.3 - payload: 3.58.0(graphql@16.10.0)(typescript@5.7.2) + payload: 3.61.0(graphql@16.10.0)(typescript@5.7.2) transitivePeerDependencies: - '@types/react' - monaco-editor @@ -16163,11 +15829,11 @@ snapshots: - supports-color - typescript - '@payloadcms/translations@3.58.0': + '@payloadcms/translations@3.61.0': dependencies: date-fns: 4.1.0 - '@payloadcms/ui@3.58.0(@types/react@19.0.1)(monaco-editor@0.52.2)(next@15.4.7(@babel/core@7.27.4)(@opentelemetry/api@1.9.0)(babel-plugin-macros@3.1.0)(react-dom@19.1.0(react@19.1.0))(react@19.1.0)(sass@1.77.4))(payload@3.58.0(graphql@16.10.0)(typescript@5.7.2))(react-dom@19.1.0(react@19.1.0))(react@19.1.0)(typescript@5.7.2)': + '@payloadcms/ui@3.61.0(@types/react@19.0.1)(monaco-editor@0.52.2)(next@15.4.7(@babel/core@7.27.4)(@opentelemetry/api@1.9.0)(babel-plugin-macros@3.1.0)(react-dom@19.1.0(react@19.1.0))(react@19.1.0)(sass@1.77.4))(payload@3.61.0(graphql@16.10.0)(typescript@5.7.2))(react-dom@19.1.0(react@19.1.0))(react@19.1.0)(typescript@5.7.2)': dependencies: '@date-fns/tz': 1.2.0 '@dnd-kit/core': 6.0.8(react-dom@19.1.0(react@19.1.0))(react@19.1.0) @@ -16177,14 +15843,14 @@ snapshots: '@faceless-ui/scroll-info': 2.0.0(react-dom@19.1.0(react@19.1.0))(react@19.1.0) '@faceless-ui/window-info': 3.0.1(react-dom@19.1.0(react@19.1.0))(react@19.1.0) '@monaco-editor/react': 4.7.0(monaco-editor@0.52.2)(react-dom@19.1.0(react@19.1.0))(react@19.1.0) - '@payloadcms/translations': 3.58.0 + '@payloadcms/translations': 3.61.0 bson-objectid: 2.0.4 date-fns: 4.1.0 dequal: 2.0.3 md5: 2.3.0 next: 15.4.7(@babel/core@7.27.4)(@opentelemetry/api@1.9.0)(babel-plugin-macros@3.1.0)(react-dom@19.1.0(react@19.1.0))(react@19.1.0)(sass@1.77.4) object-to-formdata: 4.5.1 - payload: 3.58.0(graphql@16.10.0)(typescript@5.7.2) + payload: 3.61.0(graphql@16.10.0)(typescript@5.7.2) qs-esm: 7.0.2 react: 19.1.0 react-datepicker: 7.6.0(react-dom@19.1.0(react@19.1.0))(react@19.1.0) @@ -16202,6 +15868,8 @@ snapshots: - supports-color - typescript + '@pinojs/redact@0.4.0': {} + '@pkgjs/parseargs@0.11.0': optional: true @@ -19165,7 +18833,7 @@ snapshots: dotenv@17.2.0: {} - drizzle-kit@0.31.4: + drizzle-kit@0.31.5: dependencies: '@drizzle-team/brocli': 0.10.2 '@esbuild-kit/esm-loader': 2.6.5 @@ -19174,7 +18842,7 @@ snapshots: transitivePeerDependencies: - supports-color - drizzle-orm@0.44.2(@libsql/client@0.14.0)(@opentelemetry/api@1.9.0)(@types/pg@8.6.1): + drizzle-orm@0.44.6(@libsql/client@0.14.0)(@opentelemetry/api@1.9.0)(@types/pg@8.6.1): optionalDependencies: '@libsql/client': 0.14.0 '@opentelemetry/api': 1.9.0 @@ -19397,33 +19065,6 @@ snapshots: '@esbuild/win32-ia32': 0.18.20 '@esbuild/win32-x64': 0.18.20 - esbuild@0.23.1: - optionalDependencies: - '@esbuild/aix-ppc64': 0.23.1 - '@esbuild/android-arm': 0.23.1 - '@esbuild/android-arm64': 0.23.1 - '@esbuild/android-x64': 0.23.1 - '@esbuild/darwin-arm64': 0.23.1 - '@esbuild/darwin-x64': 0.23.1 - '@esbuild/freebsd-arm64': 0.23.1 - '@esbuild/freebsd-x64': 0.23.1 - '@esbuild/linux-arm': 0.23.1 - '@esbuild/linux-arm64': 0.23.1 - '@esbuild/linux-ia32': 0.23.1 - '@esbuild/linux-loong64': 0.23.1 - '@esbuild/linux-mips64el': 0.23.1 - '@esbuild/linux-ppc64': 0.23.1 - '@esbuild/linux-riscv64': 0.23.1 - '@esbuild/linux-s390x': 0.23.1 - '@esbuild/linux-x64': 0.23.1 - '@esbuild/netbsd-x64': 0.23.1 - '@esbuild/openbsd-arm64': 0.23.1 - '@esbuild/openbsd-x64': 0.23.1 - '@esbuild/sunos-x64': 0.23.1 - '@esbuild/win32-arm64': 0.23.1 - '@esbuild/win32-ia32': 0.23.1 - '@esbuild/win32-x64': 0.23.1 - esbuild@0.25.0: optionalDependencies: '@esbuild/aix-ppc64': 0.25.0 @@ -19776,8 +19417,6 @@ snapshots: fast-levenshtein@2.0.6: {} - fast-redact@3.5.0: {} - fast-safe-stringify@2.1.1: {} fast-uri@3.0.6: {} @@ -21422,7 +21061,7 @@ snapshots: node-releases@2.0.19: {} - nodemailer@6.9.16: {} + nodemailer@7.0.9: {} noms@0.0.0: dependencies: @@ -21618,10 +21257,10 @@ snapshots: path-type@4.0.0: {} - payload@3.58.0(graphql@16.10.0)(typescript@5.7.2): + payload@3.61.0(graphql@16.10.0)(typescript@5.7.2): dependencies: '@next/env': 15.4.7 - '@payloadcms/translations': 3.58.0 + '@payloadcms/translations': 3.61.0 '@types/busboy': 1.5.4 ajv: 8.17.1 bson-objectid: 2.0.4 @@ -21641,8 +21280,8 @@ snapshots: json-schema-to-typescript: 15.0.3 minimist: 1.2.8 path-to-regexp: 6.3.0 - pino: 9.5.0 - pino-pretty: 13.0.0 + pino: 9.14.0 + pino-pretty: 13.1.2 pluralize: 8.0.0 qs-esm: 7.0.2 sanitize-filename: 1.6.3 @@ -21687,23 +21326,7 @@ snapshots: dependencies: split2: 4.2.0 - pino-pretty@13.0.0: - dependencies: - colorette: 2.0.20 - dateformat: 4.6.3 - fast-copy: 3.0.2 - fast-safe-stringify: 2.1.1 - help-me: 5.0.0 - joycon: 3.1.1 - minimist: 1.2.8 - on-exit-leak-free: 2.1.2 - pino-abstract-transport: 2.0.0 - pump: 3.0.2 - secure-json-parse: 2.7.0 - sonic-boom: 4.2.0 - strip-json-comments: 3.1.1 - - pino-pretty@13.1.1: + pino-pretty@13.1.2: dependencies: colorette: 2.0.20 dateformat: 4.6.3 @@ -21721,28 +21344,14 @@ snapshots: pino-std-serializers@7.0.0: {} - pino@9.5.0: + pino@9.14.0: dependencies: + '@pinojs/redact': 0.4.0 atomic-sleep: 1.0.0 - fast-redact: 3.5.0 on-exit-leak-free: 2.1.2 pino-abstract-transport: 2.0.0 pino-std-serializers: 7.0.0 - process-warning: 4.0.1 - quick-format-unescaped: 4.0.4 - real-require: 0.2.0 - safe-stable-stringify: 2.5.0 - sonic-boom: 4.2.0 - thread-stream: 3.1.0 - - pino@9.6.0: - dependencies: - atomic-sleep: 1.0.0 - fast-redact: 3.5.0 - on-exit-leak-free: 2.1.2 - pino-abstract-transport: 2.0.0 - pino-std-serializers: 7.0.0 - process-warning: 4.0.1 + process-warning: 5.0.0 quick-format-unescaped: 4.0.4 real-require: 0.2.0 safe-stable-stringify: 2.5.0 @@ -21868,7 +21477,7 @@ snapshots: process-nextick-args@2.0.1: {} - process-warning@4.0.1: {} + process-warning@5.0.0: {} progress@2.0.3: {} @@ -21910,7 +21519,7 @@ snapshots: react-datepicker@7.6.0(react-dom@19.1.0(react@19.1.0))(react@19.1.0): dependencies: - '@floating-ui/react': 0.27.5(react-dom@19.1.0(react@19.1.0))(react@19.1.0) + '@floating-ui/react': 0.27.16(react-dom@19.1.0(react@19.1.0))(react@19.1.0) clsx: 2.1.1 date-fns: 3.6.0 react: 19.1.0 @@ -22026,7 +21635,7 @@ snapshots: '@babel/runtime': 7.27.0 '@emotion/cache': 11.14.0 '@emotion/react': 11.14.0(@types/react@19.0.1)(react@19.1.0) - '@floating-ui/dom': 1.6.13 + '@floating-ui/dom': 1.7.4 '@types/react-transition-group': 4.4.12(@types/react@19.0.1) memoize-one: 6.0.0 prop-types: 15.8.1 @@ -22292,8 +21901,6 @@ snapshots: scmp@2.1.0: {} - secure-json-parse@2.7.0: {} - secure-json-parse@4.0.0: {} selderee@0.11.0: @@ -22924,14 +22531,14 @@ snapshots: tslib@2.8.1: {} - tsx@4.19.2: + tsx@4.20.3: dependencies: - esbuild: 0.23.1 + esbuild: 0.25.5 get-tsconfig: 4.10.0 optionalDependencies: fsevents: 2.3.3 - tsx@4.20.3: + tsx@4.20.6: dependencies: esbuild: 0.25.5 get-tsconfig: 4.10.0 diff --git a/src/collections/HomePages/hooks/revalidateHomePage.ts b/src/collections/HomePages/hooks/revalidateHomePage.ts index 6e74f041..22fda544 100644 --- a/src/collections/HomePages/hooks/revalidateHomePage.ts +++ b/src/collections/HomePages/hooks/revalidateHomePage.ts @@ -20,7 +20,7 @@ const revalidate = async (doc: HomePage, payload: BasePayload) => { payload.logger.info(`Successfully revalidated home page for tenant: ${tenant.slug}`) } catch (error) { - payload.logger.error('Error revalidating home page:', error) + payload.logger.error({ err: error }, 'Error revalidating home page') } } diff --git a/src/collections/Tenants/hooks/revalidateTenants.ts b/src/collections/Tenants/hooks/revalidateTenants.ts index 273f9b18..dcff5ca9 100644 --- a/src/collections/Tenants/hooks/revalidateTenants.ts +++ b/src/collections/Tenants/hooks/revalidateTenants.ts @@ -17,7 +17,7 @@ export const revalidateTenantsAfterChange: CollectionAfterChangeHook = async ({ }`, ) } catch (error) { - payload.logger.error('Error revalidating tenant cache:', error) + payload.logger.error({ err: error }, 'Error revalidating tenant cache') } const nameChange = doc.name !== previousDoc.name @@ -53,6 +53,6 @@ export const revalidateTenantsAfterDelete: CollectionAfterDeleteHook = async ({ `Successfully revalidated tenants cache after delete on tenant: ${doc?.slug || doc?.id}`, ) } catch (error) { - req.payload.logger.error('Error revalidating tenant cache:', error) + req.payload.logger.error({ err: error }, 'Error revalidating tenant cache') } } diff --git a/src/collections/Tenants/hooks/updateEdgeConfig.ts b/src/collections/Tenants/hooks/updateEdgeConfig.ts index f5739462..3cfcc47a 100644 --- a/src/collections/Tenants/hooks/updateEdgeConfig.ts +++ b/src/collections/Tenants/hooks/updateEdgeConfig.ts @@ -61,7 +61,7 @@ export const updateEdgeConfigAfterChange: CollectionAfterChangeHook = async ({ req.payload.logger.info(`No Edge Config updates needed for tenant: ${doc.slug}`) } } catch (error) { - req.payload.logger.error(`Error updating Edge Config for tenant ${doc.slug}:`, error) + req.payload.logger.error({ err: error }, `Error updating Edge Config for tenant ${doc.slug}`) } } @@ -88,6 +88,6 @@ export const updateEdgeConfigAfterDelete: CollectionAfterDeleteHook = async ({ r ) } } catch (error) { - req.payload.logger.error(`Error removing tenant ${doc.slug} from Edge Config:`, error) + req.payload.logger.error({ err: error }, `Error removing tenant ${doc.slug} from Edge Config`) } } diff --git a/src/components/ColorPicker/index.tsx b/src/components/ColorPicker/index.tsx index 00abe2ef..21dbb0c7 100644 --- a/src/components/ColorPicker/index.tsx +++ b/src/components/ColorPicker/index.tsx @@ -15,15 +15,15 @@ const ColorPicker = (props: TextFieldClientProps) => { const [tenantSlug, setTenantSlug] = useState(null) useEffect(() => { - async function fetchUser() { - const userData = await getSlugFromTenantId(data?.tenant) - setTenantSlug(userData) + async function fetchTenantSlug() { + const slug = await getSlugFromTenantId(data?.tenant) + setTenantSlug(slug) } - fetchUser() + fetchTenantSlug() }, [data?.tenant]) return ( -
+
    {tenantSlug && diff --git a/src/migrations/20251023_195638_rename_indexes.json b/src/migrations/20251023_195638_rename_indexes.json new file mode 100644 index 00000000..44e710fb --- /dev/null +++ b/src/migrations/20251023_195638_rename_indexes.json @@ -0,0 +1,18925 @@ +{ + "version": "6", + "dialect": "sqlite", + "tables": { + "home_pages_quick_links": { + "name": "home_pages_quick_links", + "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 + }, + "type": { + "name": "type", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false, + "default": "'internal'" + }, + "new_tab": { + "name": "new_tab", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "url": { + "name": "url", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "label": { + "name": "label", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + } + }, + "indexes": { + "home_pages_quick_links_order_idx": { + "name": "home_pages_quick_links_order_idx", + "columns": ["_order"], + "isUnique": false + }, + "home_pages_quick_links_parent_id_idx": { + "name": "home_pages_quick_links_parent_id_idx", + "columns": ["_parent_id"], + "isUnique": false + } + }, + "foreignKeys": { + "home_pages_quick_links_parent_id_fk": { + "name": "home_pages_quick_links_parent_id_fk", + "tableFrom": "home_pages_quick_links", + "tableTo": "home_pages", + "columnsFrom": ["_parent_id"], + "columnsTo": ["id"], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "home_pages_highlighted_content_columns": { + "name": "home_pages_highlighted_content_columns", + "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 + }, + "rich_text": { + "name": "rich_text", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + } + }, + "indexes": { + "home_pages_highlighted_content_columns_order_idx": { + "name": "home_pages_highlighted_content_columns_order_idx", + "columns": ["_order"], + "isUnique": false + }, + "home_pages_highlighted_content_columns_parent_id_idx": { + "name": "home_pages_highlighted_content_columns_parent_id_idx", + "columns": ["_parent_id"], + "isUnique": false + } + }, + "foreignKeys": { + "home_pages_highlighted_content_columns_parent_id_fk": { + "name": "home_pages_highlighted_content_columns_parent_id_fk", + "tableFrom": "home_pages_highlighted_content_columns", + "tableTo": "home_pages", + "columnsFrom": ["_parent_id"], + "columnsTo": ["id"], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "home_pages_blocks_biography": { + "name": "home_pages_blocks_biography", + "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 + }, + "_path": { + "name": "_path", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "id": { + "name": "id", + "type": "text", + "primaryKey": true, + "notNull": true, + "autoincrement": false + }, + "background_color": { + "name": "background_color", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false, + "default": "'transparent'" + }, + "biography_id": { + "name": "biography_id", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "image_layout": { + "name": "image_layout", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false, + "default": "'left'" + }, + "block_name": { + "name": "block_name", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + } + }, + "indexes": { + "home_pages_blocks_biography_order_idx": { + "name": "home_pages_blocks_biography_order_idx", + "columns": ["_order"], + "isUnique": false + }, + "home_pages_blocks_biography_parent_id_idx": { + "name": "home_pages_blocks_biography_parent_id_idx", + "columns": ["_parent_id"], + "isUnique": false + }, + "home_pages_blocks_biography_path_idx": { + "name": "home_pages_blocks_biography_path_idx", + "columns": ["_path"], + "isUnique": false + }, + "home_pages_blocks_biography_biography_idx": { + "name": "home_pages_blocks_biography_biography_idx", + "columns": ["biography_id"], + "isUnique": false + } + }, + "foreignKeys": { + "home_pages_blocks_biography_biography_id_biographies_id_fk": { + "name": "home_pages_blocks_biography_biography_id_biographies_id_fk", + "tableFrom": "home_pages_blocks_biography", + "tableTo": "biographies", + "columnsFrom": ["biography_id"], + "columnsTo": ["id"], + "onDelete": "set null", + "onUpdate": "no action" + }, + "home_pages_blocks_biography_parent_id_fk": { + "name": "home_pages_blocks_biography_parent_id_fk", + "tableFrom": "home_pages_blocks_biography", + "tableTo": "home_pages", + "columnsFrom": ["_parent_id"], + "columnsTo": ["id"], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "home_pages_blocks_blog_list": { + "name": "home_pages_blocks_blog_list", + "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 + }, + "_path": { + "name": "_path", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "id": { + "name": "id", + "type": "text", + "primaryKey": true, + "notNull": true, + "autoincrement": false + }, + "heading": { + "name": "heading", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "below_heading_content": { + "name": "below_heading_content", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "background_color": { + "name": "background_color", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false, + "default": "'transparent'" + }, + "post_options": { + "name": "post_options", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false, + "default": "'dynamic'" + }, + "dynamic_options_sort_by": { + "name": "dynamic_options_sort_by", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false, + "default": "'-publishedAt'" + }, + "dynamic_options_max_posts": { + "name": "dynamic_options_max_posts", + "type": "numeric", + "primaryKey": false, + "notNull": false, + "autoincrement": false, + "default": 4 + }, + "block_name": { + "name": "block_name", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + } + }, + "indexes": { + "home_pages_blocks_blog_list_order_idx": { + "name": "home_pages_blocks_blog_list_order_idx", + "columns": ["_order"], + "isUnique": false + }, + "home_pages_blocks_blog_list_parent_id_idx": { + "name": "home_pages_blocks_blog_list_parent_id_idx", + "columns": ["_parent_id"], + "isUnique": false + }, + "home_pages_blocks_blog_list_path_idx": { + "name": "home_pages_blocks_blog_list_path_idx", + "columns": ["_path"], + "isUnique": false + } + }, + "foreignKeys": { + "home_pages_blocks_blog_list_parent_id_fk": { + "name": "home_pages_blocks_blog_list_parent_id_fk", + "tableFrom": "home_pages_blocks_blog_list", + "tableTo": "home_pages", + "columnsFrom": ["_parent_id"], + "columnsTo": ["id"], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "home_pages_blocks_content_columns": { + "name": "home_pages_blocks_content_columns", + "columns": { + "_order": { + "name": "_order", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "_parent_id": { + "name": "_parent_id", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "id": { + "name": "id", + "type": "text", + "primaryKey": true, + "notNull": true, + "autoincrement": false + }, + "rich_text": { + "name": "rich_text", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + } + }, + "indexes": { + "home_pages_blocks_content_columns_order_idx": { + "name": "home_pages_blocks_content_columns_order_idx", + "columns": ["_order"], + "isUnique": false + }, + "home_pages_blocks_content_columns_parent_id_idx": { + "name": "home_pages_blocks_content_columns_parent_id_idx", + "columns": ["_parent_id"], + "isUnique": false + } + }, + "foreignKeys": { + "home_pages_blocks_content_columns_parent_id_fk": { + "name": "home_pages_blocks_content_columns_parent_id_fk", + "tableFrom": "home_pages_blocks_content_columns", + "tableTo": "home_pages_blocks_content", + "columnsFrom": ["_parent_id"], + "columnsTo": ["id"], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "home_pages_blocks_content": { + "name": "home_pages_blocks_content", + "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 + }, + "_path": { + "name": "_path", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "id": { + "name": "id", + "type": "text", + "primaryKey": true, + "notNull": true, + "autoincrement": false + }, + "background_color": { + "name": "background_color", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false, + "default": "'transparent'" + }, + "layout": { + "name": "layout", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false, + "default": "'1_1'" + }, + "block_name": { + "name": "block_name", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + } + }, + "indexes": { + "home_pages_blocks_content_order_idx": { + "name": "home_pages_blocks_content_order_idx", + "columns": ["_order"], + "isUnique": false + }, + "home_pages_blocks_content_parent_id_idx": { + "name": "home_pages_blocks_content_parent_id_idx", + "columns": ["_parent_id"], + "isUnique": false + }, + "home_pages_blocks_content_path_idx": { + "name": "home_pages_blocks_content_path_idx", + "columns": ["_path"], + "isUnique": false + } + }, + "foreignKeys": { + "home_pages_blocks_content_parent_id_fk": { + "name": "home_pages_blocks_content_parent_id_fk", + "tableFrom": "home_pages_blocks_content", + "tableTo": "home_pages", + "columnsFrom": ["_parent_id"], + "columnsTo": ["id"], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "home_pages_blocks_document_block": { + "name": "home_pages_blocks_document_block", + "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 + }, + "_path": { + "name": "_path", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "id": { + "name": "id", + "type": "text", + "primaryKey": true, + "notNull": true, + "autoincrement": false + }, + "document_id": { + "name": "document_id", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "wrap_in_container": { + "name": "wrap_in_container", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false, + "default": false + }, + "block_name": { + "name": "block_name", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + } + }, + "indexes": { + "home_pages_blocks_document_block_order_idx": { + "name": "home_pages_blocks_document_block_order_idx", + "columns": ["_order"], + "isUnique": false + }, + "home_pages_blocks_document_block_parent_id_idx": { + "name": "home_pages_blocks_document_block_parent_id_idx", + "columns": ["_parent_id"], + "isUnique": false + }, + "home_pages_blocks_document_block_path_idx": { + "name": "home_pages_blocks_document_block_path_idx", + "columns": ["_path"], + "isUnique": false + }, + "home_pages_blocks_document_block_document_idx": { + "name": "home_pages_blocks_document_block_document_idx", + "columns": ["document_id"], + "isUnique": false + } + }, + "foreignKeys": { + "home_pages_blocks_document_block_document_id_documents_id_fk": { + "name": "home_pages_blocks_document_block_document_id_documents_id_fk", + "tableFrom": "home_pages_blocks_document_block", + "tableTo": "documents", + "columnsFrom": ["document_id"], + "columnsTo": ["id"], + "onDelete": "set null", + "onUpdate": "no action" + }, + "home_pages_blocks_document_block_parent_id_fk": { + "name": "home_pages_blocks_document_block_parent_id_fk", + "tableFrom": "home_pages_blocks_document_block", + "tableTo": "home_pages", + "columnsFrom": ["_parent_id"], + "columnsTo": ["id"], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "home_pages_blocks_form_block": { + "name": "home_pages_blocks_form_block", + "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 + }, + "_path": { + "name": "_path", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "id": { + "name": "id", + "type": "text", + "primaryKey": true, + "notNull": true, + "autoincrement": false + }, + "form_id": { + "name": "form_id", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "enable_intro": { + "name": "enable_intro", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "intro_content": { + "name": "intro_content", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "block_name": { + "name": "block_name", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + } + }, + "indexes": { + "home_pages_blocks_form_block_order_idx": { + "name": "home_pages_blocks_form_block_order_idx", + "columns": ["_order"], + "isUnique": false + }, + "home_pages_blocks_form_block_parent_id_idx": { + "name": "home_pages_blocks_form_block_parent_id_idx", + "columns": ["_parent_id"], + "isUnique": false + }, + "home_pages_blocks_form_block_path_idx": { + "name": "home_pages_blocks_form_block_path_idx", + "columns": ["_path"], + "isUnique": false + }, + "home_pages_blocks_form_block_form_idx": { + "name": "home_pages_blocks_form_block_form_idx", + "columns": ["form_id"], + "isUnique": false + } + }, + "foreignKeys": { + "home_pages_blocks_form_block_form_id_forms_id_fk": { + "name": "home_pages_blocks_form_block_form_id_forms_id_fk", + "tableFrom": "home_pages_blocks_form_block", + "tableTo": "forms", + "columnsFrom": ["form_id"], + "columnsTo": ["id"], + "onDelete": "set null", + "onUpdate": "no action" + }, + "home_pages_blocks_form_block_parent_id_fk": { + "name": "home_pages_blocks_form_block_parent_id_fk", + "tableFrom": "home_pages_blocks_form_block", + "tableTo": "home_pages", + "columnsFrom": ["_parent_id"], + "columnsTo": ["id"], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "home_pages_blocks_header_block": { + "name": "home_pages_blocks_header_block", + "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 + }, + "_path": { + "name": "_path", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "id": { + "name": "id", + "type": "text", + "primaryKey": true, + "notNull": true, + "autoincrement": false + }, + "rich_text": { + "name": "rich_text", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "background_color": { + "name": "background_color", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false, + "default": "'transparent'" + }, + "wrap_in_container": { + "name": "wrap_in_container", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false, + "default": true + }, + "block_name": { + "name": "block_name", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + } + }, + "indexes": { + "home_pages_blocks_header_block_order_idx": { + "name": "home_pages_blocks_header_block_order_idx", + "columns": ["_order"], + "isUnique": false + }, + "home_pages_blocks_header_block_parent_id_idx": { + "name": "home_pages_blocks_header_block_parent_id_idx", + "columns": ["_parent_id"], + "isUnique": false + }, + "home_pages_blocks_header_block_path_idx": { + "name": "home_pages_blocks_header_block_path_idx", + "columns": ["_path"], + "isUnique": false + } + }, + "foreignKeys": { + "home_pages_blocks_header_block_parent_id_fk": { + "name": "home_pages_blocks_header_block_parent_id_fk", + "tableFrom": "home_pages_blocks_header_block", + "tableTo": "home_pages", + "columnsFrom": ["_parent_id"], + "columnsTo": ["id"], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "home_pages_blocks_image_link_grid_columns": { + "name": "home_pages_blocks_image_link_grid_columns", + "columns": { + "_order": { + "name": "_order", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "_parent_id": { + "name": "_parent_id", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "id": { + "name": "id", + "type": "text", + "primaryKey": true, + "notNull": true, + "autoincrement": false + }, + "image_id": { + "name": "image_id", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "link_type": { + "name": "link_type", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false, + "default": "'internal'" + }, + "link_new_tab": { + "name": "link_new_tab", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "link_url": { + "name": "link_url", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "caption": { + "name": "caption", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + } + }, + "indexes": { + "home_pages_blocks_image_link_grid_columns_order_idx": { + "name": "home_pages_blocks_image_link_grid_columns_order_idx", + "columns": ["_order"], + "isUnique": false + }, + "home_pages_blocks_image_link_grid_columns_parent_id_idx": { + "name": "home_pages_blocks_image_link_grid_columns_parent_id_idx", + "columns": ["_parent_id"], + "isUnique": false + }, + "home_pages_blocks_image_link_grid_columns_image_idx": { + "name": "home_pages_blocks_image_link_grid_columns_image_idx", + "columns": ["image_id"], + "isUnique": false + } + }, + "foreignKeys": { + "home_pages_blocks_image_link_grid_columns_image_id_media_id_fk": { + "name": "home_pages_blocks_image_link_grid_columns_image_id_media_id_fk", + "tableFrom": "home_pages_blocks_image_link_grid_columns", + "tableTo": "media", + "columnsFrom": ["image_id"], + "columnsTo": ["id"], + "onDelete": "set null", + "onUpdate": "no action" + }, + "home_pages_blocks_image_link_grid_columns_parent_id_fk": { + "name": "home_pages_blocks_image_link_grid_columns_parent_id_fk", + "tableFrom": "home_pages_blocks_image_link_grid_columns", + "tableTo": "home_pages_blocks_image_link_grid", + "columnsFrom": ["_parent_id"], + "columnsTo": ["id"], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "home_pages_blocks_image_link_grid": { + "name": "home_pages_blocks_image_link_grid", + "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 + }, + "_path": { + "name": "_path", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "id": { + "name": "id", + "type": "text", + "primaryKey": true, + "notNull": true, + "autoincrement": false + }, + "block_name": { + "name": "block_name", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + } + }, + "indexes": { + "home_pages_blocks_image_link_grid_order_idx": { + "name": "home_pages_blocks_image_link_grid_order_idx", + "columns": ["_order"], + "isUnique": false + }, + "home_pages_blocks_image_link_grid_parent_id_idx": { + "name": "home_pages_blocks_image_link_grid_parent_id_idx", + "columns": ["_parent_id"], + "isUnique": false + }, + "home_pages_blocks_image_link_grid_path_idx": { + "name": "home_pages_blocks_image_link_grid_path_idx", + "columns": ["_path"], + "isUnique": false + } + }, + "foreignKeys": { + "home_pages_blocks_image_link_grid_parent_id_fk": { + "name": "home_pages_blocks_image_link_grid_parent_id_fk", + "tableFrom": "home_pages_blocks_image_link_grid", + "tableTo": "home_pages", + "columnsFrom": ["_parent_id"], + "columnsTo": ["id"], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "home_pages_blocks_image_quote": { + "name": "home_pages_blocks_image_quote", + "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 + }, + "_path": { + "name": "_path", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "id": { + "name": "id", + "type": "text", + "primaryKey": true, + "notNull": true, + "autoincrement": false + }, + "background_color": { + "name": "background_color", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false, + "default": "'transparent'" + }, + "image_layout": { + "name": "image_layout", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false, + "default": "'left'" + }, + "image_id": { + "name": "image_id", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "quote": { + "name": "quote", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "author": { + "name": "author", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "block_name": { + "name": "block_name", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + } + }, + "indexes": { + "home_pages_blocks_image_quote_order_idx": { + "name": "home_pages_blocks_image_quote_order_idx", + "columns": ["_order"], + "isUnique": false + }, + "home_pages_blocks_image_quote_parent_id_idx": { + "name": "home_pages_blocks_image_quote_parent_id_idx", + "columns": ["_parent_id"], + "isUnique": false + }, + "home_pages_blocks_image_quote_path_idx": { + "name": "home_pages_blocks_image_quote_path_idx", + "columns": ["_path"], + "isUnique": false + }, + "home_pages_blocks_image_quote_image_idx": { + "name": "home_pages_blocks_image_quote_image_idx", + "columns": ["image_id"], + "isUnique": false + } + }, + "foreignKeys": { + "home_pages_blocks_image_quote_image_id_media_id_fk": { + "name": "home_pages_blocks_image_quote_image_id_media_id_fk", + "tableFrom": "home_pages_blocks_image_quote", + "tableTo": "media", + "columnsFrom": ["image_id"], + "columnsTo": ["id"], + "onDelete": "set null", + "onUpdate": "no action" + }, + "home_pages_blocks_image_quote_parent_id_fk": { + "name": "home_pages_blocks_image_quote_parent_id_fk", + "tableFrom": "home_pages_blocks_image_quote", + "tableTo": "home_pages", + "columnsFrom": ["_parent_id"], + "columnsTo": ["id"], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "home_pages_blocks_image_text": { + "name": "home_pages_blocks_image_text", + "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 + }, + "_path": { + "name": "_path", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "id": { + "name": "id", + "type": "text", + "primaryKey": true, + "notNull": true, + "autoincrement": false + }, + "background_color": { + "name": "background_color", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false, + "default": "'transparent'" + }, + "image_layout": { + "name": "image_layout", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false, + "default": "'left'" + }, + "image_id": { + "name": "image_id", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "rich_text": { + "name": "rich_text", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "block_name": { + "name": "block_name", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + } + }, + "indexes": { + "home_pages_blocks_image_text_order_idx": { + "name": "home_pages_blocks_image_text_order_idx", + "columns": ["_order"], + "isUnique": false + }, + "home_pages_blocks_image_text_parent_id_idx": { + "name": "home_pages_blocks_image_text_parent_id_idx", + "columns": ["_parent_id"], + "isUnique": false + }, + "home_pages_blocks_image_text_path_idx": { + "name": "home_pages_blocks_image_text_path_idx", + "columns": ["_path"], + "isUnique": false + }, + "home_pages_blocks_image_text_image_idx": { + "name": "home_pages_blocks_image_text_image_idx", + "columns": ["image_id"], + "isUnique": false + } + }, + "foreignKeys": { + "home_pages_blocks_image_text_image_id_media_id_fk": { + "name": "home_pages_blocks_image_text_image_id_media_id_fk", + "tableFrom": "home_pages_blocks_image_text", + "tableTo": "media", + "columnsFrom": ["image_id"], + "columnsTo": ["id"], + "onDelete": "set null", + "onUpdate": "no action" + }, + "home_pages_blocks_image_text_parent_id_fk": { + "name": "home_pages_blocks_image_text_parent_id_fk", + "tableFrom": "home_pages_blocks_image_text", + "tableTo": "home_pages", + "columnsFrom": ["_parent_id"], + "columnsTo": ["id"], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "home_pages_blocks_image_text_list_columns": { + "name": "home_pages_blocks_image_text_list_columns", + "columns": { + "_order": { + "name": "_order", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "_parent_id": { + "name": "_parent_id", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "id": { + "name": "id", + "type": "text", + "primaryKey": true, + "notNull": true, + "autoincrement": false + }, + "image_id": { + "name": "image_id", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "title": { + "name": "title", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "rich_text": { + "name": "rich_text", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + } + }, + "indexes": { + "home_pages_blocks_image_text_list_columns_order_idx": { + "name": "home_pages_blocks_image_text_list_columns_order_idx", + "columns": ["_order"], + "isUnique": false + }, + "home_pages_blocks_image_text_list_columns_parent_id_idx": { + "name": "home_pages_blocks_image_text_list_columns_parent_id_idx", + "columns": ["_parent_id"], + "isUnique": false + }, + "home_pages_blocks_image_text_list_columns_image_idx": { + "name": "home_pages_blocks_image_text_list_columns_image_idx", + "columns": ["image_id"], + "isUnique": false + } + }, + "foreignKeys": { + "home_pages_blocks_image_text_list_columns_image_id_media_id_fk": { + "name": "home_pages_blocks_image_text_list_columns_image_id_media_id_fk", + "tableFrom": "home_pages_blocks_image_text_list_columns", + "tableTo": "media", + "columnsFrom": ["image_id"], + "columnsTo": ["id"], + "onDelete": "set null", + "onUpdate": "no action" + }, + "home_pages_blocks_image_text_list_columns_parent_id_fk": { + "name": "home_pages_blocks_image_text_list_columns_parent_id_fk", + "tableFrom": "home_pages_blocks_image_text_list_columns", + "tableTo": "home_pages_blocks_image_text_list", + "columnsFrom": ["_parent_id"], + "columnsTo": ["id"], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "home_pages_blocks_image_text_list": { + "name": "home_pages_blocks_image_text_list", + "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 + }, + "_path": { + "name": "_path", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "id": { + "name": "id", + "type": "text", + "primaryKey": true, + "notNull": true, + "autoincrement": false + }, + "layout": { + "name": "layout", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false, + "default": "'above'" + }, + "block_name": { + "name": "block_name", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + } + }, + "indexes": { + "home_pages_blocks_image_text_list_order_idx": { + "name": "home_pages_blocks_image_text_list_order_idx", + "columns": ["_order"], + "isUnique": false + }, + "home_pages_blocks_image_text_list_parent_id_idx": { + "name": "home_pages_blocks_image_text_list_parent_id_idx", + "columns": ["_parent_id"], + "isUnique": false + }, + "home_pages_blocks_image_text_list_path_idx": { + "name": "home_pages_blocks_image_text_list_path_idx", + "columns": ["_path"], + "isUnique": false + } + }, + "foreignKeys": { + "home_pages_blocks_image_text_list_parent_id_fk": { + "name": "home_pages_blocks_image_text_list_parent_id_fk", + "tableFrom": "home_pages_blocks_image_text_list", + "tableTo": "home_pages", + "columnsFrom": ["_parent_id"], + "columnsTo": ["id"], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "home_pages_blocks_link_preview_cards": { + "name": "home_pages_blocks_link_preview_cards", + "columns": { + "_order": { + "name": "_order", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "_parent_id": { + "name": "_parent_id", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "id": { + "name": "id", + "type": "text", + "primaryKey": true, + "notNull": true, + "autoincrement": false + }, + "image_id": { + "name": "image_id", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "title": { + "name": "title", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "text": { + "name": "text", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "button_type": { + "name": "button_type", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false, + "default": "'internal'" + }, + "button_new_tab": { + "name": "button_new_tab", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "button_url": { + "name": "button_url", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "button_label": { + "name": "button_label", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "button_appearance": { + "name": "button_appearance", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false, + "default": "'default'" + } + }, + "indexes": { + "home_pages_blocks_link_preview_cards_order_idx": { + "name": "home_pages_blocks_link_preview_cards_order_idx", + "columns": ["_order"], + "isUnique": false + }, + "home_pages_blocks_link_preview_cards_parent_id_idx": { + "name": "home_pages_blocks_link_preview_cards_parent_id_idx", + "columns": ["_parent_id"], + "isUnique": false + }, + "home_pages_blocks_link_preview_cards_image_idx": { + "name": "home_pages_blocks_link_preview_cards_image_idx", + "columns": ["image_id"], + "isUnique": false + } + }, + "foreignKeys": { + "home_pages_blocks_link_preview_cards_image_id_media_id_fk": { + "name": "home_pages_blocks_link_preview_cards_image_id_media_id_fk", + "tableFrom": "home_pages_blocks_link_preview_cards", + "tableTo": "media", + "columnsFrom": ["image_id"], + "columnsTo": ["id"], + "onDelete": "set null", + "onUpdate": "no action" + }, + "home_pages_blocks_link_preview_cards_parent_id_fk": { + "name": "home_pages_blocks_link_preview_cards_parent_id_fk", + "tableFrom": "home_pages_blocks_link_preview_cards", + "tableTo": "home_pages_blocks_link_preview", + "columnsFrom": ["_parent_id"], + "columnsTo": ["id"], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "home_pages_blocks_link_preview": { + "name": "home_pages_blocks_link_preview", + "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 + }, + "_path": { + "name": "_path", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "id": { + "name": "id", + "type": "text", + "primaryKey": true, + "notNull": true, + "autoincrement": false + }, + "header": { + "name": "header", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "background_color": { + "name": "background_color", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false, + "default": "'transparent'" + }, + "block_name": { + "name": "block_name", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + } + }, + "indexes": { + "home_pages_blocks_link_preview_order_idx": { + "name": "home_pages_blocks_link_preview_order_idx", + "columns": ["_order"], + "isUnique": false + }, + "home_pages_blocks_link_preview_parent_id_idx": { + "name": "home_pages_blocks_link_preview_parent_id_idx", + "columns": ["_parent_id"], + "isUnique": false + }, + "home_pages_blocks_link_preview_path_idx": { + "name": "home_pages_blocks_link_preview_path_idx", + "columns": ["_path"], + "isUnique": false + } + }, + "foreignKeys": { + "home_pages_blocks_link_preview_parent_id_fk": { + "name": "home_pages_blocks_link_preview_parent_id_fk", + "tableFrom": "home_pages_blocks_link_preview", + "tableTo": "home_pages", + "columnsFrom": ["_parent_id"], + "columnsTo": ["id"], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "home_pages_blocks_media_block": { + "name": "home_pages_blocks_media_block", + "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 + }, + "_path": { + "name": "_path", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "id": { + "name": "id", + "type": "text", + "primaryKey": true, + "notNull": true, + "autoincrement": false + }, + "media_id": { + "name": "media_id", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "caption": { + "name": "caption", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "background_color": { + "name": "background_color", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false, + "default": "'transparent'" + }, + "align_content": { + "name": "align_content", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false, + "default": "'left'" + }, + "image_size": { + "name": "image_size", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false, + "default": "'original'" + }, + "block_name": { + "name": "block_name", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + } + }, + "indexes": { + "home_pages_blocks_media_block_order_idx": { + "name": "home_pages_blocks_media_block_order_idx", + "columns": ["_order"], + "isUnique": false + }, + "home_pages_blocks_media_block_parent_id_idx": { + "name": "home_pages_blocks_media_block_parent_id_idx", + "columns": ["_parent_id"], + "isUnique": false + }, + "home_pages_blocks_media_block_path_idx": { + "name": "home_pages_blocks_media_block_path_idx", + "columns": ["_path"], + "isUnique": false + }, + "home_pages_blocks_media_block_media_idx": { + "name": "home_pages_blocks_media_block_media_idx", + "columns": ["media_id"], + "isUnique": false + } + }, + "foreignKeys": { + "home_pages_blocks_media_block_media_id_media_id_fk": { + "name": "home_pages_blocks_media_block_media_id_media_id_fk", + "tableFrom": "home_pages_blocks_media_block", + "tableTo": "media", + "columnsFrom": ["media_id"], + "columnsTo": ["id"], + "onDelete": "set null", + "onUpdate": "no action" + }, + "home_pages_blocks_media_block_parent_id_fk": { + "name": "home_pages_blocks_media_block_parent_id_fk", + "tableFrom": "home_pages_blocks_media_block", + "tableTo": "home_pages", + "columnsFrom": ["_parent_id"], + "columnsTo": ["id"], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "home_pages_blocks_single_blog_post": { + "name": "home_pages_blocks_single_blog_post", + "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 + }, + "_path": { + "name": "_path", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "id": { + "name": "id", + "type": "text", + "primaryKey": true, + "notNull": true, + "autoincrement": false + }, + "background_color": { + "name": "background_color", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false, + "default": "'transparent'" + }, + "post_id": { + "name": "post_id", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "block_name": { + "name": "block_name", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + } + }, + "indexes": { + "home_pages_blocks_single_blog_post_order_idx": { + "name": "home_pages_blocks_single_blog_post_order_idx", + "columns": ["_order"], + "isUnique": false + }, + "home_pages_blocks_single_blog_post_parent_id_idx": { + "name": "home_pages_blocks_single_blog_post_parent_id_idx", + "columns": ["_parent_id"], + "isUnique": false + }, + "home_pages_blocks_single_blog_post_path_idx": { + "name": "home_pages_blocks_single_blog_post_path_idx", + "columns": ["_path"], + "isUnique": false + }, + "home_pages_blocks_single_blog_post_post_idx": { + "name": "home_pages_blocks_single_blog_post_post_idx", + "columns": ["post_id"], + "isUnique": false + } + }, + "foreignKeys": { + "home_pages_blocks_single_blog_post_post_id_posts_id_fk": { + "name": "home_pages_blocks_single_blog_post_post_id_posts_id_fk", + "tableFrom": "home_pages_blocks_single_blog_post", + "tableTo": "posts", + "columnsFrom": ["post_id"], + "columnsTo": ["id"], + "onDelete": "set null", + "onUpdate": "no action" + }, + "home_pages_blocks_single_blog_post_parent_id_fk": { + "name": "home_pages_blocks_single_blog_post_parent_id_fk", + "tableFrom": "home_pages_blocks_single_blog_post", + "tableTo": "home_pages", + "columnsFrom": ["_parent_id"], + "columnsTo": ["id"], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "home_pages_blocks_sponsors_block": { + "name": "home_pages_blocks_sponsors_block", + "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 + }, + "_path": { + "name": "_path", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "id": { + "name": "id", + "type": "text", + "primaryKey": true, + "notNull": true, + "autoincrement": false + }, + "background_color": { + "name": "background_color", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false, + "default": "'transparent'" + }, + "sponsors_layout": { + "name": "sponsors_layout", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false, + "default": "'static'" + }, + "wrap_in_container": { + "name": "wrap_in_container", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false, + "default": true + }, + "block_name": { + "name": "block_name", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + } + }, + "indexes": { + "home_pages_blocks_sponsors_block_order_idx": { + "name": "home_pages_blocks_sponsors_block_order_idx", + "columns": ["_order"], + "isUnique": false + }, + "home_pages_blocks_sponsors_block_parent_id_idx": { + "name": "home_pages_blocks_sponsors_block_parent_id_idx", + "columns": ["_parent_id"], + "isUnique": false + }, + "home_pages_blocks_sponsors_block_path_idx": { + "name": "home_pages_blocks_sponsors_block_path_idx", + "columns": ["_path"], + "isUnique": false + } + }, + "foreignKeys": { + "home_pages_blocks_sponsors_block_parent_id_fk": { + "name": "home_pages_blocks_sponsors_block_parent_id_fk", + "tableFrom": "home_pages_blocks_sponsors_block", + "tableTo": "home_pages", + "columnsFrom": ["_parent_id"], + "columnsTo": ["id"], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "home_pages_blocks_team": { + "name": "home_pages_blocks_team", + "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 + }, + "_path": { + "name": "_path", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "id": { + "name": "id", + "type": "text", + "primaryKey": true, + "notNull": true, + "autoincrement": false + }, + "team_id": { + "name": "team_id", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "block_name": { + "name": "block_name", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + } + }, + "indexes": { + "home_pages_blocks_team_order_idx": { + "name": "home_pages_blocks_team_order_idx", + "columns": ["_order"], + "isUnique": false + }, + "home_pages_blocks_team_parent_id_idx": { + "name": "home_pages_blocks_team_parent_id_idx", + "columns": ["_parent_id"], + "isUnique": false + }, + "home_pages_blocks_team_path_idx": { + "name": "home_pages_blocks_team_path_idx", + "columns": ["_path"], + "isUnique": false + }, + "home_pages_blocks_team_team_idx": { + "name": "home_pages_blocks_team_team_idx", + "columns": ["team_id"], + "isUnique": false + } + }, + "foreignKeys": { + "home_pages_blocks_team_team_id_teams_id_fk": { + "name": "home_pages_blocks_team_team_id_teams_id_fk", + "tableFrom": "home_pages_blocks_team", + "tableTo": "teams", + "columnsFrom": ["team_id"], + "columnsTo": ["id"], + "onDelete": "set null", + "onUpdate": "no action" + }, + "home_pages_blocks_team_parent_id_fk": { + "name": "home_pages_blocks_team_parent_id_fk", + "tableFrom": "home_pages_blocks_team", + "tableTo": "home_pages", + "columnsFrom": ["_parent_id"], + "columnsTo": ["id"], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "home_pages_blocks_generic_embed": { + "name": "home_pages_blocks_generic_embed", + "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 + }, + "_path": { + "name": "_path", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "id": { + "name": "id", + "type": "text", + "primaryKey": true, + "notNull": true, + "autoincrement": false + }, + "html": { + "name": "html", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "background_color": { + "name": "background_color", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false, + "default": "'transparent'" + }, + "align_content": { + "name": "align_content", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false, + "default": "'left'" + }, + "block_name": { + "name": "block_name", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + } + }, + "indexes": { + "home_pages_blocks_generic_embed_order_idx": { + "name": "home_pages_blocks_generic_embed_order_idx", + "columns": ["_order"], + "isUnique": false + }, + "home_pages_blocks_generic_embed_parent_id_idx": { + "name": "home_pages_blocks_generic_embed_parent_id_idx", + "columns": ["_parent_id"], + "isUnique": false + }, + "home_pages_blocks_generic_embed_path_idx": { + "name": "home_pages_blocks_generic_embed_path_idx", + "columns": ["_path"], + "isUnique": false + } + }, + "foreignKeys": { + "home_pages_blocks_generic_embed_parent_id_fk": { + "name": "home_pages_blocks_generic_embed_parent_id_fk", + "tableFrom": "home_pages_blocks_generic_embed", + "tableTo": "home_pages", + "columnsFrom": ["_parent_id"], + "columnsTo": ["id"], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "home_pages_blocks_in_highlighted_content": { + "name": "home_pages_blocks_in_highlighted_content", + "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 + }, + "block_type": { + "name": "block_type", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "collection": { + "name": "collection", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "doc_id": { + "name": "doc_id", + "type": "numeric", + "primaryKey": false, + "notNull": false, + "autoincrement": false + } + }, + "indexes": { + "home_pages_blocks_in_highlighted_content_order_idx": { + "name": "home_pages_blocks_in_highlighted_content_order_idx", + "columns": ["_order"], + "isUnique": false + }, + "home_pages_blocks_in_highlighted_content_parent_id_idx": { + "name": "home_pages_blocks_in_highlighted_content_parent_id_idx", + "columns": ["_parent_id"], + "isUnique": false + } + }, + "foreignKeys": { + "home_pages_blocks_in_highlighted_content_parent_id_fk": { + "name": "home_pages_blocks_in_highlighted_content_parent_id_fk", + "tableFrom": "home_pages_blocks_in_highlighted_content", + "tableTo": "home_pages", + "columnsFrom": ["_parent_id"], + "columnsTo": ["id"], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "home_pages": { + "name": "home_pages", + "columns": { + "id": { + "name": "id", + "type": "integer", + "primaryKey": true, + "notNull": true, + "autoincrement": false + }, + "tenant_id": { + "name": "tenant_id", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "highlighted_content_enabled": { + "name": "highlighted_content_enabled", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false, + "default": false + }, + "highlighted_content_heading": { + "name": "highlighted_content_heading", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "highlighted_content_background_color": { + "name": "highlighted_content_background_color", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false, + "default": "'transparent'" + }, + "published_at": { + "name": "published_at", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "content_hash": { + "name": "content_hash", + "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'))" + }, + "_status": { + "name": "_status", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false, + "default": "'draft'" + } + }, + "indexes": { + "home_pages_tenant_idx": { + "name": "home_pages_tenant_idx", + "columns": ["tenant_id"], + "isUnique": true + }, + "home_pages_updated_at_idx": { + "name": "home_pages_updated_at_idx", + "columns": ["updated_at"], + "isUnique": false + }, + "home_pages_created_at_idx": { + "name": "home_pages_created_at_idx", + "columns": ["created_at"], + "isUnique": false + }, + "home_pages__status_idx": { + "name": "home_pages__status_idx", + "columns": ["_status"], + "isUnique": false + } + }, + "foreignKeys": { + "home_pages_tenant_id_tenants_id_fk": { + "name": "home_pages_tenant_id_tenants_id_fk", + "tableFrom": "home_pages", + "tableTo": "tenants", + "columnsFrom": ["tenant_id"], + "columnsTo": ["id"], + "onDelete": "set null", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "home_pages_rels": { + "name": "home_pages_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 + }, + "pages_id": { + "name": "pages_id", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "built_in_pages_id": { + "name": "built_in_pages_id", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "posts_id": { + "name": "posts_id", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "tags_id": { + "name": "tags_id", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "sponsors_id": { + "name": "sponsors_id", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + } + }, + "indexes": { + "home_pages_rels_order_idx": { + "name": "home_pages_rels_order_idx", + "columns": ["order"], + "isUnique": false + }, + "home_pages_rels_parent_idx": { + "name": "home_pages_rels_parent_idx", + "columns": ["parent_id"], + "isUnique": false + }, + "home_pages_rels_path_idx": { + "name": "home_pages_rels_path_idx", + "columns": ["path"], + "isUnique": false + }, + "home_pages_rels_pages_id_idx": { + "name": "home_pages_rels_pages_id_idx", + "columns": ["pages_id"], + "isUnique": false + }, + "home_pages_rels_built_in_pages_id_idx": { + "name": "home_pages_rels_built_in_pages_id_idx", + "columns": ["built_in_pages_id"], + "isUnique": false + }, + "home_pages_rels_posts_id_idx": { + "name": "home_pages_rels_posts_id_idx", + "columns": ["posts_id"], + "isUnique": false + }, + "home_pages_rels_tags_id_idx": { + "name": "home_pages_rels_tags_id_idx", + "columns": ["tags_id"], + "isUnique": false + }, + "home_pages_rels_sponsors_id_idx": { + "name": "home_pages_rels_sponsors_id_idx", + "columns": ["sponsors_id"], + "isUnique": false + } + }, + "foreignKeys": { + "home_pages_rels_parent_1_idx": { + "name": "home_pages_rels_parent_1_idx", + "tableFrom": "home_pages_rels", + "tableTo": "home_pages", + "columnsFrom": ["parent_id"], + "columnsTo": ["id"], + "onDelete": "cascade", + "onUpdate": "no action" + }, + "home_pages_rels_pages_fk": { + "name": "home_pages_rels_pages_fk", + "tableFrom": "home_pages_rels", + "tableTo": "pages", + "columnsFrom": ["pages_id"], + "columnsTo": ["id"], + "onDelete": "cascade", + "onUpdate": "no action" + }, + "home_pages_rels_built_in_pages_fk": { + "name": "home_pages_rels_built_in_pages_fk", + "tableFrom": "home_pages_rels", + "tableTo": "built_in_pages", + "columnsFrom": ["built_in_pages_id"], + "columnsTo": ["id"], + "onDelete": "cascade", + "onUpdate": "no action" + }, + "home_pages_rels_posts_fk": { + "name": "home_pages_rels_posts_fk", + "tableFrom": "home_pages_rels", + "tableTo": "posts", + "columnsFrom": ["posts_id"], + "columnsTo": ["id"], + "onDelete": "cascade", + "onUpdate": "no action" + }, + "home_pages_rels_tags_fk": { + "name": "home_pages_rels_tags_fk", + "tableFrom": "home_pages_rels", + "tableTo": "tags", + "columnsFrom": ["tags_id"], + "columnsTo": ["id"], + "onDelete": "cascade", + "onUpdate": "no action" + }, + "home_pages_rels_sponsors_fk": { + "name": "home_pages_rels_sponsors_fk", + "tableFrom": "home_pages_rels", + "tableTo": "sponsors", + "columnsFrom": ["sponsors_id"], + "columnsTo": ["id"], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "_home_pages_v_version_quick_links": { + "name": "_home_pages_v_version_quick_links", + "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": "integer", + "primaryKey": true, + "notNull": true, + "autoincrement": false + }, + "type": { + "name": "type", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false, + "default": "'internal'" + }, + "new_tab": { + "name": "new_tab", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "url": { + "name": "url", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "label": { + "name": "label", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "_uuid": { + "name": "_uuid", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + } + }, + "indexes": { + "_home_pages_v_version_quick_links_order_idx": { + "name": "_home_pages_v_version_quick_links_order_idx", + "columns": ["_order"], + "isUnique": false + }, + "_home_pages_v_version_quick_links_parent_id_idx": { + "name": "_home_pages_v_version_quick_links_parent_id_idx", + "columns": ["_parent_id"], + "isUnique": false + } + }, + "foreignKeys": { + "_home_pages_v_version_quick_links_parent_id_fk": { + "name": "_home_pages_v_version_quick_links_parent_id_fk", + "tableFrom": "_home_pages_v_version_quick_links", + "tableTo": "_home_pages_v", + "columnsFrom": ["_parent_id"], + "columnsTo": ["id"], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "_home_pages_v_version_highlighted_content_columns": { + "name": "_home_pages_v_version_highlighted_content_columns", + "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": "integer", + "primaryKey": true, + "notNull": true, + "autoincrement": false + }, + "rich_text": { + "name": "rich_text", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "_uuid": { + "name": "_uuid", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + } + }, + "indexes": { + "_home_pages_v_version_highlighted_content_columns_order_idx": { + "name": "_home_pages_v_version_highlighted_content_columns_order_idx", + "columns": ["_order"], + "isUnique": false + }, + "_home_pages_v_version_highlighted_content_columns_parent_id_idx": { + "name": "_home_pages_v_version_highlighted_content_columns_parent_id_idx", + "columns": ["_parent_id"], + "isUnique": false + } + }, + "foreignKeys": { + "_home_pages_v_version_highlighted_content_columns_parent_id_fk": { + "name": "_home_pages_v_version_highlighted_content_columns_parent_id_fk", + "tableFrom": "_home_pages_v_version_highlighted_content_columns", + "tableTo": "_home_pages_v", + "columnsFrom": ["_parent_id"], + "columnsTo": ["id"], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "_home_pages_v_blocks_biography": { + "name": "_home_pages_v_blocks_biography", + "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 + }, + "_path": { + "name": "_path", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "id": { + "name": "id", + "type": "integer", + "primaryKey": true, + "notNull": true, + "autoincrement": false + }, + "background_color": { + "name": "background_color", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false, + "default": "'transparent'" + }, + "biography_id": { + "name": "biography_id", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "image_layout": { + "name": "image_layout", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false, + "default": "'left'" + }, + "_uuid": { + "name": "_uuid", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "block_name": { + "name": "block_name", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + } + }, + "indexes": { + "_home_pages_v_blocks_biography_order_idx": { + "name": "_home_pages_v_blocks_biography_order_idx", + "columns": ["_order"], + "isUnique": false + }, + "_home_pages_v_blocks_biography_parent_id_idx": { + "name": "_home_pages_v_blocks_biography_parent_id_idx", + "columns": ["_parent_id"], + "isUnique": false + }, + "_home_pages_v_blocks_biography_path_idx": { + "name": "_home_pages_v_blocks_biography_path_idx", + "columns": ["_path"], + "isUnique": false + }, + "_home_pages_v_blocks_biography_biography_idx": { + "name": "_home_pages_v_blocks_biography_biography_idx", + "columns": ["biography_id"], + "isUnique": false + } + }, + "foreignKeys": { + "_home_pages_v_blocks_biography_biography_id_biographies_id_fk": { + "name": "_home_pages_v_blocks_biography_biography_id_biographies_id_fk", + "tableFrom": "_home_pages_v_blocks_biography", + "tableTo": "biographies", + "columnsFrom": ["biography_id"], + "columnsTo": ["id"], + "onDelete": "set null", + "onUpdate": "no action" + }, + "_home_pages_v_blocks_biography_parent_id_fk": { + "name": "_home_pages_v_blocks_biography_parent_id_fk", + "tableFrom": "_home_pages_v_blocks_biography", + "tableTo": "_home_pages_v", + "columnsFrom": ["_parent_id"], + "columnsTo": ["id"], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "_home_pages_v_blocks_blog_list": { + "name": "_home_pages_v_blocks_blog_list", + "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 + }, + "_path": { + "name": "_path", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "id": { + "name": "id", + "type": "integer", + "primaryKey": true, + "notNull": true, + "autoincrement": false + }, + "heading": { + "name": "heading", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "below_heading_content": { + "name": "below_heading_content", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "background_color": { + "name": "background_color", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false, + "default": "'transparent'" + }, + "post_options": { + "name": "post_options", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false, + "default": "'dynamic'" + }, + "dynamic_options_sort_by": { + "name": "dynamic_options_sort_by", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false, + "default": "'-publishedAt'" + }, + "dynamic_options_max_posts": { + "name": "dynamic_options_max_posts", + "type": "numeric", + "primaryKey": false, + "notNull": false, + "autoincrement": false, + "default": 4 + }, + "_uuid": { + "name": "_uuid", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "block_name": { + "name": "block_name", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + } + }, + "indexes": { + "_home_pages_v_blocks_blog_list_order_idx": { + "name": "_home_pages_v_blocks_blog_list_order_idx", + "columns": ["_order"], + "isUnique": false + }, + "_home_pages_v_blocks_blog_list_parent_id_idx": { + "name": "_home_pages_v_blocks_blog_list_parent_id_idx", + "columns": ["_parent_id"], + "isUnique": false + }, + "_home_pages_v_blocks_blog_list_path_idx": { + "name": "_home_pages_v_blocks_blog_list_path_idx", + "columns": ["_path"], + "isUnique": false + } + }, + "foreignKeys": { + "_home_pages_v_blocks_blog_list_parent_id_fk": { + "name": "_home_pages_v_blocks_blog_list_parent_id_fk", + "tableFrom": "_home_pages_v_blocks_blog_list", + "tableTo": "_home_pages_v", + "columnsFrom": ["_parent_id"], + "columnsTo": ["id"], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "_home_pages_v_blocks_content_columns": { + "name": "_home_pages_v_blocks_content_columns", + "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": "integer", + "primaryKey": true, + "notNull": true, + "autoincrement": false + }, + "rich_text": { + "name": "rich_text", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "_uuid": { + "name": "_uuid", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + } + }, + "indexes": { + "_home_pages_v_blocks_content_columns_order_idx": { + "name": "_home_pages_v_blocks_content_columns_order_idx", + "columns": ["_order"], + "isUnique": false + }, + "_home_pages_v_blocks_content_columns_parent_id_idx": { + "name": "_home_pages_v_blocks_content_columns_parent_id_idx", + "columns": ["_parent_id"], + "isUnique": false + } + }, + "foreignKeys": { + "_home_pages_v_blocks_content_columns_parent_id_fk": { + "name": "_home_pages_v_blocks_content_columns_parent_id_fk", + "tableFrom": "_home_pages_v_blocks_content_columns", + "tableTo": "_home_pages_v_blocks_content", + "columnsFrom": ["_parent_id"], + "columnsTo": ["id"], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "_home_pages_v_blocks_content": { + "name": "_home_pages_v_blocks_content", + "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 + }, + "_path": { + "name": "_path", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "id": { + "name": "id", + "type": "integer", + "primaryKey": true, + "notNull": true, + "autoincrement": false + }, + "background_color": { + "name": "background_color", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false, + "default": "'transparent'" + }, + "layout": { + "name": "layout", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false, + "default": "'1_1'" + }, + "_uuid": { + "name": "_uuid", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "block_name": { + "name": "block_name", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + } + }, + "indexes": { + "_home_pages_v_blocks_content_order_idx": { + "name": "_home_pages_v_blocks_content_order_idx", + "columns": ["_order"], + "isUnique": false + }, + "_home_pages_v_blocks_content_parent_id_idx": { + "name": "_home_pages_v_blocks_content_parent_id_idx", + "columns": ["_parent_id"], + "isUnique": false + }, + "_home_pages_v_blocks_content_path_idx": { + "name": "_home_pages_v_blocks_content_path_idx", + "columns": ["_path"], + "isUnique": false + } + }, + "foreignKeys": { + "_home_pages_v_blocks_content_parent_id_fk": { + "name": "_home_pages_v_blocks_content_parent_id_fk", + "tableFrom": "_home_pages_v_blocks_content", + "tableTo": "_home_pages_v", + "columnsFrom": ["_parent_id"], + "columnsTo": ["id"], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "_home_pages_v_blocks_document_block": { + "name": "_home_pages_v_blocks_document_block", + "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 + }, + "_path": { + "name": "_path", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "id": { + "name": "id", + "type": "integer", + "primaryKey": true, + "notNull": true, + "autoincrement": false + }, + "document_id": { + "name": "document_id", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "wrap_in_container": { + "name": "wrap_in_container", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false, + "default": false + }, + "_uuid": { + "name": "_uuid", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "block_name": { + "name": "block_name", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + } + }, + "indexes": { + "_home_pages_v_blocks_document_block_order_idx": { + "name": "_home_pages_v_blocks_document_block_order_idx", + "columns": ["_order"], + "isUnique": false + }, + "_home_pages_v_blocks_document_block_parent_id_idx": { + "name": "_home_pages_v_blocks_document_block_parent_id_idx", + "columns": ["_parent_id"], + "isUnique": false + }, + "_home_pages_v_blocks_document_block_path_idx": { + "name": "_home_pages_v_blocks_document_block_path_idx", + "columns": ["_path"], + "isUnique": false + }, + "_home_pages_v_blocks_document_block_document_idx": { + "name": "_home_pages_v_blocks_document_block_document_idx", + "columns": ["document_id"], + "isUnique": false + } + }, + "foreignKeys": { + "_home_pages_v_blocks_document_block_document_id_documents_id_fk": { + "name": "_home_pages_v_blocks_document_block_document_id_documents_id_fk", + "tableFrom": "_home_pages_v_blocks_document_block", + "tableTo": "documents", + "columnsFrom": ["document_id"], + "columnsTo": ["id"], + "onDelete": "set null", + "onUpdate": "no action" + }, + "_home_pages_v_blocks_document_block_parent_id_fk": { + "name": "_home_pages_v_blocks_document_block_parent_id_fk", + "tableFrom": "_home_pages_v_blocks_document_block", + "tableTo": "_home_pages_v", + "columnsFrom": ["_parent_id"], + "columnsTo": ["id"], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "_home_pages_v_blocks_form_block": { + "name": "_home_pages_v_blocks_form_block", + "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 + }, + "_path": { + "name": "_path", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "id": { + "name": "id", + "type": "integer", + "primaryKey": true, + "notNull": true, + "autoincrement": false + }, + "form_id": { + "name": "form_id", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "enable_intro": { + "name": "enable_intro", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "intro_content": { + "name": "intro_content", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "_uuid": { + "name": "_uuid", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "block_name": { + "name": "block_name", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + } + }, + "indexes": { + "_home_pages_v_blocks_form_block_order_idx": { + "name": "_home_pages_v_blocks_form_block_order_idx", + "columns": ["_order"], + "isUnique": false + }, + "_home_pages_v_blocks_form_block_parent_id_idx": { + "name": "_home_pages_v_blocks_form_block_parent_id_idx", + "columns": ["_parent_id"], + "isUnique": false + }, + "_home_pages_v_blocks_form_block_path_idx": { + "name": "_home_pages_v_blocks_form_block_path_idx", + "columns": ["_path"], + "isUnique": false + }, + "_home_pages_v_blocks_form_block_form_idx": { + "name": "_home_pages_v_blocks_form_block_form_idx", + "columns": ["form_id"], + "isUnique": false + } + }, + "foreignKeys": { + "_home_pages_v_blocks_form_block_form_id_forms_id_fk": { + "name": "_home_pages_v_blocks_form_block_form_id_forms_id_fk", + "tableFrom": "_home_pages_v_blocks_form_block", + "tableTo": "forms", + "columnsFrom": ["form_id"], + "columnsTo": ["id"], + "onDelete": "set null", + "onUpdate": "no action" + }, + "_home_pages_v_blocks_form_block_parent_id_fk": { + "name": "_home_pages_v_blocks_form_block_parent_id_fk", + "tableFrom": "_home_pages_v_blocks_form_block", + "tableTo": "_home_pages_v", + "columnsFrom": ["_parent_id"], + "columnsTo": ["id"], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "_home_pages_v_blocks_header_block": { + "name": "_home_pages_v_blocks_header_block", + "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 + }, + "_path": { + "name": "_path", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "id": { + "name": "id", + "type": "integer", + "primaryKey": true, + "notNull": true, + "autoincrement": false + }, + "rich_text": { + "name": "rich_text", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "background_color": { + "name": "background_color", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false, + "default": "'transparent'" + }, + "wrap_in_container": { + "name": "wrap_in_container", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false, + "default": true + }, + "_uuid": { + "name": "_uuid", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "block_name": { + "name": "block_name", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + } + }, + "indexes": { + "_home_pages_v_blocks_header_block_order_idx": { + "name": "_home_pages_v_blocks_header_block_order_idx", + "columns": ["_order"], + "isUnique": false + }, + "_home_pages_v_blocks_header_block_parent_id_idx": { + "name": "_home_pages_v_blocks_header_block_parent_id_idx", + "columns": ["_parent_id"], + "isUnique": false + }, + "_home_pages_v_blocks_header_block_path_idx": { + "name": "_home_pages_v_blocks_header_block_path_idx", + "columns": ["_path"], + "isUnique": false + } + }, + "foreignKeys": { + "_home_pages_v_blocks_header_block_parent_id_fk": { + "name": "_home_pages_v_blocks_header_block_parent_id_fk", + "tableFrom": "_home_pages_v_blocks_header_block", + "tableTo": "_home_pages_v", + "columnsFrom": ["_parent_id"], + "columnsTo": ["id"], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "_home_pages_v_blocks_image_link_grid_columns": { + "name": "_home_pages_v_blocks_image_link_grid_columns", + "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": "integer", + "primaryKey": true, + "notNull": true, + "autoincrement": false + }, + "image_id": { + "name": "image_id", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "link_type": { + "name": "link_type", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false, + "default": "'internal'" + }, + "link_new_tab": { + "name": "link_new_tab", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "link_url": { + "name": "link_url", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "caption": { + "name": "caption", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "_uuid": { + "name": "_uuid", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + } + }, + "indexes": { + "_home_pages_v_blocks_image_link_grid_columns_order_idx": { + "name": "_home_pages_v_blocks_image_link_grid_columns_order_idx", + "columns": ["_order"], + "isUnique": false + }, + "_home_pages_v_blocks_image_link_grid_columns_parent_id_idx": { + "name": "_home_pages_v_blocks_image_link_grid_columns_parent_id_idx", + "columns": ["_parent_id"], + "isUnique": false + }, + "_home_pages_v_blocks_image_link_grid_columns_image_idx": { + "name": "_home_pages_v_blocks_image_link_grid_columns_image_idx", + "columns": ["image_id"], + "isUnique": false + } + }, + "foreignKeys": { + "_home_pages_v_blocks_image_link_grid_columns_image_id_media_id_fk": { + "name": "_home_pages_v_blocks_image_link_grid_columns_image_id_media_id_fk", + "tableFrom": "_home_pages_v_blocks_image_link_grid_columns", + "tableTo": "media", + "columnsFrom": ["image_id"], + "columnsTo": ["id"], + "onDelete": "set null", + "onUpdate": "no action" + }, + "_home_pages_v_blocks_image_link_grid_columns_parent_id_fk": { + "name": "_home_pages_v_blocks_image_link_grid_columns_parent_id_fk", + "tableFrom": "_home_pages_v_blocks_image_link_grid_columns", + "tableTo": "_home_pages_v_blocks_image_link_grid", + "columnsFrom": ["_parent_id"], + "columnsTo": ["id"], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "_home_pages_v_blocks_image_link_grid": { + "name": "_home_pages_v_blocks_image_link_grid", + "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 + }, + "_path": { + "name": "_path", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "id": { + "name": "id", + "type": "integer", + "primaryKey": true, + "notNull": true, + "autoincrement": false + }, + "_uuid": { + "name": "_uuid", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "block_name": { + "name": "block_name", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + } + }, + "indexes": { + "_home_pages_v_blocks_image_link_grid_order_idx": { + "name": "_home_pages_v_blocks_image_link_grid_order_idx", + "columns": ["_order"], + "isUnique": false + }, + "_home_pages_v_blocks_image_link_grid_parent_id_idx": { + "name": "_home_pages_v_blocks_image_link_grid_parent_id_idx", + "columns": ["_parent_id"], + "isUnique": false + }, + "_home_pages_v_blocks_image_link_grid_path_idx": { + "name": "_home_pages_v_blocks_image_link_grid_path_idx", + "columns": ["_path"], + "isUnique": false + } + }, + "foreignKeys": { + "_home_pages_v_blocks_image_link_grid_parent_id_fk": { + "name": "_home_pages_v_blocks_image_link_grid_parent_id_fk", + "tableFrom": "_home_pages_v_blocks_image_link_grid", + "tableTo": "_home_pages_v", + "columnsFrom": ["_parent_id"], + "columnsTo": ["id"], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "_home_pages_v_blocks_image_quote": { + "name": "_home_pages_v_blocks_image_quote", + "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 + }, + "_path": { + "name": "_path", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "id": { + "name": "id", + "type": "integer", + "primaryKey": true, + "notNull": true, + "autoincrement": false + }, + "background_color": { + "name": "background_color", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false, + "default": "'transparent'" + }, + "image_layout": { + "name": "image_layout", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false, + "default": "'left'" + }, + "image_id": { + "name": "image_id", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "quote": { + "name": "quote", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "author": { + "name": "author", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "_uuid": { + "name": "_uuid", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "block_name": { + "name": "block_name", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + } + }, + "indexes": { + "_home_pages_v_blocks_image_quote_order_idx": { + "name": "_home_pages_v_blocks_image_quote_order_idx", + "columns": ["_order"], + "isUnique": false + }, + "_home_pages_v_blocks_image_quote_parent_id_idx": { + "name": "_home_pages_v_blocks_image_quote_parent_id_idx", + "columns": ["_parent_id"], + "isUnique": false + }, + "_home_pages_v_blocks_image_quote_path_idx": { + "name": "_home_pages_v_blocks_image_quote_path_idx", + "columns": ["_path"], + "isUnique": false + }, + "_home_pages_v_blocks_image_quote_image_idx": { + "name": "_home_pages_v_blocks_image_quote_image_idx", + "columns": ["image_id"], + "isUnique": false + } + }, + "foreignKeys": { + "_home_pages_v_blocks_image_quote_image_id_media_id_fk": { + "name": "_home_pages_v_blocks_image_quote_image_id_media_id_fk", + "tableFrom": "_home_pages_v_blocks_image_quote", + "tableTo": "media", + "columnsFrom": ["image_id"], + "columnsTo": ["id"], + "onDelete": "set null", + "onUpdate": "no action" + }, + "_home_pages_v_blocks_image_quote_parent_id_fk": { + "name": "_home_pages_v_blocks_image_quote_parent_id_fk", + "tableFrom": "_home_pages_v_blocks_image_quote", + "tableTo": "_home_pages_v", + "columnsFrom": ["_parent_id"], + "columnsTo": ["id"], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "_home_pages_v_blocks_image_text": { + "name": "_home_pages_v_blocks_image_text", + "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 + }, + "_path": { + "name": "_path", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "id": { + "name": "id", + "type": "integer", + "primaryKey": true, + "notNull": true, + "autoincrement": false + }, + "background_color": { + "name": "background_color", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false, + "default": "'transparent'" + }, + "image_layout": { + "name": "image_layout", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false, + "default": "'left'" + }, + "image_id": { + "name": "image_id", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "rich_text": { + "name": "rich_text", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "_uuid": { + "name": "_uuid", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "block_name": { + "name": "block_name", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + } + }, + "indexes": { + "_home_pages_v_blocks_image_text_order_idx": { + "name": "_home_pages_v_blocks_image_text_order_idx", + "columns": ["_order"], + "isUnique": false + }, + "_home_pages_v_blocks_image_text_parent_id_idx": { + "name": "_home_pages_v_blocks_image_text_parent_id_idx", + "columns": ["_parent_id"], + "isUnique": false + }, + "_home_pages_v_blocks_image_text_path_idx": { + "name": "_home_pages_v_blocks_image_text_path_idx", + "columns": ["_path"], + "isUnique": false + }, + "_home_pages_v_blocks_image_text_image_idx": { + "name": "_home_pages_v_blocks_image_text_image_idx", + "columns": ["image_id"], + "isUnique": false + } + }, + "foreignKeys": { + "_home_pages_v_blocks_image_text_image_id_media_id_fk": { + "name": "_home_pages_v_blocks_image_text_image_id_media_id_fk", + "tableFrom": "_home_pages_v_blocks_image_text", + "tableTo": "media", + "columnsFrom": ["image_id"], + "columnsTo": ["id"], + "onDelete": "set null", + "onUpdate": "no action" + }, + "_home_pages_v_blocks_image_text_parent_id_fk": { + "name": "_home_pages_v_blocks_image_text_parent_id_fk", + "tableFrom": "_home_pages_v_blocks_image_text", + "tableTo": "_home_pages_v", + "columnsFrom": ["_parent_id"], + "columnsTo": ["id"], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "_home_pages_v_blocks_image_text_list_columns": { + "name": "_home_pages_v_blocks_image_text_list_columns", + "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": "integer", + "primaryKey": true, + "notNull": true, + "autoincrement": false + }, + "image_id": { + "name": "image_id", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "title": { + "name": "title", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "rich_text": { + "name": "rich_text", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "_uuid": { + "name": "_uuid", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + } + }, + "indexes": { + "_home_pages_v_blocks_image_text_list_columns_order_idx": { + "name": "_home_pages_v_blocks_image_text_list_columns_order_idx", + "columns": ["_order"], + "isUnique": false + }, + "_home_pages_v_blocks_image_text_list_columns_parent_id_idx": { + "name": "_home_pages_v_blocks_image_text_list_columns_parent_id_idx", + "columns": ["_parent_id"], + "isUnique": false + }, + "_home_pages_v_blocks_image_text_list_columns_image_idx": { + "name": "_home_pages_v_blocks_image_text_list_columns_image_idx", + "columns": ["image_id"], + "isUnique": false + } + }, + "foreignKeys": { + "_home_pages_v_blocks_image_text_list_columns_image_id_media_id_fk": { + "name": "_home_pages_v_blocks_image_text_list_columns_image_id_media_id_fk", + "tableFrom": "_home_pages_v_blocks_image_text_list_columns", + "tableTo": "media", + "columnsFrom": ["image_id"], + "columnsTo": ["id"], + "onDelete": "set null", + "onUpdate": "no action" + }, + "_home_pages_v_blocks_image_text_list_columns_parent_id_fk": { + "name": "_home_pages_v_blocks_image_text_list_columns_parent_id_fk", + "tableFrom": "_home_pages_v_blocks_image_text_list_columns", + "tableTo": "_home_pages_v_blocks_image_text_list", + "columnsFrom": ["_parent_id"], + "columnsTo": ["id"], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "_home_pages_v_blocks_image_text_list": { + "name": "_home_pages_v_blocks_image_text_list", + "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 + }, + "_path": { + "name": "_path", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "id": { + "name": "id", + "type": "integer", + "primaryKey": true, + "notNull": true, + "autoincrement": false + }, + "layout": { + "name": "layout", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false, + "default": "'above'" + }, + "_uuid": { + "name": "_uuid", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "block_name": { + "name": "block_name", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + } + }, + "indexes": { + "_home_pages_v_blocks_image_text_list_order_idx": { + "name": "_home_pages_v_blocks_image_text_list_order_idx", + "columns": ["_order"], + "isUnique": false + }, + "_home_pages_v_blocks_image_text_list_parent_id_idx": { + "name": "_home_pages_v_blocks_image_text_list_parent_id_idx", + "columns": ["_parent_id"], + "isUnique": false + }, + "_home_pages_v_blocks_image_text_list_path_idx": { + "name": "_home_pages_v_blocks_image_text_list_path_idx", + "columns": ["_path"], + "isUnique": false + } + }, + "foreignKeys": { + "_home_pages_v_blocks_image_text_list_parent_id_fk": { + "name": "_home_pages_v_blocks_image_text_list_parent_id_fk", + "tableFrom": "_home_pages_v_blocks_image_text_list", + "tableTo": "_home_pages_v", + "columnsFrom": ["_parent_id"], + "columnsTo": ["id"], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "_home_pages_v_blocks_link_preview_cards": { + "name": "_home_pages_v_blocks_link_preview_cards", + "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": "integer", + "primaryKey": true, + "notNull": true, + "autoincrement": false + }, + "image_id": { + "name": "image_id", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "title": { + "name": "title", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "text": { + "name": "text", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "button_type": { + "name": "button_type", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false, + "default": "'internal'" + }, + "button_new_tab": { + "name": "button_new_tab", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "button_url": { + "name": "button_url", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "button_label": { + "name": "button_label", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "button_appearance": { + "name": "button_appearance", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false, + "default": "'default'" + }, + "_uuid": { + "name": "_uuid", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + } + }, + "indexes": { + "_home_pages_v_blocks_link_preview_cards_order_idx": { + "name": "_home_pages_v_blocks_link_preview_cards_order_idx", + "columns": ["_order"], + "isUnique": false + }, + "_home_pages_v_blocks_link_preview_cards_parent_id_idx": { + "name": "_home_pages_v_blocks_link_preview_cards_parent_id_idx", + "columns": ["_parent_id"], + "isUnique": false + }, + "_home_pages_v_blocks_link_preview_cards_image_idx": { + "name": "_home_pages_v_blocks_link_preview_cards_image_idx", + "columns": ["image_id"], + "isUnique": false + } + }, + "foreignKeys": { + "_home_pages_v_blocks_link_preview_cards_image_id_media_id_fk": { + "name": "_home_pages_v_blocks_link_preview_cards_image_id_media_id_fk", + "tableFrom": "_home_pages_v_blocks_link_preview_cards", + "tableTo": "media", + "columnsFrom": ["image_id"], + "columnsTo": ["id"], + "onDelete": "set null", + "onUpdate": "no action" + }, + "_home_pages_v_blocks_link_preview_cards_parent_id_fk": { + "name": "_home_pages_v_blocks_link_preview_cards_parent_id_fk", + "tableFrom": "_home_pages_v_blocks_link_preview_cards", + "tableTo": "_home_pages_v_blocks_link_preview", + "columnsFrom": ["_parent_id"], + "columnsTo": ["id"], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "_home_pages_v_blocks_link_preview": { + "name": "_home_pages_v_blocks_link_preview", + "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 + }, + "_path": { + "name": "_path", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "id": { + "name": "id", + "type": "integer", + "primaryKey": true, + "notNull": true, + "autoincrement": false + }, + "header": { + "name": "header", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "background_color": { + "name": "background_color", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false, + "default": "'transparent'" + }, + "_uuid": { + "name": "_uuid", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "block_name": { + "name": "block_name", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + } + }, + "indexes": { + "_home_pages_v_blocks_link_preview_order_idx": { + "name": "_home_pages_v_blocks_link_preview_order_idx", + "columns": ["_order"], + "isUnique": false + }, + "_home_pages_v_blocks_link_preview_parent_id_idx": { + "name": "_home_pages_v_blocks_link_preview_parent_id_idx", + "columns": ["_parent_id"], + "isUnique": false + }, + "_home_pages_v_blocks_link_preview_path_idx": { + "name": "_home_pages_v_blocks_link_preview_path_idx", + "columns": ["_path"], + "isUnique": false + } + }, + "foreignKeys": { + "_home_pages_v_blocks_link_preview_parent_id_fk": { + "name": "_home_pages_v_blocks_link_preview_parent_id_fk", + "tableFrom": "_home_pages_v_blocks_link_preview", + "tableTo": "_home_pages_v", + "columnsFrom": ["_parent_id"], + "columnsTo": ["id"], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "_home_pages_v_blocks_media_block": { + "name": "_home_pages_v_blocks_media_block", + "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 + }, + "_path": { + "name": "_path", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "id": { + "name": "id", + "type": "integer", + "primaryKey": true, + "notNull": true, + "autoincrement": false + }, + "media_id": { + "name": "media_id", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "caption": { + "name": "caption", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "background_color": { + "name": "background_color", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false, + "default": "'transparent'" + }, + "align_content": { + "name": "align_content", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false, + "default": "'left'" + }, + "image_size": { + "name": "image_size", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false, + "default": "'original'" + }, + "_uuid": { + "name": "_uuid", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "block_name": { + "name": "block_name", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + } + }, + "indexes": { + "_home_pages_v_blocks_media_block_order_idx": { + "name": "_home_pages_v_blocks_media_block_order_idx", + "columns": ["_order"], + "isUnique": false + }, + "_home_pages_v_blocks_media_block_parent_id_idx": { + "name": "_home_pages_v_blocks_media_block_parent_id_idx", + "columns": ["_parent_id"], + "isUnique": false + }, + "_home_pages_v_blocks_media_block_path_idx": { + "name": "_home_pages_v_blocks_media_block_path_idx", + "columns": ["_path"], + "isUnique": false + }, + "_home_pages_v_blocks_media_block_media_idx": { + "name": "_home_pages_v_blocks_media_block_media_idx", + "columns": ["media_id"], + "isUnique": false + } + }, + "foreignKeys": { + "_home_pages_v_blocks_media_block_media_id_media_id_fk": { + "name": "_home_pages_v_blocks_media_block_media_id_media_id_fk", + "tableFrom": "_home_pages_v_blocks_media_block", + "tableTo": "media", + "columnsFrom": ["media_id"], + "columnsTo": ["id"], + "onDelete": "set null", + "onUpdate": "no action" + }, + "_home_pages_v_blocks_media_block_parent_id_fk": { + "name": "_home_pages_v_blocks_media_block_parent_id_fk", + "tableFrom": "_home_pages_v_blocks_media_block", + "tableTo": "_home_pages_v", + "columnsFrom": ["_parent_id"], + "columnsTo": ["id"], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "_home_pages_v_blocks_single_blog_post": { + "name": "_home_pages_v_blocks_single_blog_post", + "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 + }, + "_path": { + "name": "_path", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "id": { + "name": "id", + "type": "integer", + "primaryKey": true, + "notNull": true, + "autoincrement": false + }, + "background_color": { + "name": "background_color", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false, + "default": "'transparent'" + }, + "post_id": { + "name": "post_id", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "_uuid": { + "name": "_uuid", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "block_name": { + "name": "block_name", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + } + }, + "indexes": { + "_home_pages_v_blocks_single_blog_post_order_idx": { + "name": "_home_pages_v_blocks_single_blog_post_order_idx", + "columns": ["_order"], + "isUnique": false + }, + "_home_pages_v_blocks_single_blog_post_parent_id_idx": { + "name": "_home_pages_v_blocks_single_blog_post_parent_id_idx", + "columns": ["_parent_id"], + "isUnique": false + }, + "_home_pages_v_blocks_single_blog_post_path_idx": { + "name": "_home_pages_v_blocks_single_blog_post_path_idx", + "columns": ["_path"], + "isUnique": false + }, + "_home_pages_v_blocks_single_blog_post_post_idx": { + "name": "_home_pages_v_blocks_single_blog_post_post_idx", + "columns": ["post_id"], + "isUnique": false + } + }, + "foreignKeys": { + "_home_pages_v_blocks_single_blog_post_post_id_posts_id_fk": { + "name": "_home_pages_v_blocks_single_blog_post_post_id_posts_id_fk", + "tableFrom": "_home_pages_v_blocks_single_blog_post", + "tableTo": "posts", + "columnsFrom": ["post_id"], + "columnsTo": ["id"], + "onDelete": "set null", + "onUpdate": "no action" + }, + "_home_pages_v_blocks_single_blog_post_parent_id_fk": { + "name": "_home_pages_v_blocks_single_blog_post_parent_id_fk", + "tableFrom": "_home_pages_v_blocks_single_blog_post", + "tableTo": "_home_pages_v", + "columnsFrom": ["_parent_id"], + "columnsTo": ["id"], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "_home_pages_v_blocks_sponsors_block": { + "name": "_home_pages_v_blocks_sponsors_block", + "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 + }, + "_path": { + "name": "_path", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "id": { + "name": "id", + "type": "integer", + "primaryKey": true, + "notNull": true, + "autoincrement": false + }, + "background_color": { + "name": "background_color", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false, + "default": "'transparent'" + }, + "sponsors_layout": { + "name": "sponsors_layout", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false, + "default": "'static'" + }, + "wrap_in_container": { + "name": "wrap_in_container", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false, + "default": true + }, + "_uuid": { + "name": "_uuid", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "block_name": { + "name": "block_name", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + } + }, + "indexes": { + "_home_pages_v_blocks_sponsors_block_order_idx": { + "name": "_home_pages_v_blocks_sponsors_block_order_idx", + "columns": ["_order"], + "isUnique": false + }, + "_home_pages_v_blocks_sponsors_block_parent_id_idx": { + "name": "_home_pages_v_blocks_sponsors_block_parent_id_idx", + "columns": ["_parent_id"], + "isUnique": false + }, + "_home_pages_v_blocks_sponsors_block_path_idx": { + "name": "_home_pages_v_blocks_sponsors_block_path_idx", + "columns": ["_path"], + "isUnique": false + } + }, + "foreignKeys": { + "_home_pages_v_blocks_sponsors_block_parent_id_fk": { + "name": "_home_pages_v_blocks_sponsors_block_parent_id_fk", + "tableFrom": "_home_pages_v_blocks_sponsors_block", + "tableTo": "_home_pages_v", + "columnsFrom": ["_parent_id"], + "columnsTo": ["id"], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "_home_pages_v_blocks_team": { + "name": "_home_pages_v_blocks_team", + "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 + }, + "_path": { + "name": "_path", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "id": { + "name": "id", + "type": "integer", + "primaryKey": true, + "notNull": true, + "autoincrement": false + }, + "team_id": { + "name": "team_id", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "_uuid": { + "name": "_uuid", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "block_name": { + "name": "block_name", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + } + }, + "indexes": { + "_home_pages_v_blocks_team_order_idx": { + "name": "_home_pages_v_blocks_team_order_idx", + "columns": ["_order"], + "isUnique": false + }, + "_home_pages_v_blocks_team_parent_id_idx": { + "name": "_home_pages_v_blocks_team_parent_id_idx", + "columns": ["_parent_id"], + "isUnique": false + }, + "_home_pages_v_blocks_team_path_idx": { + "name": "_home_pages_v_blocks_team_path_idx", + "columns": ["_path"], + "isUnique": false + }, + "_home_pages_v_blocks_team_team_idx": { + "name": "_home_pages_v_blocks_team_team_idx", + "columns": ["team_id"], + "isUnique": false + } + }, + "foreignKeys": { + "_home_pages_v_blocks_team_team_id_teams_id_fk": { + "name": "_home_pages_v_blocks_team_team_id_teams_id_fk", + "tableFrom": "_home_pages_v_blocks_team", + "tableTo": "teams", + "columnsFrom": ["team_id"], + "columnsTo": ["id"], + "onDelete": "set null", + "onUpdate": "no action" + }, + "_home_pages_v_blocks_team_parent_id_fk": { + "name": "_home_pages_v_blocks_team_parent_id_fk", + "tableFrom": "_home_pages_v_blocks_team", + "tableTo": "_home_pages_v", + "columnsFrom": ["_parent_id"], + "columnsTo": ["id"], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "_home_pages_v_blocks_generic_embed": { + "name": "_home_pages_v_blocks_generic_embed", + "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 + }, + "_path": { + "name": "_path", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "id": { + "name": "id", + "type": "integer", + "primaryKey": true, + "notNull": true, + "autoincrement": false + }, + "html": { + "name": "html", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "background_color": { + "name": "background_color", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false, + "default": "'transparent'" + }, + "align_content": { + "name": "align_content", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false, + "default": "'left'" + }, + "_uuid": { + "name": "_uuid", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "block_name": { + "name": "block_name", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + } + }, + "indexes": { + "_home_pages_v_blocks_generic_embed_order_idx": { + "name": "_home_pages_v_blocks_generic_embed_order_idx", + "columns": ["_order"], + "isUnique": false + }, + "_home_pages_v_blocks_generic_embed_parent_id_idx": { + "name": "_home_pages_v_blocks_generic_embed_parent_id_idx", + "columns": ["_parent_id"], + "isUnique": false + }, + "_home_pages_v_blocks_generic_embed_path_idx": { + "name": "_home_pages_v_blocks_generic_embed_path_idx", + "columns": ["_path"], + "isUnique": false + } + }, + "foreignKeys": { + "_home_pages_v_blocks_generic_embed_parent_id_fk": { + "name": "_home_pages_v_blocks_generic_embed_parent_id_fk", + "tableFrom": "_home_pages_v_blocks_generic_embed", + "tableTo": "_home_pages_v", + "columnsFrom": ["_parent_id"], + "columnsTo": ["id"], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "_home_pages_v_version_blocks_in_highlighted_content": { + "name": "_home_pages_v_version_blocks_in_highlighted_content", + "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": "integer", + "primaryKey": true, + "notNull": true, + "autoincrement": false + }, + "block_type": { + "name": "block_type", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "collection": { + "name": "collection", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "doc_id": { + "name": "doc_id", + "type": "numeric", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "_uuid": { + "name": "_uuid", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + } + }, + "indexes": { + "_home_pages_v_version_blocks_in_highlighted_content_order_idx": { + "name": "_home_pages_v_version_blocks_in_highlighted_content_order_idx", + "columns": ["_order"], + "isUnique": false + }, + "_home_pages_v_version_blocks_in_highlighted_content_parent_id_idx": { + "name": "_home_pages_v_version_blocks_in_highlighted_content_parent_id_idx", + "columns": ["_parent_id"], + "isUnique": false + } + }, + "foreignKeys": { + "_home_pages_v_version_blocks_in_highlighted_content_parent_id_fk": { + "name": "_home_pages_v_version_blocks_in_highlighted_content_parent_id_fk", + "tableFrom": "_home_pages_v_version_blocks_in_highlighted_content", + "tableTo": "_home_pages_v", + "columnsFrom": ["_parent_id"], + "columnsTo": ["id"], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "_home_pages_v": { + "name": "_home_pages_v", + "columns": { + "id": { + "name": "id", + "type": "integer", + "primaryKey": true, + "notNull": true, + "autoincrement": false + }, + "parent_id": { + "name": "parent_id", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "version_tenant_id": { + "name": "version_tenant_id", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "version_highlighted_content_enabled": { + "name": "version_highlighted_content_enabled", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false, + "default": false + }, + "version_highlighted_content_heading": { + "name": "version_highlighted_content_heading", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "version_highlighted_content_background_color": { + "name": "version_highlighted_content_background_color", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false, + "default": "'transparent'" + }, + "version_published_at": { + "name": "version_published_at", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "version_content_hash": { + "name": "version_content_hash", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "version_updated_at": { + "name": "version_updated_at", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "version_created_at": { + "name": "version_created_at", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "version__status": { + "name": "version__status", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false, + "default": "'draft'" + }, + "created_at": { + "name": "created_at", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false, + "default": "(strftime('%Y-%m-%dT%H:%M:%fZ', 'now'))" + }, + "updated_at": { + "name": "updated_at", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false, + "default": "(strftime('%Y-%m-%dT%H:%M:%fZ', 'now'))" + }, + "latest": { + "name": "latest", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "autosave": { + "name": "autosave", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + } + }, + "indexes": { + "_home_pages_v_parent_idx": { + "name": "_home_pages_v_parent_idx", + "columns": ["parent_id"], + "isUnique": false + }, + "_home_pages_v_version_version_tenant_idx": { + "name": "_home_pages_v_version_version_tenant_idx", + "columns": ["version_tenant_id"], + "isUnique": false + }, + "_home_pages_v_version_version_updated_at_idx": { + "name": "_home_pages_v_version_version_updated_at_idx", + "columns": ["version_updated_at"], + "isUnique": false + }, + "_home_pages_v_version_version_created_at_idx": { + "name": "_home_pages_v_version_version_created_at_idx", + "columns": ["version_created_at"], + "isUnique": false + }, + "_home_pages_v_version_version__status_idx": { + "name": "_home_pages_v_version_version__status_idx", + "columns": ["version__status"], + "isUnique": false + }, + "_home_pages_v_created_at_idx": { + "name": "_home_pages_v_created_at_idx", + "columns": ["created_at"], + "isUnique": false + }, + "_home_pages_v_updated_at_idx": { + "name": "_home_pages_v_updated_at_idx", + "columns": ["updated_at"], + "isUnique": false + }, + "_home_pages_v_latest_idx": { + "name": "_home_pages_v_latest_idx", + "columns": ["latest"], + "isUnique": false + }, + "_home_pages_v_autosave_idx": { + "name": "_home_pages_v_autosave_idx", + "columns": ["autosave"], + "isUnique": false + } + }, + "foreignKeys": { + "_home_pages_v_parent_id_home_pages_id_fk": { + "name": "_home_pages_v_parent_id_home_pages_id_fk", + "tableFrom": "_home_pages_v", + "tableTo": "home_pages", + "columnsFrom": ["parent_id"], + "columnsTo": ["id"], + "onDelete": "set null", + "onUpdate": "no action" + }, + "_home_pages_v_version_tenant_id_tenants_id_fk": { + "name": "_home_pages_v_version_tenant_id_tenants_id_fk", + "tableFrom": "_home_pages_v", + "tableTo": "tenants", + "columnsFrom": ["version_tenant_id"], + "columnsTo": ["id"], + "onDelete": "set null", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "_home_pages_v_rels": { + "name": "_home_pages_v_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 + }, + "pages_id": { + "name": "pages_id", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "built_in_pages_id": { + "name": "built_in_pages_id", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "posts_id": { + "name": "posts_id", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "tags_id": { + "name": "tags_id", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "sponsors_id": { + "name": "sponsors_id", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + } + }, + "indexes": { + "_home_pages_v_rels_order_idx": { + "name": "_home_pages_v_rels_order_idx", + "columns": ["order"], + "isUnique": false + }, + "_home_pages_v_rels_parent_idx": { + "name": "_home_pages_v_rels_parent_idx", + "columns": ["parent_id"], + "isUnique": false + }, + "_home_pages_v_rels_path_idx": { + "name": "_home_pages_v_rels_path_idx", + "columns": ["path"], + "isUnique": false + }, + "_home_pages_v_rels_pages_id_idx": { + "name": "_home_pages_v_rels_pages_id_idx", + "columns": ["pages_id"], + "isUnique": false + }, + "_home_pages_v_rels_built_in_pages_id_idx": { + "name": "_home_pages_v_rels_built_in_pages_id_idx", + "columns": ["built_in_pages_id"], + "isUnique": false + }, + "_home_pages_v_rels_posts_id_idx": { + "name": "_home_pages_v_rels_posts_id_idx", + "columns": ["posts_id"], + "isUnique": false + }, + "_home_pages_v_rels_tags_id_idx": { + "name": "_home_pages_v_rels_tags_id_idx", + "columns": ["tags_id"], + "isUnique": false + }, + "_home_pages_v_rels_sponsors_id_idx": { + "name": "_home_pages_v_rels_sponsors_id_idx", + "columns": ["sponsors_id"], + "isUnique": false + } + }, + "foreignKeys": { + "_home_pages_v_rels_parent_1_idx": { + "name": "_home_pages_v_rels_parent_1_idx", + "tableFrom": "_home_pages_v_rels", + "tableTo": "_home_pages_v", + "columnsFrom": ["parent_id"], + "columnsTo": ["id"], + "onDelete": "cascade", + "onUpdate": "no action" + }, + "_home_pages_v_rels_pages_fk": { + "name": "_home_pages_v_rels_pages_fk", + "tableFrom": "_home_pages_v_rels", + "tableTo": "pages", + "columnsFrom": ["pages_id"], + "columnsTo": ["id"], + "onDelete": "cascade", + "onUpdate": "no action" + }, + "_home_pages_v_rels_built_in_pages_fk": { + "name": "_home_pages_v_rels_built_in_pages_fk", + "tableFrom": "_home_pages_v_rels", + "tableTo": "built_in_pages", + "columnsFrom": ["built_in_pages_id"], + "columnsTo": ["id"], + "onDelete": "cascade", + "onUpdate": "no action" + }, + "_home_pages_v_rels_posts_fk": { + "name": "_home_pages_v_rels_posts_fk", + "tableFrom": "_home_pages_v_rels", + "tableTo": "posts", + "columnsFrom": ["posts_id"], + "columnsTo": ["id"], + "onDelete": "cascade", + "onUpdate": "no action" + }, + "_home_pages_v_rels_tags_fk": { + "name": "_home_pages_v_rels_tags_fk", + "tableFrom": "_home_pages_v_rels", + "tableTo": "tags", + "columnsFrom": ["tags_id"], + "columnsTo": ["id"], + "onDelete": "cascade", + "onUpdate": "no action" + }, + "_home_pages_v_rels_sponsors_fk": { + "name": "_home_pages_v_rels_sponsors_fk", + "tableFrom": "_home_pages_v_rels", + "tableTo": "sponsors", + "columnsFrom": ["sponsors_id"], + "columnsTo": ["id"], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "built_in_pages": { + "name": "built_in_pages", + "columns": { + "id": { + "name": "id", + "type": "integer", + "primaryKey": true, + "notNull": true, + "autoincrement": false + }, + "title": { + "name": "title", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "url": { + "name": "url", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "tenant_id": { + "name": "tenant_id", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "content_hash": { + "name": "content_hash", + "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": { + "built_in_pages_tenant_idx": { + "name": "built_in_pages_tenant_idx", + "columns": ["tenant_id"], + "isUnique": false + }, + "built_in_pages_updated_at_idx": { + "name": "built_in_pages_updated_at_idx", + "columns": ["updated_at"], + "isUnique": false + }, + "built_in_pages_created_at_idx": { + "name": "built_in_pages_created_at_idx", + "columns": ["created_at"], + "isUnique": false + } + }, + "foreignKeys": { + "built_in_pages_tenant_id_tenants_id_fk": { + "name": "built_in_pages_tenant_id_tenants_id_fk", + "tableFrom": "built_in_pages", + "tableTo": "tenants", + "columnsFrom": ["tenant_id"], + "columnsTo": ["id"], + "onDelete": "set null", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "pages_blocks_biography": { + "name": "pages_blocks_biography", + "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 + }, + "_path": { + "name": "_path", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "id": { + "name": "id", + "type": "text", + "primaryKey": true, + "notNull": true, + "autoincrement": false + }, + "background_color": { + "name": "background_color", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false, + "default": "'transparent'" + }, + "biography_id": { + "name": "biography_id", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "image_layout": { + "name": "image_layout", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false, + "default": "'left'" + }, + "block_name": { + "name": "block_name", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + } + }, + "indexes": { + "pages_blocks_biography_order_idx": { + "name": "pages_blocks_biography_order_idx", + "columns": ["_order"], + "isUnique": false + }, + "pages_blocks_biography_parent_id_idx": { + "name": "pages_blocks_biography_parent_id_idx", + "columns": ["_parent_id"], + "isUnique": false + }, + "pages_blocks_biography_path_idx": { + "name": "pages_blocks_biography_path_idx", + "columns": ["_path"], + "isUnique": false + }, + "pages_blocks_biography_biography_idx": { + "name": "pages_blocks_biography_biography_idx", + "columns": ["biography_id"], + "isUnique": false + } + }, + "foreignKeys": { + "pages_blocks_biography_biography_id_biographies_id_fk": { + "name": "pages_blocks_biography_biography_id_biographies_id_fk", + "tableFrom": "pages_blocks_biography", + "tableTo": "biographies", + "columnsFrom": ["biography_id"], + "columnsTo": ["id"], + "onDelete": "set null", + "onUpdate": "no action" + }, + "pages_blocks_biography_parent_id_fk": { + "name": "pages_blocks_biography_parent_id_fk", + "tableFrom": "pages_blocks_biography", + "tableTo": "pages", + "columnsFrom": ["_parent_id"], + "columnsTo": ["id"], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "pages_blocks_blog_list": { + "name": "pages_blocks_blog_list", + "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 + }, + "_path": { + "name": "_path", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "id": { + "name": "id", + "type": "text", + "primaryKey": true, + "notNull": true, + "autoincrement": false + }, + "heading": { + "name": "heading", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "below_heading_content": { + "name": "below_heading_content", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "background_color": { + "name": "background_color", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false, + "default": "'transparent'" + }, + "post_options": { + "name": "post_options", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false, + "default": "'dynamic'" + }, + "dynamic_options_sort_by": { + "name": "dynamic_options_sort_by", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false, + "default": "'-publishedAt'" + }, + "dynamic_options_max_posts": { + "name": "dynamic_options_max_posts", + "type": "numeric", + "primaryKey": false, + "notNull": false, + "autoincrement": false, + "default": 4 + }, + "block_name": { + "name": "block_name", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + } + }, + "indexes": { + "pages_blocks_blog_list_order_idx": { + "name": "pages_blocks_blog_list_order_idx", + "columns": ["_order"], + "isUnique": false + }, + "pages_blocks_blog_list_parent_id_idx": { + "name": "pages_blocks_blog_list_parent_id_idx", + "columns": ["_parent_id"], + "isUnique": false + }, + "pages_blocks_blog_list_path_idx": { + "name": "pages_blocks_blog_list_path_idx", + "columns": ["_path"], + "isUnique": false + } + }, + "foreignKeys": { + "pages_blocks_blog_list_parent_id_fk": { + "name": "pages_blocks_blog_list_parent_id_fk", + "tableFrom": "pages_blocks_blog_list", + "tableTo": "pages", + "columnsFrom": ["_parent_id"], + "columnsTo": ["id"], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "pages_blocks_content_columns": { + "name": "pages_blocks_content_columns", + "columns": { + "_order": { + "name": "_order", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "_parent_id": { + "name": "_parent_id", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "id": { + "name": "id", + "type": "text", + "primaryKey": true, + "notNull": true, + "autoincrement": false + }, + "rich_text": { + "name": "rich_text", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + } + }, + "indexes": { + "pages_blocks_content_columns_order_idx": { + "name": "pages_blocks_content_columns_order_idx", + "columns": ["_order"], + "isUnique": false + }, + "pages_blocks_content_columns_parent_id_idx": { + "name": "pages_blocks_content_columns_parent_id_idx", + "columns": ["_parent_id"], + "isUnique": false + } + }, + "foreignKeys": { + "pages_blocks_content_columns_parent_id_fk": { + "name": "pages_blocks_content_columns_parent_id_fk", + "tableFrom": "pages_blocks_content_columns", + "tableTo": "pages_blocks_content", + "columnsFrom": ["_parent_id"], + "columnsTo": ["id"], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "pages_blocks_content": { + "name": "pages_blocks_content", + "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 + }, + "_path": { + "name": "_path", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "id": { + "name": "id", + "type": "text", + "primaryKey": true, + "notNull": true, + "autoincrement": false + }, + "background_color": { + "name": "background_color", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false, + "default": "'transparent'" + }, + "layout": { + "name": "layout", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false, + "default": "'1_1'" + }, + "block_name": { + "name": "block_name", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + } + }, + "indexes": { + "pages_blocks_content_order_idx": { + "name": "pages_blocks_content_order_idx", + "columns": ["_order"], + "isUnique": false + }, + "pages_blocks_content_parent_id_idx": { + "name": "pages_blocks_content_parent_id_idx", + "columns": ["_parent_id"], + "isUnique": false + }, + "pages_blocks_content_path_idx": { + "name": "pages_blocks_content_path_idx", + "columns": ["_path"], + "isUnique": false + } + }, + "foreignKeys": { + "pages_blocks_content_parent_id_fk": { + "name": "pages_blocks_content_parent_id_fk", + "tableFrom": "pages_blocks_content", + "tableTo": "pages", + "columnsFrom": ["_parent_id"], + "columnsTo": ["id"], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "pages_blocks_document_block": { + "name": "pages_blocks_document_block", + "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 + }, + "_path": { + "name": "_path", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "id": { + "name": "id", + "type": "text", + "primaryKey": true, + "notNull": true, + "autoincrement": false + }, + "document_id": { + "name": "document_id", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "wrap_in_container": { + "name": "wrap_in_container", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false, + "default": false + }, + "block_name": { + "name": "block_name", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + } + }, + "indexes": { + "pages_blocks_document_block_order_idx": { + "name": "pages_blocks_document_block_order_idx", + "columns": ["_order"], + "isUnique": false + }, + "pages_blocks_document_block_parent_id_idx": { + "name": "pages_blocks_document_block_parent_id_idx", + "columns": ["_parent_id"], + "isUnique": false + }, + "pages_blocks_document_block_path_idx": { + "name": "pages_blocks_document_block_path_idx", + "columns": ["_path"], + "isUnique": false + }, + "pages_blocks_document_block_document_idx": { + "name": "pages_blocks_document_block_document_idx", + "columns": ["document_id"], + "isUnique": false + } + }, + "foreignKeys": { + "pages_blocks_document_block_document_id_documents_id_fk": { + "name": "pages_blocks_document_block_document_id_documents_id_fk", + "tableFrom": "pages_blocks_document_block", + "tableTo": "documents", + "columnsFrom": ["document_id"], + "columnsTo": ["id"], + "onDelete": "set null", + "onUpdate": "no action" + }, + "pages_blocks_document_block_parent_id_fk": { + "name": "pages_blocks_document_block_parent_id_fk", + "tableFrom": "pages_blocks_document_block", + "tableTo": "pages", + "columnsFrom": ["_parent_id"], + "columnsTo": ["id"], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "pages_blocks_form_block": { + "name": "pages_blocks_form_block", + "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 + }, + "_path": { + "name": "_path", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "id": { + "name": "id", + "type": "text", + "primaryKey": true, + "notNull": true, + "autoincrement": false + }, + "form_id": { + "name": "form_id", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "enable_intro": { + "name": "enable_intro", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "intro_content": { + "name": "intro_content", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "block_name": { + "name": "block_name", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + } + }, + "indexes": { + "pages_blocks_form_block_order_idx": { + "name": "pages_blocks_form_block_order_idx", + "columns": ["_order"], + "isUnique": false + }, + "pages_blocks_form_block_parent_id_idx": { + "name": "pages_blocks_form_block_parent_id_idx", + "columns": ["_parent_id"], + "isUnique": false + }, + "pages_blocks_form_block_path_idx": { + "name": "pages_blocks_form_block_path_idx", + "columns": ["_path"], + "isUnique": false + }, + "pages_blocks_form_block_form_idx": { + "name": "pages_blocks_form_block_form_idx", + "columns": ["form_id"], + "isUnique": false + } + }, + "foreignKeys": { + "pages_blocks_form_block_form_id_forms_id_fk": { + "name": "pages_blocks_form_block_form_id_forms_id_fk", + "tableFrom": "pages_blocks_form_block", + "tableTo": "forms", + "columnsFrom": ["form_id"], + "columnsTo": ["id"], + "onDelete": "set null", + "onUpdate": "no action" + }, + "pages_blocks_form_block_parent_id_fk": { + "name": "pages_blocks_form_block_parent_id_fk", + "tableFrom": "pages_blocks_form_block", + "tableTo": "pages", + "columnsFrom": ["_parent_id"], + "columnsTo": ["id"], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "pages_blocks_header_block": { + "name": "pages_blocks_header_block", + "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 + }, + "_path": { + "name": "_path", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "id": { + "name": "id", + "type": "text", + "primaryKey": true, + "notNull": true, + "autoincrement": false + }, + "rich_text": { + "name": "rich_text", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "background_color": { + "name": "background_color", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false, + "default": "'transparent'" + }, + "wrap_in_container": { + "name": "wrap_in_container", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false, + "default": true + }, + "block_name": { + "name": "block_name", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + } + }, + "indexes": { + "pages_blocks_header_block_order_idx": { + "name": "pages_blocks_header_block_order_idx", + "columns": ["_order"], + "isUnique": false + }, + "pages_blocks_header_block_parent_id_idx": { + "name": "pages_blocks_header_block_parent_id_idx", + "columns": ["_parent_id"], + "isUnique": false + }, + "pages_blocks_header_block_path_idx": { + "name": "pages_blocks_header_block_path_idx", + "columns": ["_path"], + "isUnique": false + } + }, + "foreignKeys": { + "pages_blocks_header_block_parent_id_fk": { + "name": "pages_blocks_header_block_parent_id_fk", + "tableFrom": "pages_blocks_header_block", + "tableTo": "pages", + "columnsFrom": ["_parent_id"], + "columnsTo": ["id"], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "pages_blocks_image_link_grid_columns": { + "name": "pages_blocks_image_link_grid_columns", + "columns": { + "_order": { + "name": "_order", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "_parent_id": { + "name": "_parent_id", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "id": { + "name": "id", + "type": "text", + "primaryKey": true, + "notNull": true, + "autoincrement": false + }, + "image_id": { + "name": "image_id", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "link_type": { + "name": "link_type", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false, + "default": "'internal'" + }, + "link_new_tab": { + "name": "link_new_tab", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "link_url": { + "name": "link_url", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "caption": { + "name": "caption", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + } + }, + "indexes": { + "pages_blocks_image_link_grid_columns_order_idx": { + "name": "pages_blocks_image_link_grid_columns_order_idx", + "columns": ["_order"], + "isUnique": false + }, + "pages_blocks_image_link_grid_columns_parent_id_idx": { + "name": "pages_blocks_image_link_grid_columns_parent_id_idx", + "columns": ["_parent_id"], + "isUnique": false + }, + "pages_blocks_image_link_grid_columns_image_idx": { + "name": "pages_blocks_image_link_grid_columns_image_idx", + "columns": ["image_id"], + "isUnique": false + } + }, + "foreignKeys": { + "pages_blocks_image_link_grid_columns_image_id_media_id_fk": { + "name": "pages_blocks_image_link_grid_columns_image_id_media_id_fk", + "tableFrom": "pages_blocks_image_link_grid_columns", + "tableTo": "media", + "columnsFrom": ["image_id"], + "columnsTo": ["id"], + "onDelete": "set null", + "onUpdate": "no action" + }, + "pages_blocks_image_link_grid_columns_parent_id_fk": { + "name": "pages_blocks_image_link_grid_columns_parent_id_fk", + "tableFrom": "pages_blocks_image_link_grid_columns", + "tableTo": "pages_blocks_image_link_grid", + "columnsFrom": ["_parent_id"], + "columnsTo": ["id"], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "pages_blocks_image_link_grid": { + "name": "pages_blocks_image_link_grid", + "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 + }, + "_path": { + "name": "_path", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "id": { + "name": "id", + "type": "text", + "primaryKey": true, + "notNull": true, + "autoincrement": false + }, + "block_name": { + "name": "block_name", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + } + }, + "indexes": { + "pages_blocks_image_link_grid_order_idx": { + "name": "pages_blocks_image_link_grid_order_idx", + "columns": ["_order"], + "isUnique": false + }, + "pages_blocks_image_link_grid_parent_id_idx": { + "name": "pages_blocks_image_link_grid_parent_id_idx", + "columns": ["_parent_id"], + "isUnique": false + }, + "pages_blocks_image_link_grid_path_idx": { + "name": "pages_blocks_image_link_grid_path_idx", + "columns": ["_path"], + "isUnique": false + } + }, + "foreignKeys": { + "pages_blocks_image_link_grid_parent_id_fk": { + "name": "pages_blocks_image_link_grid_parent_id_fk", + "tableFrom": "pages_blocks_image_link_grid", + "tableTo": "pages", + "columnsFrom": ["_parent_id"], + "columnsTo": ["id"], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "pages_blocks_image_quote": { + "name": "pages_blocks_image_quote", + "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 + }, + "_path": { + "name": "_path", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "id": { + "name": "id", + "type": "text", + "primaryKey": true, + "notNull": true, + "autoincrement": false + }, + "background_color": { + "name": "background_color", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false, + "default": "'transparent'" + }, + "image_layout": { + "name": "image_layout", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false, + "default": "'left'" + }, + "image_id": { + "name": "image_id", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "quote": { + "name": "quote", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "author": { + "name": "author", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "block_name": { + "name": "block_name", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + } + }, + "indexes": { + "pages_blocks_image_quote_order_idx": { + "name": "pages_blocks_image_quote_order_idx", + "columns": ["_order"], + "isUnique": false + }, + "pages_blocks_image_quote_parent_id_idx": { + "name": "pages_blocks_image_quote_parent_id_idx", + "columns": ["_parent_id"], + "isUnique": false + }, + "pages_blocks_image_quote_path_idx": { + "name": "pages_blocks_image_quote_path_idx", + "columns": ["_path"], + "isUnique": false + }, + "pages_blocks_image_quote_image_idx": { + "name": "pages_blocks_image_quote_image_idx", + "columns": ["image_id"], + "isUnique": false + } + }, + "foreignKeys": { + "pages_blocks_image_quote_image_id_media_id_fk": { + "name": "pages_blocks_image_quote_image_id_media_id_fk", + "tableFrom": "pages_blocks_image_quote", + "tableTo": "media", + "columnsFrom": ["image_id"], + "columnsTo": ["id"], + "onDelete": "set null", + "onUpdate": "no action" + }, + "pages_blocks_image_quote_parent_id_fk": { + "name": "pages_blocks_image_quote_parent_id_fk", + "tableFrom": "pages_blocks_image_quote", + "tableTo": "pages", + "columnsFrom": ["_parent_id"], + "columnsTo": ["id"], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "pages_blocks_image_text": { + "name": "pages_blocks_image_text", + "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 + }, + "_path": { + "name": "_path", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "id": { + "name": "id", + "type": "text", + "primaryKey": true, + "notNull": true, + "autoincrement": false + }, + "background_color": { + "name": "background_color", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false, + "default": "'transparent'" + }, + "image_layout": { + "name": "image_layout", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false, + "default": "'left'" + }, + "image_id": { + "name": "image_id", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "rich_text": { + "name": "rich_text", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "block_name": { + "name": "block_name", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + } + }, + "indexes": { + "pages_blocks_image_text_order_idx": { + "name": "pages_blocks_image_text_order_idx", + "columns": ["_order"], + "isUnique": false + }, + "pages_blocks_image_text_parent_id_idx": { + "name": "pages_blocks_image_text_parent_id_idx", + "columns": ["_parent_id"], + "isUnique": false + }, + "pages_blocks_image_text_path_idx": { + "name": "pages_blocks_image_text_path_idx", + "columns": ["_path"], + "isUnique": false + }, + "pages_blocks_image_text_image_idx": { + "name": "pages_blocks_image_text_image_idx", + "columns": ["image_id"], + "isUnique": false + } + }, + "foreignKeys": { + "pages_blocks_image_text_image_id_media_id_fk": { + "name": "pages_blocks_image_text_image_id_media_id_fk", + "tableFrom": "pages_blocks_image_text", + "tableTo": "media", + "columnsFrom": ["image_id"], + "columnsTo": ["id"], + "onDelete": "set null", + "onUpdate": "no action" + }, + "pages_blocks_image_text_parent_id_fk": { + "name": "pages_blocks_image_text_parent_id_fk", + "tableFrom": "pages_blocks_image_text", + "tableTo": "pages", + "columnsFrom": ["_parent_id"], + "columnsTo": ["id"], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "pages_blocks_image_text_list_columns": { + "name": "pages_blocks_image_text_list_columns", + "columns": { + "_order": { + "name": "_order", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "_parent_id": { + "name": "_parent_id", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "id": { + "name": "id", + "type": "text", + "primaryKey": true, + "notNull": true, + "autoincrement": false + }, + "image_id": { + "name": "image_id", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "title": { + "name": "title", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "rich_text": { + "name": "rich_text", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + } + }, + "indexes": { + "pages_blocks_image_text_list_columns_order_idx": { + "name": "pages_blocks_image_text_list_columns_order_idx", + "columns": ["_order"], + "isUnique": false + }, + "pages_blocks_image_text_list_columns_parent_id_idx": { + "name": "pages_blocks_image_text_list_columns_parent_id_idx", + "columns": ["_parent_id"], + "isUnique": false + }, + "pages_blocks_image_text_list_columns_image_idx": { + "name": "pages_blocks_image_text_list_columns_image_idx", + "columns": ["image_id"], + "isUnique": false + } + }, + "foreignKeys": { + "pages_blocks_image_text_list_columns_image_id_media_id_fk": { + "name": "pages_blocks_image_text_list_columns_image_id_media_id_fk", + "tableFrom": "pages_blocks_image_text_list_columns", + "tableTo": "media", + "columnsFrom": ["image_id"], + "columnsTo": ["id"], + "onDelete": "set null", + "onUpdate": "no action" + }, + "pages_blocks_image_text_list_columns_parent_id_fk": { + "name": "pages_blocks_image_text_list_columns_parent_id_fk", + "tableFrom": "pages_blocks_image_text_list_columns", + "tableTo": "pages_blocks_image_text_list", + "columnsFrom": ["_parent_id"], + "columnsTo": ["id"], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "pages_blocks_image_text_list": { + "name": "pages_blocks_image_text_list", + "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 + }, + "_path": { + "name": "_path", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "id": { + "name": "id", + "type": "text", + "primaryKey": true, + "notNull": true, + "autoincrement": false + }, + "layout": { + "name": "layout", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false, + "default": "'above'" + }, + "block_name": { + "name": "block_name", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + } + }, + "indexes": { + "pages_blocks_image_text_list_order_idx": { + "name": "pages_blocks_image_text_list_order_idx", + "columns": ["_order"], + "isUnique": false + }, + "pages_blocks_image_text_list_parent_id_idx": { + "name": "pages_blocks_image_text_list_parent_id_idx", + "columns": ["_parent_id"], + "isUnique": false + }, + "pages_blocks_image_text_list_path_idx": { + "name": "pages_blocks_image_text_list_path_idx", + "columns": ["_path"], + "isUnique": false + } + }, + "foreignKeys": { + "pages_blocks_image_text_list_parent_id_fk": { + "name": "pages_blocks_image_text_list_parent_id_fk", + "tableFrom": "pages_blocks_image_text_list", + "tableTo": "pages", + "columnsFrom": ["_parent_id"], + "columnsTo": ["id"], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "pages_blocks_link_preview_cards": { + "name": "pages_blocks_link_preview_cards", + "columns": { + "_order": { + "name": "_order", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "_parent_id": { + "name": "_parent_id", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "id": { + "name": "id", + "type": "text", + "primaryKey": true, + "notNull": true, + "autoincrement": false + }, + "image_id": { + "name": "image_id", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "title": { + "name": "title", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "text": { + "name": "text", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "button_type": { + "name": "button_type", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false, + "default": "'internal'" + }, + "button_new_tab": { + "name": "button_new_tab", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "button_url": { + "name": "button_url", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "button_label": { + "name": "button_label", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "button_appearance": { + "name": "button_appearance", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false, + "default": "'default'" + } + }, + "indexes": { + "pages_blocks_link_preview_cards_order_idx": { + "name": "pages_blocks_link_preview_cards_order_idx", + "columns": ["_order"], + "isUnique": false + }, + "pages_blocks_link_preview_cards_parent_id_idx": { + "name": "pages_blocks_link_preview_cards_parent_id_idx", + "columns": ["_parent_id"], + "isUnique": false + }, + "pages_blocks_link_preview_cards_image_idx": { + "name": "pages_blocks_link_preview_cards_image_idx", + "columns": ["image_id"], + "isUnique": false + } + }, + "foreignKeys": { + "pages_blocks_link_preview_cards_image_id_media_id_fk": { + "name": "pages_blocks_link_preview_cards_image_id_media_id_fk", + "tableFrom": "pages_blocks_link_preview_cards", + "tableTo": "media", + "columnsFrom": ["image_id"], + "columnsTo": ["id"], + "onDelete": "set null", + "onUpdate": "no action" + }, + "pages_blocks_link_preview_cards_parent_id_fk": { + "name": "pages_blocks_link_preview_cards_parent_id_fk", + "tableFrom": "pages_blocks_link_preview_cards", + "tableTo": "pages_blocks_link_preview", + "columnsFrom": ["_parent_id"], + "columnsTo": ["id"], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "pages_blocks_link_preview": { + "name": "pages_blocks_link_preview", + "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 + }, + "_path": { + "name": "_path", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "id": { + "name": "id", + "type": "text", + "primaryKey": true, + "notNull": true, + "autoincrement": false + }, + "header": { + "name": "header", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "background_color": { + "name": "background_color", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false, + "default": "'transparent'" + }, + "block_name": { + "name": "block_name", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + } + }, + "indexes": { + "pages_blocks_link_preview_order_idx": { + "name": "pages_blocks_link_preview_order_idx", + "columns": ["_order"], + "isUnique": false + }, + "pages_blocks_link_preview_parent_id_idx": { + "name": "pages_blocks_link_preview_parent_id_idx", + "columns": ["_parent_id"], + "isUnique": false + }, + "pages_blocks_link_preview_path_idx": { + "name": "pages_blocks_link_preview_path_idx", + "columns": ["_path"], + "isUnique": false + } + }, + "foreignKeys": { + "pages_blocks_link_preview_parent_id_fk": { + "name": "pages_blocks_link_preview_parent_id_fk", + "tableFrom": "pages_blocks_link_preview", + "tableTo": "pages", + "columnsFrom": ["_parent_id"], + "columnsTo": ["id"], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "pages_blocks_media_block": { + "name": "pages_blocks_media_block", + "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 + }, + "_path": { + "name": "_path", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "id": { + "name": "id", + "type": "text", + "primaryKey": true, + "notNull": true, + "autoincrement": false + }, + "media_id": { + "name": "media_id", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "caption": { + "name": "caption", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "background_color": { + "name": "background_color", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false, + "default": "'transparent'" + }, + "align_content": { + "name": "align_content", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false, + "default": "'left'" + }, + "image_size": { + "name": "image_size", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false, + "default": "'original'" + }, + "block_name": { + "name": "block_name", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + } + }, + "indexes": { + "pages_blocks_media_block_order_idx": { + "name": "pages_blocks_media_block_order_idx", + "columns": ["_order"], + "isUnique": false + }, + "pages_blocks_media_block_parent_id_idx": { + "name": "pages_blocks_media_block_parent_id_idx", + "columns": ["_parent_id"], + "isUnique": false + }, + "pages_blocks_media_block_path_idx": { + "name": "pages_blocks_media_block_path_idx", + "columns": ["_path"], + "isUnique": false + }, + "pages_blocks_media_block_media_idx": { + "name": "pages_blocks_media_block_media_idx", + "columns": ["media_id"], + "isUnique": false + } + }, + "foreignKeys": { + "pages_blocks_media_block_media_id_media_id_fk": { + "name": "pages_blocks_media_block_media_id_media_id_fk", + "tableFrom": "pages_blocks_media_block", + "tableTo": "media", + "columnsFrom": ["media_id"], + "columnsTo": ["id"], + "onDelete": "set null", + "onUpdate": "no action" + }, + "pages_blocks_media_block_parent_id_fk": { + "name": "pages_blocks_media_block_parent_id_fk", + "tableFrom": "pages_blocks_media_block", + "tableTo": "pages", + "columnsFrom": ["_parent_id"], + "columnsTo": ["id"], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "pages_blocks_single_blog_post": { + "name": "pages_blocks_single_blog_post", + "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 + }, + "_path": { + "name": "_path", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "id": { + "name": "id", + "type": "text", + "primaryKey": true, + "notNull": true, + "autoincrement": false + }, + "background_color": { + "name": "background_color", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false, + "default": "'transparent'" + }, + "post_id": { + "name": "post_id", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "block_name": { + "name": "block_name", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + } + }, + "indexes": { + "pages_blocks_single_blog_post_order_idx": { + "name": "pages_blocks_single_blog_post_order_idx", + "columns": ["_order"], + "isUnique": false + }, + "pages_blocks_single_blog_post_parent_id_idx": { + "name": "pages_blocks_single_blog_post_parent_id_idx", + "columns": ["_parent_id"], + "isUnique": false + }, + "pages_blocks_single_blog_post_path_idx": { + "name": "pages_blocks_single_blog_post_path_idx", + "columns": ["_path"], + "isUnique": false + }, + "pages_blocks_single_blog_post_post_idx": { + "name": "pages_blocks_single_blog_post_post_idx", + "columns": ["post_id"], + "isUnique": false + } + }, + "foreignKeys": { + "pages_blocks_single_blog_post_post_id_posts_id_fk": { + "name": "pages_blocks_single_blog_post_post_id_posts_id_fk", + "tableFrom": "pages_blocks_single_blog_post", + "tableTo": "posts", + "columnsFrom": ["post_id"], + "columnsTo": ["id"], + "onDelete": "set null", + "onUpdate": "no action" + }, + "pages_blocks_single_blog_post_parent_id_fk": { + "name": "pages_blocks_single_blog_post_parent_id_fk", + "tableFrom": "pages_blocks_single_blog_post", + "tableTo": "pages", + "columnsFrom": ["_parent_id"], + "columnsTo": ["id"], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "pages_blocks_sponsors_block": { + "name": "pages_blocks_sponsors_block", + "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 + }, + "_path": { + "name": "_path", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "id": { + "name": "id", + "type": "text", + "primaryKey": true, + "notNull": true, + "autoincrement": false + }, + "background_color": { + "name": "background_color", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false, + "default": "'transparent'" + }, + "sponsors_layout": { + "name": "sponsors_layout", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false, + "default": "'static'" + }, + "wrap_in_container": { + "name": "wrap_in_container", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false, + "default": true + }, + "block_name": { + "name": "block_name", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + } + }, + "indexes": { + "pages_blocks_sponsors_block_order_idx": { + "name": "pages_blocks_sponsors_block_order_idx", + "columns": ["_order"], + "isUnique": false + }, + "pages_blocks_sponsors_block_parent_id_idx": { + "name": "pages_blocks_sponsors_block_parent_id_idx", + "columns": ["_parent_id"], + "isUnique": false + }, + "pages_blocks_sponsors_block_path_idx": { + "name": "pages_blocks_sponsors_block_path_idx", + "columns": ["_path"], + "isUnique": false + } + }, + "foreignKeys": { + "pages_blocks_sponsors_block_parent_id_fk": { + "name": "pages_blocks_sponsors_block_parent_id_fk", + "tableFrom": "pages_blocks_sponsors_block", + "tableTo": "pages", + "columnsFrom": ["_parent_id"], + "columnsTo": ["id"], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "pages_blocks_team": { + "name": "pages_blocks_team", + "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 + }, + "_path": { + "name": "_path", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "id": { + "name": "id", + "type": "text", + "primaryKey": true, + "notNull": true, + "autoincrement": false + }, + "team_id": { + "name": "team_id", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "block_name": { + "name": "block_name", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + } + }, + "indexes": { + "pages_blocks_team_order_idx": { + "name": "pages_blocks_team_order_idx", + "columns": ["_order"], + "isUnique": false + }, + "pages_blocks_team_parent_id_idx": { + "name": "pages_blocks_team_parent_id_idx", + "columns": ["_parent_id"], + "isUnique": false + }, + "pages_blocks_team_path_idx": { + "name": "pages_blocks_team_path_idx", + "columns": ["_path"], + "isUnique": false + }, + "pages_blocks_team_team_idx": { + "name": "pages_blocks_team_team_idx", + "columns": ["team_id"], + "isUnique": false + } + }, + "foreignKeys": { + "pages_blocks_team_team_id_teams_id_fk": { + "name": "pages_blocks_team_team_id_teams_id_fk", + "tableFrom": "pages_blocks_team", + "tableTo": "teams", + "columnsFrom": ["team_id"], + "columnsTo": ["id"], + "onDelete": "set null", + "onUpdate": "no action" + }, + "pages_blocks_team_parent_id_fk": { + "name": "pages_blocks_team_parent_id_fk", + "tableFrom": "pages_blocks_team", + "tableTo": "pages", + "columnsFrom": ["_parent_id"], + "columnsTo": ["id"], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "pages_blocks_generic_embed": { + "name": "pages_blocks_generic_embed", + "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 + }, + "_path": { + "name": "_path", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "id": { + "name": "id", + "type": "text", + "primaryKey": true, + "notNull": true, + "autoincrement": false + }, + "html": { + "name": "html", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "background_color": { + "name": "background_color", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false, + "default": "'transparent'" + }, + "align_content": { + "name": "align_content", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false, + "default": "'left'" + }, + "block_name": { + "name": "block_name", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + } + }, + "indexes": { + "pages_blocks_generic_embed_order_idx": { + "name": "pages_blocks_generic_embed_order_idx", + "columns": ["_order"], + "isUnique": false + }, + "pages_blocks_generic_embed_parent_id_idx": { + "name": "pages_blocks_generic_embed_parent_id_idx", + "columns": ["_parent_id"], + "isUnique": false + }, + "pages_blocks_generic_embed_path_idx": { + "name": "pages_blocks_generic_embed_path_idx", + "columns": ["_path"], + "isUnique": false + } + }, + "foreignKeys": { + "pages_blocks_generic_embed_parent_id_fk": { + "name": "pages_blocks_generic_embed_parent_id_fk", + "tableFrom": "pages_blocks_generic_embed", + "tableTo": "pages", + "columnsFrom": ["_parent_id"], + "columnsTo": ["id"], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "pages": { + "name": "pages", + "columns": { + "id": { + "name": "id", + "type": "integer", + "primaryKey": true, + "notNull": true, + "autoincrement": false + }, + "title": { + "name": "title", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "meta_image_id": { + "name": "meta_image_id", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "meta_description": { + "name": "meta_description", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "published_at": { + "name": "published_at", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "slug": { + "name": "slug", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "tenant_id": { + "name": "tenant_id", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "content_hash": { + "name": "content_hash", + "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'))" + }, + "_status": { + "name": "_status", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false, + "default": "'draft'" + } + }, + "indexes": { + "pages_meta_meta_image_idx": { + "name": "pages_meta_meta_image_idx", + "columns": ["meta_image_id"], + "isUnique": false + }, + "pages_slug_idx": { + "name": "pages_slug_idx", + "columns": ["slug"], + "isUnique": false + }, + "pages_tenant_idx": { + "name": "pages_tenant_idx", + "columns": ["tenant_id"], + "isUnique": false + }, + "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 + }, + "pages__status_idx": { + "name": "pages__status_idx", + "columns": ["_status"], + "isUnique": false + } + }, + "foreignKeys": { + "pages_meta_image_id_media_id_fk": { + "name": "pages_meta_image_id_media_id_fk", + "tableFrom": "pages", + "tableTo": "media", + "columnsFrom": ["meta_image_id"], + "columnsTo": ["id"], + "onDelete": "set null", + "onUpdate": "no action" + }, + "pages_tenant_id_tenants_id_fk": { + "name": "pages_tenant_id_tenants_id_fk", + "tableFrom": "pages", + "tableTo": "tenants", + "columnsFrom": ["tenant_id"], + "columnsTo": ["id"], + "onDelete": "set null", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "pages_rels": { + "name": "pages_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 + }, + "tags_id": { + "name": "tags_id", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "posts_id": { + "name": "posts_id", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "pages_id": { + "name": "pages_id", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "built_in_pages_id": { + "name": "built_in_pages_id", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "sponsors_id": { + "name": "sponsors_id", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + } + }, + "indexes": { + "pages_rels_order_idx": { + "name": "pages_rels_order_idx", + "columns": ["order"], + "isUnique": false + }, + "pages_rels_parent_idx": { + "name": "pages_rels_parent_idx", + "columns": ["parent_id"], + "isUnique": false + }, + "pages_rels_path_idx": { + "name": "pages_rels_path_idx", + "columns": ["path"], + "isUnique": false + }, + "pages_rels_tags_id_idx": { + "name": "pages_rels_tags_id_idx", + "columns": ["tags_id"], + "isUnique": false + }, + "pages_rels_posts_id_idx": { + "name": "pages_rels_posts_id_idx", + "columns": ["posts_id"], + "isUnique": false + }, + "pages_rels_pages_id_idx": { + "name": "pages_rels_pages_id_idx", + "columns": ["pages_id"], + "isUnique": false + }, + "pages_rels_built_in_pages_id_idx": { + "name": "pages_rels_built_in_pages_id_idx", + "columns": ["built_in_pages_id"], + "isUnique": false + }, + "pages_rels_sponsors_id_idx": { + "name": "pages_rels_sponsors_id_idx", + "columns": ["sponsors_id"], + "isUnique": false + } + }, + "foreignKeys": { + "pages_rels_parent_1_idx": { + "name": "pages_rels_parent_1_idx", + "tableFrom": "pages_rels", + "tableTo": "pages", + "columnsFrom": ["parent_id"], + "columnsTo": ["id"], + "onDelete": "cascade", + "onUpdate": "no action" + }, + "pages_rels_tags_fk": { + "name": "pages_rels_tags_fk", + "tableFrom": "pages_rels", + "tableTo": "tags", + "columnsFrom": ["tags_id"], + "columnsTo": ["id"], + "onDelete": "cascade", + "onUpdate": "no action" + }, + "pages_rels_posts_fk": { + "name": "pages_rels_posts_fk", + "tableFrom": "pages_rels", + "tableTo": "posts", + "columnsFrom": ["posts_id"], + "columnsTo": ["id"], + "onDelete": "cascade", + "onUpdate": "no action" + }, + "pages_rels_pages_fk": { + "name": "pages_rels_pages_fk", + "tableFrom": "pages_rels", + "tableTo": "pages", + "columnsFrom": ["pages_id"], + "columnsTo": ["id"], + "onDelete": "cascade", + "onUpdate": "no action" + }, + "pages_rels_built_in_pages_fk": { + "name": "pages_rels_built_in_pages_fk", + "tableFrom": "pages_rels", + "tableTo": "built_in_pages", + "columnsFrom": ["built_in_pages_id"], + "columnsTo": ["id"], + "onDelete": "cascade", + "onUpdate": "no action" + }, + "pages_rels_sponsors_fk": { + "name": "pages_rels_sponsors_fk", + "tableFrom": "pages_rels", + "tableTo": "sponsors", + "columnsFrom": ["sponsors_id"], + "columnsTo": ["id"], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "_pages_v_blocks_biography": { + "name": "_pages_v_blocks_biography", + "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 + }, + "_path": { + "name": "_path", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "id": { + "name": "id", + "type": "integer", + "primaryKey": true, + "notNull": true, + "autoincrement": false + }, + "background_color": { + "name": "background_color", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false, + "default": "'transparent'" + }, + "biography_id": { + "name": "biography_id", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "image_layout": { + "name": "image_layout", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false, + "default": "'left'" + }, + "_uuid": { + "name": "_uuid", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "block_name": { + "name": "block_name", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + } + }, + "indexes": { + "_pages_v_blocks_biography_order_idx": { + "name": "_pages_v_blocks_biography_order_idx", + "columns": ["_order"], + "isUnique": false + }, + "_pages_v_blocks_biography_parent_id_idx": { + "name": "_pages_v_blocks_biography_parent_id_idx", + "columns": ["_parent_id"], + "isUnique": false + }, + "_pages_v_blocks_biography_path_idx": { + "name": "_pages_v_blocks_biography_path_idx", + "columns": ["_path"], + "isUnique": false + }, + "_pages_v_blocks_biography_biography_idx": { + "name": "_pages_v_blocks_biography_biography_idx", + "columns": ["biography_id"], + "isUnique": false + } + }, + "foreignKeys": { + "_pages_v_blocks_biography_biography_id_biographies_id_fk": { + "name": "_pages_v_blocks_biography_biography_id_biographies_id_fk", + "tableFrom": "_pages_v_blocks_biography", + "tableTo": "biographies", + "columnsFrom": ["biography_id"], + "columnsTo": ["id"], + "onDelete": "set null", + "onUpdate": "no action" + }, + "_pages_v_blocks_biography_parent_id_fk": { + "name": "_pages_v_blocks_biography_parent_id_fk", + "tableFrom": "_pages_v_blocks_biography", + "tableTo": "_pages_v", + "columnsFrom": ["_parent_id"], + "columnsTo": ["id"], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "_pages_v_blocks_blog_list": { + "name": "_pages_v_blocks_blog_list", + "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 + }, + "_path": { + "name": "_path", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "id": { + "name": "id", + "type": "integer", + "primaryKey": true, + "notNull": true, + "autoincrement": false + }, + "heading": { + "name": "heading", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "below_heading_content": { + "name": "below_heading_content", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "background_color": { + "name": "background_color", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false, + "default": "'transparent'" + }, + "post_options": { + "name": "post_options", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false, + "default": "'dynamic'" + }, + "dynamic_options_sort_by": { + "name": "dynamic_options_sort_by", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false, + "default": "'-publishedAt'" + }, + "dynamic_options_max_posts": { + "name": "dynamic_options_max_posts", + "type": "numeric", + "primaryKey": false, + "notNull": false, + "autoincrement": false, + "default": 4 + }, + "_uuid": { + "name": "_uuid", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "block_name": { + "name": "block_name", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + } + }, + "indexes": { + "_pages_v_blocks_blog_list_order_idx": { + "name": "_pages_v_blocks_blog_list_order_idx", + "columns": ["_order"], + "isUnique": false + }, + "_pages_v_blocks_blog_list_parent_id_idx": { + "name": "_pages_v_blocks_blog_list_parent_id_idx", + "columns": ["_parent_id"], + "isUnique": false + }, + "_pages_v_blocks_blog_list_path_idx": { + "name": "_pages_v_blocks_blog_list_path_idx", + "columns": ["_path"], + "isUnique": false + } + }, + "foreignKeys": { + "_pages_v_blocks_blog_list_parent_id_fk": { + "name": "_pages_v_blocks_blog_list_parent_id_fk", + "tableFrom": "_pages_v_blocks_blog_list", + "tableTo": "_pages_v", + "columnsFrom": ["_parent_id"], + "columnsTo": ["id"], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "_pages_v_blocks_content_columns": { + "name": "_pages_v_blocks_content_columns", + "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": "integer", + "primaryKey": true, + "notNull": true, + "autoincrement": false + }, + "rich_text": { + "name": "rich_text", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "_uuid": { + "name": "_uuid", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + } + }, + "indexes": { + "_pages_v_blocks_content_columns_order_idx": { + "name": "_pages_v_blocks_content_columns_order_idx", + "columns": ["_order"], + "isUnique": false + }, + "_pages_v_blocks_content_columns_parent_id_idx": { + "name": "_pages_v_blocks_content_columns_parent_id_idx", + "columns": ["_parent_id"], + "isUnique": false + } + }, + "foreignKeys": { + "_pages_v_blocks_content_columns_parent_id_fk": { + "name": "_pages_v_blocks_content_columns_parent_id_fk", + "tableFrom": "_pages_v_blocks_content_columns", + "tableTo": "_pages_v_blocks_content", + "columnsFrom": ["_parent_id"], + "columnsTo": ["id"], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "_pages_v_blocks_content": { + "name": "_pages_v_blocks_content", + "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 + }, + "_path": { + "name": "_path", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "id": { + "name": "id", + "type": "integer", + "primaryKey": true, + "notNull": true, + "autoincrement": false + }, + "background_color": { + "name": "background_color", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false, + "default": "'transparent'" + }, + "layout": { + "name": "layout", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false, + "default": "'1_1'" + }, + "_uuid": { + "name": "_uuid", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "block_name": { + "name": "block_name", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + } + }, + "indexes": { + "_pages_v_blocks_content_order_idx": { + "name": "_pages_v_blocks_content_order_idx", + "columns": ["_order"], + "isUnique": false + }, + "_pages_v_blocks_content_parent_id_idx": { + "name": "_pages_v_blocks_content_parent_id_idx", + "columns": ["_parent_id"], + "isUnique": false + }, + "_pages_v_blocks_content_path_idx": { + "name": "_pages_v_blocks_content_path_idx", + "columns": ["_path"], + "isUnique": false + } + }, + "foreignKeys": { + "_pages_v_blocks_content_parent_id_fk": { + "name": "_pages_v_blocks_content_parent_id_fk", + "tableFrom": "_pages_v_blocks_content", + "tableTo": "_pages_v", + "columnsFrom": ["_parent_id"], + "columnsTo": ["id"], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "_pages_v_blocks_document_block": { + "name": "_pages_v_blocks_document_block", + "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 + }, + "_path": { + "name": "_path", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "id": { + "name": "id", + "type": "integer", + "primaryKey": true, + "notNull": true, + "autoincrement": false + }, + "document_id": { + "name": "document_id", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "wrap_in_container": { + "name": "wrap_in_container", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false, + "default": false + }, + "_uuid": { + "name": "_uuid", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "block_name": { + "name": "block_name", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + } + }, + "indexes": { + "_pages_v_blocks_document_block_order_idx": { + "name": "_pages_v_blocks_document_block_order_idx", + "columns": ["_order"], + "isUnique": false + }, + "_pages_v_blocks_document_block_parent_id_idx": { + "name": "_pages_v_blocks_document_block_parent_id_idx", + "columns": ["_parent_id"], + "isUnique": false + }, + "_pages_v_blocks_document_block_path_idx": { + "name": "_pages_v_blocks_document_block_path_idx", + "columns": ["_path"], + "isUnique": false + }, + "_pages_v_blocks_document_block_document_idx": { + "name": "_pages_v_blocks_document_block_document_idx", + "columns": ["document_id"], + "isUnique": false + } + }, + "foreignKeys": { + "_pages_v_blocks_document_block_document_id_documents_id_fk": { + "name": "_pages_v_blocks_document_block_document_id_documents_id_fk", + "tableFrom": "_pages_v_blocks_document_block", + "tableTo": "documents", + "columnsFrom": ["document_id"], + "columnsTo": ["id"], + "onDelete": "set null", + "onUpdate": "no action" + }, + "_pages_v_blocks_document_block_parent_id_fk": { + "name": "_pages_v_blocks_document_block_parent_id_fk", + "tableFrom": "_pages_v_blocks_document_block", + "tableTo": "_pages_v", + "columnsFrom": ["_parent_id"], + "columnsTo": ["id"], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "_pages_v_blocks_form_block": { + "name": "_pages_v_blocks_form_block", + "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 + }, + "_path": { + "name": "_path", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "id": { + "name": "id", + "type": "integer", + "primaryKey": true, + "notNull": true, + "autoincrement": false + }, + "form_id": { + "name": "form_id", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "enable_intro": { + "name": "enable_intro", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "intro_content": { + "name": "intro_content", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "_uuid": { + "name": "_uuid", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "block_name": { + "name": "block_name", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + } + }, + "indexes": { + "_pages_v_blocks_form_block_order_idx": { + "name": "_pages_v_blocks_form_block_order_idx", + "columns": ["_order"], + "isUnique": false + }, + "_pages_v_blocks_form_block_parent_id_idx": { + "name": "_pages_v_blocks_form_block_parent_id_idx", + "columns": ["_parent_id"], + "isUnique": false + }, + "_pages_v_blocks_form_block_path_idx": { + "name": "_pages_v_blocks_form_block_path_idx", + "columns": ["_path"], + "isUnique": false + }, + "_pages_v_blocks_form_block_form_idx": { + "name": "_pages_v_blocks_form_block_form_idx", + "columns": ["form_id"], + "isUnique": false + } + }, + "foreignKeys": { + "_pages_v_blocks_form_block_form_id_forms_id_fk": { + "name": "_pages_v_blocks_form_block_form_id_forms_id_fk", + "tableFrom": "_pages_v_blocks_form_block", + "tableTo": "forms", + "columnsFrom": ["form_id"], + "columnsTo": ["id"], + "onDelete": "set null", + "onUpdate": "no action" + }, + "_pages_v_blocks_form_block_parent_id_fk": { + "name": "_pages_v_blocks_form_block_parent_id_fk", + "tableFrom": "_pages_v_blocks_form_block", + "tableTo": "_pages_v", + "columnsFrom": ["_parent_id"], + "columnsTo": ["id"], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "_pages_v_blocks_header_block": { + "name": "_pages_v_blocks_header_block", + "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 + }, + "_path": { + "name": "_path", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "id": { + "name": "id", + "type": "integer", + "primaryKey": true, + "notNull": true, + "autoincrement": false + }, + "rich_text": { + "name": "rich_text", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "background_color": { + "name": "background_color", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false, + "default": "'transparent'" + }, + "wrap_in_container": { + "name": "wrap_in_container", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false, + "default": true + }, + "_uuid": { + "name": "_uuid", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "block_name": { + "name": "block_name", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + } + }, + "indexes": { + "_pages_v_blocks_header_block_order_idx": { + "name": "_pages_v_blocks_header_block_order_idx", + "columns": ["_order"], + "isUnique": false + }, + "_pages_v_blocks_header_block_parent_id_idx": { + "name": "_pages_v_blocks_header_block_parent_id_idx", + "columns": ["_parent_id"], + "isUnique": false + }, + "_pages_v_blocks_header_block_path_idx": { + "name": "_pages_v_blocks_header_block_path_idx", + "columns": ["_path"], + "isUnique": false + } + }, + "foreignKeys": { + "_pages_v_blocks_header_block_parent_id_fk": { + "name": "_pages_v_blocks_header_block_parent_id_fk", + "tableFrom": "_pages_v_blocks_header_block", + "tableTo": "_pages_v", + "columnsFrom": ["_parent_id"], + "columnsTo": ["id"], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "_pages_v_blocks_image_link_grid_columns": { + "name": "_pages_v_blocks_image_link_grid_columns", + "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": "integer", + "primaryKey": true, + "notNull": true, + "autoincrement": false + }, + "image_id": { + "name": "image_id", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "link_type": { + "name": "link_type", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false, + "default": "'internal'" + }, + "link_new_tab": { + "name": "link_new_tab", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "link_url": { + "name": "link_url", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "caption": { + "name": "caption", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "_uuid": { + "name": "_uuid", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + } + }, + "indexes": { + "_pages_v_blocks_image_link_grid_columns_order_idx": { + "name": "_pages_v_blocks_image_link_grid_columns_order_idx", + "columns": ["_order"], + "isUnique": false + }, + "_pages_v_blocks_image_link_grid_columns_parent_id_idx": { + "name": "_pages_v_blocks_image_link_grid_columns_parent_id_idx", + "columns": ["_parent_id"], + "isUnique": false + }, + "_pages_v_blocks_image_link_grid_columns_image_idx": { + "name": "_pages_v_blocks_image_link_grid_columns_image_idx", + "columns": ["image_id"], + "isUnique": false + } + }, + "foreignKeys": { + "_pages_v_blocks_image_link_grid_columns_image_id_media_id_fk": { + "name": "_pages_v_blocks_image_link_grid_columns_image_id_media_id_fk", + "tableFrom": "_pages_v_blocks_image_link_grid_columns", + "tableTo": "media", + "columnsFrom": ["image_id"], + "columnsTo": ["id"], + "onDelete": "set null", + "onUpdate": "no action" + }, + "_pages_v_blocks_image_link_grid_columns_parent_id_fk": { + "name": "_pages_v_blocks_image_link_grid_columns_parent_id_fk", + "tableFrom": "_pages_v_blocks_image_link_grid_columns", + "tableTo": "_pages_v_blocks_image_link_grid", + "columnsFrom": ["_parent_id"], + "columnsTo": ["id"], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "_pages_v_blocks_image_link_grid": { + "name": "_pages_v_blocks_image_link_grid", + "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 + }, + "_path": { + "name": "_path", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "id": { + "name": "id", + "type": "integer", + "primaryKey": true, + "notNull": true, + "autoincrement": false + }, + "_uuid": { + "name": "_uuid", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "block_name": { + "name": "block_name", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + } + }, + "indexes": { + "_pages_v_blocks_image_link_grid_order_idx": { + "name": "_pages_v_blocks_image_link_grid_order_idx", + "columns": ["_order"], + "isUnique": false + }, + "_pages_v_blocks_image_link_grid_parent_id_idx": { + "name": "_pages_v_blocks_image_link_grid_parent_id_idx", + "columns": ["_parent_id"], + "isUnique": false + }, + "_pages_v_blocks_image_link_grid_path_idx": { + "name": "_pages_v_blocks_image_link_grid_path_idx", + "columns": ["_path"], + "isUnique": false + } + }, + "foreignKeys": { + "_pages_v_blocks_image_link_grid_parent_id_fk": { + "name": "_pages_v_blocks_image_link_grid_parent_id_fk", + "tableFrom": "_pages_v_blocks_image_link_grid", + "tableTo": "_pages_v", + "columnsFrom": ["_parent_id"], + "columnsTo": ["id"], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "_pages_v_blocks_image_quote": { + "name": "_pages_v_blocks_image_quote", + "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 + }, + "_path": { + "name": "_path", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "id": { + "name": "id", + "type": "integer", + "primaryKey": true, + "notNull": true, + "autoincrement": false + }, + "background_color": { + "name": "background_color", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false, + "default": "'transparent'" + }, + "image_layout": { + "name": "image_layout", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false, + "default": "'left'" + }, + "image_id": { + "name": "image_id", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "quote": { + "name": "quote", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "author": { + "name": "author", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "_uuid": { + "name": "_uuid", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "block_name": { + "name": "block_name", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + } + }, + "indexes": { + "_pages_v_blocks_image_quote_order_idx": { + "name": "_pages_v_blocks_image_quote_order_idx", + "columns": ["_order"], + "isUnique": false + }, + "_pages_v_blocks_image_quote_parent_id_idx": { + "name": "_pages_v_blocks_image_quote_parent_id_idx", + "columns": ["_parent_id"], + "isUnique": false + }, + "_pages_v_blocks_image_quote_path_idx": { + "name": "_pages_v_blocks_image_quote_path_idx", + "columns": ["_path"], + "isUnique": false + }, + "_pages_v_blocks_image_quote_image_idx": { + "name": "_pages_v_blocks_image_quote_image_idx", + "columns": ["image_id"], + "isUnique": false + } + }, + "foreignKeys": { + "_pages_v_blocks_image_quote_image_id_media_id_fk": { + "name": "_pages_v_blocks_image_quote_image_id_media_id_fk", + "tableFrom": "_pages_v_blocks_image_quote", + "tableTo": "media", + "columnsFrom": ["image_id"], + "columnsTo": ["id"], + "onDelete": "set null", + "onUpdate": "no action" + }, + "_pages_v_blocks_image_quote_parent_id_fk": { + "name": "_pages_v_blocks_image_quote_parent_id_fk", + "tableFrom": "_pages_v_blocks_image_quote", + "tableTo": "_pages_v", + "columnsFrom": ["_parent_id"], + "columnsTo": ["id"], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "_pages_v_blocks_image_text": { + "name": "_pages_v_blocks_image_text", + "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 + }, + "_path": { + "name": "_path", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "id": { + "name": "id", + "type": "integer", + "primaryKey": true, + "notNull": true, + "autoincrement": false + }, + "background_color": { + "name": "background_color", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false, + "default": "'transparent'" + }, + "image_layout": { + "name": "image_layout", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false, + "default": "'left'" + }, + "image_id": { + "name": "image_id", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "rich_text": { + "name": "rich_text", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "_uuid": { + "name": "_uuid", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "block_name": { + "name": "block_name", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + } + }, + "indexes": { + "_pages_v_blocks_image_text_order_idx": { + "name": "_pages_v_blocks_image_text_order_idx", + "columns": ["_order"], + "isUnique": false + }, + "_pages_v_blocks_image_text_parent_id_idx": { + "name": "_pages_v_blocks_image_text_parent_id_idx", + "columns": ["_parent_id"], + "isUnique": false + }, + "_pages_v_blocks_image_text_path_idx": { + "name": "_pages_v_blocks_image_text_path_idx", + "columns": ["_path"], + "isUnique": false + }, + "_pages_v_blocks_image_text_image_idx": { + "name": "_pages_v_blocks_image_text_image_idx", + "columns": ["image_id"], + "isUnique": false + } + }, + "foreignKeys": { + "_pages_v_blocks_image_text_image_id_media_id_fk": { + "name": "_pages_v_blocks_image_text_image_id_media_id_fk", + "tableFrom": "_pages_v_blocks_image_text", + "tableTo": "media", + "columnsFrom": ["image_id"], + "columnsTo": ["id"], + "onDelete": "set null", + "onUpdate": "no action" + }, + "_pages_v_blocks_image_text_parent_id_fk": { + "name": "_pages_v_blocks_image_text_parent_id_fk", + "tableFrom": "_pages_v_blocks_image_text", + "tableTo": "_pages_v", + "columnsFrom": ["_parent_id"], + "columnsTo": ["id"], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "_pages_v_blocks_image_text_list_columns": { + "name": "_pages_v_blocks_image_text_list_columns", + "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": "integer", + "primaryKey": true, + "notNull": true, + "autoincrement": false + }, + "image_id": { + "name": "image_id", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "title": { + "name": "title", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "rich_text": { + "name": "rich_text", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "_uuid": { + "name": "_uuid", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + } + }, + "indexes": { + "_pages_v_blocks_image_text_list_columns_order_idx": { + "name": "_pages_v_blocks_image_text_list_columns_order_idx", + "columns": ["_order"], + "isUnique": false + }, + "_pages_v_blocks_image_text_list_columns_parent_id_idx": { + "name": "_pages_v_blocks_image_text_list_columns_parent_id_idx", + "columns": ["_parent_id"], + "isUnique": false + }, + "_pages_v_blocks_image_text_list_columns_image_idx": { + "name": "_pages_v_blocks_image_text_list_columns_image_idx", + "columns": ["image_id"], + "isUnique": false + } + }, + "foreignKeys": { + "_pages_v_blocks_image_text_list_columns_image_id_media_id_fk": { + "name": "_pages_v_blocks_image_text_list_columns_image_id_media_id_fk", + "tableFrom": "_pages_v_blocks_image_text_list_columns", + "tableTo": "media", + "columnsFrom": ["image_id"], + "columnsTo": ["id"], + "onDelete": "set null", + "onUpdate": "no action" + }, + "_pages_v_blocks_image_text_list_columns_parent_id_fk": { + "name": "_pages_v_blocks_image_text_list_columns_parent_id_fk", + "tableFrom": "_pages_v_blocks_image_text_list_columns", + "tableTo": "_pages_v_blocks_image_text_list", + "columnsFrom": ["_parent_id"], + "columnsTo": ["id"], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "_pages_v_blocks_image_text_list": { + "name": "_pages_v_blocks_image_text_list", + "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 + }, + "_path": { + "name": "_path", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "id": { + "name": "id", + "type": "integer", + "primaryKey": true, + "notNull": true, + "autoincrement": false + }, + "layout": { + "name": "layout", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false, + "default": "'above'" + }, + "_uuid": { + "name": "_uuid", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "block_name": { + "name": "block_name", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + } + }, + "indexes": { + "_pages_v_blocks_image_text_list_order_idx": { + "name": "_pages_v_blocks_image_text_list_order_idx", + "columns": ["_order"], + "isUnique": false + }, + "_pages_v_blocks_image_text_list_parent_id_idx": { + "name": "_pages_v_blocks_image_text_list_parent_id_idx", + "columns": ["_parent_id"], + "isUnique": false + }, + "_pages_v_blocks_image_text_list_path_idx": { + "name": "_pages_v_blocks_image_text_list_path_idx", + "columns": ["_path"], + "isUnique": false + } + }, + "foreignKeys": { + "_pages_v_blocks_image_text_list_parent_id_fk": { + "name": "_pages_v_blocks_image_text_list_parent_id_fk", + "tableFrom": "_pages_v_blocks_image_text_list", + "tableTo": "_pages_v", + "columnsFrom": ["_parent_id"], + "columnsTo": ["id"], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "_pages_v_blocks_link_preview_cards": { + "name": "_pages_v_blocks_link_preview_cards", + "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": "integer", + "primaryKey": true, + "notNull": true, + "autoincrement": false + }, + "image_id": { + "name": "image_id", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "title": { + "name": "title", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "text": { + "name": "text", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "button_type": { + "name": "button_type", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false, + "default": "'internal'" + }, + "button_new_tab": { + "name": "button_new_tab", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "button_url": { + "name": "button_url", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "button_label": { + "name": "button_label", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "button_appearance": { + "name": "button_appearance", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false, + "default": "'default'" + }, + "_uuid": { + "name": "_uuid", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + } + }, + "indexes": { + "_pages_v_blocks_link_preview_cards_order_idx": { + "name": "_pages_v_blocks_link_preview_cards_order_idx", + "columns": ["_order"], + "isUnique": false + }, + "_pages_v_blocks_link_preview_cards_parent_id_idx": { + "name": "_pages_v_blocks_link_preview_cards_parent_id_idx", + "columns": ["_parent_id"], + "isUnique": false + }, + "_pages_v_blocks_link_preview_cards_image_idx": { + "name": "_pages_v_blocks_link_preview_cards_image_idx", + "columns": ["image_id"], + "isUnique": false + } + }, + "foreignKeys": { + "_pages_v_blocks_link_preview_cards_image_id_media_id_fk": { + "name": "_pages_v_blocks_link_preview_cards_image_id_media_id_fk", + "tableFrom": "_pages_v_blocks_link_preview_cards", + "tableTo": "media", + "columnsFrom": ["image_id"], + "columnsTo": ["id"], + "onDelete": "set null", + "onUpdate": "no action" + }, + "_pages_v_blocks_link_preview_cards_parent_id_fk": { + "name": "_pages_v_blocks_link_preview_cards_parent_id_fk", + "tableFrom": "_pages_v_blocks_link_preview_cards", + "tableTo": "_pages_v_blocks_link_preview", + "columnsFrom": ["_parent_id"], + "columnsTo": ["id"], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "_pages_v_blocks_link_preview": { + "name": "_pages_v_blocks_link_preview", + "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 + }, + "_path": { + "name": "_path", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "id": { + "name": "id", + "type": "integer", + "primaryKey": true, + "notNull": true, + "autoincrement": false + }, + "header": { + "name": "header", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "background_color": { + "name": "background_color", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false, + "default": "'transparent'" + }, + "_uuid": { + "name": "_uuid", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "block_name": { + "name": "block_name", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + } + }, + "indexes": { + "_pages_v_blocks_link_preview_order_idx": { + "name": "_pages_v_blocks_link_preview_order_idx", + "columns": ["_order"], + "isUnique": false + }, + "_pages_v_blocks_link_preview_parent_id_idx": { + "name": "_pages_v_blocks_link_preview_parent_id_idx", + "columns": ["_parent_id"], + "isUnique": false + }, + "_pages_v_blocks_link_preview_path_idx": { + "name": "_pages_v_blocks_link_preview_path_idx", + "columns": ["_path"], + "isUnique": false + } + }, + "foreignKeys": { + "_pages_v_blocks_link_preview_parent_id_fk": { + "name": "_pages_v_blocks_link_preview_parent_id_fk", + "tableFrom": "_pages_v_blocks_link_preview", + "tableTo": "_pages_v", + "columnsFrom": ["_parent_id"], + "columnsTo": ["id"], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "_pages_v_blocks_media_block": { + "name": "_pages_v_blocks_media_block", + "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 + }, + "_path": { + "name": "_path", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "id": { + "name": "id", + "type": "integer", + "primaryKey": true, + "notNull": true, + "autoincrement": false + }, + "media_id": { + "name": "media_id", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "caption": { + "name": "caption", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "background_color": { + "name": "background_color", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false, + "default": "'transparent'" + }, + "align_content": { + "name": "align_content", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false, + "default": "'left'" + }, + "image_size": { + "name": "image_size", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false, + "default": "'original'" + }, + "_uuid": { + "name": "_uuid", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "block_name": { + "name": "block_name", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + } + }, + "indexes": { + "_pages_v_blocks_media_block_order_idx": { + "name": "_pages_v_blocks_media_block_order_idx", + "columns": ["_order"], + "isUnique": false + }, + "_pages_v_blocks_media_block_parent_id_idx": { + "name": "_pages_v_blocks_media_block_parent_id_idx", + "columns": ["_parent_id"], + "isUnique": false + }, + "_pages_v_blocks_media_block_path_idx": { + "name": "_pages_v_blocks_media_block_path_idx", + "columns": ["_path"], + "isUnique": false + }, + "_pages_v_blocks_media_block_media_idx": { + "name": "_pages_v_blocks_media_block_media_idx", + "columns": ["media_id"], + "isUnique": false + } + }, + "foreignKeys": { + "_pages_v_blocks_media_block_media_id_media_id_fk": { + "name": "_pages_v_blocks_media_block_media_id_media_id_fk", + "tableFrom": "_pages_v_blocks_media_block", + "tableTo": "media", + "columnsFrom": ["media_id"], + "columnsTo": ["id"], + "onDelete": "set null", + "onUpdate": "no action" + }, + "_pages_v_blocks_media_block_parent_id_fk": { + "name": "_pages_v_blocks_media_block_parent_id_fk", + "tableFrom": "_pages_v_blocks_media_block", + "tableTo": "_pages_v", + "columnsFrom": ["_parent_id"], + "columnsTo": ["id"], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "_pages_v_blocks_single_blog_post": { + "name": "_pages_v_blocks_single_blog_post", + "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 + }, + "_path": { + "name": "_path", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "id": { + "name": "id", + "type": "integer", + "primaryKey": true, + "notNull": true, + "autoincrement": false + }, + "background_color": { + "name": "background_color", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false, + "default": "'transparent'" + }, + "post_id": { + "name": "post_id", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "_uuid": { + "name": "_uuid", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "block_name": { + "name": "block_name", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + } + }, + "indexes": { + "_pages_v_blocks_single_blog_post_order_idx": { + "name": "_pages_v_blocks_single_blog_post_order_idx", + "columns": ["_order"], + "isUnique": false + }, + "_pages_v_blocks_single_blog_post_parent_id_idx": { + "name": "_pages_v_blocks_single_blog_post_parent_id_idx", + "columns": ["_parent_id"], + "isUnique": false + }, + "_pages_v_blocks_single_blog_post_path_idx": { + "name": "_pages_v_blocks_single_blog_post_path_idx", + "columns": ["_path"], + "isUnique": false + }, + "_pages_v_blocks_single_blog_post_post_idx": { + "name": "_pages_v_blocks_single_blog_post_post_idx", + "columns": ["post_id"], + "isUnique": false + } + }, + "foreignKeys": { + "_pages_v_blocks_single_blog_post_post_id_posts_id_fk": { + "name": "_pages_v_blocks_single_blog_post_post_id_posts_id_fk", + "tableFrom": "_pages_v_blocks_single_blog_post", + "tableTo": "posts", + "columnsFrom": ["post_id"], + "columnsTo": ["id"], + "onDelete": "set null", + "onUpdate": "no action" + }, + "_pages_v_blocks_single_blog_post_parent_id_fk": { + "name": "_pages_v_blocks_single_blog_post_parent_id_fk", + "tableFrom": "_pages_v_blocks_single_blog_post", + "tableTo": "_pages_v", + "columnsFrom": ["_parent_id"], + "columnsTo": ["id"], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "_pages_v_blocks_sponsors_block": { + "name": "_pages_v_blocks_sponsors_block", + "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 + }, + "_path": { + "name": "_path", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "id": { + "name": "id", + "type": "integer", + "primaryKey": true, + "notNull": true, + "autoincrement": false + }, + "background_color": { + "name": "background_color", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false, + "default": "'transparent'" + }, + "sponsors_layout": { + "name": "sponsors_layout", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false, + "default": "'static'" + }, + "wrap_in_container": { + "name": "wrap_in_container", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false, + "default": true + }, + "_uuid": { + "name": "_uuid", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "block_name": { + "name": "block_name", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + } + }, + "indexes": { + "_pages_v_blocks_sponsors_block_order_idx": { + "name": "_pages_v_blocks_sponsors_block_order_idx", + "columns": ["_order"], + "isUnique": false + }, + "_pages_v_blocks_sponsors_block_parent_id_idx": { + "name": "_pages_v_blocks_sponsors_block_parent_id_idx", + "columns": ["_parent_id"], + "isUnique": false + }, + "_pages_v_blocks_sponsors_block_path_idx": { + "name": "_pages_v_blocks_sponsors_block_path_idx", + "columns": ["_path"], + "isUnique": false + } + }, + "foreignKeys": { + "_pages_v_blocks_sponsors_block_parent_id_fk": { + "name": "_pages_v_blocks_sponsors_block_parent_id_fk", + "tableFrom": "_pages_v_blocks_sponsors_block", + "tableTo": "_pages_v", + "columnsFrom": ["_parent_id"], + "columnsTo": ["id"], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "_pages_v_blocks_team": { + "name": "_pages_v_blocks_team", + "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 + }, + "_path": { + "name": "_path", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "id": { + "name": "id", + "type": "integer", + "primaryKey": true, + "notNull": true, + "autoincrement": false + }, + "team_id": { + "name": "team_id", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "_uuid": { + "name": "_uuid", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "block_name": { + "name": "block_name", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + } + }, + "indexes": { + "_pages_v_blocks_team_order_idx": { + "name": "_pages_v_blocks_team_order_idx", + "columns": ["_order"], + "isUnique": false + }, + "_pages_v_blocks_team_parent_id_idx": { + "name": "_pages_v_blocks_team_parent_id_idx", + "columns": ["_parent_id"], + "isUnique": false + }, + "_pages_v_blocks_team_path_idx": { + "name": "_pages_v_blocks_team_path_idx", + "columns": ["_path"], + "isUnique": false + }, + "_pages_v_blocks_team_team_idx": { + "name": "_pages_v_blocks_team_team_idx", + "columns": ["team_id"], + "isUnique": false + } + }, + "foreignKeys": { + "_pages_v_blocks_team_team_id_teams_id_fk": { + "name": "_pages_v_blocks_team_team_id_teams_id_fk", + "tableFrom": "_pages_v_blocks_team", + "tableTo": "teams", + "columnsFrom": ["team_id"], + "columnsTo": ["id"], + "onDelete": "set null", + "onUpdate": "no action" + }, + "_pages_v_blocks_team_parent_id_fk": { + "name": "_pages_v_blocks_team_parent_id_fk", + "tableFrom": "_pages_v_blocks_team", + "tableTo": "_pages_v", + "columnsFrom": ["_parent_id"], + "columnsTo": ["id"], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "_pages_v_blocks_generic_embed": { + "name": "_pages_v_blocks_generic_embed", + "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 + }, + "_path": { + "name": "_path", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "id": { + "name": "id", + "type": "integer", + "primaryKey": true, + "notNull": true, + "autoincrement": false + }, + "html": { + "name": "html", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "background_color": { + "name": "background_color", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false, + "default": "'transparent'" + }, + "align_content": { + "name": "align_content", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false, + "default": "'left'" + }, + "_uuid": { + "name": "_uuid", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "block_name": { + "name": "block_name", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + } + }, + "indexes": { + "_pages_v_blocks_generic_embed_order_idx": { + "name": "_pages_v_blocks_generic_embed_order_idx", + "columns": ["_order"], + "isUnique": false + }, + "_pages_v_blocks_generic_embed_parent_id_idx": { + "name": "_pages_v_blocks_generic_embed_parent_id_idx", + "columns": ["_parent_id"], + "isUnique": false + }, + "_pages_v_blocks_generic_embed_path_idx": { + "name": "_pages_v_blocks_generic_embed_path_idx", + "columns": ["_path"], + "isUnique": false + } + }, + "foreignKeys": { + "_pages_v_blocks_generic_embed_parent_id_fk": { + "name": "_pages_v_blocks_generic_embed_parent_id_fk", + "tableFrom": "_pages_v_blocks_generic_embed", + "tableTo": "_pages_v", + "columnsFrom": ["_parent_id"], + "columnsTo": ["id"], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "_pages_v": { + "name": "_pages_v", + "columns": { + "id": { + "name": "id", + "type": "integer", + "primaryKey": true, + "notNull": true, + "autoincrement": false + }, + "parent_id": { + "name": "parent_id", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "version_title": { + "name": "version_title", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "version_meta_image_id": { + "name": "version_meta_image_id", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "version_meta_description": { + "name": "version_meta_description", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "version_published_at": { + "name": "version_published_at", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "version_slug": { + "name": "version_slug", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "version_tenant_id": { + "name": "version_tenant_id", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "version_content_hash": { + "name": "version_content_hash", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "version_updated_at": { + "name": "version_updated_at", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "version_created_at": { + "name": "version_created_at", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "version__status": { + "name": "version__status", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false, + "default": "'draft'" + }, + "created_at": { + "name": "created_at", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false, + "default": "(strftime('%Y-%m-%dT%H:%M:%fZ', 'now'))" + }, + "updated_at": { + "name": "updated_at", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false, + "default": "(strftime('%Y-%m-%dT%H:%M:%fZ', 'now'))" + }, + "latest": { + "name": "latest", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "autosave": { + "name": "autosave", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + } + }, + "indexes": { + "_pages_v_parent_idx": { + "name": "_pages_v_parent_idx", + "columns": ["parent_id"], + "isUnique": false + }, + "_pages_v_version_meta_version_meta_image_idx": { + "name": "_pages_v_version_meta_version_meta_image_idx", + "columns": ["version_meta_image_id"], + "isUnique": false + }, + "_pages_v_version_version_slug_idx": { + "name": "_pages_v_version_version_slug_idx", + "columns": ["version_slug"], + "isUnique": false + }, + "_pages_v_version_version_tenant_idx": { + "name": "_pages_v_version_version_tenant_idx", + "columns": ["version_tenant_id"], + "isUnique": false + }, + "_pages_v_version_version_updated_at_idx": { + "name": "_pages_v_version_version_updated_at_idx", + "columns": ["version_updated_at"], + "isUnique": false + }, + "_pages_v_version_version_created_at_idx": { + "name": "_pages_v_version_version_created_at_idx", + "columns": ["version_created_at"], + "isUnique": false + }, + "_pages_v_version_version__status_idx": { + "name": "_pages_v_version_version__status_idx", + "columns": ["version__status"], + "isUnique": false + }, + "_pages_v_created_at_idx": { + "name": "_pages_v_created_at_idx", + "columns": ["created_at"], + "isUnique": false + }, + "_pages_v_updated_at_idx": { + "name": "_pages_v_updated_at_idx", + "columns": ["updated_at"], + "isUnique": false + }, + "_pages_v_latest_idx": { + "name": "_pages_v_latest_idx", + "columns": ["latest"], + "isUnique": false + }, + "_pages_v_autosave_idx": { + "name": "_pages_v_autosave_idx", + "columns": ["autosave"], + "isUnique": false + } + }, + "foreignKeys": { + "_pages_v_parent_id_pages_id_fk": { + "name": "_pages_v_parent_id_pages_id_fk", + "tableFrom": "_pages_v", + "tableTo": "pages", + "columnsFrom": ["parent_id"], + "columnsTo": ["id"], + "onDelete": "set null", + "onUpdate": "no action" + }, + "_pages_v_version_meta_image_id_media_id_fk": { + "name": "_pages_v_version_meta_image_id_media_id_fk", + "tableFrom": "_pages_v", + "tableTo": "media", + "columnsFrom": ["version_meta_image_id"], + "columnsTo": ["id"], + "onDelete": "set null", + "onUpdate": "no action" + }, + "_pages_v_version_tenant_id_tenants_id_fk": { + "name": "_pages_v_version_tenant_id_tenants_id_fk", + "tableFrom": "_pages_v", + "tableTo": "tenants", + "columnsFrom": ["version_tenant_id"], + "columnsTo": ["id"], + "onDelete": "set null", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "_pages_v_rels": { + "name": "_pages_v_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 + }, + "tags_id": { + "name": "tags_id", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "posts_id": { + "name": "posts_id", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "pages_id": { + "name": "pages_id", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "built_in_pages_id": { + "name": "built_in_pages_id", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "sponsors_id": { + "name": "sponsors_id", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + } + }, + "indexes": { + "_pages_v_rels_order_idx": { + "name": "_pages_v_rels_order_idx", + "columns": ["order"], + "isUnique": false + }, + "_pages_v_rels_parent_idx": { + "name": "_pages_v_rels_parent_idx", + "columns": ["parent_id"], + "isUnique": false + }, + "_pages_v_rels_path_idx": { + "name": "_pages_v_rels_path_idx", + "columns": ["path"], + "isUnique": false + }, + "_pages_v_rels_tags_id_idx": { + "name": "_pages_v_rels_tags_id_idx", + "columns": ["tags_id"], + "isUnique": false + }, + "_pages_v_rels_posts_id_idx": { + "name": "_pages_v_rels_posts_id_idx", + "columns": ["posts_id"], + "isUnique": false + }, + "_pages_v_rels_pages_id_idx": { + "name": "_pages_v_rels_pages_id_idx", + "columns": ["pages_id"], + "isUnique": false + }, + "_pages_v_rels_built_in_pages_id_idx": { + "name": "_pages_v_rels_built_in_pages_id_idx", + "columns": ["built_in_pages_id"], + "isUnique": false + }, + "_pages_v_rels_sponsors_id_idx": { + "name": "_pages_v_rels_sponsors_id_idx", + "columns": ["sponsors_id"], + "isUnique": false + } + }, + "foreignKeys": { + "_pages_v_rels_parent_1_idx": { + "name": "_pages_v_rels_parent_1_idx", + "tableFrom": "_pages_v_rels", + "tableTo": "_pages_v", + "columnsFrom": ["parent_id"], + "columnsTo": ["id"], + "onDelete": "cascade", + "onUpdate": "no action" + }, + "_pages_v_rels_tags_fk": { + "name": "_pages_v_rels_tags_fk", + "tableFrom": "_pages_v_rels", + "tableTo": "tags", + "columnsFrom": ["tags_id"], + "columnsTo": ["id"], + "onDelete": "cascade", + "onUpdate": "no action" + }, + "_pages_v_rels_posts_fk": { + "name": "_pages_v_rels_posts_fk", + "tableFrom": "_pages_v_rels", + "tableTo": "posts", + "columnsFrom": ["posts_id"], + "columnsTo": ["id"], + "onDelete": "cascade", + "onUpdate": "no action" + }, + "_pages_v_rels_pages_fk": { + "name": "_pages_v_rels_pages_fk", + "tableFrom": "_pages_v_rels", + "tableTo": "pages", + "columnsFrom": ["pages_id"], + "columnsTo": ["id"], + "onDelete": "cascade", + "onUpdate": "no action" + }, + "_pages_v_rels_built_in_pages_fk": { + "name": "_pages_v_rels_built_in_pages_fk", + "tableFrom": "_pages_v_rels", + "tableTo": "built_in_pages", + "columnsFrom": ["built_in_pages_id"], + "columnsTo": ["id"], + "onDelete": "cascade", + "onUpdate": "no action" + }, + "_pages_v_rels_sponsors_fk": { + "name": "_pages_v_rels_sponsors_fk", + "tableFrom": "_pages_v_rels", + "tableTo": "sponsors", + "columnsFrom": ["sponsors_id"], + "columnsTo": ["id"], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "posts_populated_authors": { + "name": "posts_populated_authors", + "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 + }, + "name": { + "name": "name", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + } + }, + "indexes": { + "posts_populated_authors_order_idx": { + "name": "posts_populated_authors_order_idx", + "columns": ["_order"], + "isUnique": false + }, + "posts_populated_authors_parent_id_idx": { + "name": "posts_populated_authors_parent_id_idx", + "columns": ["_parent_id"], + "isUnique": false + } + }, + "foreignKeys": { + "posts_populated_authors_parent_id_fk": { + "name": "posts_populated_authors_parent_id_fk", + "tableFrom": "posts_populated_authors", + "tableTo": "posts", + "columnsFrom": ["_parent_id"], + "columnsTo": ["id"], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "posts_blocks_in_content": { + "name": "posts_blocks_in_content", + "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 + }, + "block_type": { + "name": "block_type", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "collection": { + "name": "collection", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "doc_id": { + "name": "doc_id", + "type": "numeric", + "primaryKey": false, + "notNull": false, + "autoincrement": false + } + }, + "indexes": { + "posts_blocks_in_content_order_idx": { + "name": "posts_blocks_in_content_order_idx", + "columns": ["_order"], + "isUnique": false + }, + "posts_blocks_in_content_parent_id_idx": { + "name": "posts_blocks_in_content_parent_id_idx", + "columns": ["_parent_id"], + "isUnique": false + } + }, + "foreignKeys": { + "posts_blocks_in_content_parent_id_fk": { + "name": "posts_blocks_in_content_parent_id_fk", + "tableFrom": "posts_blocks_in_content", + "tableTo": "posts", + "columnsFrom": ["_parent_id"], + "columnsTo": ["id"], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "posts": { + "name": "posts", + "columns": { + "id": { + "name": "id", + "type": "integer", + "primaryKey": true, + "notNull": true, + "autoincrement": false + }, + "tenant_id": { + "name": "tenant_id", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "title": { + "name": "title", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "featured_image_id": { + "name": "featured_image_id", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "description": { + "name": "description", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "content": { + "name": "content", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "show_authors": { + "name": "show_authors", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false, + "default": false + }, + "published_at": { + "name": "published_at", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "show_date": { + "name": "show_date", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false, + "default": true + }, + "slug": { + "name": "slug", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "content_hash": { + "name": "content_hash", + "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'))" + }, + "_status": { + "name": "_status", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false, + "default": "'draft'" + } + }, + "indexes": { + "posts_tenant_idx": { + "name": "posts_tenant_idx", + "columns": ["tenant_id"], + "isUnique": false + }, + "posts_featured_image_idx": { + "name": "posts_featured_image_idx", + "columns": ["featured_image_id"], + "isUnique": false + }, + "posts_slug_idx": { + "name": "posts_slug_idx", + "columns": ["slug"], + "isUnique": false + }, + "posts_updated_at_idx": { + "name": "posts_updated_at_idx", + "columns": ["updated_at"], + "isUnique": false + }, + "posts_created_at_idx": { + "name": "posts_created_at_idx", + "columns": ["created_at"], + "isUnique": false + }, + "posts__status_idx": { + "name": "posts__status_idx", + "columns": ["_status"], + "isUnique": false + } + }, + "foreignKeys": { + "posts_tenant_id_tenants_id_fk": { + "name": "posts_tenant_id_tenants_id_fk", + "tableFrom": "posts", + "tableTo": "tenants", + "columnsFrom": ["tenant_id"], + "columnsTo": ["id"], + "onDelete": "set null", + "onUpdate": "no action" + }, + "posts_featured_image_id_media_id_fk": { + "name": "posts_featured_image_id_media_id_fk", + "tableFrom": "posts", + "tableTo": "media", + "columnsFrom": ["featured_image_id"], + "columnsTo": ["id"], + "onDelete": "set null", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "posts_rels": { + "name": "posts_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 + }, + "biographies_id": { + "name": "biographies_id", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "tags_id": { + "name": "tags_id", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "posts_id": { + "name": "posts_id", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + } + }, + "indexes": { + "posts_rels_order_idx": { + "name": "posts_rels_order_idx", + "columns": ["order"], + "isUnique": false + }, + "posts_rels_parent_idx": { + "name": "posts_rels_parent_idx", + "columns": ["parent_id"], + "isUnique": false + }, + "posts_rels_path_idx": { + "name": "posts_rels_path_idx", + "columns": ["path"], + "isUnique": false + }, + "posts_rels_biographies_id_idx": { + "name": "posts_rels_biographies_id_idx", + "columns": ["biographies_id"], + "isUnique": false + }, + "posts_rels_tags_id_idx": { + "name": "posts_rels_tags_id_idx", + "columns": ["tags_id"], + "isUnique": false + }, + "posts_rels_posts_id_idx": { + "name": "posts_rels_posts_id_idx", + "columns": ["posts_id"], + "isUnique": false + } + }, + "foreignKeys": { + "posts_rels_parent_1_idx": { + "name": "posts_rels_parent_1_idx", + "tableFrom": "posts_rels", + "tableTo": "posts", + "columnsFrom": ["parent_id"], + "columnsTo": ["id"], + "onDelete": "cascade", + "onUpdate": "no action" + }, + "posts_rels_biographies_fk": { + "name": "posts_rels_biographies_fk", + "tableFrom": "posts_rels", + "tableTo": "biographies", + "columnsFrom": ["biographies_id"], + "columnsTo": ["id"], + "onDelete": "cascade", + "onUpdate": "no action" + }, + "posts_rels_tags_fk": { + "name": "posts_rels_tags_fk", + "tableFrom": "posts_rels", + "tableTo": "tags", + "columnsFrom": ["tags_id"], + "columnsTo": ["id"], + "onDelete": "cascade", + "onUpdate": "no action" + }, + "posts_rels_posts_fk": { + "name": "posts_rels_posts_fk", + "tableFrom": "posts_rels", + "tableTo": "posts", + "columnsFrom": ["posts_id"], + "columnsTo": ["id"], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "_posts_v_version_populated_authors": { + "name": "_posts_v_version_populated_authors", + "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": "integer", + "primaryKey": true, + "notNull": true, + "autoincrement": false + }, + "_uuid": { + "name": "_uuid", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "name": { + "name": "name", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + } + }, + "indexes": { + "_posts_v_version_populated_authors_order_idx": { + "name": "_posts_v_version_populated_authors_order_idx", + "columns": ["_order"], + "isUnique": false + }, + "_posts_v_version_populated_authors_parent_id_idx": { + "name": "_posts_v_version_populated_authors_parent_id_idx", + "columns": ["_parent_id"], + "isUnique": false + } + }, + "foreignKeys": { + "_posts_v_version_populated_authors_parent_id_fk": { + "name": "_posts_v_version_populated_authors_parent_id_fk", + "tableFrom": "_posts_v_version_populated_authors", + "tableTo": "_posts_v", + "columnsFrom": ["_parent_id"], + "columnsTo": ["id"], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "_posts_v_version_blocks_in_content": { + "name": "_posts_v_version_blocks_in_content", + "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": "integer", + "primaryKey": true, + "notNull": true, + "autoincrement": false + }, + "block_type": { + "name": "block_type", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "collection": { + "name": "collection", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "doc_id": { + "name": "doc_id", + "type": "numeric", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "_uuid": { + "name": "_uuid", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + } + }, + "indexes": { + "_posts_v_version_blocks_in_content_order_idx": { + "name": "_posts_v_version_blocks_in_content_order_idx", + "columns": ["_order"], + "isUnique": false + }, + "_posts_v_version_blocks_in_content_parent_id_idx": { + "name": "_posts_v_version_blocks_in_content_parent_id_idx", + "columns": ["_parent_id"], + "isUnique": false + } + }, + "foreignKeys": { + "_posts_v_version_blocks_in_content_parent_id_fk": { + "name": "_posts_v_version_blocks_in_content_parent_id_fk", + "tableFrom": "_posts_v_version_blocks_in_content", + "tableTo": "_posts_v", + "columnsFrom": ["_parent_id"], + "columnsTo": ["id"], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "_posts_v": { + "name": "_posts_v", + "columns": { + "id": { + "name": "id", + "type": "integer", + "primaryKey": true, + "notNull": true, + "autoincrement": false + }, + "parent_id": { + "name": "parent_id", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "version_tenant_id": { + "name": "version_tenant_id", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "version_title": { + "name": "version_title", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "version_featured_image_id": { + "name": "version_featured_image_id", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "version_description": { + "name": "version_description", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "version_content": { + "name": "version_content", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "version_show_authors": { + "name": "version_show_authors", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false, + "default": false + }, + "version_published_at": { + "name": "version_published_at", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "version_show_date": { + "name": "version_show_date", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false, + "default": true + }, + "version_slug": { + "name": "version_slug", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "version_content_hash": { + "name": "version_content_hash", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "version_updated_at": { + "name": "version_updated_at", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "version_created_at": { + "name": "version_created_at", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "version__status": { + "name": "version__status", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false, + "default": "'draft'" + }, + "created_at": { + "name": "created_at", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false, + "default": "(strftime('%Y-%m-%dT%H:%M:%fZ', 'now'))" + }, + "updated_at": { + "name": "updated_at", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false, + "default": "(strftime('%Y-%m-%dT%H:%M:%fZ', 'now'))" + }, + "latest": { + "name": "latest", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "autosave": { + "name": "autosave", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + } + }, + "indexes": { + "_posts_v_parent_idx": { + "name": "_posts_v_parent_idx", + "columns": ["parent_id"], + "isUnique": false + }, + "_posts_v_version_version_tenant_idx": { + "name": "_posts_v_version_version_tenant_idx", + "columns": ["version_tenant_id"], + "isUnique": false + }, + "_posts_v_version_version_featured_image_idx": { + "name": "_posts_v_version_version_featured_image_idx", + "columns": ["version_featured_image_id"], + "isUnique": false + }, + "_posts_v_version_version_slug_idx": { + "name": "_posts_v_version_version_slug_idx", + "columns": ["version_slug"], + "isUnique": false + }, + "_posts_v_version_version_updated_at_idx": { + "name": "_posts_v_version_version_updated_at_idx", + "columns": ["version_updated_at"], + "isUnique": false + }, + "_posts_v_version_version_created_at_idx": { + "name": "_posts_v_version_version_created_at_idx", + "columns": ["version_created_at"], + "isUnique": false + }, + "_posts_v_version_version__status_idx": { + "name": "_posts_v_version_version__status_idx", + "columns": ["version__status"], + "isUnique": false + }, + "_posts_v_created_at_idx": { + "name": "_posts_v_created_at_idx", + "columns": ["created_at"], + "isUnique": false + }, + "_posts_v_updated_at_idx": { + "name": "_posts_v_updated_at_idx", + "columns": ["updated_at"], + "isUnique": false + }, + "_posts_v_latest_idx": { + "name": "_posts_v_latest_idx", + "columns": ["latest"], + "isUnique": false + }, + "_posts_v_autosave_idx": { + "name": "_posts_v_autosave_idx", + "columns": ["autosave"], + "isUnique": false + } + }, + "foreignKeys": { + "_posts_v_parent_id_posts_id_fk": { + "name": "_posts_v_parent_id_posts_id_fk", + "tableFrom": "_posts_v", + "tableTo": "posts", + "columnsFrom": ["parent_id"], + "columnsTo": ["id"], + "onDelete": "set null", + "onUpdate": "no action" + }, + "_posts_v_version_tenant_id_tenants_id_fk": { + "name": "_posts_v_version_tenant_id_tenants_id_fk", + "tableFrom": "_posts_v", + "tableTo": "tenants", + "columnsFrom": ["version_tenant_id"], + "columnsTo": ["id"], + "onDelete": "set null", + "onUpdate": "no action" + }, + "_posts_v_version_featured_image_id_media_id_fk": { + "name": "_posts_v_version_featured_image_id_media_id_fk", + "tableFrom": "_posts_v", + "tableTo": "media", + "columnsFrom": ["version_featured_image_id"], + "columnsTo": ["id"], + "onDelete": "set null", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "_posts_v_rels": { + "name": "_posts_v_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 + }, + "biographies_id": { + "name": "biographies_id", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "tags_id": { + "name": "tags_id", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "posts_id": { + "name": "posts_id", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + } + }, + "indexes": { + "_posts_v_rels_order_idx": { + "name": "_posts_v_rels_order_idx", + "columns": ["order"], + "isUnique": false + }, + "_posts_v_rels_parent_idx": { + "name": "_posts_v_rels_parent_idx", + "columns": ["parent_id"], + "isUnique": false + }, + "_posts_v_rels_path_idx": { + "name": "_posts_v_rels_path_idx", + "columns": ["path"], + "isUnique": false + }, + "_posts_v_rels_biographies_id_idx": { + "name": "_posts_v_rels_biographies_id_idx", + "columns": ["biographies_id"], + "isUnique": false + }, + "_posts_v_rels_tags_id_idx": { + "name": "_posts_v_rels_tags_id_idx", + "columns": ["tags_id"], + "isUnique": false + }, + "_posts_v_rels_posts_id_idx": { + "name": "_posts_v_rels_posts_id_idx", + "columns": ["posts_id"], + "isUnique": false + } + }, + "foreignKeys": { + "_posts_v_rels_parent_1_idx": { + "name": "_posts_v_rels_parent_1_idx", + "tableFrom": "_posts_v_rels", + "tableTo": "_posts_v", + "columnsFrom": ["parent_id"], + "columnsTo": ["id"], + "onDelete": "cascade", + "onUpdate": "no action" + }, + "_posts_v_rels_biographies_fk": { + "name": "_posts_v_rels_biographies_fk", + "tableFrom": "_posts_v_rels", + "tableTo": "biographies", + "columnsFrom": ["biographies_id"], + "columnsTo": ["id"], + "onDelete": "cascade", + "onUpdate": "no action" + }, + "_posts_v_rels_tags_fk": { + "name": "_posts_v_rels_tags_fk", + "tableFrom": "_posts_v_rels", + "tableTo": "tags", + "columnsFrom": ["tags_id"], + "columnsTo": ["id"], + "onDelete": "cascade", + "onUpdate": "no action" + }, + "_posts_v_rels_posts_fk": { + "name": "_posts_v_rels_posts_fk", + "tableFrom": "_posts_v_rels", + "tableTo": "posts", + "columnsFrom": ["posts_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 + }, + "tenant_id": { + "name": "tenant_id", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "alt": { + "name": "alt", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "content_hash": { + "name": "content_hash", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "blur_data_url": { + "name": "blur_data_url", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "prefix": { + "name": "prefix", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false, + "default": "'local'" + }, + "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_thumbnail_url": { + "name": "sizes_thumbnail_url", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "sizes_thumbnail_width": { + "name": "sizes_thumbnail_width", + "type": "numeric", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "sizes_thumbnail_height": { + "name": "sizes_thumbnail_height", + "type": "numeric", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "sizes_thumbnail_mime_type": { + "name": "sizes_thumbnail_mime_type", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "sizes_thumbnail_filesize": { + "name": "sizes_thumbnail_filesize", + "type": "numeric", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "sizes_thumbnail_filename": { + "name": "sizes_thumbnail_filename", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "sizes_square_url": { + "name": "sizes_square_url", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "sizes_square_width": { + "name": "sizes_square_width", + "type": "numeric", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "sizes_square_height": { + "name": "sizes_square_height", + "type": "numeric", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "sizes_square_mime_type": { + "name": "sizes_square_mime_type", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "sizes_square_filesize": { + "name": "sizes_square_filesize", + "type": "numeric", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "sizes_square_filename": { + "name": "sizes_square_filename", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "sizes_small_url": { + "name": "sizes_small_url", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "sizes_small_width": { + "name": "sizes_small_width", + "type": "numeric", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "sizes_small_height": { + "name": "sizes_small_height", + "type": "numeric", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "sizes_small_mime_type": { + "name": "sizes_small_mime_type", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "sizes_small_filesize": { + "name": "sizes_small_filesize", + "type": "numeric", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "sizes_small_filename": { + "name": "sizes_small_filename", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "sizes_medium_url": { + "name": "sizes_medium_url", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "sizes_medium_width": { + "name": "sizes_medium_width", + "type": "numeric", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "sizes_medium_height": { + "name": "sizes_medium_height", + "type": "numeric", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "sizes_medium_mime_type": { + "name": "sizes_medium_mime_type", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "sizes_medium_filesize": { + "name": "sizes_medium_filesize", + "type": "numeric", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "sizes_medium_filename": { + "name": "sizes_medium_filename", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "sizes_large_url": { + "name": "sizes_large_url", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "sizes_large_width": { + "name": "sizes_large_width", + "type": "numeric", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "sizes_large_height": { + "name": "sizes_large_height", + "type": "numeric", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "sizes_large_mime_type": { + "name": "sizes_large_mime_type", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "sizes_large_filesize": { + "name": "sizes_large_filesize", + "type": "numeric", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "sizes_large_filename": { + "name": "sizes_large_filename", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "sizes_xlarge_url": { + "name": "sizes_xlarge_url", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "sizes_xlarge_width": { + "name": "sizes_xlarge_width", + "type": "numeric", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "sizes_xlarge_height": { + "name": "sizes_xlarge_height", + "type": "numeric", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "sizes_xlarge_mime_type": { + "name": "sizes_xlarge_mime_type", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "sizes_xlarge_filesize": { + "name": "sizes_xlarge_filesize", + "type": "numeric", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "sizes_xlarge_filename": { + "name": "sizes_xlarge_filename", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "sizes_og_url": { + "name": "sizes_og_url", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "sizes_og_width": { + "name": "sizes_og_width", + "type": "numeric", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "sizes_og_height": { + "name": "sizes_og_height", + "type": "numeric", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "sizes_og_mime_type": { + "name": "sizes_og_mime_type", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "sizes_og_filesize": { + "name": "sizes_og_filesize", + "type": "numeric", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "sizes_og_filename": { + "name": "sizes_og_filename", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + } + }, + "indexes": { + "media_tenant_idx": { + "name": "media_tenant_idx", + "columns": ["tenant_id"], + "isUnique": false + }, + "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_thumbnail_sizes_thumbnail_filename_idx": { + "name": "media_sizes_thumbnail_sizes_thumbnail_filename_idx", + "columns": ["sizes_thumbnail_filename"], + "isUnique": false + }, + "media_sizes_square_sizes_square_filename_idx": { + "name": "media_sizes_square_sizes_square_filename_idx", + "columns": ["sizes_square_filename"], + "isUnique": false + }, + "media_sizes_small_sizes_small_filename_idx": { + "name": "media_sizes_small_sizes_small_filename_idx", + "columns": ["sizes_small_filename"], + "isUnique": false + }, + "media_sizes_medium_sizes_medium_filename_idx": { + "name": "media_sizes_medium_sizes_medium_filename_idx", + "columns": ["sizes_medium_filename"], + "isUnique": false + }, + "media_sizes_large_sizes_large_filename_idx": { + "name": "media_sizes_large_sizes_large_filename_idx", + "columns": ["sizes_large_filename"], + "isUnique": false + }, + "media_sizes_xlarge_sizes_xlarge_filename_idx": { + "name": "media_sizes_xlarge_sizes_xlarge_filename_idx", + "columns": ["sizes_xlarge_filename"], + "isUnique": false + }, + "media_sizes_og_sizes_og_filename_idx": { + "name": "media_sizes_og_sizes_og_filename_idx", + "columns": ["sizes_og_filename"], + "isUnique": false + } + }, + "foreignKeys": { + "media_tenant_id_tenants_id_fk": { + "name": "media_tenant_id_tenants_id_fk", + "tableFrom": "media", + "tableTo": "tenants", + "columnsFrom": ["tenant_id"], + "columnsTo": ["id"], + "onDelete": "set null", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "documents": { + "name": "documents", + "columns": { + "id": { + "name": "id", + "type": "integer", + "primaryKey": true, + "notNull": true, + "autoincrement": false + }, + "tenant_id": { + "name": "tenant_id", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "content_hash": { + "name": "content_hash", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "prefix": { + "name": "prefix", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false, + "default": "'local'" + }, + "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": { + "documents_tenant_idx": { + "name": "documents_tenant_idx", + "columns": ["tenant_id"], + "isUnique": false + }, + "documents_updated_at_idx": { + "name": "documents_updated_at_idx", + "columns": ["updated_at"], + "isUnique": false + }, + "documents_created_at_idx": { + "name": "documents_created_at_idx", + "columns": ["created_at"], + "isUnique": false + }, + "documents_filename_idx": { + "name": "documents_filename_idx", + "columns": ["filename"], + "isUnique": true + } + }, + "foreignKeys": { + "documents_tenant_id_tenants_id_fk": { + "name": "documents_tenant_id_tenants_id_fk", + "tableFrom": "documents", + "tableTo": "tenants", + "columnsFrom": ["tenant_id"], + "columnsTo": ["id"], + "onDelete": "set null", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "sponsors": { + "name": "sponsors", + "columns": { + "id": { + "name": "id", + "type": "integer", + "primaryKey": true, + "notNull": true, + "autoincrement": false + }, + "tenant_id": { + "name": "tenant_id", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "name": { + "name": "name", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "photo_id": { + "name": "photo_id", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "link": { + "name": "link", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "start_date": { + "name": "start_date", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "end_date": { + "name": "end_date", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "content_hash": { + "name": "content_hash", + "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": { + "sponsors_tenant_idx": { + "name": "sponsors_tenant_idx", + "columns": ["tenant_id"], + "isUnique": false + }, + "sponsors_photo_idx": { + "name": "sponsors_photo_idx", + "columns": ["photo_id"], + "isUnique": false + }, + "sponsors_updated_at_idx": { + "name": "sponsors_updated_at_idx", + "columns": ["updated_at"], + "isUnique": false + }, + "sponsors_created_at_idx": { + "name": "sponsors_created_at_idx", + "columns": ["created_at"], + "isUnique": false + } + }, + "foreignKeys": { + "sponsors_tenant_id_tenants_id_fk": { + "name": "sponsors_tenant_id_tenants_id_fk", + "tableFrom": "sponsors", + "tableTo": "tenants", + "columnsFrom": ["tenant_id"], + "columnsTo": ["id"], + "onDelete": "set null", + "onUpdate": "no action" + }, + "sponsors_photo_id_media_id_fk": { + "name": "sponsors_photo_id_media_id_fk", + "tableFrom": "sponsors", + "tableTo": "media", + "columnsFrom": ["photo_id"], + "columnsTo": ["id"], + "onDelete": "set null", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "tags": { + "name": "tags", + "columns": { + "id": { + "name": "id", + "type": "integer", + "primaryKey": true, + "notNull": true, + "autoincrement": false + }, + "tenant_id": { + "name": "tenant_id", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "title": { + "name": "title", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "slug": { + "name": "slug", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "content_hash": { + "name": "content_hash", + "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": { + "tags_tenant_idx": { + "name": "tags_tenant_idx", + "columns": ["tenant_id"], + "isUnique": false + }, + "tags_slug_idx": { + "name": "tags_slug_idx", + "columns": ["slug"], + "isUnique": false + }, + "tags_updated_at_idx": { + "name": "tags_updated_at_idx", + "columns": ["updated_at"], + "isUnique": false + }, + "tags_created_at_idx": { + "name": "tags_created_at_idx", + "columns": ["created_at"], + "isUnique": false + } + }, + "foreignKeys": { + "tags_tenant_id_tenants_id_fk": { + "name": "tags_tenant_id_tenants_id_fk", + "tableFrom": "tags", + "tableTo": "tenants", + "columnsFrom": ["tenant_id"], + "columnsTo": ["id"], + "onDelete": "set null", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "biographies": { + "name": "biographies", + "columns": { + "id": { + "name": "id", + "type": "integer", + "primaryKey": true, + "notNull": true, + "autoincrement": false + }, + "tenant_id": { + "name": "tenant_id", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "name": { + "name": "name", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "photo_id": { + "name": "photo_id", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "title": { + "name": "title", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "start_date": { + "name": "start_date", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "biography": { + "name": "biography", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "content_hash": { + "name": "content_hash", + "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": { + "biographies_tenant_idx": { + "name": "biographies_tenant_idx", + "columns": ["tenant_id"], + "isUnique": false + }, + "biographies_photo_idx": { + "name": "biographies_photo_idx", + "columns": ["photo_id"], + "isUnique": false + }, + "biographies_updated_at_idx": { + "name": "biographies_updated_at_idx", + "columns": ["updated_at"], + "isUnique": false + }, + "biographies_created_at_idx": { + "name": "biographies_created_at_idx", + "columns": ["created_at"], + "isUnique": false + } + }, + "foreignKeys": { + "biographies_tenant_id_tenants_id_fk": { + "name": "biographies_tenant_id_tenants_id_fk", + "tableFrom": "biographies", + "tableTo": "tenants", + "columnsFrom": ["tenant_id"], + "columnsTo": ["id"], + "onDelete": "set null", + "onUpdate": "no action" + }, + "biographies_photo_id_media_id_fk": { + "name": "biographies_photo_id_media_id_fk", + "tableFrom": "biographies", + "tableTo": "media", + "columnsFrom": ["photo_id"], + "columnsTo": ["id"], + "onDelete": "set null", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "teams": { + "name": "teams", + "columns": { + "id": { + "name": "id", + "type": "integer", + "primaryKey": true, + "notNull": true, + "autoincrement": false + }, + "tenant_id": { + "name": "tenant_id", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "name": { + "name": "name", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "content_hash": { + "name": "content_hash", + "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": { + "teams_tenant_idx": { + "name": "teams_tenant_idx", + "columns": ["tenant_id"], + "isUnique": false + }, + "teams_updated_at_idx": { + "name": "teams_updated_at_idx", + "columns": ["updated_at"], + "isUnique": false + }, + "teams_created_at_idx": { + "name": "teams_created_at_idx", + "columns": ["created_at"], + "isUnique": false + } + }, + "foreignKeys": { + "teams_tenant_id_tenants_id_fk": { + "name": "teams_tenant_id_tenants_id_fk", + "tableFrom": "teams", + "tableTo": "tenants", + "columnsFrom": ["tenant_id"], + "columnsTo": ["id"], + "onDelete": "set null", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "teams_rels": { + "name": "teams_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 + }, + "biographies_id": { + "name": "biographies_id", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + } + }, + "indexes": { + "teams_rels_order_idx": { + "name": "teams_rels_order_idx", + "columns": ["order"], + "isUnique": false + }, + "teams_rels_parent_idx": { + "name": "teams_rels_parent_idx", + "columns": ["parent_id"], + "isUnique": false + }, + "teams_rels_path_idx": { + "name": "teams_rels_path_idx", + "columns": ["path"], + "isUnique": false + }, + "teams_rels_biographies_id_idx": { + "name": "teams_rels_biographies_id_idx", + "columns": ["biographies_id"], + "isUnique": false + } + }, + "foreignKeys": { + "teams_rels_parent_1_idx": { + "name": "teams_rels_parent_1_idx", + "tableFrom": "teams_rels", + "tableTo": "teams", + "columnsFrom": ["parent_id"], + "columnsTo": ["id"], + "onDelete": "cascade", + "onUpdate": "no action" + }, + "teams_rels_biographies_fk": { + "name": "teams_rels_biographies_fk", + "tableFrom": "teams_rels", + "tableTo": "biographies", + "columnsFrom": ["biographies_id"], + "columnsTo": ["id"], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "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 + }, + "name": { + "name": "name", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "invite_token": { + "name": "invite_token", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "invite_expiration": { + "name": "invite_expiration", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "last_login": { + "name": "last_login", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "content_hash": { + "name": "content_hash", + "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_name_idx": { + "name": "users_name_idx", + "columns": ["name"], + "isUnique": false + }, + "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": {} + }, + "roles_rules_actions": { + "name": "roles_rules_actions", + "columns": { + "order": { + "name": "order", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "parent_id": { + "name": "parent_id", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "value": { + "name": "value", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "id": { + "name": "id", + "type": "integer", + "primaryKey": true, + "notNull": true, + "autoincrement": false + } + }, + "indexes": { + "roles_rules_actions_order_idx": { + "name": "roles_rules_actions_order_idx", + "columns": ["order"], + "isUnique": false + }, + "roles_rules_actions_parent_idx": { + "name": "roles_rules_actions_parent_idx", + "columns": ["parent_id"], + "isUnique": false + } + }, + "foreignKeys": { + "roles_rules_actions_parent_fk": { + "name": "roles_rules_actions_parent_fk", + "tableFrom": "roles_rules_actions", + "tableTo": "roles_rules", + "columnsFrom": ["parent_id"], + "columnsTo": ["id"], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "roles_rules": { + "name": "roles_rules", + "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": { + "roles_rules_order_idx": { + "name": "roles_rules_order_idx", + "columns": ["_order"], + "isUnique": false + }, + "roles_rules_parent_id_idx": { + "name": "roles_rules_parent_id_idx", + "columns": ["_parent_id"], + "isUnique": false + } + }, + "foreignKeys": { + "roles_rules_parent_id_fk": { + "name": "roles_rules_parent_id_fk", + "tableFrom": "roles_rules", + "tableTo": "roles", + "columnsFrom": ["_parent_id"], + "columnsTo": ["id"], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "roles": { + "name": "roles", + "columns": { + "id": { + "name": "id", + "type": "integer", + "primaryKey": true, + "notNull": true, + "autoincrement": false + }, + "name": { + "name": "name", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "content_hash": { + "name": "content_hash", + "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": { + "roles_name_idx": { + "name": "roles_name_idx", + "columns": ["name"], + "isUnique": true + }, + "roles_updated_at_idx": { + "name": "roles_updated_at_idx", + "columns": ["updated_at"], + "isUnique": false + }, + "roles_created_at_idx": { + "name": "roles_created_at_idx", + "columns": ["created_at"], + "isUnique": false + } + }, + "foreignKeys": {}, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "roles_texts": { + "name": "roles_texts", + "columns": { + "id": { + "name": "id", + "type": "integer", + "primaryKey": true, + "notNull": true, + "autoincrement": false + }, + "order": { + "name": "order", + "type": "integer", + "primaryKey": false, + "notNull": true, + "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 + }, + "text": { + "name": "text", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + } + }, + "indexes": { + "roles_texts_order_parent": { + "name": "roles_texts_order_parent", + "columns": ["order", "parent_id"], + "isUnique": false + } + }, + "foreignKeys": { + "roles_texts_parent_fk": { + "name": "roles_texts_parent_fk", + "tableFrom": "roles_texts", + "tableTo": "roles", + "columnsFrom": ["parent_id"], + "columnsTo": ["id"], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "role_assignments": { + "name": "role_assignments", + "columns": { + "id": { + "name": "id", + "type": "integer", + "primaryKey": true, + "notNull": true, + "autoincrement": false + }, + "tenant_id": { + "name": "tenant_id", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "role_id": { + "name": "role_id", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "user_id": { + "name": "user_id", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "content_hash": { + "name": "content_hash", + "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": { + "role_assignments_tenant_idx": { + "name": "role_assignments_tenant_idx", + "columns": ["tenant_id"], + "isUnique": false + }, + "role_assignments_role_idx": { + "name": "role_assignments_role_idx", + "columns": ["role_id"], + "isUnique": false + }, + "role_assignments_user_idx": { + "name": "role_assignments_user_idx", + "columns": ["user_id"], + "isUnique": false + }, + "role_assignments_updated_at_idx": { + "name": "role_assignments_updated_at_idx", + "columns": ["updated_at"], + "isUnique": false + }, + "role_assignments_created_at_idx": { + "name": "role_assignments_created_at_idx", + "columns": ["created_at"], + "isUnique": false + } + }, + "foreignKeys": { + "role_assignments_tenant_id_tenants_id_fk": { + "name": "role_assignments_tenant_id_tenants_id_fk", + "tableFrom": "role_assignments", + "tableTo": "tenants", + "columnsFrom": ["tenant_id"], + "columnsTo": ["id"], + "onDelete": "set null", + "onUpdate": "no action" + }, + "role_assignments_role_id_roles_id_fk": { + "name": "role_assignments_role_id_roles_id_fk", + "tableFrom": "role_assignments", + "tableTo": "roles", + "columnsFrom": ["role_id"], + "columnsTo": ["id"], + "onDelete": "set null", + "onUpdate": "no action" + }, + "role_assignments_user_id_users_id_fk": { + "name": "role_assignments_user_id_users_id_fk", + "tableFrom": "role_assignments", + "tableTo": "users", + "columnsFrom": ["user_id"], + "columnsTo": ["id"], + "onDelete": "set null", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "global_roles_rules_actions": { + "name": "global_roles_rules_actions", + "columns": { + "order": { + "name": "order", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "parent_id": { + "name": "parent_id", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "value": { + "name": "value", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "id": { + "name": "id", + "type": "integer", + "primaryKey": true, + "notNull": true, + "autoincrement": false + } + }, + "indexes": { + "global_roles_rules_actions_order_idx": { + "name": "global_roles_rules_actions_order_idx", + "columns": ["order"], + "isUnique": false + }, + "global_roles_rules_actions_parent_idx": { + "name": "global_roles_rules_actions_parent_idx", + "columns": ["parent_id"], + "isUnique": false + } + }, + "foreignKeys": { + "global_roles_rules_actions_parent_fk": { + "name": "global_roles_rules_actions_parent_fk", + "tableFrom": "global_roles_rules_actions", + "tableTo": "global_roles_rules", + "columnsFrom": ["parent_id"], + "columnsTo": ["id"], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "global_roles_rules": { + "name": "global_roles_rules", + "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": { + "global_roles_rules_order_idx": { + "name": "global_roles_rules_order_idx", + "columns": ["_order"], + "isUnique": false + }, + "global_roles_rules_parent_id_idx": { + "name": "global_roles_rules_parent_id_idx", + "columns": ["_parent_id"], + "isUnique": false + } + }, + "foreignKeys": { + "global_roles_rules_parent_id_fk": { + "name": "global_roles_rules_parent_id_fk", + "tableFrom": "global_roles_rules", + "tableTo": "global_roles", + "columnsFrom": ["_parent_id"], + "columnsTo": ["id"], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "global_roles": { + "name": "global_roles", + "columns": { + "id": { + "name": "id", + "type": "integer", + "primaryKey": true, + "notNull": true, + "autoincrement": false + }, + "name": { + "name": "name", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "content_hash": { + "name": "content_hash", + "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": { + "global_roles_name_idx": { + "name": "global_roles_name_idx", + "columns": ["name"], + "isUnique": true + }, + "global_roles_updated_at_idx": { + "name": "global_roles_updated_at_idx", + "columns": ["updated_at"], + "isUnique": false + }, + "global_roles_created_at_idx": { + "name": "global_roles_created_at_idx", + "columns": ["created_at"], + "isUnique": false + } + }, + "foreignKeys": {}, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "global_roles_texts": { + "name": "global_roles_texts", + "columns": { + "id": { + "name": "id", + "type": "integer", + "primaryKey": true, + "notNull": true, + "autoincrement": false + }, + "order": { + "name": "order", + "type": "integer", + "primaryKey": false, + "notNull": true, + "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 + }, + "text": { + "name": "text", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + } + }, + "indexes": { + "global_roles_texts_order_parent": { + "name": "global_roles_texts_order_parent", + "columns": ["order", "parent_id"], + "isUnique": false + } + }, + "foreignKeys": { + "global_roles_texts_parent_fk": { + "name": "global_roles_texts_parent_fk", + "tableFrom": "global_roles_texts", + "tableTo": "global_roles", + "columnsFrom": ["parent_id"], + "columnsTo": ["id"], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "global_role_assignments": { + "name": "global_role_assignments", + "columns": { + "id": { + "name": "id", + "type": "integer", + "primaryKey": true, + "notNull": true, + "autoincrement": false + }, + "global_role_id": { + "name": "global_role_id", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "user_id": { + "name": "user_id", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "content_hash": { + "name": "content_hash", + "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": { + "global_role_assignments_global_role_idx": { + "name": "global_role_assignments_global_role_idx", + "columns": ["global_role_id"], + "isUnique": false + }, + "global_role_assignments_user_idx": { + "name": "global_role_assignments_user_idx", + "columns": ["user_id"], + "isUnique": false + }, + "global_role_assignments_updated_at_idx": { + "name": "global_role_assignments_updated_at_idx", + "columns": ["updated_at"], + "isUnique": false + }, + "global_role_assignments_created_at_idx": { + "name": "global_role_assignments_created_at_idx", + "columns": ["created_at"], + "isUnique": false + } + }, + "foreignKeys": { + "global_role_assignments_global_role_id_global_roles_id_fk": { + "name": "global_role_assignments_global_role_id_global_roles_id_fk", + "tableFrom": "global_role_assignments", + "tableTo": "global_roles", + "columnsFrom": ["global_role_id"], + "columnsTo": ["id"], + "onDelete": "set null", + "onUpdate": "no action" + }, + "global_role_assignments_user_id_users_id_fk": { + "name": "global_role_assignments_user_id_users_id_fk", + "tableFrom": "global_role_assignments", + "tableTo": "users", + "columnsFrom": ["user_id"], + "columnsTo": ["id"], + "onDelete": "set null", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "tenants": { + "name": "tenants", + "columns": { + "id": { + "name": "id", + "type": "integer", + "primaryKey": true, + "notNull": true, + "autoincrement": false + }, + "name": { + "name": "name", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "custom_domain": { + "name": "custom_domain", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "slug": { + "name": "slug", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "content_hash": { + "name": "content_hash", + "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": { + "tenants_slug_idx": { + "name": "tenants_slug_idx", + "columns": ["slug"], + "isUnique": true + }, + "tenants_updated_at_idx": { + "name": "tenants_updated_at_idx", + "columns": ["updated_at"], + "isUnique": false + }, + "tenants_created_at_idx": { + "name": "tenants_created_at_idx", + "columns": ["created_at"], + "isUnique": false + } + }, + "foreignKeys": {}, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "navigations_weather_items_items": { + "name": "navigations_weather_items_items", + "columns": { + "_order": { + "name": "_order", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "_parent_id": { + "name": "_parent_id", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "id": { + "name": "id", + "type": "text", + "primaryKey": true, + "notNull": true, + "autoincrement": false + }, + "link_type": { + "name": "link_type", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false, + "default": "'internal'" + }, + "link_url": { + "name": "link_url", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "link_label": { + "name": "link_label", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "link_new_tab": { + "name": "link_new_tab", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false, + "default": true + } + }, + "indexes": { + "navigations_weather_items_items_order_idx": { + "name": "navigations_weather_items_items_order_idx", + "columns": ["_order"], + "isUnique": false + }, + "navigations_weather_items_items_parent_id_idx": { + "name": "navigations_weather_items_items_parent_id_idx", + "columns": ["_parent_id"], + "isUnique": false + } + }, + "foreignKeys": { + "navigations_weather_items_items_parent_id_fk": { + "name": "navigations_weather_items_items_parent_id_fk", + "tableFrom": "navigations_weather_items_items", + "tableTo": "navigations_weather_items", + "columnsFrom": ["_parent_id"], + "columnsTo": ["id"], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "navigations_weather_items": { + "name": "navigations_weather_items", + "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 + }, + "link_type": { + "name": "link_type", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false, + "default": "'internal'" + }, + "link_url": { + "name": "link_url", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "link_label": { + "name": "link_label", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "link_new_tab": { + "name": "link_new_tab", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false, + "default": true + } + }, + "indexes": { + "navigations_weather_items_order_idx": { + "name": "navigations_weather_items_order_idx", + "columns": ["_order"], + "isUnique": false + }, + "navigations_weather_items_parent_id_idx": { + "name": "navigations_weather_items_parent_id_idx", + "columns": ["_parent_id"], + "isUnique": false + } + }, + "foreignKeys": { + "navigations_weather_items_parent_id_fk": { + "name": "navigations_weather_items_parent_id_fk", + "tableFrom": "navigations_weather_items", + "tableTo": "navigations", + "columnsFrom": ["_parent_id"], + "columnsTo": ["id"], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "navigations_education_items_items": { + "name": "navigations_education_items_items", + "columns": { + "_order": { + "name": "_order", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "_parent_id": { + "name": "_parent_id", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "id": { + "name": "id", + "type": "text", + "primaryKey": true, + "notNull": true, + "autoincrement": false + }, + "link_type": { + "name": "link_type", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false, + "default": "'internal'" + }, + "link_url": { + "name": "link_url", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "link_label": { + "name": "link_label", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "link_new_tab": { + "name": "link_new_tab", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false, + "default": true + } + }, + "indexes": { + "navigations_education_items_items_order_idx": { + "name": "navigations_education_items_items_order_idx", + "columns": ["_order"], + "isUnique": false + }, + "navigations_education_items_items_parent_id_idx": { + "name": "navigations_education_items_items_parent_id_idx", + "columns": ["_parent_id"], + "isUnique": false + } + }, + "foreignKeys": { + "navigations_education_items_items_parent_id_fk": { + "name": "navigations_education_items_items_parent_id_fk", + "tableFrom": "navigations_education_items_items", + "tableTo": "navigations_education_items", + "columnsFrom": ["_parent_id"], + "columnsTo": ["id"], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "navigations_education_items": { + "name": "navigations_education_items", + "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 + }, + "link_type": { + "name": "link_type", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false, + "default": "'internal'" + }, + "link_url": { + "name": "link_url", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "link_label": { + "name": "link_label", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "link_new_tab": { + "name": "link_new_tab", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false, + "default": true + } + }, + "indexes": { + "navigations_education_items_order_idx": { + "name": "navigations_education_items_order_idx", + "columns": ["_order"], + "isUnique": false + }, + "navigations_education_items_parent_id_idx": { + "name": "navigations_education_items_parent_id_idx", + "columns": ["_parent_id"], + "isUnique": false + } + }, + "foreignKeys": { + "navigations_education_items_parent_id_fk": { + "name": "navigations_education_items_parent_id_fk", + "tableFrom": "navigations_education_items", + "tableTo": "navigations", + "columnsFrom": ["_parent_id"], + "columnsTo": ["id"], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "navigations_accidents_items_items": { + "name": "navigations_accidents_items_items", + "columns": { + "_order": { + "name": "_order", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "_parent_id": { + "name": "_parent_id", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "id": { + "name": "id", + "type": "text", + "primaryKey": true, + "notNull": true, + "autoincrement": false + }, + "link_type": { + "name": "link_type", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false, + "default": "'internal'" + }, + "link_url": { + "name": "link_url", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "link_label": { + "name": "link_label", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "link_new_tab": { + "name": "link_new_tab", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false, + "default": true + } + }, + "indexes": { + "navigations_accidents_items_items_order_idx": { + "name": "navigations_accidents_items_items_order_idx", + "columns": ["_order"], + "isUnique": false + }, + "navigations_accidents_items_items_parent_id_idx": { + "name": "navigations_accidents_items_items_parent_id_idx", + "columns": ["_parent_id"], + "isUnique": false + } + }, + "foreignKeys": { + "navigations_accidents_items_items_parent_id_fk": { + "name": "navigations_accidents_items_items_parent_id_fk", + "tableFrom": "navigations_accidents_items_items", + "tableTo": "navigations_accidents_items", + "columnsFrom": ["_parent_id"], + "columnsTo": ["id"], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "navigations_accidents_items": { + "name": "navigations_accidents_items", + "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 + }, + "link_type": { + "name": "link_type", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false, + "default": "'internal'" + }, + "link_url": { + "name": "link_url", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "link_label": { + "name": "link_label", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "link_new_tab": { + "name": "link_new_tab", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false, + "default": true + } + }, + "indexes": { + "navigations_accidents_items_order_idx": { + "name": "navigations_accidents_items_order_idx", + "columns": ["_order"], + "isUnique": false + }, + "navigations_accidents_items_parent_id_idx": { + "name": "navigations_accidents_items_parent_id_idx", + "columns": ["_parent_id"], + "isUnique": false + } + }, + "foreignKeys": { + "navigations_accidents_items_parent_id_fk": { + "name": "navigations_accidents_items_parent_id_fk", + "tableFrom": "navigations_accidents_items", + "tableTo": "navigations", + "columnsFrom": ["_parent_id"], + "columnsTo": ["id"], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "navigations_blog_items_items": { + "name": "navigations_blog_items_items", + "columns": { + "_order": { + "name": "_order", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "_parent_id": { + "name": "_parent_id", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "id": { + "name": "id", + "type": "text", + "primaryKey": true, + "notNull": true, + "autoincrement": false + }, + "link_type": { + "name": "link_type", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false, + "default": "'internal'" + }, + "link_url": { + "name": "link_url", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "link_label": { + "name": "link_label", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "link_new_tab": { + "name": "link_new_tab", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false, + "default": true + } + }, + "indexes": { + "navigations_blog_items_items_order_idx": { + "name": "navigations_blog_items_items_order_idx", + "columns": ["_order"], + "isUnique": false + }, + "navigations_blog_items_items_parent_id_idx": { + "name": "navigations_blog_items_items_parent_id_idx", + "columns": ["_parent_id"], + "isUnique": false + } + }, + "foreignKeys": { + "navigations_blog_items_items_parent_id_fk": { + "name": "navigations_blog_items_items_parent_id_fk", + "tableFrom": "navigations_blog_items_items", + "tableTo": "navigations_blog_items", + "columnsFrom": ["_parent_id"], + "columnsTo": ["id"], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "navigations_blog_items": { + "name": "navigations_blog_items", + "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 + }, + "link_type": { + "name": "link_type", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false, + "default": "'internal'" + }, + "link_url": { + "name": "link_url", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "link_label": { + "name": "link_label", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "link_new_tab": { + "name": "link_new_tab", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false, + "default": true + } + }, + "indexes": { + "navigations_blog_items_order_idx": { + "name": "navigations_blog_items_order_idx", + "columns": ["_order"], + "isUnique": false + }, + "navigations_blog_items_parent_id_idx": { + "name": "navigations_blog_items_parent_id_idx", + "columns": ["_parent_id"], + "isUnique": false + } + }, + "foreignKeys": { + "navigations_blog_items_parent_id_fk": { + "name": "navigations_blog_items_parent_id_fk", + "tableFrom": "navigations_blog_items", + "tableTo": "navigations", + "columnsFrom": ["_parent_id"], + "columnsTo": ["id"], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "navigations_events_items_items": { + "name": "navigations_events_items_items", + "columns": { + "_order": { + "name": "_order", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "_parent_id": { + "name": "_parent_id", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "id": { + "name": "id", + "type": "text", + "primaryKey": true, + "notNull": true, + "autoincrement": false + }, + "link_type": { + "name": "link_type", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false, + "default": "'internal'" + }, + "link_url": { + "name": "link_url", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "link_label": { + "name": "link_label", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "link_new_tab": { + "name": "link_new_tab", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false, + "default": true + } + }, + "indexes": { + "navigations_events_items_items_order_idx": { + "name": "navigations_events_items_items_order_idx", + "columns": ["_order"], + "isUnique": false + }, + "navigations_events_items_items_parent_id_idx": { + "name": "navigations_events_items_items_parent_id_idx", + "columns": ["_parent_id"], + "isUnique": false + } + }, + "foreignKeys": { + "navigations_events_items_items_parent_id_fk": { + "name": "navigations_events_items_items_parent_id_fk", + "tableFrom": "navigations_events_items_items", + "tableTo": "navigations_events_items", + "columnsFrom": ["_parent_id"], + "columnsTo": ["id"], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "navigations_events_items": { + "name": "navigations_events_items", + "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 + }, + "link_type": { + "name": "link_type", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false, + "default": "'internal'" + }, + "link_url": { + "name": "link_url", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "link_label": { + "name": "link_label", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "link_new_tab": { + "name": "link_new_tab", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false, + "default": true + } + }, + "indexes": { + "navigations_events_items_order_idx": { + "name": "navigations_events_items_order_idx", + "columns": ["_order"], + "isUnique": false + }, + "navigations_events_items_parent_id_idx": { + "name": "navigations_events_items_parent_id_idx", + "columns": ["_parent_id"], + "isUnique": false + } + }, + "foreignKeys": { + "navigations_events_items_parent_id_fk": { + "name": "navigations_events_items_parent_id_fk", + "tableFrom": "navigations_events_items", + "tableTo": "navigations", + "columnsFrom": ["_parent_id"], + "columnsTo": ["id"], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "navigations_about_items_items": { + "name": "navigations_about_items_items", + "columns": { + "_order": { + "name": "_order", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "_parent_id": { + "name": "_parent_id", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "id": { + "name": "id", + "type": "text", + "primaryKey": true, + "notNull": true, + "autoincrement": false + }, + "link_type": { + "name": "link_type", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false, + "default": "'internal'" + }, + "link_url": { + "name": "link_url", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "link_label": { + "name": "link_label", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "link_new_tab": { + "name": "link_new_tab", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false, + "default": true + } + }, + "indexes": { + "navigations_about_items_items_order_idx": { + "name": "navigations_about_items_items_order_idx", + "columns": ["_order"], + "isUnique": false + }, + "navigations_about_items_items_parent_id_idx": { + "name": "navigations_about_items_items_parent_id_idx", + "columns": ["_parent_id"], + "isUnique": false + } + }, + "foreignKeys": { + "navigations_about_items_items_parent_id_fk": { + "name": "navigations_about_items_items_parent_id_fk", + "tableFrom": "navigations_about_items_items", + "tableTo": "navigations_about_items", + "columnsFrom": ["_parent_id"], + "columnsTo": ["id"], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "navigations_about_items": { + "name": "navigations_about_items", + "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 + }, + "link_type": { + "name": "link_type", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false, + "default": "'internal'" + }, + "link_url": { + "name": "link_url", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "link_label": { + "name": "link_label", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "link_new_tab": { + "name": "link_new_tab", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false, + "default": true + } + }, + "indexes": { + "navigations_about_items_order_idx": { + "name": "navigations_about_items_order_idx", + "columns": ["_order"], + "isUnique": false + }, + "navigations_about_items_parent_id_idx": { + "name": "navigations_about_items_parent_id_idx", + "columns": ["_parent_id"], + "isUnique": false + } + }, + "foreignKeys": { + "navigations_about_items_parent_id_fk": { + "name": "navigations_about_items_parent_id_fk", + "tableFrom": "navigations_about_items", + "tableTo": "navigations", + "columnsFrom": ["_parent_id"], + "columnsTo": ["id"], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "navigations_support_items_items": { + "name": "navigations_support_items_items", + "columns": { + "_order": { + "name": "_order", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "_parent_id": { + "name": "_parent_id", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "id": { + "name": "id", + "type": "text", + "primaryKey": true, + "notNull": true, + "autoincrement": false + }, + "link_type": { + "name": "link_type", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false, + "default": "'internal'" + }, + "link_url": { + "name": "link_url", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "link_label": { + "name": "link_label", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "link_new_tab": { + "name": "link_new_tab", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false, + "default": true + } + }, + "indexes": { + "navigations_support_items_items_order_idx": { + "name": "navigations_support_items_items_order_idx", + "columns": ["_order"], + "isUnique": false + }, + "navigations_support_items_items_parent_id_idx": { + "name": "navigations_support_items_items_parent_id_idx", + "columns": ["_parent_id"], + "isUnique": false + } + }, + "foreignKeys": { + "navigations_support_items_items_parent_id_fk": { + "name": "navigations_support_items_items_parent_id_fk", + "tableFrom": "navigations_support_items_items", + "tableTo": "navigations_support_items", + "columnsFrom": ["_parent_id"], + "columnsTo": ["id"], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "navigations_support_items": { + "name": "navigations_support_items", + "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 + }, + "link_type": { + "name": "link_type", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false, + "default": "'internal'" + }, + "link_url": { + "name": "link_url", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "link_label": { + "name": "link_label", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "link_new_tab": { + "name": "link_new_tab", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false, + "default": true + } + }, + "indexes": { + "navigations_support_items_order_idx": { + "name": "navigations_support_items_order_idx", + "columns": ["_order"], + "isUnique": false + }, + "navigations_support_items_parent_id_idx": { + "name": "navigations_support_items_parent_id_idx", + "columns": ["_parent_id"], + "isUnique": false + } + }, + "foreignKeys": { + "navigations_support_items_parent_id_fk": { + "name": "navigations_support_items_parent_id_fk", + "tableFrom": "navigations_support_items", + "tableTo": "navigations", + "columnsFrom": ["_parent_id"], + "columnsTo": ["id"], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "navigations": { + "name": "navigations", + "columns": { + "id": { + "name": "id", + "type": "integer", + "primaryKey": true, + "notNull": true, + "autoincrement": false + }, + "tenant_id": { + "name": "tenant_id", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "weather_options_enabled": { + "name": "weather_options_enabled", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false, + "default": true + }, + "education_options_enabled": { + "name": "education_options_enabled", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false, + "default": true + }, + "accidents_options_enabled": { + "name": "accidents_options_enabled", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false, + "default": true + }, + "blog_options_enabled": { + "name": "blog_options_enabled", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false, + "default": true + }, + "events_options_enabled": { + "name": "events_options_enabled", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false, + "default": true + }, + "about_options_enabled": { + "name": "about_options_enabled", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false, + "default": true + }, + "support_options_enabled": { + "name": "support_options_enabled", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false, + "default": true + }, + "donate_options_enabled": { + "name": "donate_options_enabled", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false, + "default": true + }, + "donate_link_type": { + "name": "donate_link_type", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false, + "default": "'internal'" + }, + "donate_link_url": { + "name": "donate_link_url", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "donate_link_label": { + "name": "donate_link_label", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "donate_link_new_tab": { + "name": "donate_link_new_tab", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false, + "default": true + }, + "content_hash": { + "name": "content_hash", + "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'))" + }, + "_status": { + "name": "_status", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false, + "default": "'draft'" + } + }, + "indexes": { + "navigations_tenant_idx": { + "name": "navigations_tenant_idx", + "columns": ["tenant_id"], + "isUnique": true + }, + "navigations_updated_at_idx": { + "name": "navigations_updated_at_idx", + "columns": ["updated_at"], + "isUnique": false + }, + "navigations_created_at_idx": { + "name": "navigations_created_at_idx", + "columns": ["created_at"], + "isUnique": false + }, + "navigations__status_idx": { + "name": "navigations__status_idx", + "columns": ["_status"], + "isUnique": false + } + }, + "foreignKeys": { + "navigations_tenant_id_tenants_id_fk": { + "name": "navigations_tenant_id_tenants_id_fk", + "tableFrom": "navigations", + "tableTo": "tenants", + "columnsFrom": ["tenant_id"], + "columnsTo": ["id"], + "onDelete": "set null", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "navigations_rels": { + "name": "navigations_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 + }, + "pages_id": { + "name": "pages_id", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "built_in_pages_id": { + "name": "built_in_pages_id", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "posts_id": { + "name": "posts_id", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + } + }, + "indexes": { + "navigations_rels_order_idx": { + "name": "navigations_rels_order_idx", + "columns": ["order"], + "isUnique": false + }, + "navigations_rels_parent_idx": { + "name": "navigations_rels_parent_idx", + "columns": ["parent_id"], + "isUnique": false + }, + "navigations_rels_path_idx": { + "name": "navigations_rels_path_idx", + "columns": ["path"], + "isUnique": false + }, + "navigations_rels_pages_id_idx": { + "name": "navigations_rels_pages_id_idx", + "columns": ["pages_id"], + "isUnique": false + }, + "navigations_rels_built_in_pages_id_idx": { + "name": "navigations_rels_built_in_pages_id_idx", + "columns": ["built_in_pages_id"], + "isUnique": false + }, + "navigations_rels_posts_id_idx": { + "name": "navigations_rels_posts_id_idx", + "columns": ["posts_id"], + "isUnique": false + } + }, + "foreignKeys": { + "navigations_rels_parent_1_idx": { + "name": "navigations_rels_parent_1_idx", + "tableFrom": "navigations_rels", + "tableTo": "navigations", + "columnsFrom": ["parent_id"], + "columnsTo": ["id"], + "onDelete": "cascade", + "onUpdate": "no action" + }, + "navigations_rels_pages_fk": { + "name": "navigations_rels_pages_fk", + "tableFrom": "navigations_rels", + "tableTo": "pages", + "columnsFrom": ["pages_id"], + "columnsTo": ["id"], + "onDelete": "cascade", + "onUpdate": "no action" + }, + "navigations_rels_built_in_pages_fk": { + "name": "navigations_rels_built_in_pages_fk", + "tableFrom": "navigations_rels", + "tableTo": "built_in_pages", + "columnsFrom": ["built_in_pages_id"], + "columnsTo": ["id"], + "onDelete": "cascade", + "onUpdate": "no action" + }, + "navigations_rels_posts_fk": { + "name": "navigations_rels_posts_fk", + "tableFrom": "navigations_rels", + "tableTo": "posts", + "columnsFrom": ["posts_id"], + "columnsTo": ["id"], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "_navigations_v_version_weather_items_items": { + "name": "_navigations_v_version_weather_items_items", + "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": "integer", + "primaryKey": true, + "notNull": true, + "autoincrement": false + }, + "link_type": { + "name": "link_type", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false, + "default": "'internal'" + }, + "link_url": { + "name": "link_url", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "link_label": { + "name": "link_label", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "link_new_tab": { + "name": "link_new_tab", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false, + "default": true + }, + "_uuid": { + "name": "_uuid", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + } + }, + "indexes": { + "_navigations_v_version_weather_items_items_order_idx": { + "name": "_navigations_v_version_weather_items_items_order_idx", + "columns": ["_order"], + "isUnique": false + }, + "_navigations_v_version_weather_items_items_parent_id_idx": { + "name": "_navigations_v_version_weather_items_items_parent_id_idx", + "columns": ["_parent_id"], + "isUnique": false + } + }, + "foreignKeys": { + "_navigations_v_version_weather_items_items_parent_id_fk": { + "name": "_navigations_v_version_weather_items_items_parent_id_fk", + "tableFrom": "_navigations_v_version_weather_items_items", + "tableTo": "_navigations_v_version_weather_items", + "columnsFrom": ["_parent_id"], + "columnsTo": ["id"], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "_navigations_v_version_weather_items": { + "name": "_navigations_v_version_weather_items", + "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": "integer", + "primaryKey": true, + "notNull": true, + "autoincrement": false + }, + "link_type": { + "name": "link_type", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false, + "default": "'internal'" + }, + "link_url": { + "name": "link_url", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "link_label": { + "name": "link_label", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "link_new_tab": { + "name": "link_new_tab", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false, + "default": true + }, + "_uuid": { + "name": "_uuid", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + } + }, + "indexes": { + "_navigations_v_version_weather_items_order_idx": { + "name": "_navigations_v_version_weather_items_order_idx", + "columns": ["_order"], + "isUnique": false + }, + "_navigations_v_version_weather_items_parent_id_idx": { + "name": "_navigations_v_version_weather_items_parent_id_idx", + "columns": ["_parent_id"], + "isUnique": false + } + }, + "foreignKeys": { + "_navigations_v_version_weather_items_parent_id_fk": { + "name": "_navigations_v_version_weather_items_parent_id_fk", + "tableFrom": "_navigations_v_version_weather_items", + "tableTo": "_navigations_v", + "columnsFrom": ["_parent_id"], + "columnsTo": ["id"], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "_navigations_v_version_education_items_items": { + "name": "_navigations_v_version_education_items_items", + "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": "integer", + "primaryKey": true, + "notNull": true, + "autoincrement": false + }, + "link_type": { + "name": "link_type", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false, + "default": "'internal'" + }, + "link_url": { + "name": "link_url", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "link_label": { + "name": "link_label", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "link_new_tab": { + "name": "link_new_tab", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false, + "default": true + }, + "_uuid": { + "name": "_uuid", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + } + }, + "indexes": { + "_navigations_v_version_education_items_items_order_idx": { + "name": "_navigations_v_version_education_items_items_order_idx", + "columns": ["_order"], + "isUnique": false + }, + "_navigations_v_version_education_items_items_parent_id_idx": { + "name": "_navigations_v_version_education_items_items_parent_id_idx", + "columns": ["_parent_id"], + "isUnique": false + } + }, + "foreignKeys": { + "_navigations_v_version_education_items_items_parent_id_fk": { + "name": "_navigations_v_version_education_items_items_parent_id_fk", + "tableFrom": "_navigations_v_version_education_items_items", + "tableTo": "_navigations_v_version_education_items", + "columnsFrom": ["_parent_id"], + "columnsTo": ["id"], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "_navigations_v_version_education_items": { + "name": "_navigations_v_version_education_items", + "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": "integer", + "primaryKey": true, + "notNull": true, + "autoincrement": false + }, + "link_type": { + "name": "link_type", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false, + "default": "'internal'" + }, + "link_url": { + "name": "link_url", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "link_label": { + "name": "link_label", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "link_new_tab": { + "name": "link_new_tab", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false, + "default": true + }, + "_uuid": { + "name": "_uuid", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + } + }, + "indexes": { + "_navigations_v_version_education_items_order_idx": { + "name": "_navigations_v_version_education_items_order_idx", + "columns": ["_order"], + "isUnique": false + }, + "_navigations_v_version_education_items_parent_id_idx": { + "name": "_navigations_v_version_education_items_parent_id_idx", + "columns": ["_parent_id"], + "isUnique": false + } + }, + "foreignKeys": { + "_navigations_v_version_education_items_parent_id_fk": { + "name": "_navigations_v_version_education_items_parent_id_fk", + "tableFrom": "_navigations_v_version_education_items", + "tableTo": "_navigations_v", + "columnsFrom": ["_parent_id"], + "columnsTo": ["id"], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "_navigations_v_version_accidents_items_items": { + "name": "_navigations_v_version_accidents_items_items", + "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": "integer", + "primaryKey": true, + "notNull": true, + "autoincrement": false + }, + "link_type": { + "name": "link_type", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false, + "default": "'internal'" + }, + "link_url": { + "name": "link_url", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "link_label": { + "name": "link_label", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "link_new_tab": { + "name": "link_new_tab", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false, + "default": true + }, + "_uuid": { + "name": "_uuid", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + } + }, + "indexes": { + "_navigations_v_version_accidents_items_items_order_idx": { + "name": "_navigations_v_version_accidents_items_items_order_idx", + "columns": ["_order"], + "isUnique": false + }, + "_navigations_v_version_accidents_items_items_parent_id_idx": { + "name": "_navigations_v_version_accidents_items_items_parent_id_idx", + "columns": ["_parent_id"], + "isUnique": false + } + }, + "foreignKeys": { + "_navigations_v_version_accidents_items_items_parent_id_fk": { + "name": "_navigations_v_version_accidents_items_items_parent_id_fk", + "tableFrom": "_navigations_v_version_accidents_items_items", + "tableTo": "_navigations_v_version_accidents_items", + "columnsFrom": ["_parent_id"], + "columnsTo": ["id"], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "_navigations_v_version_accidents_items": { + "name": "_navigations_v_version_accidents_items", + "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": "integer", + "primaryKey": true, + "notNull": true, + "autoincrement": false + }, + "link_type": { + "name": "link_type", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false, + "default": "'internal'" + }, + "link_url": { + "name": "link_url", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "link_label": { + "name": "link_label", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "link_new_tab": { + "name": "link_new_tab", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false, + "default": true + }, + "_uuid": { + "name": "_uuid", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + } + }, + "indexes": { + "_navigations_v_version_accidents_items_order_idx": { + "name": "_navigations_v_version_accidents_items_order_idx", + "columns": ["_order"], + "isUnique": false + }, + "_navigations_v_version_accidents_items_parent_id_idx": { + "name": "_navigations_v_version_accidents_items_parent_id_idx", + "columns": ["_parent_id"], + "isUnique": false + } + }, + "foreignKeys": { + "_navigations_v_version_accidents_items_parent_id_fk": { + "name": "_navigations_v_version_accidents_items_parent_id_fk", + "tableFrom": "_navigations_v_version_accidents_items", + "tableTo": "_navigations_v", + "columnsFrom": ["_parent_id"], + "columnsTo": ["id"], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "_navigations_v_version_blog_items_items": { + "name": "_navigations_v_version_blog_items_items", + "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": "integer", + "primaryKey": true, + "notNull": true, + "autoincrement": false + }, + "link_type": { + "name": "link_type", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false, + "default": "'internal'" + }, + "link_url": { + "name": "link_url", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "link_label": { + "name": "link_label", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "link_new_tab": { + "name": "link_new_tab", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false, + "default": true + }, + "_uuid": { + "name": "_uuid", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + } + }, + "indexes": { + "_navigations_v_version_blog_items_items_order_idx": { + "name": "_navigations_v_version_blog_items_items_order_idx", + "columns": ["_order"], + "isUnique": false + }, + "_navigations_v_version_blog_items_items_parent_id_idx": { + "name": "_navigations_v_version_blog_items_items_parent_id_idx", + "columns": ["_parent_id"], + "isUnique": false + } + }, + "foreignKeys": { + "_navigations_v_version_blog_items_items_parent_id_fk": { + "name": "_navigations_v_version_blog_items_items_parent_id_fk", + "tableFrom": "_navigations_v_version_blog_items_items", + "tableTo": "_navigations_v_version_blog_items", + "columnsFrom": ["_parent_id"], + "columnsTo": ["id"], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "_navigations_v_version_blog_items": { + "name": "_navigations_v_version_blog_items", + "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": "integer", + "primaryKey": true, + "notNull": true, + "autoincrement": false + }, + "link_type": { + "name": "link_type", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false, + "default": "'internal'" + }, + "link_url": { + "name": "link_url", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "link_label": { + "name": "link_label", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "link_new_tab": { + "name": "link_new_tab", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false, + "default": true + }, + "_uuid": { + "name": "_uuid", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + } + }, + "indexes": { + "_navigations_v_version_blog_items_order_idx": { + "name": "_navigations_v_version_blog_items_order_idx", + "columns": ["_order"], + "isUnique": false + }, + "_navigations_v_version_blog_items_parent_id_idx": { + "name": "_navigations_v_version_blog_items_parent_id_idx", + "columns": ["_parent_id"], + "isUnique": false + } + }, + "foreignKeys": { + "_navigations_v_version_blog_items_parent_id_fk": { + "name": "_navigations_v_version_blog_items_parent_id_fk", + "tableFrom": "_navigations_v_version_blog_items", + "tableTo": "_navigations_v", + "columnsFrom": ["_parent_id"], + "columnsTo": ["id"], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "_navigations_v_version_events_items_items": { + "name": "_navigations_v_version_events_items_items", + "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": "integer", + "primaryKey": true, + "notNull": true, + "autoincrement": false + }, + "link_type": { + "name": "link_type", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false, + "default": "'internal'" + }, + "link_url": { + "name": "link_url", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "link_label": { + "name": "link_label", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "link_new_tab": { + "name": "link_new_tab", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false, + "default": true + }, + "_uuid": { + "name": "_uuid", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + } + }, + "indexes": { + "_navigations_v_version_events_items_items_order_idx": { + "name": "_navigations_v_version_events_items_items_order_idx", + "columns": ["_order"], + "isUnique": false + }, + "_navigations_v_version_events_items_items_parent_id_idx": { + "name": "_navigations_v_version_events_items_items_parent_id_idx", + "columns": ["_parent_id"], + "isUnique": false + } + }, + "foreignKeys": { + "_navigations_v_version_events_items_items_parent_id_fk": { + "name": "_navigations_v_version_events_items_items_parent_id_fk", + "tableFrom": "_navigations_v_version_events_items_items", + "tableTo": "_navigations_v_version_events_items", + "columnsFrom": ["_parent_id"], + "columnsTo": ["id"], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "_navigations_v_version_events_items": { + "name": "_navigations_v_version_events_items", + "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": "integer", + "primaryKey": true, + "notNull": true, + "autoincrement": false + }, + "link_type": { + "name": "link_type", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false, + "default": "'internal'" + }, + "link_url": { + "name": "link_url", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "link_label": { + "name": "link_label", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "link_new_tab": { + "name": "link_new_tab", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false, + "default": true + }, + "_uuid": { + "name": "_uuid", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + } + }, + "indexes": { + "_navigations_v_version_events_items_order_idx": { + "name": "_navigations_v_version_events_items_order_idx", + "columns": ["_order"], + "isUnique": false + }, + "_navigations_v_version_events_items_parent_id_idx": { + "name": "_navigations_v_version_events_items_parent_id_idx", + "columns": ["_parent_id"], + "isUnique": false + } + }, + "foreignKeys": { + "_navigations_v_version_events_items_parent_id_fk": { + "name": "_navigations_v_version_events_items_parent_id_fk", + "tableFrom": "_navigations_v_version_events_items", + "tableTo": "_navigations_v", + "columnsFrom": ["_parent_id"], + "columnsTo": ["id"], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "_navigations_v_version_about_items_items": { + "name": "_navigations_v_version_about_items_items", + "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": "integer", + "primaryKey": true, + "notNull": true, + "autoincrement": false + }, + "link_type": { + "name": "link_type", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false, + "default": "'internal'" + }, + "link_url": { + "name": "link_url", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "link_label": { + "name": "link_label", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "link_new_tab": { + "name": "link_new_tab", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false, + "default": true + }, + "_uuid": { + "name": "_uuid", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + } + }, + "indexes": { + "_navigations_v_version_about_items_items_order_idx": { + "name": "_navigations_v_version_about_items_items_order_idx", + "columns": ["_order"], + "isUnique": false + }, + "_navigations_v_version_about_items_items_parent_id_idx": { + "name": "_navigations_v_version_about_items_items_parent_id_idx", + "columns": ["_parent_id"], + "isUnique": false + } + }, + "foreignKeys": { + "_navigations_v_version_about_items_items_parent_id_fk": { + "name": "_navigations_v_version_about_items_items_parent_id_fk", + "tableFrom": "_navigations_v_version_about_items_items", + "tableTo": "_navigations_v_version_about_items", + "columnsFrom": ["_parent_id"], + "columnsTo": ["id"], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "_navigations_v_version_about_items": { + "name": "_navigations_v_version_about_items", + "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": "integer", + "primaryKey": true, + "notNull": true, + "autoincrement": false + }, + "link_type": { + "name": "link_type", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false, + "default": "'internal'" + }, + "link_url": { + "name": "link_url", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "link_label": { + "name": "link_label", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "link_new_tab": { + "name": "link_new_tab", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false, + "default": true + }, + "_uuid": { + "name": "_uuid", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + } + }, + "indexes": { + "_navigations_v_version_about_items_order_idx": { + "name": "_navigations_v_version_about_items_order_idx", + "columns": ["_order"], + "isUnique": false + }, + "_navigations_v_version_about_items_parent_id_idx": { + "name": "_navigations_v_version_about_items_parent_id_idx", + "columns": ["_parent_id"], + "isUnique": false + } + }, + "foreignKeys": { + "_navigations_v_version_about_items_parent_id_fk": { + "name": "_navigations_v_version_about_items_parent_id_fk", + "tableFrom": "_navigations_v_version_about_items", + "tableTo": "_navigations_v", + "columnsFrom": ["_parent_id"], + "columnsTo": ["id"], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "_navigations_v_version_support_items_items": { + "name": "_navigations_v_version_support_items_items", + "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": "integer", + "primaryKey": true, + "notNull": true, + "autoincrement": false + }, + "link_type": { + "name": "link_type", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false, + "default": "'internal'" + }, + "link_url": { + "name": "link_url", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "link_label": { + "name": "link_label", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "link_new_tab": { + "name": "link_new_tab", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false, + "default": true + }, + "_uuid": { + "name": "_uuid", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + } + }, + "indexes": { + "_navigations_v_version_support_items_items_order_idx": { + "name": "_navigations_v_version_support_items_items_order_idx", + "columns": ["_order"], + "isUnique": false + }, + "_navigations_v_version_support_items_items_parent_id_idx": { + "name": "_navigations_v_version_support_items_items_parent_id_idx", + "columns": ["_parent_id"], + "isUnique": false + } + }, + "foreignKeys": { + "_navigations_v_version_support_items_items_parent_id_fk": { + "name": "_navigations_v_version_support_items_items_parent_id_fk", + "tableFrom": "_navigations_v_version_support_items_items", + "tableTo": "_navigations_v_version_support_items", + "columnsFrom": ["_parent_id"], + "columnsTo": ["id"], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "_navigations_v_version_support_items": { + "name": "_navigations_v_version_support_items", + "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": "integer", + "primaryKey": true, + "notNull": true, + "autoincrement": false + }, + "link_type": { + "name": "link_type", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false, + "default": "'internal'" + }, + "link_url": { + "name": "link_url", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "link_label": { + "name": "link_label", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "link_new_tab": { + "name": "link_new_tab", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false, + "default": true + }, + "_uuid": { + "name": "_uuid", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + } + }, + "indexes": { + "_navigations_v_version_support_items_order_idx": { + "name": "_navigations_v_version_support_items_order_idx", + "columns": ["_order"], + "isUnique": false + }, + "_navigations_v_version_support_items_parent_id_idx": { + "name": "_navigations_v_version_support_items_parent_id_idx", + "columns": ["_parent_id"], + "isUnique": false + } + }, + "foreignKeys": { + "_navigations_v_version_support_items_parent_id_fk": { + "name": "_navigations_v_version_support_items_parent_id_fk", + "tableFrom": "_navigations_v_version_support_items", + "tableTo": "_navigations_v", + "columnsFrom": ["_parent_id"], + "columnsTo": ["id"], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "_navigations_v": { + "name": "_navigations_v", + "columns": { + "id": { + "name": "id", + "type": "integer", + "primaryKey": true, + "notNull": true, + "autoincrement": false + }, + "parent_id": { + "name": "parent_id", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "version_tenant_id": { + "name": "version_tenant_id", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "version_weather_options_enabled": { + "name": "version_weather_options_enabled", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false, + "default": true + }, + "version_education_options_enabled": { + "name": "version_education_options_enabled", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false, + "default": true + }, + "version_accidents_options_enabled": { + "name": "version_accidents_options_enabled", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false, + "default": true + }, + "version_blog_options_enabled": { + "name": "version_blog_options_enabled", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false, + "default": true + }, + "version_events_options_enabled": { + "name": "version_events_options_enabled", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false, + "default": true + }, + "version_about_options_enabled": { + "name": "version_about_options_enabled", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false, + "default": true + }, + "version_support_options_enabled": { + "name": "version_support_options_enabled", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false, + "default": true + }, + "version_donate_options_enabled": { + "name": "version_donate_options_enabled", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false, + "default": true + }, + "version_donate_link_type": { + "name": "version_donate_link_type", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false, + "default": "'internal'" + }, + "version_donate_link_url": { + "name": "version_donate_link_url", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "version_donate_link_label": { + "name": "version_donate_link_label", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "version_donate_link_new_tab": { + "name": "version_donate_link_new_tab", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false, + "default": true + }, + "version_content_hash": { + "name": "version_content_hash", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "version_updated_at": { + "name": "version_updated_at", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "version_created_at": { + "name": "version_created_at", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "version__status": { + "name": "version__status", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false, + "default": "'draft'" + }, + "created_at": { + "name": "created_at", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false, + "default": "(strftime('%Y-%m-%dT%H:%M:%fZ', 'now'))" + }, + "updated_at": { + "name": "updated_at", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false, + "default": "(strftime('%Y-%m-%dT%H:%M:%fZ', 'now'))" + }, + "latest": { + "name": "latest", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "autosave": { + "name": "autosave", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + } + }, + "indexes": { + "_navigations_v_parent_idx": { + "name": "_navigations_v_parent_idx", + "columns": ["parent_id"], + "isUnique": false + }, + "_navigations_v_version_version_tenant_idx": { + "name": "_navigations_v_version_version_tenant_idx", + "columns": ["version_tenant_id"], + "isUnique": false + }, + "_navigations_v_version_version_updated_at_idx": { + "name": "_navigations_v_version_version_updated_at_idx", + "columns": ["version_updated_at"], + "isUnique": false + }, + "_navigations_v_version_version_created_at_idx": { + "name": "_navigations_v_version_version_created_at_idx", + "columns": ["version_created_at"], + "isUnique": false + }, + "_navigations_v_version_version__status_idx": { + "name": "_navigations_v_version_version__status_idx", + "columns": ["version__status"], + "isUnique": false + }, + "_navigations_v_created_at_idx": { + "name": "_navigations_v_created_at_idx", + "columns": ["created_at"], + "isUnique": false + }, + "_navigations_v_updated_at_idx": { + "name": "_navigations_v_updated_at_idx", + "columns": ["updated_at"], + "isUnique": false + }, + "_navigations_v_latest_idx": { + "name": "_navigations_v_latest_idx", + "columns": ["latest"], + "isUnique": false + }, + "_navigations_v_autosave_idx": { + "name": "_navigations_v_autosave_idx", + "columns": ["autosave"], + "isUnique": false + } + }, + "foreignKeys": { + "_navigations_v_parent_id_navigations_id_fk": { + "name": "_navigations_v_parent_id_navigations_id_fk", + "tableFrom": "_navigations_v", + "tableTo": "navigations", + "columnsFrom": ["parent_id"], + "columnsTo": ["id"], + "onDelete": "set null", + "onUpdate": "no action" + }, + "_navigations_v_version_tenant_id_tenants_id_fk": { + "name": "_navigations_v_version_tenant_id_tenants_id_fk", + "tableFrom": "_navigations_v", + "tableTo": "tenants", + "columnsFrom": ["version_tenant_id"], + "columnsTo": ["id"], + "onDelete": "set null", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "_navigations_v_rels": { + "name": "_navigations_v_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 + }, + "pages_id": { + "name": "pages_id", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "built_in_pages_id": { + "name": "built_in_pages_id", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "posts_id": { + "name": "posts_id", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + } + }, + "indexes": { + "_navigations_v_rels_order_idx": { + "name": "_navigations_v_rels_order_idx", + "columns": ["order"], + "isUnique": false + }, + "_navigations_v_rels_parent_idx": { + "name": "_navigations_v_rels_parent_idx", + "columns": ["parent_id"], + "isUnique": false + }, + "_navigations_v_rels_path_idx": { + "name": "_navigations_v_rels_path_idx", + "columns": ["path"], + "isUnique": false + }, + "_navigations_v_rels_pages_id_idx": { + "name": "_navigations_v_rels_pages_id_idx", + "columns": ["pages_id"], + "isUnique": false + }, + "_navigations_v_rels_built_in_pages_id_idx": { + "name": "_navigations_v_rels_built_in_pages_id_idx", + "columns": ["built_in_pages_id"], + "isUnique": false + }, + "_navigations_v_rels_posts_id_idx": { + "name": "_navigations_v_rels_posts_id_idx", + "columns": ["posts_id"], + "isUnique": false + } + }, + "foreignKeys": { + "_navigations_v_rels_parent_1_idx": { + "name": "_navigations_v_rels_parent_1_idx", + "tableFrom": "_navigations_v_rels", + "tableTo": "_navigations_v", + "columnsFrom": ["parent_id"], + "columnsTo": ["id"], + "onDelete": "cascade", + "onUpdate": "no action" + }, + "_navigations_v_rels_pages_fk": { + "name": "_navigations_v_rels_pages_fk", + "tableFrom": "_navigations_v_rels", + "tableTo": "pages", + "columnsFrom": ["pages_id"], + "columnsTo": ["id"], + "onDelete": "cascade", + "onUpdate": "no action" + }, + "_navigations_v_rels_built_in_pages_fk": { + "name": "_navigations_v_rels_built_in_pages_fk", + "tableFrom": "_navigations_v_rels", + "tableTo": "built_in_pages", + "columnsFrom": ["built_in_pages_id"], + "columnsTo": ["id"], + "onDelete": "cascade", + "onUpdate": "no action" + }, + "_navigations_v_rels_posts_fk": { + "name": "_navigations_v_rels_posts_fk", + "tableFrom": "_navigations_v_rels", + "tableTo": "posts", + "columnsFrom": ["posts_id"], + "columnsTo": ["id"], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "settings": { + "name": "settings", + "columns": { + "id": { + "name": "id", + "type": "integer", + "primaryKey": true, + "notNull": true, + "autoincrement": false + }, + "tenant_id": { + "name": "tenant_id", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "description": { + "name": "description", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "address": { + "name": "address", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "phone_label": { + "name": "phone_label", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "phone": { + "name": "phone", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "phone_secondary_label": { + "name": "phone_secondary_label", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "phone_secondary": { + "name": "phone_secondary", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "email": { + "name": "email", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "footer_form_title": { + "name": "footer_form_title", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "footer_form_subtitle": { + "name": "footer_form_subtitle", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "footer_form_type": { + "name": "footer_form_type", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false, + "default": "'none'" + }, + "footer_form_html": { + "name": "footer_form_html", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "logo_id": { + "name": "logo_id", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "icon_id": { + "name": "icon_id", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "banner_id": { + "name": "banner_id", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "usfs_logo_id": { + "name": "usfs_logo_id", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "social_media_instagram": { + "name": "social_media_instagram", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "social_media_facebook": { + "name": "social_media_facebook", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "social_media_twitter": { + "name": "social_media_twitter", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "social_media_linkedin": { + "name": "social_media_linkedin", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "social_media_youtube": { + "name": "social_media_youtube", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "social_media_hashtag": { + "name": "social_media_hashtag", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "terms_id": { + "name": "terms_id", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "privacy_id": { + "name": "privacy_id", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "content_hash": { + "name": "content_hash", + "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": { + "settings_tenant_idx": { + "name": "settings_tenant_idx", + "columns": ["tenant_id"], + "isUnique": true + }, + "settings_logo_idx": { + "name": "settings_logo_idx", + "columns": ["logo_id"], + "isUnique": false + }, + "settings_icon_idx": { + "name": "settings_icon_idx", + "columns": ["icon_id"], + "isUnique": false + }, + "settings_banner_idx": { + "name": "settings_banner_idx", + "columns": ["banner_id"], + "isUnique": false + }, + "settings_usfs_logo_idx": { + "name": "settings_usfs_logo_idx", + "columns": ["usfs_logo_id"], + "isUnique": false + }, + "settings_terms_idx": { + "name": "settings_terms_idx", + "columns": ["terms_id"], + "isUnique": false + }, + "settings_privacy_idx": { + "name": "settings_privacy_idx", + "columns": ["privacy_id"], + "isUnique": false + }, + "settings_updated_at_idx": { + "name": "settings_updated_at_idx", + "columns": ["updated_at"], + "isUnique": false + }, + "settings_created_at_idx": { + "name": "settings_created_at_idx", + "columns": ["created_at"], + "isUnique": false + } + }, + "foreignKeys": { + "settings_tenant_id_tenants_id_fk": { + "name": "settings_tenant_id_tenants_id_fk", + "tableFrom": "settings", + "tableTo": "tenants", + "columnsFrom": ["tenant_id"], + "columnsTo": ["id"], + "onDelete": "set null", + "onUpdate": "no action" + }, + "settings_logo_id_media_id_fk": { + "name": "settings_logo_id_media_id_fk", + "tableFrom": "settings", + "tableTo": "media", + "columnsFrom": ["logo_id"], + "columnsTo": ["id"], + "onDelete": "set null", + "onUpdate": "no action" + }, + "settings_icon_id_media_id_fk": { + "name": "settings_icon_id_media_id_fk", + "tableFrom": "settings", + "tableTo": "media", + "columnsFrom": ["icon_id"], + "columnsTo": ["id"], + "onDelete": "set null", + "onUpdate": "no action" + }, + "settings_banner_id_media_id_fk": { + "name": "settings_banner_id_media_id_fk", + "tableFrom": "settings", + "tableTo": "media", + "columnsFrom": ["banner_id"], + "columnsTo": ["id"], + "onDelete": "set null", + "onUpdate": "no action" + }, + "settings_usfs_logo_id_media_id_fk": { + "name": "settings_usfs_logo_id_media_id_fk", + "tableFrom": "settings", + "tableTo": "media", + "columnsFrom": ["usfs_logo_id"], + "columnsTo": ["id"], + "onDelete": "set null", + "onUpdate": "no action" + }, + "settings_terms_id_pages_id_fk": { + "name": "settings_terms_id_pages_id_fk", + "tableFrom": "settings", + "tableTo": "pages", + "columnsFrom": ["terms_id"], + "columnsTo": ["id"], + "onDelete": "set null", + "onUpdate": "no action" + }, + "settings_privacy_id_pages_id_fk": { + "name": "settings_privacy_id_pages_id_fk", + "tableFrom": "settings", + "tableTo": "pages", + "columnsFrom": ["privacy_id"], + "columnsTo": ["id"], + "onDelete": "set null", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "settings_rels": { + "name": "settings_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 + }, + "forms_id": { + "name": "forms_id", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + } + }, + "indexes": { + "settings_rels_order_idx": { + "name": "settings_rels_order_idx", + "columns": ["order"], + "isUnique": false + }, + "settings_rels_parent_idx": { + "name": "settings_rels_parent_idx", + "columns": ["parent_id"], + "isUnique": false + }, + "settings_rels_path_idx": { + "name": "settings_rels_path_idx", + "columns": ["path"], + "isUnique": false + }, + "settings_rels_forms_id_idx": { + "name": "settings_rels_forms_id_idx", + "columns": ["forms_id"], + "isUnique": false + } + }, + "foreignKeys": { + "settings_rels_parent_1_idx": { + "name": "settings_rels_parent_1_idx", + "tableFrom": "settings_rels", + "tableTo": "settings", + "columnsFrom": ["parent_id"], + "columnsTo": ["id"], + "onDelete": "cascade", + "onUpdate": "no action" + }, + "settings_rels_forms_fk": { + "name": "settings_rels_forms_fk", + "tableFrom": "settings_rels", + "tableTo": "forms", + "columnsFrom": ["forms_id"], + "columnsTo": ["id"], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "redirects": { + "name": "redirects", + "columns": { + "id": { + "name": "id", + "type": "integer", + "primaryKey": true, + "notNull": true, + "autoincrement": false + }, + "from": { + "name": "from", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "to_type": { + "name": "to_type", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false, + "default": "'internal'" + }, + "to_new_tab": { + "name": "to_new_tab", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "to_url": { + "name": "to_url", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "tenant_id": { + "name": "tenant_id", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "content_hash": { + "name": "content_hash", + "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": { + "redirects_from_idx": { + "name": "redirects_from_idx", + "columns": ["from"], + "isUnique": false + }, + "redirects_tenant_idx": { + "name": "redirects_tenant_idx", + "columns": ["tenant_id"], + "isUnique": false + }, + "redirects_updated_at_idx": { + "name": "redirects_updated_at_idx", + "columns": ["updated_at"], + "isUnique": false + }, + "redirects_created_at_idx": { + "name": "redirects_created_at_idx", + "columns": ["created_at"], + "isUnique": false + } + }, + "foreignKeys": { + "redirects_tenant_id_tenants_id_fk": { + "name": "redirects_tenant_id_tenants_id_fk", + "tableFrom": "redirects", + "tableTo": "tenants", + "columnsFrom": ["tenant_id"], + "columnsTo": ["id"], + "onDelete": "set null", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "redirects_rels": { + "name": "redirects_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 + }, + "pages_id": { + "name": "pages_id", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "built_in_pages_id": { + "name": "built_in_pages_id", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "posts_id": { + "name": "posts_id", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + } + }, + "indexes": { + "redirects_rels_order_idx": { + "name": "redirects_rels_order_idx", + "columns": ["order"], + "isUnique": false + }, + "redirects_rels_parent_idx": { + "name": "redirects_rels_parent_idx", + "columns": ["parent_id"], + "isUnique": false + }, + "redirects_rels_path_idx": { + "name": "redirects_rels_path_idx", + "columns": ["path"], + "isUnique": false + }, + "redirects_rels_pages_id_idx": { + "name": "redirects_rels_pages_id_idx", + "columns": ["pages_id"], + "isUnique": false + }, + "redirects_rels_built_in_pages_id_idx": { + "name": "redirects_rels_built_in_pages_id_idx", + "columns": ["built_in_pages_id"], + "isUnique": false + }, + "redirects_rels_posts_id_idx": { + "name": "redirects_rels_posts_id_idx", + "columns": ["posts_id"], + "isUnique": false + } + }, + "foreignKeys": { + "redirects_rels_parent_1_idx": { + "name": "redirects_rels_parent_1_idx", + "tableFrom": "redirects_rels", + "tableTo": "redirects", + "columnsFrom": ["parent_id"], + "columnsTo": ["id"], + "onDelete": "cascade", + "onUpdate": "no action" + }, + "redirects_rels_pages_fk": { + "name": "redirects_rels_pages_fk", + "tableFrom": "redirects_rels", + "tableTo": "pages", + "columnsFrom": ["pages_id"], + "columnsTo": ["id"], + "onDelete": "cascade", + "onUpdate": "no action" + }, + "redirects_rels_built_in_pages_fk": { + "name": "redirects_rels_built_in_pages_fk", + "tableFrom": "redirects_rels", + "tableTo": "built_in_pages", + "columnsFrom": ["built_in_pages_id"], + "columnsTo": ["id"], + "onDelete": "cascade", + "onUpdate": "no action" + }, + "redirects_rels_posts_fk": { + "name": "redirects_rels_posts_fk", + "tableFrom": "redirects_rels", + "tableTo": "posts", + "columnsFrom": ["posts_id"], + "columnsTo": ["id"], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "forms_blocks_checkbox": { + "name": "forms_blocks_checkbox", + "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 + }, + "_path": { + "name": "_path", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "id": { + "name": "id", + "type": "text", + "primaryKey": true, + "notNull": true, + "autoincrement": false + }, + "name": { + "name": "name", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "label": { + "name": "label", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "width": { + "name": "width", + "type": "numeric", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "required": { + "name": "required", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "default_value": { + "name": "default_value", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "block_name": { + "name": "block_name", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + } + }, + "indexes": { + "forms_blocks_checkbox_order_idx": { + "name": "forms_blocks_checkbox_order_idx", + "columns": ["_order"], + "isUnique": false + }, + "forms_blocks_checkbox_parent_id_idx": { + "name": "forms_blocks_checkbox_parent_id_idx", + "columns": ["_parent_id"], + "isUnique": false + }, + "forms_blocks_checkbox_path_idx": { + "name": "forms_blocks_checkbox_path_idx", + "columns": ["_path"], + "isUnique": false + } + }, + "foreignKeys": { + "forms_blocks_checkbox_parent_id_fk": { + "name": "forms_blocks_checkbox_parent_id_fk", + "tableFrom": "forms_blocks_checkbox", + "tableTo": "forms", + "columnsFrom": ["_parent_id"], + "columnsTo": ["id"], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "forms_blocks_country": { + "name": "forms_blocks_country", + "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 + }, + "_path": { + "name": "_path", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "id": { + "name": "id", + "type": "text", + "primaryKey": true, + "notNull": true, + "autoincrement": false + }, + "name": { + "name": "name", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "label": { + "name": "label", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "width": { + "name": "width", + "type": "numeric", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "required": { + "name": "required", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "block_name": { + "name": "block_name", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + } + }, + "indexes": { + "forms_blocks_country_order_idx": { + "name": "forms_blocks_country_order_idx", + "columns": ["_order"], + "isUnique": false + }, + "forms_blocks_country_parent_id_idx": { + "name": "forms_blocks_country_parent_id_idx", + "columns": ["_parent_id"], + "isUnique": false + }, + "forms_blocks_country_path_idx": { + "name": "forms_blocks_country_path_idx", + "columns": ["_path"], + "isUnique": false + } + }, + "foreignKeys": { + "forms_blocks_country_parent_id_fk": { + "name": "forms_blocks_country_parent_id_fk", + "tableFrom": "forms_blocks_country", + "tableTo": "forms", + "columnsFrom": ["_parent_id"], + "columnsTo": ["id"], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "forms_blocks_email": { + "name": "forms_blocks_email", + "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 + }, + "_path": { + "name": "_path", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "id": { + "name": "id", + "type": "text", + "primaryKey": true, + "notNull": true, + "autoincrement": false + }, + "name": { + "name": "name", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "label": { + "name": "label", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "width": { + "name": "width", + "type": "numeric", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "required": { + "name": "required", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "block_name": { + "name": "block_name", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + } + }, + "indexes": { + "forms_blocks_email_order_idx": { + "name": "forms_blocks_email_order_idx", + "columns": ["_order"], + "isUnique": false + }, + "forms_blocks_email_parent_id_idx": { + "name": "forms_blocks_email_parent_id_idx", + "columns": ["_parent_id"], + "isUnique": false + }, + "forms_blocks_email_path_idx": { + "name": "forms_blocks_email_path_idx", + "columns": ["_path"], + "isUnique": false + } + }, + "foreignKeys": { + "forms_blocks_email_parent_id_fk": { + "name": "forms_blocks_email_parent_id_fk", + "tableFrom": "forms_blocks_email", + "tableTo": "forms", + "columnsFrom": ["_parent_id"], + "columnsTo": ["id"], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "forms_blocks_message": { + "name": "forms_blocks_message", + "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 + }, + "_path": { + "name": "_path", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "id": { + "name": "id", + "type": "text", + "primaryKey": true, + "notNull": true, + "autoincrement": false + }, + "message": { + "name": "message", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "block_name": { + "name": "block_name", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + } + }, + "indexes": { + "forms_blocks_message_order_idx": { + "name": "forms_blocks_message_order_idx", + "columns": ["_order"], + "isUnique": false + }, + "forms_blocks_message_parent_id_idx": { + "name": "forms_blocks_message_parent_id_idx", + "columns": ["_parent_id"], + "isUnique": false + }, + "forms_blocks_message_path_idx": { + "name": "forms_blocks_message_path_idx", + "columns": ["_path"], + "isUnique": false + } + }, + "foreignKeys": { + "forms_blocks_message_parent_id_fk": { + "name": "forms_blocks_message_parent_id_fk", + "tableFrom": "forms_blocks_message", + "tableTo": "forms", + "columnsFrom": ["_parent_id"], + "columnsTo": ["id"], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "forms_blocks_number": { + "name": "forms_blocks_number", + "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 + }, + "_path": { + "name": "_path", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "id": { + "name": "id", + "type": "text", + "primaryKey": true, + "notNull": true, + "autoincrement": false + }, + "name": { + "name": "name", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "label": { + "name": "label", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "width": { + "name": "width", + "type": "numeric", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "default_value": { + "name": "default_value", + "type": "numeric", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "required": { + "name": "required", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "block_name": { + "name": "block_name", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + } + }, + "indexes": { + "forms_blocks_number_order_idx": { + "name": "forms_blocks_number_order_idx", + "columns": ["_order"], + "isUnique": false + }, + "forms_blocks_number_parent_id_idx": { + "name": "forms_blocks_number_parent_id_idx", + "columns": ["_parent_id"], + "isUnique": false + }, + "forms_blocks_number_path_idx": { + "name": "forms_blocks_number_path_idx", + "columns": ["_path"], + "isUnique": false + } + }, + "foreignKeys": { + "forms_blocks_number_parent_id_fk": { + "name": "forms_blocks_number_parent_id_fk", + "tableFrom": "forms_blocks_number", + "tableTo": "forms", + "columnsFrom": ["_parent_id"], + "columnsTo": ["id"], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "forms_blocks_select_options": { + "name": "forms_blocks_select_options", + "columns": { + "_order": { + "name": "_order", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "_parent_id": { + "name": "_parent_id", + "type": "text", + "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 + }, + "value": { + "name": "value", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + } + }, + "indexes": { + "forms_blocks_select_options_order_idx": { + "name": "forms_blocks_select_options_order_idx", + "columns": ["_order"], + "isUnique": false + }, + "forms_blocks_select_options_parent_id_idx": { + "name": "forms_blocks_select_options_parent_id_idx", + "columns": ["_parent_id"], + "isUnique": false + } + }, + "foreignKeys": { + "forms_blocks_select_options_parent_id_fk": { + "name": "forms_blocks_select_options_parent_id_fk", + "tableFrom": "forms_blocks_select_options", + "tableTo": "forms_blocks_select", + "columnsFrom": ["_parent_id"], + "columnsTo": ["id"], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "forms_blocks_select": { + "name": "forms_blocks_select", + "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 + }, + "_path": { + "name": "_path", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "id": { + "name": "id", + "type": "text", + "primaryKey": true, + "notNull": true, + "autoincrement": false + }, + "name": { + "name": "name", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "label": { + "name": "label", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "width": { + "name": "width", + "type": "numeric", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "default_value": { + "name": "default_value", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "placeholder": { + "name": "placeholder", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "required": { + "name": "required", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "block_name": { + "name": "block_name", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + } + }, + "indexes": { + "forms_blocks_select_order_idx": { + "name": "forms_blocks_select_order_idx", + "columns": ["_order"], + "isUnique": false + }, + "forms_blocks_select_parent_id_idx": { + "name": "forms_blocks_select_parent_id_idx", + "columns": ["_parent_id"], + "isUnique": false + }, + "forms_blocks_select_path_idx": { + "name": "forms_blocks_select_path_idx", + "columns": ["_path"], + "isUnique": false + } + }, + "foreignKeys": { + "forms_blocks_select_parent_id_fk": { + "name": "forms_blocks_select_parent_id_fk", + "tableFrom": "forms_blocks_select", + "tableTo": "forms", + "columnsFrom": ["_parent_id"], + "columnsTo": ["id"], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "forms_blocks_state": { + "name": "forms_blocks_state", + "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 + }, + "_path": { + "name": "_path", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "id": { + "name": "id", + "type": "text", + "primaryKey": true, + "notNull": true, + "autoincrement": false + }, + "name": { + "name": "name", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "label": { + "name": "label", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "width": { + "name": "width", + "type": "numeric", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "required": { + "name": "required", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "block_name": { + "name": "block_name", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + } + }, + "indexes": { + "forms_blocks_state_order_idx": { + "name": "forms_blocks_state_order_idx", + "columns": ["_order"], + "isUnique": false + }, + "forms_blocks_state_parent_id_idx": { + "name": "forms_blocks_state_parent_id_idx", + "columns": ["_parent_id"], + "isUnique": false + }, + "forms_blocks_state_path_idx": { + "name": "forms_blocks_state_path_idx", + "columns": ["_path"], + "isUnique": false + } + }, + "foreignKeys": { + "forms_blocks_state_parent_id_fk": { + "name": "forms_blocks_state_parent_id_fk", + "tableFrom": "forms_blocks_state", + "tableTo": "forms", + "columnsFrom": ["_parent_id"], + "columnsTo": ["id"], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "forms_blocks_text": { + "name": "forms_blocks_text", + "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 + }, + "_path": { + "name": "_path", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "id": { + "name": "id", + "type": "text", + "primaryKey": true, + "notNull": true, + "autoincrement": false + }, + "name": { + "name": "name", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "label": { + "name": "label", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "width": { + "name": "width", + "type": "numeric", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "default_value": { + "name": "default_value", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "required": { + "name": "required", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "block_name": { + "name": "block_name", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + } + }, + "indexes": { + "forms_blocks_text_order_idx": { + "name": "forms_blocks_text_order_idx", + "columns": ["_order"], + "isUnique": false + }, + "forms_blocks_text_parent_id_idx": { + "name": "forms_blocks_text_parent_id_idx", + "columns": ["_parent_id"], + "isUnique": false + }, + "forms_blocks_text_path_idx": { + "name": "forms_blocks_text_path_idx", + "columns": ["_path"], + "isUnique": false + } + }, + "foreignKeys": { + "forms_blocks_text_parent_id_fk": { + "name": "forms_blocks_text_parent_id_fk", + "tableFrom": "forms_blocks_text", + "tableTo": "forms", + "columnsFrom": ["_parent_id"], + "columnsTo": ["id"], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "forms_blocks_textarea": { + "name": "forms_blocks_textarea", + "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 + }, + "_path": { + "name": "_path", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "id": { + "name": "id", + "type": "text", + "primaryKey": true, + "notNull": true, + "autoincrement": false + }, + "name": { + "name": "name", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "label": { + "name": "label", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "width": { + "name": "width", + "type": "numeric", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "default_value": { + "name": "default_value", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "required": { + "name": "required", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "block_name": { + "name": "block_name", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + } + }, + "indexes": { + "forms_blocks_textarea_order_idx": { + "name": "forms_blocks_textarea_order_idx", + "columns": ["_order"], + "isUnique": false + }, + "forms_blocks_textarea_parent_id_idx": { + "name": "forms_blocks_textarea_parent_id_idx", + "columns": ["_parent_id"], + "isUnique": false + }, + "forms_blocks_textarea_path_idx": { + "name": "forms_blocks_textarea_path_idx", + "columns": ["_path"], + "isUnique": false + } + }, + "foreignKeys": { + "forms_blocks_textarea_parent_id_fk": { + "name": "forms_blocks_textarea_parent_id_fk", + "tableFrom": "forms_blocks_textarea", + "tableTo": "forms", + "columnsFrom": ["_parent_id"], + "columnsTo": ["id"], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "forms_emails": { + "name": "forms_emails", + "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 + }, + "email_to": { + "name": "email_to", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "cc": { + "name": "cc", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "bcc": { + "name": "bcc", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "reply_to": { + "name": "reply_to", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "email_from": { + "name": "email_from", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "subject": { + "name": "subject", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false, + "default": "'You''ve received a new message.'" + }, + "message": { + "name": "message", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + } + }, + "indexes": { + "forms_emails_order_idx": { + "name": "forms_emails_order_idx", + "columns": ["_order"], + "isUnique": false + }, + "forms_emails_parent_id_idx": { + "name": "forms_emails_parent_id_idx", + "columns": ["_parent_id"], + "isUnique": false + } + }, + "foreignKeys": { + "forms_emails_parent_id_fk": { + "name": "forms_emails_parent_id_fk", + "tableFrom": "forms_emails", + "tableTo": "forms", + "columnsFrom": ["_parent_id"], + "columnsTo": ["id"], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "forms": { + "name": "forms", + "columns": { + "id": { + "name": "id", + "type": "integer", + "primaryKey": true, + "notNull": true, + "autoincrement": false + }, + "title": { + "name": "title", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "submit_button_label": { + "name": "submit_button_label", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "confirmation_type": { + "name": "confirmation_type", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false, + "default": "'message'" + }, + "confirmation_message": { + "name": "confirmation_message", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "redirect_url": { + "name": "redirect_url", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "tenant_id": { + "name": "tenant_id", + "type": "integer", + "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": { + "forms_tenant_idx": { + "name": "forms_tenant_idx", + "columns": ["tenant_id"], + "isUnique": false + }, + "forms_updated_at_idx": { + "name": "forms_updated_at_idx", + "columns": ["updated_at"], + "isUnique": false + }, + "forms_created_at_idx": { + "name": "forms_created_at_idx", + "columns": ["created_at"], + "isUnique": false + } + }, + "foreignKeys": { + "forms_tenant_id_tenants_id_fk": { + "name": "forms_tenant_id_tenants_id_fk", + "tableFrom": "forms", + "tableTo": "tenants", + "columnsFrom": ["tenant_id"], + "columnsTo": ["id"], + "onDelete": "set null", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "form_submissions_submission_data": { + "name": "form_submissions_submission_data", + "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 + }, + "field": { + "name": "field", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "value": { + "name": "value", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + } + }, + "indexes": { + "form_submissions_submission_data_order_idx": { + "name": "form_submissions_submission_data_order_idx", + "columns": ["_order"], + "isUnique": false + }, + "form_submissions_submission_data_parent_id_idx": { + "name": "form_submissions_submission_data_parent_id_idx", + "columns": ["_parent_id"], + "isUnique": false + } + }, + "foreignKeys": { + "form_submissions_submission_data_parent_id_fk": { + "name": "form_submissions_submission_data_parent_id_fk", + "tableFrom": "form_submissions_submission_data", + "tableTo": "form_submissions", + "columnsFrom": ["_parent_id"], + "columnsTo": ["id"], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "form_submissions": { + "name": "form_submissions", + "columns": { + "id": { + "name": "id", + "type": "integer", + "primaryKey": true, + "notNull": true, + "autoincrement": false + }, + "form_id": { + "name": "form_id", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "tenant_id": { + "name": "tenant_id", + "type": "integer", + "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": { + "form_submissions_form_idx": { + "name": "form_submissions_form_idx", + "columns": ["form_id"], + "isUnique": false + }, + "form_submissions_tenant_idx": { + "name": "form_submissions_tenant_idx", + "columns": ["tenant_id"], + "isUnique": false + }, + "form_submissions_updated_at_idx": { + "name": "form_submissions_updated_at_idx", + "columns": ["updated_at"], + "isUnique": false + }, + "form_submissions_created_at_idx": { + "name": "form_submissions_created_at_idx", + "columns": ["created_at"], + "isUnique": false + } + }, + "foreignKeys": { + "form_submissions_form_id_forms_id_fk": { + "name": "form_submissions_form_id_forms_id_fk", + "tableFrom": "form_submissions", + "tableTo": "forms", + "columnsFrom": ["form_id"], + "columnsTo": ["id"], + "onDelete": "set null", + "onUpdate": "no action" + }, + "form_submissions_tenant_id_tenants_id_fk": { + "name": "form_submissions_tenant_id_tenants_id_fk", + "tableFrom": "form_submissions", + "tableTo": "tenants", + "columnsFrom": ["tenant_id"], + "columnsTo": ["id"], + "onDelete": "set null", + "onUpdate": "no action" + } + }, + "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 + }, + "home_pages_id": { + "name": "home_pages_id", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "built_in_pages_id": { + "name": "built_in_pages_id", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "pages_id": { + "name": "pages_id", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "posts_id": { + "name": "posts_id", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "media_id": { + "name": "media_id", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "documents_id": { + "name": "documents_id", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "sponsors_id": { + "name": "sponsors_id", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "tags_id": { + "name": "tags_id", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "biographies_id": { + "name": "biographies_id", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "teams_id": { + "name": "teams_id", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "users_id": { + "name": "users_id", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "roles_id": { + "name": "roles_id", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "role_assignments_id": { + "name": "role_assignments_id", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "global_roles_id": { + "name": "global_roles_id", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "global_role_assignments_id": { + "name": "global_role_assignments_id", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "tenants_id": { + "name": "tenants_id", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "navigations_id": { + "name": "navigations_id", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "settings_id": { + "name": "settings_id", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "redirects_id": { + "name": "redirects_id", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "forms_id": { + "name": "forms_id", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "form_submissions_id": { + "name": "form_submissions_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_home_pages_id_idx": { + "name": "payload_locked_documents_rels_home_pages_id_idx", + "columns": ["home_pages_id"], + "isUnique": false + }, + "payload_locked_documents_rels_built_in_pages_id_idx": { + "name": "payload_locked_documents_rels_built_in_pages_id_idx", + "columns": ["built_in_pages_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_posts_id_idx": { + "name": "payload_locked_documents_rels_posts_id_idx", + "columns": ["posts_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_documents_id_idx": { + "name": "payload_locked_documents_rels_documents_id_idx", + "columns": ["documents_id"], + "isUnique": false + }, + "payload_locked_documents_rels_sponsors_id_idx": { + "name": "payload_locked_documents_rels_sponsors_id_idx", + "columns": ["sponsors_id"], + "isUnique": false + }, + "payload_locked_documents_rels_tags_id_idx": { + "name": "payload_locked_documents_rels_tags_id_idx", + "columns": ["tags_id"], + "isUnique": false + }, + "payload_locked_documents_rels_biographies_id_idx": { + "name": "payload_locked_documents_rels_biographies_id_idx", + "columns": ["biographies_id"], + "isUnique": false + }, + "payload_locked_documents_rels_teams_id_idx": { + "name": "payload_locked_documents_rels_teams_id_idx", + "columns": ["teams_id"], + "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_roles_id_idx": { + "name": "payload_locked_documents_rels_roles_id_idx", + "columns": ["roles_id"], + "isUnique": false + }, + "payload_locked_documents_rels_role_assignments_id_idx": { + "name": "payload_locked_documents_rels_role_assignments_id_idx", + "columns": ["role_assignments_id"], + "isUnique": false + }, + "payload_locked_documents_rels_global_roles_id_idx": { + "name": "payload_locked_documents_rels_global_roles_id_idx", + "columns": ["global_roles_id"], + "isUnique": false + }, + "payload_locked_documents_rels_global_role_assignments_id_idx": { + "name": "payload_locked_documents_rels_global_role_assignments_id_idx", + "columns": ["global_role_assignments_id"], + "isUnique": false + }, + "payload_locked_documents_rels_tenants_id_idx": { + "name": "payload_locked_documents_rels_tenants_id_idx", + "columns": ["tenants_id"], + "isUnique": false + }, + "payload_locked_documents_rels_navigations_id_idx": { + "name": "payload_locked_documents_rels_navigations_id_idx", + "columns": ["navigations_id"], + "isUnique": false + }, + "payload_locked_documents_rels_settings_id_idx": { + "name": "payload_locked_documents_rels_settings_id_idx", + "columns": ["settings_id"], + "isUnique": false + }, + "payload_locked_documents_rels_redirects_id_idx": { + "name": "payload_locked_documents_rels_redirects_id_idx", + "columns": ["redirects_id"], + "isUnique": false + }, + "payload_locked_documents_rels_forms_id_idx": { + "name": "payload_locked_documents_rels_forms_id_idx", + "columns": ["forms_id"], + "isUnique": false + }, + "payload_locked_documents_rels_form_submissions_id_idx": { + "name": "payload_locked_documents_rels_form_submissions_id_idx", + "columns": ["form_submissions_id"], + "isUnique": false + } + }, + "foreignKeys": { + "payload_locked_documents_rels_parent_1_idx": { + "name": "payload_locked_documents_rels_parent_1_idx", + "tableFrom": "payload_locked_documents_rels", + "tableTo": "payload_locked_documents", + "columnsFrom": ["parent_id"], + "columnsTo": ["id"], + "onDelete": "cascade", + "onUpdate": "no action" + }, + "payload_locked_documents_rels_home_pages_fk": { + "name": "payload_locked_documents_rels_home_pages_fk", + "tableFrom": "payload_locked_documents_rels", + "tableTo": "home_pages", + "columnsFrom": ["home_pages_id"], + "columnsTo": ["id"], + "onDelete": "cascade", + "onUpdate": "no action" + }, + "payload_locked_documents_rels_built_in_pages_fk": { + "name": "payload_locked_documents_rels_built_in_pages_fk", + "tableFrom": "payload_locked_documents_rels", + "tableTo": "built_in_pages", + "columnsFrom": ["built_in_pages_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_posts_fk": { + "name": "payload_locked_documents_rels_posts_fk", + "tableFrom": "payload_locked_documents_rels", + "tableTo": "posts", + "columnsFrom": ["posts_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_documents_fk": { + "name": "payload_locked_documents_rels_documents_fk", + "tableFrom": "payload_locked_documents_rels", + "tableTo": "documents", + "columnsFrom": ["documents_id"], + "columnsTo": ["id"], + "onDelete": "cascade", + "onUpdate": "no action" + }, + "payload_locked_documents_rels_sponsors_fk": { + "name": "payload_locked_documents_rels_sponsors_fk", + "tableFrom": "payload_locked_documents_rels", + "tableTo": "sponsors", + "columnsFrom": ["sponsors_id"], + "columnsTo": ["id"], + "onDelete": "cascade", + "onUpdate": "no action" + }, + "payload_locked_documents_rels_tags_fk": { + "name": "payload_locked_documents_rels_tags_fk", + "tableFrom": "payload_locked_documents_rels", + "tableTo": "tags", + "columnsFrom": ["tags_id"], + "columnsTo": ["id"], + "onDelete": "cascade", + "onUpdate": "no action" + }, + "payload_locked_documents_rels_biographies_fk": { + "name": "payload_locked_documents_rels_biographies_fk", + "tableFrom": "payload_locked_documents_rels", + "tableTo": "biographies", + "columnsFrom": ["biographies_id"], + "columnsTo": ["id"], + "onDelete": "cascade", + "onUpdate": "no action" + }, + "payload_locked_documents_rels_teams_fk": { + "name": "payload_locked_documents_rels_teams_fk", + "tableFrom": "payload_locked_documents_rels", + "tableTo": "teams", + "columnsFrom": ["teams_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_roles_fk": { + "name": "payload_locked_documents_rels_roles_fk", + "tableFrom": "payload_locked_documents_rels", + "tableTo": "roles", + "columnsFrom": ["roles_id"], + "columnsTo": ["id"], + "onDelete": "cascade", + "onUpdate": "no action" + }, + "payload_locked_documents_rels_role_assignments_fk": { + "name": "payload_locked_documents_rels_role_assignments_fk", + "tableFrom": "payload_locked_documents_rels", + "tableTo": "role_assignments", + "columnsFrom": ["role_assignments_id"], + "columnsTo": ["id"], + "onDelete": "cascade", + "onUpdate": "no action" + }, + "payload_locked_documents_rels_global_roles_fk": { + "name": "payload_locked_documents_rels_global_roles_fk", + "tableFrom": "payload_locked_documents_rels", + "tableTo": "global_roles", + "columnsFrom": ["global_roles_id"], + "columnsTo": ["id"], + "onDelete": "cascade", + "onUpdate": "no action" + }, + "payload_locked_documents_rels_global_role_assignments_fk": { + "name": "payload_locked_documents_rels_global_role_assignments_fk", + "tableFrom": "payload_locked_documents_rels", + "tableTo": "global_role_assignments", + "columnsFrom": ["global_role_assignments_id"], + "columnsTo": ["id"], + "onDelete": "cascade", + "onUpdate": "no action" + }, + "payload_locked_documents_rels_tenants_fk": { + "name": "payload_locked_documents_rels_tenants_fk", + "tableFrom": "payload_locked_documents_rels", + "tableTo": "tenants", + "columnsFrom": ["tenants_id"], + "columnsTo": ["id"], + "onDelete": "cascade", + "onUpdate": "no action" + }, + "payload_locked_documents_rels_navigations_fk": { + "name": "payload_locked_documents_rels_navigations_fk", + "tableFrom": "payload_locked_documents_rels", + "tableTo": "navigations", + "columnsFrom": ["navigations_id"], + "columnsTo": ["id"], + "onDelete": "cascade", + "onUpdate": "no action" + }, + "payload_locked_documents_rels_settings_fk": { + "name": "payload_locked_documents_rels_settings_fk", + "tableFrom": "payload_locked_documents_rels", + "tableTo": "settings", + "columnsFrom": ["settings_id"], + "columnsTo": ["id"], + "onDelete": "cascade", + "onUpdate": "no action" + }, + "payload_locked_documents_rels_redirects_fk": { + "name": "payload_locked_documents_rels_redirects_fk", + "tableFrom": "payload_locked_documents_rels", + "tableTo": "redirects", + "columnsFrom": ["redirects_id"], + "columnsTo": ["id"], + "onDelete": "cascade", + "onUpdate": "no action" + }, + "payload_locked_documents_rels_forms_fk": { + "name": "payload_locked_documents_rels_forms_fk", + "tableFrom": "payload_locked_documents_rels", + "tableTo": "forms", + "columnsFrom": ["forms_id"], + "columnsTo": ["id"], + "onDelete": "cascade", + "onUpdate": "no action" + }, + "payload_locked_documents_rels_form_submissions_fk": { + "name": "payload_locked_documents_rels_form_submissions_fk", + "tableFrom": "payload_locked_documents_rels", + "tableTo": "form_submissions", + "columnsFrom": ["form_submissions_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_1_idx": { + "name": "payload_preferences_rels_parent_1_idx", + "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": {} + }, + "nac_widgets_config": { + "name": "nac_widgets_config", + "columns": { + "id": { + "name": "id", + "type": "integer", + "primaryKey": true, + "notNull": true, + "autoincrement": false + }, + "version": { + "name": "version", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "base_url": { + "name": "base_url", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false, + "default": "'https://du6amfiq9m9h7.cloudfront.net/public/v2'" + }, + "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": {} + }, + "diagnostics": { + "name": "diagnostics", + "columns": { + "id": { + "name": "id", + "type": "integer", + "primaryKey": true, + "notNull": true, + "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": {} + } + }, + "views": {}, + "enums": {}, + "_meta": { + "tables": {}, + "columns": {} + }, + "internal": { + "indexes": {} + }, + "id": "81899d94-e994-4ed3-830d-c262857f652c", + "prevId": "00000000-0000-0000-0000-000000000000" +} diff --git a/src/migrations/20251023_195638_rename_indexes.ts b/src/migrations/20251023_195638_rename_indexes.ts new file mode 100644 index 00000000..dd582324 --- /dev/null +++ b/src/migrations/20251023_195638_rename_indexes.ts @@ -0,0 +1,39 @@ +import { MigrateDownArgs, MigrateUpArgs, sql } from '@payloadcms/db-sqlite' + +/** + * Migration for Payload 3.58.0 -> 3.61.0 upgrade + * + * This migration only renames two indexes to match Payload 3.61.0's expectations. + * The original auto-generated migration recreated all relationship tables, which would + * cause data loss in production due to Turso/libSQL not respecting PRAGMA foreign_keys=OFF + * inside transactions. + * + * See docs/migration-safety.md for reference. + */ + +export async function up({ db }: MigrateUpArgs): Promise { + // Drop old indexes with _idx suffix + await db.run(sql`DROP INDEX IF EXISTS \`roles_texts_order_parent_idx\`;`) + await db.run(sql`DROP INDEX IF EXISTS \`global_roles_texts_order_parent_idx\`;`) + + // Create new indexes without _idx suffix to match Payload 3.61.0 naming convention + await db.run( + sql`CREATE INDEX IF NOT EXISTS \`roles_texts_order_parent\` ON \`roles_texts\` (\`order\`,\`parent_id\`);`, + ) + await db.run( + sql`CREATE INDEX IF NOT EXISTS \`global_roles_texts_order_parent\` ON \`global_roles_texts\` (\`order\`,\`parent_id\`);`, + ) +} + +export async function down({ db }: MigrateDownArgs): Promise { + // Revert to old index names with _idx suffix + await db.run(sql`DROP INDEX IF EXISTS \`roles_texts_order_parent\`;`) + await db.run(sql`DROP INDEX IF EXISTS \`global_roles_texts_order_parent\`;`) + + await db.run( + sql`CREATE INDEX IF NOT EXISTS \`roles_texts_order_parent_idx\` ON \`roles_texts\` (\`order\`,\`parent_id\`);`, + ) + await db.run( + sql`CREATE INDEX IF NOT EXISTS \`global_roles_texts_order_parent_idx\` ON \`global_roles_texts\` (\`order\`,\`parent_id\`);`, + ) +} diff --git a/src/migrations/20251023_195638_rename_indexes_explanation.md b/src/migrations/20251023_195638_rename_indexes_explanation.md new file mode 100644 index 00000000..30c7e4fb --- /dev/null +++ b/src/migrations/20251023_195638_rename_indexes_explanation.md @@ -0,0 +1,77 @@ +## Actual changes in JSON snapshots + +1. Index Renames (already handled correctly) + +- roles_texts_order_parent_idx → roles_texts_order_parent +- global_roles_texts_order_parent_idx → global_roles_texts_order_parent + +2. Foreign Key Renames (currently missing!) + +The diff shows that 12 foreign keys are being renamed from _\_parent_fk to _\_parent_1_idx: + +1. home_pages_rels_parent_fk → home_pages_rels_parent_1_idx +2. \_home_pages_v_rels_parent_fk → \_home_pages_v_rels_parent_1_idx +3. pages_rels_parent_fk → pages_rels_parent_1_idx +4. \_pages_v_rels_parent_fk → \_pages_v_rels_parent_1_idx +5. posts_rels_parent_fk → posts_rels_parent_1_idx +6. \_posts_v_rels_parent_fk → \_posts_v_rels_parent_1_idx +7. teams_rels_parent_fk → teams_rels_parent_1_idx +8. navigations_rels_parent_fk → navigations_rels_parent_1_idx +9. \_navigations_v_rels_parent_fk → \_navigations_v_rels_parent_1_idx +10. settings_rels_parent_fk → settings_rels_parent_1_idx +11. redirects_rels_parent_fk → redirects_rels_parent_1_idx +12. payload_locked_documents_rels_parent_fk → payload_locked_documents_rels_parent_1_idx +13. payload_preferences_rels_parent_fk → payload_preferences_rels_parent_1_idx + +## What caused these changes + +The Root Cause + +Commit: a63b4d9f4c - "fix(db-postgres): limit index and foreign key names length (#14236)" +Date: October 17, 2025 +In Version: 3.61.0 + +What Changed + +Payload added two new utilities to prevent PostgreSQL identifier length limit errors: + +1. buildIndexName() - Now has an appendSuffix parameter +2. buildForeignKeyName() - New utility for foreign key names + +The Specific Changes + +1. Index Names - \_idx suffix now optional + +For the \*\_texts tables (like roles_texts, global_roles_texts), Payload changed from: +// OLD (before 3.61.0) +name: `${textsTableName}_order_parent_idx` + +// NEW (3.61.0+) +name: buildIndexName({ +name: `${textsTableName}_order_parent`, +adapter, +appendSuffix: false, // <-- This removes the \_idx suffix +}) + +Result: roles_texts_order_parent_idx → roles_texts_order_parent + +2. Foreign Key Names - \_fk → \_1_fk pattern for relationships + +For relationship tables (\*\_rels), the naming changed from: +// OLD +name: `${tableName}_parent_fk` + +// NEW +name: buildForeignKeyName({ +name: `${tableName}_parent`, +adapter +}) + +The buildForeignKeyName() function adds collision detection - if a name already exists, it appends \_1, \_2, etc. Since relationship tables share similar naming patterns, they get numbered: home_pages_rels_parent_1_fk. + +But in SQLite these foreign key "names" are just metadata in Payload's schema JSON - SQLite doesn't actually use named foreign key constraints that can be referenced later, so no actual database migration is needed for the foreign key renames. + +Conclusion + +The migration at src/migrations/20251023_195638_rename_indexes.ts:14-40 only needs to handle the actual index +renames. The foreign key name changes in the JSON schema are just Payload's internal bookkeeping and don't require database alterations for SQLite. diff --git a/src/migrations/20251023_195638_rename_indexes_migration_comparison.diff b/src/migrations/20251023_195638_rename_indexes_migration_comparison.diff new file mode 100644 index 00000000..3cd309fb --- /dev/null +++ b/src/migrations/20251023_195638_rename_indexes_migration_comparison.diff @@ -0,0 +1,175 @@ +--- src/migrations/20251020_222917_blocks_in_highlighted_content.json 2025-10-23 12:16:08 ++++ src/migrations/20251023_195638_rename_indexes.json 2025-10-23 13:36:46 +@@ -2402,8 +2402,8 @@ + } + }, + "foreignKeys": { +- "home_pages_rels_parent_fk": { +- "name": "home_pages_rels_parent_fk", ++ "home_pages_rels_parent_1_idx": { ++ "name": "home_pages_rels_parent_1_idx", + "tableFrom": "home_pages_rels", + "tableTo": "home_pages", + "columnsFrom": ["parent_id"], +@@ -5091,8 +5091,8 @@ + } + }, + "foreignKeys": { +- "_home_pages_v_rels_parent_fk": { +- "name": "_home_pages_v_rels_parent_fk", ++ "_home_pages_v_rels_parent_1_idx": { ++ "name": "_home_pages_v_rels_parent_1_idx", + "tableFrom": "_home_pages_v_rels", + "tableTo": "_home_pages_v", + "columnsFrom": ["parent_id"], +@@ -7448,8 +7448,8 @@ + } + }, + "foreignKeys": { +- "pages_rels_parent_fk": { +- "name": "pages_rels_parent_fk", ++ "pages_rels_parent_1_idx": { ++ "name": "pages_rels_parent_1_idx", + "tableFrom": "pages_rels", + "tableTo": "pages", + "columnsFrom": ["parent_id"], +@@ -9927,8 +9927,8 @@ + } + }, + "foreignKeys": { +- "_pages_v_rels_parent_fk": { +- "name": "_pages_v_rels_parent_fk", ++ "_pages_v_rels_parent_1_idx": { ++ "name": "_pages_v_rels_parent_1_idx", + "tableFrom": "_pages_v_rels", + "tableTo": "_pages_v", + "columnsFrom": ["parent_id"], +@@ -10367,8 +10367,8 @@ + } + }, + "foreignKeys": { +- "posts_rels_parent_fk": { +- "name": "posts_rels_parent_fk", ++ "posts_rels_parent_1_idx": { ++ "name": "posts_rels_parent_1_idx", + "tableFrom": "posts_rels", + "tableTo": "posts", + "columnsFrom": ["parent_id"], +@@ -10872,8 +10872,8 @@ + } + }, + "foreignKeys": { +- "_posts_v_rels_parent_fk": { +- "name": "_posts_v_rels_parent_fk", ++ "_posts_v_rels_parent_1_idx": { ++ "name": "_posts_v_rels_parent_1_idx", + "tableFrom": "_posts_v_rels", + "tableTo": "_posts_v", + "columnsFrom": ["parent_id"], +@@ -12032,8 +12032,8 @@ + } + }, + "foreignKeys": { +- "teams_rels_parent_fk": { +- "name": "teams_rels_parent_fk", ++ "teams_rels_parent_1_idx": { ++ "name": "teams_rels_parent_1_idx", + "tableFrom": "teams_rels", + "tableTo": "teams", + "columnsFrom": ["parent_id"], +@@ -12474,8 +12474,8 @@ + } + }, + "indexes": { +- "roles_texts_order_parent_idx": { +- "name": "roles_texts_order_parent_idx", ++ "roles_texts_order_parent": { ++ "name": "roles_texts_order_parent", + "columns": ["order", "parent_id"], + "isUnique": false + } +@@ -12824,8 +12824,8 @@ + } + }, + "indexes": { +- "global_roles_texts_order_parent_idx": { +- "name": "global_roles_texts_order_parent_idx", ++ "global_roles_texts_order_parent": { ++ "name": "global_roles_texts_order_parent", + "columns": ["order", "parent_id"], + "isUnique": false + } +@@ -14430,8 +14430,8 @@ + } + }, + "foreignKeys": { +- "navigations_rels_parent_fk": { +- "name": "navigations_rels_parent_fk", ++ "navigations_rels_parent_1_idx": { ++ "name": "navigations_rels_parent_1_idx", + "tableFrom": "navigations_rels", + "tableTo": "navigations", + "columnsFrom": ["parent_id"], +@@ -16052,8 +16052,8 @@ + } + }, + "foreignKeys": { +- "_navigations_v_rels_parent_fk": { +- "name": "_navigations_v_rels_parent_fk", ++ "_navigations_v_rels_parent_1_idx": { ++ "name": "_navigations_v_rels_parent_1_idx", + "tableFrom": "_navigations_v_rels", + "tableTo": "_navigations_v", + "columnsFrom": ["parent_id"], +@@ -16474,8 +16474,8 @@ + } + }, + "foreignKeys": { +- "settings_rels_parent_fk": { +- "name": "settings_rels_parent_fk", ++ "settings_rels_parent_1_idx": { ++ "name": "settings_rels_parent_1_idx", + "tableFrom": "settings_rels", + "tableTo": "settings", + "columnsFrom": ["parent_id"], +@@ -16690,8 +16690,8 @@ + } + }, + "foreignKeys": { +- "redirects_rels_parent_fk": { +- "name": "redirects_rels_parent_fk", ++ "redirects_rels_parent_1_idx": { ++ "name": "redirects_rels_parent_1_idx", + "tableFrom": "redirects_rels", + "tableTo": "redirects", + "columnsFrom": ["parent_id"], +@@ -18424,8 +18424,8 @@ + } + }, + "foreignKeys": { +- "payload_locked_documents_rels_parent_fk": { +- "name": "payload_locked_documents_rels_parent_fk", ++ "payload_locked_documents_rels_parent_1_idx": { ++ "name": "payload_locked_documents_rels_parent_1_idx", + "tableFrom": "payload_locked_documents_rels", + "tableTo": "payload_locked_documents", + "columnsFrom": ["parent_id"], +@@ -18752,8 +18752,8 @@ + } + }, + "foreignKeys": { +- "payload_preferences_rels_parent_fk": { +- "name": "payload_preferences_rels_parent_fk", ++ "payload_preferences_rels_parent_1_idx": { ++ "name": "payload_preferences_rels_parent_1_idx", + "tableFrom": "payload_preferences_rels", + "tableTo": "payload_preferences", + "columnsFrom": ["parent_id"], +@@ -18920,6 +18920,6 @@ + "internal": { + "indexes": {} + }, +- "id": "d8147c5d-22e9-498a-a75b-b56bb856f6b7", ++ "id": "81899d94-e994-4ed3-830d-c262857f652c", + "prevId": "00000000-0000-0000-0000-000000000000" + } diff --git a/src/migrations/index.ts b/src/migrations/index.ts index 48f8bd16..ef57a54c 100644 --- a/src/migrations/index.ts +++ b/src/migrations/index.ts @@ -31,6 +31,7 @@ import * as migration_20251001_180603_nav_items_with_enabled_toggle from './2025 import * as migration_20251001_221006_update_bios from './20251001_221006_update_bios' import * as migration_20251016_001620_update_post_authors_date from './20251016_001620_update_post_authors_date' import * as migration_20251020_222917_blocks_in_highlighted_content from './20251020_222917_blocks_in_highlighted_content' +import * as migration_20251023_195638_rename_indexes from './20251023_195638_rename_indexes' export const migrations = [ { @@ -198,4 +199,9 @@ export const migrations = [ down: migration_20251020_222917_blocks_in_highlighted_content.down, name: '20251020_222917_blocks_in_highlighted_content', }, + { + up: migration_20251023_195638_rename_indexes.up, + down: migration_20251023_195638_rename_indexes.down, + name: '20251023_195638_rename_indexes', + }, ] diff --git a/src/services/nac/nac.ts b/src/services/nac/nac.ts index 60c8e14d..4aa2ac9c 100644 --- a/src/services/nac/nac.ts +++ b/src/services/nac/nac.ts @@ -47,7 +47,7 @@ export async function nacFetch(path: string, options: Options = {}) { return data } catch (error) { const payload = await getPayload({ config }) - payload.logger.debug('nacFetch error: ', error) + payload.logger.debug({ err: error }, 'nacFetch error') if (error instanceof NACError) { throw error @@ -101,7 +101,7 @@ export async function afpFetch(path: string, options: Options = {}) { return data } catch (error) { const payload = await getPayload({ config }) - payload.logger.debug('afpFetch error: ', error) + payload.logger.debug({ err: error }, 'afpFetch error') if (error instanceof NACError) { throw error diff --git a/src/utilities/generateOGImage.tsx b/src/utilities/generateOGImage.tsx index 6889a14b..fa50451e 100644 --- a/src/utilities/generateOGImage.tsx +++ b/src/utilities/generateOGImage.tsx @@ -78,7 +78,7 @@ export async function generateOGImage({ }, }) } catch (fallbackErr) { - payload.logger.error('Failed to load fallback OG image:', fallbackErr) + payload.logger.error({ err: fallbackErr }, 'Failed to load fallback OG image') return new Response('Failed to generate OG image', { status: 500 }) } } @@ -216,7 +216,7 @@ export async function generateOGImage({ }, ) } catch (err) { - payload.logger.error(err) + payload.logger.error({ err }, 'Failed to generate OG image') Sentry.captureException(err) return new Response('Failed to generate OG image', { status: 500, diff --git a/src/utilities/getSlugFromTenantId.ts b/src/utilities/getSlugFromTenantId.ts index b18138ca..dadd8d15 100644 --- a/src/utilities/getSlugFromTenantId.ts +++ b/src/utilities/getSlugFromTenantId.ts @@ -2,7 +2,11 @@ import config from '@payload-config' import { getPayload } from 'payload' -export async function getSlugFromTenantId(id: number) { +export async function getSlugFromTenantId(id: number | undefined) { + if (!id) { + return null + } + const payload = await getPayload({ config }) const tenant = await payload.findByID({ collection: 'tenants',