diff --git a/package.json b/package.json index 56ec5f8..04ffbd2 100644 --- a/package.json +++ b/package.json @@ -27,25 +27,24 @@ "prepare": "test -d .git && (ln -sf ../../scripts/detect-secrets.sh .git/hooks/pre-commit 2>/dev/null || true) || true" }, "dependencies": { - "@payloadcms/db-postgres": "3.68.4", - "@payloadcms/next": "3.68.4", - "@payloadcms/plugin-form-builder": "3.68.4", - "@payloadcms/plugin-multi-tenant": "3.68.4", - "@payloadcms/plugin-nested-docs": "3.68.4", - "@payloadcms/plugin-redirects": "3.68.4", - "@payloadcms/plugin-seo": "3.68.4", - "@payloadcms/richtext-lexical": "3.68.4", - "@payloadcms/translations": "3.68.4", - "@payloadcms/ui": "3.68.4", + "@payloadcms/db-postgres": "3.69.0", + "@payloadcms/next": "3.69.0", + "@payloadcms/plugin-form-builder": "3.69.0", + "@payloadcms/plugin-multi-tenant": "3.69.0", + "@payloadcms/plugin-nested-docs": "3.69.0", + "@payloadcms/plugin-redirects": "3.69.0", + "@payloadcms/plugin-seo": "3.69.0", + "@payloadcms/richtext-lexical": "3.69.0", + "@payloadcms/translations": "3.69.0", + "@payloadcms/ui": "3.69.0", "bullmq": "^5.65.1", "cross-env": "^7.0.3", "dotenv": "16.4.7", - "graphql": "^16.8.1", "ioredis": "^5.8.2", "next": "15.5.9", "node-cron": "^4.2.1", "nodemailer": "^7.0.11", - "payload": "3.68.4", + "payload": "3.69.0", "payload-oapi": "^0.2.5", "react": "19.2.3", "react-dom": "19.2.3", @@ -54,7 +53,6 @@ "devDependencies": { "@eslint/eslintrc": "^3.3.3", "@playwright/test": "1.57.0", - "@testing-library/react": "16.3.0", "@types/node": "^22.10.2", "@types/node-cron": "^3.0.11", "@types/nodemailer": "^7.0.4", @@ -67,7 +65,6 @@ "eslint-config-next": "15.5.9", "jsdom": "26.1.0", "playwright": "1.57.0", - "playwright-core": "1.57.0", "prettier": "^3.7.4", "typescript": "5.9.3", "vite-tsconfig-paths": "6.0.0", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index dfbe861..f8def93 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -9,35 +9,35 @@ importers: .: dependencies: '@payloadcms/db-postgres': - specifier: 3.68.4 - version: 3.68.4(payload@3.68.4(graphql@16.12.0)(typescript@5.9.3)) + specifier: 3.69.0 + version: 3.69.0(payload@3.69.0(graphql@16.12.0)(typescript@5.9.3)) '@payloadcms/next': - specifier: 3.68.4 - version: 3.68.4(@types/react@19.2.7)(graphql@16.12.0)(monaco-editor@0.55.1)(next@15.5.9(@babel/core@7.28.5)(@playwright/test@1.57.0)(react-dom@19.2.3(react@19.2.3))(react@19.2.3)(sass@1.77.4))(payload@3.68.4(graphql@16.12.0)(typescript@5.9.3))(react-dom@19.2.3(react@19.2.3))(react@19.2.3)(typescript@5.9.3) + specifier: 3.69.0 + version: 3.69.0(@types/react@19.2.7)(graphql@16.12.0)(monaco-editor@0.55.1)(next@15.5.9(@babel/core@7.28.5)(@playwright/test@1.57.0)(react-dom@19.2.3(react@19.2.3))(react@19.2.3)(sass@1.77.4))(payload@3.69.0(graphql@16.12.0)(typescript@5.9.3))(react-dom@19.2.3(react@19.2.3))(react@19.2.3)(typescript@5.9.3) '@payloadcms/plugin-form-builder': - specifier: 3.68.4 - version: 3.68.4(@types/react@19.2.7)(monaco-editor@0.55.1)(next@15.5.9(@babel/core@7.28.5)(@playwright/test@1.57.0)(react-dom@19.2.3(react@19.2.3))(react@19.2.3)(sass@1.77.4))(payload@3.68.4(graphql@16.12.0)(typescript@5.9.3))(react-dom@19.2.3(react@19.2.3))(react@19.2.3)(typescript@5.9.3) + specifier: 3.69.0 + version: 3.69.0(@types/react@19.2.7)(monaco-editor@0.55.1)(next@15.5.9(@babel/core@7.28.5)(@playwright/test@1.57.0)(react-dom@19.2.3(react@19.2.3))(react@19.2.3)(sass@1.77.4))(payload@3.69.0(graphql@16.12.0)(typescript@5.9.3))(react-dom@19.2.3(react@19.2.3))(react@19.2.3)(typescript@5.9.3) '@payloadcms/plugin-multi-tenant': - specifier: 3.68.4 - version: 3.68.4(@payloadcms/ui@3.68.4(@types/react@19.2.7)(monaco-editor@0.55.1)(next@15.5.9(@babel/core@7.28.5)(@playwright/test@1.57.0)(react-dom@19.2.3(react@19.2.3))(react@19.2.3)(sass@1.77.4))(payload@3.68.4(graphql@16.12.0)(typescript@5.9.3))(react-dom@19.2.3(react@19.2.3))(react@19.2.3)(typescript@5.9.3))(payload@3.68.4(graphql@16.12.0)(typescript@5.9.3)) + specifier: 3.69.0 + version: 3.69.0(@payloadcms/ui@3.69.0(@types/react@19.2.7)(monaco-editor@0.55.1)(next@15.5.9(@babel/core@7.28.5)(@playwright/test@1.57.0)(react-dom@19.2.3(react@19.2.3))(react@19.2.3)(sass@1.77.4))(payload@3.69.0(graphql@16.12.0)(typescript@5.9.3))(react-dom@19.2.3(react@19.2.3))(react@19.2.3)(typescript@5.9.3))(payload@3.69.0(graphql@16.12.0)(typescript@5.9.3)) '@payloadcms/plugin-nested-docs': - specifier: 3.68.4 - version: 3.68.4(payload@3.68.4(graphql@16.12.0)(typescript@5.9.3)) + specifier: 3.69.0 + version: 3.69.0(payload@3.69.0(graphql@16.12.0)(typescript@5.9.3)) '@payloadcms/plugin-redirects': - specifier: 3.68.4 - version: 3.68.4(payload@3.68.4(graphql@16.12.0)(typescript@5.9.3)) + specifier: 3.69.0 + version: 3.69.0(payload@3.69.0(graphql@16.12.0)(typescript@5.9.3)) '@payloadcms/plugin-seo': - specifier: 3.68.4 - version: 3.68.4(@types/react@19.2.7)(monaco-editor@0.55.1)(next@15.5.9(@babel/core@7.28.5)(@playwright/test@1.57.0)(react-dom@19.2.3(react@19.2.3))(react@19.2.3)(sass@1.77.4))(payload@3.68.4(graphql@16.12.0)(typescript@5.9.3))(react-dom@19.2.3(react@19.2.3))(react@19.2.3)(typescript@5.9.3) + specifier: 3.69.0 + version: 3.69.0(@types/react@19.2.7)(monaco-editor@0.55.1)(next@15.5.9(@babel/core@7.28.5)(@playwright/test@1.57.0)(react-dom@19.2.3(react@19.2.3))(react@19.2.3)(sass@1.77.4))(payload@3.69.0(graphql@16.12.0)(typescript@5.9.3))(react-dom@19.2.3(react@19.2.3))(react@19.2.3)(typescript@5.9.3) '@payloadcms/richtext-lexical': - specifier: 3.68.4 - version: 3.68.4(@faceless-ui/modal@3.0.0(react-dom@19.2.3(react@19.2.3))(react@19.2.3))(@faceless-ui/scroll-info@2.0.0(react-dom@19.2.3(react@19.2.3))(react@19.2.3))(@payloadcms/next@3.68.4(@types/react@19.2.7)(graphql@16.12.0)(monaco-editor@0.55.1)(next@15.5.9(@babel/core@7.28.5)(@playwright/test@1.57.0)(react-dom@19.2.3(react@19.2.3))(react@19.2.3)(sass@1.77.4))(payload@3.68.4(graphql@16.12.0)(typescript@5.9.3))(react-dom@19.2.3(react@19.2.3))(react@19.2.3)(typescript@5.9.3))(@types/react@19.2.7)(monaco-editor@0.55.1)(next@15.5.9(@babel/core@7.28.5)(@playwright/test@1.57.0)(react-dom@19.2.3(react@19.2.3))(react@19.2.3)(sass@1.77.4))(payload@3.68.4(graphql@16.12.0)(typescript@5.9.3))(react-dom@19.2.3(react@19.2.3))(react@19.2.3)(typescript@5.9.3)(yjs@13.6.27) + specifier: 3.69.0 + version: 3.69.0(@faceless-ui/modal@3.0.0(react-dom@19.2.3(react@19.2.3))(react@19.2.3))(@faceless-ui/scroll-info@2.0.0(react-dom@19.2.3(react@19.2.3))(react@19.2.3))(@payloadcms/next@3.69.0(@types/react@19.2.7)(graphql@16.12.0)(monaco-editor@0.55.1)(next@15.5.9(@babel/core@7.28.5)(@playwright/test@1.57.0)(react-dom@19.2.3(react@19.2.3))(react@19.2.3)(sass@1.77.4))(payload@3.69.0(graphql@16.12.0)(typescript@5.9.3))(react-dom@19.2.3(react@19.2.3))(react@19.2.3)(typescript@5.9.3))(@types/react@19.2.7)(monaco-editor@0.55.1)(next@15.5.9(@babel/core@7.28.5)(@playwright/test@1.57.0)(react-dom@19.2.3(react@19.2.3))(react@19.2.3)(sass@1.77.4))(payload@3.69.0(graphql@16.12.0)(typescript@5.9.3))(react-dom@19.2.3(react@19.2.3))(react@19.2.3)(typescript@5.9.3)(yjs@13.6.27) '@payloadcms/translations': - specifier: 3.68.4 - version: 3.68.4 + specifier: 3.69.0 + version: 3.69.0 '@payloadcms/ui': - specifier: 3.68.4 - version: 3.68.4(@types/react@19.2.7)(monaco-editor@0.55.1)(next@15.5.9(@babel/core@7.28.5)(@playwright/test@1.57.0)(react-dom@19.2.3(react@19.2.3))(react@19.2.3)(sass@1.77.4))(payload@3.68.4(graphql@16.12.0)(typescript@5.9.3))(react-dom@19.2.3(react@19.2.3))(react@19.2.3)(typescript@5.9.3) + specifier: 3.69.0 + version: 3.69.0(@types/react@19.2.7)(monaco-editor@0.55.1)(next@15.5.9(@babel/core@7.28.5)(@playwright/test@1.57.0)(react-dom@19.2.3(react@19.2.3))(react@19.2.3)(sass@1.77.4))(payload@3.69.0(graphql@16.12.0)(typescript@5.9.3))(react-dom@19.2.3(react@19.2.3))(react@19.2.3)(typescript@5.9.3) bullmq: specifier: ^5.65.1 version: 5.65.1 @@ -47,9 +47,6 @@ importers: dotenv: specifier: 16.4.7 version: 16.4.7 - graphql: - specifier: ^16.8.1 - version: 16.12.0 ioredis: specifier: ^5.8.2 version: 5.8.2 @@ -63,11 +60,11 @@ importers: specifier: ^7.0.11 version: 7.0.11 payload: - specifier: 3.68.4 - version: 3.68.4(graphql@16.12.0)(typescript@5.9.3) + specifier: 3.69.0 + version: 3.69.0(graphql@16.12.0)(typescript@5.9.3) payload-oapi: specifier: ^0.2.5 - version: 0.2.5(@types/json-schema@7.0.15)(payload@3.68.4(graphql@16.12.0)(typescript@5.9.3)) + version: 0.2.5(@types/json-schema@7.0.15)(payload@3.69.0(graphql@16.12.0)(typescript@5.9.3)) react: specifier: 19.2.3 version: 19.2.3 @@ -84,9 +81,6 @@ importers: '@playwright/test': specifier: 1.57.0 version: 1.57.0 - '@testing-library/react': - specifier: 16.3.0 - version: 16.3.0(@testing-library/dom@10.4.1)(@types/react-dom@19.2.3(@types/react@19.2.7))(@types/react@19.2.7)(react-dom@19.2.3(react@19.2.3))(react@19.2.3) '@types/node': specifier: ^22.10.2 version: 22.19.1 @@ -123,9 +117,6 @@ importers: playwright: specifier: 1.57.0 version: 1.57.0 - playwright-core: - specifier: 1.57.0 - version: 1.57.0 prettier: specifier: ^3.7.4 version: 3.7.4 @@ -419,6 +410,12 @@ packages: react: '>=16.8.0' react-dom: '>=16.8.0' + '@dnd-kit/modifiers@9.0.0': + resolution: {integrity: sha512-ybiLc66qRGuZoC20wdSSG6pDXFikui/dCNGthxv4Ndy8ylErY0N3KVxY2bgo7AWwIbxDmXDg3ylAFmnrjcbVvw==} + peerDependencies: + '@dnd-kit/core': ^6.3.0 + react: '>=16.8.0' + '@dnd-kit/sortable@7.0.2': resolution: {integrity: sha512-wDkBHHf9iCi1veM834Gbk1429bd4lHX4RpAwT0y2cHLf246GAvU2sVw/oxWNpPKQNQRQaeGXhAVgrOl1IT+iyA==} peerDependencies: @@ -1225,81 +1222,81 @@ packages: peerDependencies: openapi-types: '*' - '@payloadcms/db-postgres@3.68.4': - resolution: {integrity: sha512-MZxocw87eC9Z7IwXPkzlJW4DPexx8ohVYwtTyHyIceoLydH1FcSEPOcmbHLEUo+nT5L7T/D3DyGN3ogkkaUchw==} + '@payloadcms/db-postgres@3.69.0': + resolution: {integrity: sha512-Fz/hjP0z88zrsYz1UzaqnoM3L+yHymH+yWUIJnIf7jMCtnfi/ws5XBX/0DHILvxoVsCNc5XSx3fTjcBCJoYylw==} peerDependencies: - payload: 3.68.4 + payload: 3.69.0 - '@payloadcms/drizzle@3.68.4': - resolution: {integrity: sha512-i3zAnHTAOW5Qnw61IbBCGCgPkNokOuTSrqeQQomQj1gS/FfJ/Xx9DGgPZAH7QpKZXes+R47/XYlSr6cYxvAxbw==} + '@payloadcms/drizzle@3.69.0': + resolution: {integrity: sha512-Fsvij6ruoN7S7q1OfGYs/SSLy3s7wFd4E/efXHmRLjw53xtlRiGXIejmhiUEdNK4d5RHi0yjIblQsbTKnBvirw==} peerDependencies: - payload: 3.68.4 + payload: 3.69.0 - '@payloadcms/graphql@3.68.4': - resolution: {integrity: sha512-EE4zWGMqCxYHd/J8nSAhtsFPndNRzYiXlLlx3zqRgi5Hhq96z4aYwcxHnk//syQKn3tKBCVjDvP41t0mTSBUaw==} + '@payloadcms/graphql@3.69.0': + resolution: {integrity: sha512-VRFacg4EneV7U9jqerQfNVL/O788WlZbdnMGSwds0mVwC5qPW3sktZhHxJCAksvAFJ+XXtx4GCMv/YK8DgEfxw==} hasBin: true peerDependencies: graphql: ^16.8.1 - payload: 3.68.4 + payload: 3.69.0 - '@payloadcms/next@3.68.4': - resolution: {integrity: sha512-UXBR7iVrC+ilj6UZ8M/+CF655Y5gZSokVFCz4sNrpIJX84K5MUaTGCuz1WTCoTj3Xbap5OlZVlGEZaO63cqVuw==} + '@payloadcms/next@3.69.0': + resolution: {integrity: sha512-rkj/wvTDcbOkb8+v4jkZVdoJm2tvPUQL62CWoGnysy/ST+ZUwMr/70veLB7Ztr3uj6HKi6dU+31H+gG94UaMZg==} engines: {node: ^18.20.2 || >=20.9.0} peerDependencies: graphql: ^16.8.1 next: ^15.4.10 - payload: 3.68.4 + payload: 3.69.0 - '@payloadcms/plugin-form-builder@3.68.4': - resolution: {integrity: sha512-Xc+MsB4kmneEe/KdIwZj4Ev1p3kiIiWL5FxosYtPY+4OYW8gCeHTRNf8kdDVBqaX24pwsyjHdz7x9BM+2rVMCg==} + '@payloadcms/plugin-form-builder@3.69.0': + resolution: {integrity: sha512-4ezzO6+pnQBqTx9TPr3Aer3Tnnpkv8+wB2hZqgAohdByTaejf7+N0JIIwTiZSS+FPf8itrjkEPjJ6e/h2RXfdQ==} peerDependencies: - payload: 3.68.4 + payload: 3.69.0 react: ^19.0.1 || ^19.1.2 || ^19.2.1 react-dom: ^19.0.1 || ^19.1.2 || ^19.2.1 - '@payloadcms/plugin-multi-tenant@3.68.4': - resolution: {integrity: sha512-4EuNmf6Sql1mkv8mS1yWSUKjt3uAWWuF+aoBok2AOcy09UPwt0AspL/GHsMjBCkYNmojwsnjSGRtfEeYLg+jIg==} + '@payloadcms/plugin-multi-tenant@3.69.0': + resolution: {integrity: sha512-0uoOmmfMfr9xOMn94Xh1osmSeaYaLzmkUbtx2uNxT+IZqSX4xi9YMq8Qrag5j738294H6MlDYW3LjHFmYDSFXw==} peerDependencies: - '@payloadcms/ui': 3.68.4 - payload: 3.68.4 + '@payloadcms/ui': 3.69.0 + payload: 3.69.0 - '@payloadcms/plugin-nested-docs@3.68.4': - resolution: {integrity: sha512-QEZ1mvhT2G5gCIoREaMIxoMKZuNR9y6iEUeQxc8w7OIvV8DuxZkgBBNlh3k46qMSqY6rrcQAHVL2Q2M71uIsug==} + '@payloadcms/plugin-nested-docs@3.69.0': + resolution: {integrity: sha512-Ch6OBcS+hUen9Q6cMxpI7aOueJdwv/bFDZOh/0DyoY4jLcCjIG2n+ZNslZ6gzA4CtKJAGziif4iyPD5iAaRFPA==} peerDependencies: - payload: 3.68.4 + payload: 3.69.0 - '@payloadcms/plugin-redirects@3.68.4': - resolution: {integrity: sha512-rnZFbYwRll7+IpUIeQc1nDhzFk7M/ksTWyO9YU2sQV3F/SLZVZ8AN15vOypoh0byRAkXDfepq7ADcVGWkRolaw==} + '@payloadcms/plugin-redirects@3.69.0': + resolution: {integrity: sha512-cBTyVCatT+ejDGsdTz04mLiolM54UHlRqBQ8nGoSmeMDSP987pqR84FeLiStj+IKFW5GMHFDY9ueD5yN30BSIQ==} peerDependencies: - payload: 3.68.4 + payload: 3.69.0 - '@payloadcms/plugin-seo@3.68.4': - resolution: {integrity: sha512-VsJarN426yQtCoqHoHGnsKWFQIx2CtOlG2ZkikbtxMjD1JKb/e3ryxvH9bUMMI0ekfzPyJg54LW1iihP2UumRw==} + '@payloadcms/plugin-seo@3.69.0': + resolution: {integrity: sha512-jbcbXx4PdV/psZZsOiVqfbDb15jGnCy/LuVBlO/DsMhe2/1DiMO2PfWNGBhFIAn94mB9UjnNoi0P+JBtuEYNhw==} peerDependencies: - payload: 3.68.4 + payload: 3.69.0 react: ^19.0.1 || ^19.1.2 || ^19.2.1 react-dom: ^19.0.1 || ^19.1.2 || ^19.2.1 - '@payloadcms/richtext-lexical@3.68.4': - resolution: {integrity: sha512-HA9F1QrIUeWN/dCkhwF5pSXJDdFVbSr0N8iUkJk/WpqCTJiTTeIGR/BsQXkQ9V1AHSQAOv8kNWF8DzsOp1XFrw==} + '@payloadcms/richtext-lexical@3.69.0': + resolution: {integrity: sha512-NwyTN3GY1FOFTP0V3gm+M0FxK4GDWL2R0p2DrirIi7nZOH2rw6P+FfvMvzobT/nxUsQYntBnjoGDWhqN+uq3lg==} 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.68.4 - payload: 3.68.4 + '@payloadcms/next': 3.69.0 + payload: 3.69.0 react: ^19.0.1 || ^19.1.2 || ^19.2.1 react-dom: ^19.0.1 || ^19.1.2 || ^19.2.1 - '@payloadcms/translations@3.68.4': - resolution: {integrity: sha512-1LbClkAlvWKWVD8a8RuNYS109Ga/RwSA5X5nohmBNNAp10E4auM2PhQXcSHh5gvVDUuA1puVJUL9cEVwY0E0gg==} + '@payloadcms/translations@3.69.0': + resolution: {integrity: sha512-/27JphlweOy0FhkH9H5dRHpi6bHjqdKFkLciURsxyEXJFLsd9w/07e6clD48Lvr8SPdCmr09KLJKdXTjjT1ypQ==} - '@payloadcms/ui@3.68.4': - resolution: {integrity: sha512-RLbCFsKzmAwV5QNb+RxQU1CI2XaGYLh6KeLqOzGfkC/bsdZoTl4FKX702e6DLFRfmYLG8Jf7Vkdk4E4ZMeQsew==} + '@payloadcms/ui@3.69.0': + resolution: {integrity: sha512-R/CFV9IF3LTHwBm+gFESpSYYqLejJgRijJarGFot5I1Kxa18mwNp+xUYHVUcJgGZ1xQ1iYzGuElEJwy1cJhMxg==} engines: {node: ^18.20.2 || >=20.9.0} peerDependencies: next: ^15.2.8 || ^15.3.8 || ^15.4.10 || ^15.5.9 - payload: 3.68.4 + payload: 3.69.0 react: ^19.0.1 || ^19.1.2 || ^19.2.1 react-dom: ^19.0.1 || ^19.1.2 || ^19.2.1 @@ -1608,25 +1605,6 @@ packages: '@swc/helpers@0.5.15': resolution: {integrity: sha512-JQ5TuMi45Owi4/BIMAJBoSQoOJu12oOk/gADqlcUL9JEdHB8vyjUSsxqeNXnmXHjYKMi2WcYtezGEEhqUI/E2g==} - '@testing-library/dom@10.4.1': - resolution: {integrity: sha512-o4PXJQidqJl82ckFaXUeoAW+XysPLauYI43Abki5hABd853iMhitooc6znOnczgbTYmEP6U6/y1ZyKAIsvMKGg==} - engines: {node: '>=18'} - - '@testing-library/react@16.3.0': - resolution: {integrity: sha512-kFSyxiEDwv1WLl2fgsq6pPBbw5aWKrsY2/noi1Id0TK0UParSF62oFQFGHXIyaG4pp2tEub/Zlel+fjjZILDsw==} - engines: {node: '>=18'} - peerDependencies: - '@testing-library/dom': ^10.0.0 - '@types/react': ^18.0.0 || ^19.0.0 - '@types/react-dom': ^18.0.0 || ^19.0.0 - react: ^18.0.0 || ^19.0.0 - react-dom: ^18.0.0 || ^19.0.0 - peerDependenciesMeta: - '@types/react': - optional: true - '@types/react-dom': - optional: true - '@tokenizer/token@0.3.0': resolution: {integrity: sha512-OvjF+z51L3ov0OyAU0duzsYuvO01PH7x4t6DJx+guahgTnBHkhJdG7soQeTSFLWN3efnHyibZ4Z8l2EuWwJN3A==} @@ -1636,9 +1614,6 @@ packages: '@types/acorn@4.0.6': resolution: {integrity: sha512-veQTnWP+1D/xbxVrPC3zHnCZRjSrKfhbMUlEA43iMZLu7EsnTtkJklIuwrCPbOi8YkvDQAiW05VQQFvvz9oieQ==} - '@types/aria-query@5.0.4': - resolution: {integrity: sha512-rfT93uj5s0PRL7EzccGMs3brplhcrghnDoV26NqKhCAS1hVo+WdNsPvE/yb6ilfr5hi2MEk6d5EWJTKdxg8jVw==} - '@types/babel__core@7.20.5': resolution: {integrity: sha512-qoQprZvz5wQFJwMDqeseRXWv3rqMvhgpbXFfVyWhbx9X47POIA6i/+dXefEmZKoAgOaTdaIgNSMqMIU61yRyzA==} @@ -1950,10 +1925,6 @@ packages: ajv@8.17.1: resolution: {integrity: sha512-B/gBuNg5SiMTrPkC+A2+cW0RszwxYmn6VYxB/inlBStS5nx6xHIt/ehKRhIMhqusl7a8LjQoZnjCs5vhwxOQ1g==} - ansi-regex@5.0.1: - resolution: {integrity: sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==} - engines: {node: '>=8'} - ansi-regex@6.2.2: resolution: {integrity: sha512-Bq3SmSpyFHaWjPk8If9yc6svM8c56dB5BAtW4Qbw5jHTwwXXcTLoRMkpDJp6VL0XzlWaCHTXrkFURMYmD0sLqg==} engines: {node: '>=12'} @@ -1962,10 +1933,6 @@ packages: resolution: {integrity: sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==} engines: {node: '>=8'} - ansi-styles@5.2.0: - resolution: {integrity: sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==} - engines: {node: '>=10'} - ansi-styles@6.2.3: resolution: {integrity: sha512-4Dj6M28JB+oAH8kFkTLUo+a2jwOFkuqb3yucU0CANcRRUbxS0cP0nZYCGjcc3BNXwRIsUVmDGgzawme7zvJHvg==} engines: {node: '>=12'} @@ -1977,9 +1944,6 @@ packages: argparse@2.0.1: resolution: {integrity: sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==} - aria-query@5.3.0: - resolution: {integrity: sha512-b0P0sZPKtyu8HkeRAfCq0IfURZK+SuwMjY1UXGBU27wpAiTwQAIlq56IbIO+ytk/JjS1fMR14ee5WBBfKi5J6A==} - aria-query@5.3.2: resolution: {integrity: sha512-COROpnaoap1E2F000S62r6A60uHZnmlvomhfyT2DlTcrY1OrBKn2UhH7qn5wTC9zMvD0AY7csdPSNwKP+7WiQw==} engines: {node: '>= 0.4'} @@ -2313,9 +2277,6 @@ packages: resolution: {integrity: sha512-35mSku4ZXK0vfCuHEDAwt55dg2jNajHZ1odvF+8SSr82EsZY4QmXfuWso8oEd8zRhVObSN18aM0CjSdoBX7zIw==} engines: {node: '>=0.10.0'} - dom-accessibility-api@0.5.16: - resolution: {integrity: sha512-X7BJ2yElsnOJ30pZF4uIIDfBEVgF4XEBxL9Bxhy6dnrm5hkzqmsWHGTiHqRiITNhMyFLyAiWndIJP7Z1NTteDg==} - dom-helpers@5.2.1: resolution: {integrity: sha512-nRCa7CK3VTrM2NmGkIy4cbK7IZlgBE/PYMn55rrXefr5xXDP0LdtfPnblFDoVdcAfslJ7or6iqAUnx0CCGIWQA==} @@ -3158,8 +3119,8 @@ packages: lexical@0.35.0: resolution: {integrity: sha512-3VuV8xXhh5xJA6tzvfDvE0YBCMkIZUmxtRilJQDDdCgJCc+eut6qAv2qbN+pbqvarqcQqPN1UF+8YvsjmyOZpw==} - lib0@0.2.114: - resolution: {integrity: sha512-gcxmNFzA4hv8UYi8j43uPlQ7CGcyMJ2KQb5kZASw6SnAKAf10hK12i2fjrS3Cl/ugZa5Ui6WwIu1/6MIXiHttQ==} + lib0@0.2.116: + resolution: {integrity: sha512-4zsosjzmt33rx5XjmFVYUAeLNh+BTeDTiwGdLt4muxiir2btsc60Nal0EvkvDRizg+pnlK1q+BtYi7M+d4eStw==} engines: {node: '>=16'} hasBin: true @@ -3199,10 +3160,6 @@ packages: resolution: {integrity: sha512-vtEhXh/gNjI9Yg1u4jX/0YVPMvxzHuGgCm6tC5kZyb08yjGWGnqAjGJvcXbqQR2P3MyMEFnRbpcdFS6PBcLqew==} engines: {node: '>=12'} - lz-string@1.5.0: - resolution: {integrity: sha512-h5bgJWpxJNswbU7qCrV0tIKQCaS3blPDrqKWx+QxzuzL1zGUzij9XCWLrSLsJPu5t+eWA/ycetzYAO5IOMcWAQ==} - hasBin: true - magic-string@0.30.21: resolution: {integrity: sha512-vd2F4YUyEXKGcLHoq+TEyCjxueSeHnFxyyjNp80yg0XV4vUhnDer/lvvlqM/arB5bXQN5K2/3oinyCRyx8T2CQ==} @@ -3516,8 +3473,8 @@ packages: peerDependencies: payload: ^3.0.0 - payload@3.68.4: - resolution: {integrity: sha512-4iqHkyCm6oYxGVG399Qt2BhE96/304rok47GIPIhbuaXz2RDdN+lXo8yroWb0TOcr+bXdp2ga7IHgviIRgIpvw==} + payload@3.69.0: + resolution: {integrity: sha512-LiIybFUjAYYVYN2kSaieqDyQDglGeYuyPtP0xqkvIF5EOAGdNMMLSPmGHquV1kPeeUvzgv/CVoNIMEOuRF9wmg==} engines: {node: ^18.20.2 || >=20.9.0} hasBin: true peerDependencies: @@ -3628,8 +3585,8 @@ packages: resolution: {integrity: sha512-nAUSGfSDGOaOAEGwqsRY27GPOea7CNipJPOA7lPbdEpx5Kg3qzdP0AaWC5MlhTWV9s4hFX39nomVZ+C4tnGOJQ==} engines: {node: '>=12'} - postgres-bytea@1.0.0: - resolution: {integrity: sha512-xy3pmLuQqRBZBXDULy7KbaitYqLcmxigw14Q5sj8QBVLqEwXfeybIKVWiqAXTlcvdvb0+xkOtDbfQMOf4lST1w==} + postgres-bytea@1.0.1: + resolution: {integrity: sha512-5+5HqXnsZPE65IJZSMkZtURARZelel2oXUEO8rH83VS/hxH5vv1uHquPg5wZs8yMAfdv971IU+kcPUczi7NVBQ==} engines: {node: '>=0.10.0'} postgres-bytea@3.0.0: @@ -3664,10 +3621,6 @@ packages: engines: {node: '>=14'} hasBin: true - pretty-format@27.5.1: - resolution: {integrity: sha512-Qb1gy5OrP5+zDf2Bvnzdl3jsTf1qXVMazbvCoKhtKqVs4/YK4ozX4gKQJJVyNe+cajNPn0KoC0MC3FUmaHWEmQ==} - engines: {node: ^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0} - prismjs@1.30.0: resolution: {integrity: sha512-DEvV2ZF2r2/63V+tK8hQvrR2ZGn10srHbXviTlcv7Kpzw8jWiNTqbVgjO3IY8RxrrOUF8VPMQQFysYYYv0YZxw==} engines: {node: '>=6'} @@ -3699,6 +3652,10 @@ packages: quick-format-unescaped@4.0.4: resolution: {integrity: sha512-tYC1Q1hgyRuHgloV/YXs2w15unPVh8qfu/qCTfhTYamaw7fyhumKa2yGpdSo87vY32rIclj+4fWYQXUMs9EHvg==} + range-parser@1.2.1: + resolution: {integrity: sha512-Hrgsx+orqoygnmhFbKaHE6c296J+HTAQXoxEF6gNupROmmGJRoyzfG3ccAveqCBrwr/2yxQ5BVd/GTl5agOwSg==} + engines: {node: '>= 0.6'} + react-datepicker@7.6.0: resolution: {integrity: sha512-9cQH6Z/qa4LrGhzdc3XoHbhrxNcMi9MKjZmYgF/1MNNaJwvdSjv3Xd+jjvrEEbKEf71ZgCA3n7fQbdwd70qCRw==} peerDependencies: @@ -3729,9 +3686,6 @@ packages: react-is@16.13.1: resolution: {integrity: sha512-24e6ynE2H+OKt4kqsOvNd8kBpV65zoxbA4BVsEOB3ARVWQki/DHzaUoC5KuON/BiccDaCCTZBuOcfZs70kR8bQ==} - react-is@17.0.2: - resolution: {integrity: sha512-w2GsyukL62IJnlaff/nRegPQR94C/XXamvMWmSHRJ4y7Ts/4ocGRmTHvOs8PSE6pB3dWOrD/nueuU5sduBsQ4w==} - react-refresh@0.17.0: resolution: {integrity: sha512-z6F7K9bV85EfseRCp2bzrpyQ0Gkw1uLoCel9XBVWPg/TjRj94SkJzUTGfOa4bs7iJvBWtQG0Wq7wnI0syw3EBQ==} engines: {node: '>=0.10.0'} @@ -5011,6 +4965,13 @@ snapshots: react-dom: 19.2.3(react@19.2.3) tslib: 2.8.1 + '@dnd-kit/modifiers@9.0.0(@dnd-kit/core@6.0.8(react-dom@19.2.3(react@19.2.3))(react@19.2.3))(react@19.2.3)': + dependencies: + '@dnd-kit/core': 6.0.8(react-dom@19.2.3(react@19.2.3))(react@19.2.3) + '@dnd-kit/utilities': 3.2.2(react@19.2.3) + react: 19.2.3 + tslib: 2.8.1 + '@dnd-kit/sortable@7.0.2(@dnd-kit/core@6.0.8(react-dom@19.2.3(react@19.2.3))(react@19.2.3))(react@19.2.3)': dependencies: '@dnd-kit/core': 6.0.8(react-dom@19.2.3(react@19.2.3))(react@19.2.3) @@ -5717,14 +5678,14 @@ snapshots: transitivePeerDependencies: - '@types/json-schema' - '@payloadcms/db-postgres@3.68.4(payload@3.68.4(graphql@16.12.0)(typescript@5.9.3))': + '@payloadcms/db-postgres@3.69.0(payload@3.69.0(graphql@16.12.0)(typescript@5.9.3))': dependencies: - '@payloadcms/drizzle': 3.68.4(@types/pg@8.10.2)(payload@3.68.4(graphql@16.12.0)(typescript@5.9.3))(pg@8.16.3) + '@payloadcms/drizzle': 3.69.0(@types/pg@8.10.2)(payload@3.69.0(graphql@16.12.0)(typescript@5.9.3))(pg@8.16.3) '@types/pg': 8.10.2 console-table-printer: 2.12.1 drizzle-kit: 0.31.7 drizzle-orm: 0.44.7(@types/pg@8.10.2)(pg@8.16.3) - payload: 3.68.4(graphql@16.12.0)(typescript@5.9.3) + payload: 3.69.0(graphql@16.12.0)(typescript@5.9.3) pg: 8.16.3 prompts: 2.4.2 to-snake-case: 1.0.0 @@ -5760,12 +5721,12 @@ snapshots: - sqlite3 - supports-color - '@payloadcms/drizzle@3.68.4(@types/pg@8.10.2)(payload@3.68.4(graphql@16.12.0)(typescript@5.9.3))(pg@8.16.3)': + '@payloadcms/drizzle@3.69.0(@types/pg@8.10.2)(payload@3.69.0(graphql@16.12.0)(typescript@5.9.3))(pg@8.16.3)': dependencies: console-table-printer: 2.12.1 dequal: 2.0.3 drizzle-orm: 0.44.7(@types/pg@8.10.2)(pg@8.16.3) - payload: 3.68.4(graphql@16.12.0)(typescript@5.9.3) + payload: 3.69.0(graphql@16.12.0)(typescript@5.9.3) prompts: 2.4.2 to-snake-case: 1.0.0 uuid: 9.0.0 @@ -5800,23 +5761,25 @@ snapshots: - sql.js - sqlite3 - '@payloadcms/graphql@3.68.4(graphql@16.12.0)(payload@3.68.4(graphql@16.12.0)(typescript@5.9.3))(typescript@5.9.3)': + '@payloadcms/graphql@3.69.0(graphql@16.12.0)(payload@3.69.0(graphql@16.12.0)(typescript@5.9.3))(typescript@5.9.3)': dependencies: graphql: 16.12.0 graphql-scalars: 1.22.2(graphql@16.12.0) - payload: 3.68.4(graphql@16.12.0)(typescript@5.9.3) + payload: 3.69.0(graphql@16.12.0)(typescript@5.9.3) pluralize: 8.0.0 ts-essentials: 10.0.3(typescript@5.9.3) tsx: 4.20.6 transitivePeerDependencies: - typescript - '@payloadcms/next@3.68.4(@types/react@19.2.7)(graphql@16.12.0)(monaco-editor@0.55.1)(next@15.5.9(@babel/core@7.28.5)(@playwright/test@1.57.0)(react-dom@19.2.3(react@19.2.3))(react@19.2.3)(sass@1.77.4))(payload@3.68.4(graphql@16.12.0)(typescript@5.9.3))(react-dom@19.2.3(react@19.2.3))(react@19.2.3)(typescript@5.9.3)': + '@payloadcms/next@3.69.0(@types/react@19.2.7)(graphql@16.12.0)(monaco-editor@0.55.1)(next@15.5.9(@babel/core@7.28.5)(@playwright/test@1.57.0)(react-dom@19.2.3(react@19.2.3))(react@19.2.3)(sass@1.77.4))(payload@3.69.0(graphql@16.12.0)(typescript@5.9.3))(react-dom@19.2.3(react@19.2.3))(react@19.2.3)(typescript@5.9.3)': dependencies: '@dnd-kit/core': 6.0.8(react-dom@19.2.3(react@19.2.3))(react@19.2.3) - '@payloadcms/graphql': 3.68.4(graphql@16.12.0)(payload@3.68.4(graphql@16.12.0)(typescript@5.9.3))(typescript@5.9.3) - '@payloadcms/translations': 3.68.4 - '@payloadcms/ui': 3.68.4(@types/react@19.2.7)(monaco-editor@0.55.1)(next@15.5.9(@babel/core@7.28.5)(@playwright/test@1.57.0)(react-dom@19.2.3(react@19.2.3))(react@19.2.3)(sass@1.77.4))(payload@3.68.4(graphql@16.12.0)(typescript@5.9.3))(react-dom@19.2.3(react@19.2.3))(react@19.2.3)(typescript@5.9.3) + '@dnd-kit/modifiers': 9.0.0(@dnd-kit/core@6.0.8(react-dom@19.2.3(react@19.2.3))(react@19.2.3))(react@19.2.3) + '@dnd-kit/sortable': 7.0.2(@dnd-kit/core@6.0.8(react-dom@19.2.3(react@19.2.3))(react@19.2.3))(react@19.2.3) + '@payloadcms/graphql': 3.69.0(graphql@16.12.0)(payload@3.69.0(graphql@16.12.0)(typescript@5.9.3))(typescript@5.9.3) + '@payloadcms/translations': 3.69.0 + '@payloadcms/ui': 3.69.0(@types/react@19.2.7)(monaco-editor@0.55.1)(next@15.5.9(@babel/core@7.28.5)(@playwright/test@1.57.0)(react-dom@19.2.3(react@19.2.3))(react@19.2.3)(sass@1.77.4))(payload@3.69.0(graphql@16.12.0)(typescript@5.9.3))(react-dom@19.2.3(react@19.2.3))(react@19.2.3)(typescript@5.9.3) busboy: 1.6.0 dequal: 2.0.3 file-type: 19.3.0 @@ -5826,7 +5789,7 @@ snapshots: http-status: 2.1.0 next: 15.5.9(@babel/core@7.28.5)(@playwright/test@1.57.0)(react-dom@19.2.3(react@19.2.3))(react@19.2.3)(sass@1.77.4) path-to-regexp: 6.3.0 - payload: 3.68.4(graphql@16.12.0)(typescript@5.9.3) + payload: 3.69.0(graphql@16.12.0)(typescript@5.9.3) qs-esm: 7.0.2 sass: 1.77.4 uuid: 10.0.0 @@ -5838,11 +5801,11 @@ snapshots: - supports-color - typescript - '@payloadcms/plugin-form-builder@3.68.4(@types/react@19.2.7)(monaco-editor@0.55.1)(next@15.5.9(@babel/core@7.28.5)(@playwright/test@1.57.0)(react-dom@19.2.3(react@19.2.3))(react@19.2.3)(sass@1.77.4))(payload@3.68.4(graphql@16.12.0)(typescript@5.9.3))(react-dom@19.2.3(react@19.2.3))(react@19.2.3)(typescript@5.9.3)': + '@payloadcms/plugin-form-builder@3.69.0(@types/react@19.2.7)(monaco-editor@0.55.1)(next@15.5.9(@babel/core@7.28.5)(@playwright/test@1.57.0)(react-dom@19.2.3(react@19.2.3))(react@19.2.3)(sass@1.77.4))(payload@3.69.0(graphql@16.12.0)(typescript@5.9.3))(react-dom@19.2.3(react@19.2.3))(react@19.2.3)(typescript@5.9.3)': dependencies: - '@payloadcms/ui': 3.68.4(@types/react@19.2.7)(monaco-editor@0.55.1)(next@15.5.9(@babel/core@7.28.5)(@playwright/test@1.57.0)(react-dom@19.2.3(react@19.2.3))(react@19.2.3)(sass@1.77.4))(payload@3.68.4(graphql@16.12.0)(typescript@5.9.3))(react-dom@19.2.3(react@19.2.3))(react@19.2.3)(typescript@5.9.3) + '@payloadcms/ui': 3.69.0(@types/react@19.2.7)(monaco-editor@0.55.1)(next@15.5.9(@babel/core@7.28.5)(@playwright/test@1.57.0)(react-dom@19.2.3(react@19.2.3))(react@19.2.3)(sass@1.77.4))(payload@3.69.0(graphql@16.12.0)(typescript@5.9.3))(react-dom@19.2.3(react@19.2.3))(react@19.2.3)(typescript@5.9.3) escape-html: 1.0.3 - payload: 3.68.4(graphql@16.12.0)(typescript@5.9.3) + payload: 3.69.0(graphql@16.12.0)(typescript@5.9.3) react: 19.2.3 react-dom: 19.2.3(react@19.2.3) transitivePeerDependencies: @@ -5852,25 +5815,25 @@ snapshots: - supports-color - typescript - '@payloadcms/plugin-multi-tenant@3.68.4(@payloadcms/ui@3.68.4(@types/react@19.2.7)(monaco-editor@0.55.1)(next@15.5.9(@babel/core@7.28.5)(@playwright/test@1.57.0)(react-dom@19.2.3(react@19.2.3))(react@19.2.3)(sass@1.77.4))(payload@3.68.4(graphql@16.12.0)(typescript@5.9.3))(react-dom@19.2.3(react@19.2.3))(react@19.2.3)(typescript@5.9.3))(payload@3.68.4(graphql@16.12.0)(typescript@5.9.3))': + '@payloadcms/plugin-multi-tenant@3.69.0(@payloadcms/ui@3.69.0(@types/react@19.2.7)(monaco-editor@0.55.1)(next@15.5.9(@babel/core@7.28.5)(@playwright/test@1.57.0)(react-dom@19.2.3(react@19.2.3))(react@19.2.3)(sass@1.77.4))(payload@3.69.0(graphql@16.12.0)(typescript@5.9.3))(react-dom@19.2.3(react@19.2.3))(react@19.2.3)(typescript@5.9.3))(payload@3.69.0(graphql@16.12.0)(typescript@5.9.3))': dependencies: - '@payloadcms/ui': 3.68.4(@types/react@19.2.7)(monaco-editor@0.55.1)(next@15.5.9(@babel/core@7.28.5)(@playwright/test@1.57.0)(react-dom@19.2.3(react@19.2.3))(react@19.2.3)(sass@1.77.4))(payload@3.68.4(graphql@16.12.0)(typescript@5.9.3))(react-dom@19.2.3(react@19.2.3))(react@19.2.3)(typescript@5.9.3) - payload: 3.68.4(graphql@16.12.0)(typescript@5.9.3) + '@payloadcms/ui': 3.69.0(@types/react@19.2.7)(monaco-editor@0.55.1)(next@15.5.9(@babel/core@7.28.5)(@playwright/test@1.57.0)(react-dom@19.2.3(react@19.2.3))(react@19.2.3)(sass@1.77.4))(payload@3.69.0(graphql@16.12.0)(typescript@5.9.3))(react-dom@19.2.3(react@19.2.3))(react@19.2.3)(typescript@5.9.3) + payload: 3.69.0(graphql@16.12.0)(typescript@5.9.3) - '@payloadcms/plugin-nested-docs@3.68.4(payload@3.68.4(graphql@16.12.0)(typescript@5.9.3))': + '@payloadcms/plugin-nested-docs@3.69.0(payload@3.69.0(graphql@16.12.0)(typescript@5.9.3))': dependencies: - payload: 3.68.4(graphql@16.12.0)(typescript@5.9.3) + payload: 3.69.0(graphql@16.12.0)(typescript@5.9.3) - '@payloadcms/plugin-redirects@3.68.4(payload@3.68.4(graphql@16.12.0)(typescript@5.9.3))': + '@payloadcms/plugin-redirects@3.69.0(payload@3.69.0(graphql@16.12.0)(typescript@5.9.3))': dependencies: - '@payloadcms/translations': 3.68.4 - payload: 3.68.4(graphql@16.12.0)(typescript@5.9.3) + '@payloadcms/translations': 3.69.0 + payload: 3.69.0(graphql@16.12.0)(typescript@5.9.3) - '@payloadcms/plugin-seo@3.68.4(@types/react@19.2.7)(monaco-editor@0.55.1)(next@15.5.9(@babel/core@7.28.5)(@playwright/test@1.57.0)(react-dom@19.2.3(react@19.2.3))(react@19.2.3)(sass@1.77.4))(payload@3.68.4(graphql@16.12.0)(typescript@5.9.3))(react-dom@19.2.3(react@19.2.3))(react@19.2.3)(typescript@5.9.3)': + '@payloadcms/plugin-seo@3.69.0(@types/react@19.2.7)(monaco-editor@0.55.1)(next@15.5.9(@babel/core@7.28.5)(@playwright/test@1.57.0)(react-dom@19.2.3(react@19.2.3))(react@19.2.3)(sass@1.77.4))(payload@3.69.0(graphql@16.12.0)(typescript@5.9.3))(react-dom@19.2.3(react@19.2.3))(react@19.2.3)(typescript@5.9.3)': dependencies: - '@payloadcms/translations': 3.68.4 - '@payloadcms/ui': 3.68.4(@types/react@19.2.7)(monaco-editor@0.55.1)(next@15.5.9(@babel/core@7.28.5)(@playwright/test@1.57.0)(react-dom@19.2.3(react@19.2.3))(react@19.2.3)(sass@1.77.4))(payload@3.68.4(graphql@16.12.0)(typescript@5.9.3))(react-dom@19.2.3(react@19.2.3))(react@19.2.3)(typescript@5.9.3) - payload: 3.68.4(graphql@16.12.0)(typescript@5.9.3) + '@payloadcms/translations': 3.69.0 + '@payloadcms/ui': 3.69.0(@types/react@19.2.7)(monaco-editor@0.55.1)(next@15.5.9(@babel/core@7.28.5)(@playwright/test@1.57.0)(react-dom@19.2.3(react@19.2.3))(react@19.2.3)(sass@1.77.4))(payload@3.69.0(graphql@16.12.0)(typescript@5.9.3))(react-dom@19.2.3(react@19.2.3))(react@19.2.3)(typescript@5.9.3) + payload: 3.69.0(graphql@16.12.0)(typescript@5.9.3) react: 19.2.3 react-dom: 19.2.3(react@19.2.3) transitivePeerDependencies: @@ -5880,7 +5843,7 @@ snapshots: - supports-color - typescript - '@payloadcms/richtext-lexical@3.68.4(@faceless-ui/modal@3.0.0(react-dom@19.2.3(react@19.2.3))(react@19.2.3))(@faceless-ui/scroll-info@2.0.0(react-dom@19.2.3(react@19.2.3))(react@19.2.3))(@payloadcms/next@3.68.4(@types/react@19.2.7)(graphql@16.12.0)(monaco-editor@0.55.1)(next@15.5.9(@babel/core@7.28.5)(@playwright/test@1.57.0)(react-dom@19.2.3(react@19.2.3))(react@19.2.3)(sass@1.77.4))(payload@3.68.4(graphql@16.12.0)(typescript@5.9.3))(react-dom@19.2.3(react@19.2.3))(react@19.2.3)(typescript@5.9.3))(@types/react@19.2.7)(monaco-editor@0.55.1)(next@15.5.9(@babel/core@7.28.5)(@playwright/test@1.57.0)(react-dom@19.2.3(react@19.2.3))(react@19.2.3)(sass@1.77.4))(payload@3.68.4(graphql@16.12.0)(typescript@5.9.3))(react-dom@19.2.3(react@19.2.3))(react@19.2.3)(typescript@5.9.3)(yjs@13.6.27)': + '@payloadcms/richtext-lexical@3.69.0(@faceless-ui/modal@3.0.0(react-dom@19.2.3(react@19.2.3))(react@19.2.3))(@faceless-ui/scroll-info@2.0.0(react-dom@19.2.3(react@19.2.3))(react@19.2.3))(@payloadcms/next@3.69.0(@types/react@19.2.7)(graphql@16.12.0)(monaco-editor@0.55.1)(next@15.5.9(@babel/core@7.28.5)(@playwright/test@1.57.0)(react-dom@19.2.3(react@19.2.3))(react@19.2.3)(sass@1.77.4))(payload@3.69.0(graphql@16.12.0)(typescript@5.9.3))(react-dom@19.2.3(react@19.2.3))(react@19.2.3)(typescript@5.9.3))(@types/react@19.2.7)(monaco-editor@0.55.1)(next@15.5.9(@babel/core@7.28.5)(@playwright/test@1.57.0)(react-dom@19.2.3(react@19.2.3))(react@19.2.3)(sass@1.77.4))(payload@3.69.0(graphql@16.12.0)(typescript@5.9.3))(react-dom@19.2.3(react@19.2.3))(react@19.2.3)(typescript@5.9.3)(yjs@13.6.27)': dependencies: '@faceless-ui/modal': 3.0.0(react-dom@19.2.3(react@19.2.3))(react@19.2.3) '@faceless-ui/scroll-info': 2.0.0(react-dom@19.2.3(react@19.2.3))(react@19.2.3) @@ -5895,9 +5858,9 @@ snapshots: '@lexical/selection': 0.35.0 '@lexical/table': 0.35.0 '@lexical/utils': 0.35.0 - '@payloadcms/next': 3.68.4(@types/react@19.2.7)(graphql@16.12.0)(monaco-editor@0.55.1)(next@15.5.9(@babel/core@7.28.5)(@playwright/test@1.57.0)(react-dom@19.2.3(react@19.2.3))(react@19.2.3)(sass@1.77.4))(payload@3.68.4(graphql@16.12.0)(typescript@5.9.3))(react-dom@19.2.3(react@19.2.3))(react@19.2.3)(typescript@5.9.3) - '@payloadcms/translations': 3.68.4 - '@payloadcms/ui': 3.68.4(@types/react@19.2.7)(monaco-editor@0.55.1)(next@15.5.9(@babel/core@7.28.5)(@playwright/test@1.57.0)(react-dom@19.2.3(react@19.2.3))(react@19.2.3)(sass@1.77.4))(payload@3.68.4(graphql@16.12.0)(typescript@5.9.3))(react-dom@19.2.3(react@19.2.3))(react@19.2.3)(typescript@5.9.3) + '@payloadcms/next': 3.69.0(@types/react@19.2.7)(graphql@16.12.0)(monaco-editor@0.55.1)(next@15.5.9(@babel/core@7.28.5)(@playwright/test@1.57.0)(react-dom@19.2.3(react@19.2.3))(react@19.2.3)(sass@1.77.4))(payload@3.69.0(graphql@16.12.0)(typescript@5.9.3))(react-dom@19.2.3(react@19.2.3))(react@19.2.3)(typescript@5.9.3) + '@payloadcms/translations': 3.69.0 + '@payloadcms/ui': 3.69.0(@types/react@19.2.7)(monaco-editor@0.55.1)(next@15.5.9(@babel/core@7.28.5)(@playwright/test@1.57.0)(react-dom@19.2.3(react@19.2.3))(react@19.2.3)(sass@1.77.4))(payload@3.69.0(graphql@16.12.0)(typescript@5.9.3))(react-dom@19.2.3(react@19.2.3))(react@19.2.3)(typescript@5.9.3) '@types/uuid': 10.0.0 acorn: 8.12.1 bson-objectid: 2.0.4 @@ -5909,7 +5872,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.68.4(graphql@16.12.0)(typescript@5.9.3) + payload: 3.69.0(graphql@16.12.0)(typescript@5.9.3) qs-esm: 7.0.2 react: 19.2.3 react-dom: 19.2.3(react@19.2.3) @@ -5924,11 +5887,11 @@ snapshots: - typescript - yjs - '@payloadcms/translations@3.68.4': + '@payloadcms/translations@3.69.0': dependencies: date-fns: 4.1.0 - '@payloadcms/ui@3.68.4(@types/react@19.2.7)(monaco-editor@0.55.1)(next@15.5.9(@babel/core@7.28.5)(@playwright/test@1.57.0)(react-dom@19.2.3(react@19.2.3))(react@19.2.3)(sass@1.77.4))(payload@3.68.4(graphql@16.12.0)(typescript@5.9.3))(react-dom@19.2.3(react@19.2.3))(react@19.2.3)(typescript@5.9.3)': + '@payloadcms/ui@3.69.0(@types/react@19.2.7)(monaco-editor@0.55.1)(next@15.5.9(@babel/core@7.28.5)(@playwright/test@1.57.0)(react-dom@19.2.3(react@19.2.3))(react@19.2.3)(sass@1.77.4))(payload@3.69.0(graphql@16.12.0)(typescript@5.9.3))(react-dom@19.2.3(react@19.2.3))(react@19.2.3)(typescript@5.9.3)': dependencies: '@date-fns/tz': 1.2.0 '@dnd-kit/core': 6.0.8(react-dom@19.2.3(react@19.2.3))(react@19.2.3) @@ -5938,14 +5901,14 @@ snapshots: '@faceless-ui/scroll-info': 2.0.0(react-dom@19.2.3(react@19.2.3))(react@19.2.3) '@faceless-ui/window-info': 3.0.1(react-dom@19.2.3(react@19.2.3))(react@19.2.3) '@monaco-editor/react': 4.7.0(monaco-editor@0.55.1)(react-dom@19.2.3(react@19.2.3))(react@19.2.3) - '@payloadcms/translations': 3.68.4 + '@payloadcms/translations': 3.69.0 bson-objectid: 2.0.4 date-fns: 4.1.0 dequal: 2.0.3 md5: 2.3.0 next: 15.5.9(@babel/core@7.28.5)(@playwright/test@1.57.0)(react-dom@19.2.3(react@19.2.3))(react@19.2.3)(sass@1.77.4) object-to-formdata: 4.5.1 - payload: 3.68.4(graphql@16.12.0)(typescript@5.9.3) + payload: 3.69.0(graphql@16.12.0)(typescript@5.9.3) qs-esm: 7.0.2 react: 19.2.3 react-datepicker: 7.6.0(react-dom@19.2.3(react@19.2.3))(react@19.2.3) @@ -6321,27 +6284,6 @@ snapshots: dependencies: tslib: 2.8.1 - '@testing-library/dom@10.4.1': - dependencies: - '@babel/code-frame': 7.27.1 - '@babel/runtime': 7.28.4 - '@types/aria-query': 5.0.4 - aria-query: 5.3.0 - dom-accessibility-api: 0.5.16 - lz-string: 1.5.0 - picocolors: 1.1.1 - pretty-format: 27.5.1 - - '@testing-library/react@16.3.0(@testing-library/dom@10.4.1)(@types/react-dom@19.2.3(@types/react@19.2.7))(@types/react@19.2.7)(react-dom@19.2.3(react@19.2.3))(react@19.2.3)': - dependencies: - '@babel/runtime': 7.28.4 - '@testing-library/dom': 10.4.1 - react: 19.2.3 - react-dom: 19.2.3(react@19.2.3) - optionalDependencies: - '@types/react': 19.2.7 - '@types/react-dom': 19.2.3(@types/react@19.2.7) - '@tokenizer/token@0.3.0': {} '@tybys/wasm-util@0.10.1': @@ -6353,8 +6295,6 @@ snapshots: dependencies: '@types/estree': 1.0.8 - '@types/aria-query@5.0.4': {} - '@types/babel__core@7.20.5': dependencies: '@babel/parser': 7.28.5 @@ -6697,16 +6637,12 @@ snapshots: json-schema-traverse: 1.0.0 require-from-string: 2.0.2 - ansi-regex@5.0.1: {} - ansi-regex@6.2.2: {} ansi-styles@4.3.0: dependencies: color-convert: 2.0.1 - ansi-styles@5.2.0: {} - ansi-styles@6.2.3: {} anymatch@3.1.3: @@ -6716,10 +6652,6 @@ snapshots: argparse@2.0.1: {} - aria-query@5.3.0: - dependencies: - dequal: 2.0.3 - aria-query@5.3.2: {} array-buffer-byte-length@1.0.2: @@ -7068,8 +7000,6 @@ snapshots: dependencies: esutils: 2.0.3 - dom-accessibility-api@0.5.16: {} - dom-helpers@5.2.1: dependencies: '@babel/runtime': 7.28.4 @@ -7304,8 +7234,8 @@ snapshots: '@typescript-eslint/parser': 8.49.0(eslint@9.39.2)(typescript@5.9.3) eslint: 9.39.2 eslint-import-resolver-node: 0.3.9 - eslint-import-resolver-typescript: 3.10.1(eslint-plugin-import@2.32.0)(eslint@9.39.2) - eslint-plugin-import: 2.32.0(@typescript-eslint/parser@8.49.0(eslint@9.39.2)(typescript@5.9.3))(eslint-import-resolver-typescript@3.10.1)(eslint@9.39.2) + eslint-import-resolver-typescript: 3.10.1(eslint-plugin-import@2.32.0(@typescript-eslint/parser@8.49.0(eslint@9.39.2)(typescript@5.9.3))(eslint@9.39.2))(eslint@9.39.2) + eslint-plugin-import: 2.32.0(@typescript-eslint/parser@8.49.0(eslint@9.39.2)(typescript@5.9.3))(eslint-import-resolver-typescript@3.10.1(eslint-plugin-import@2.32.0(@typescript-eslint/parser@8.49.0(eslint@9.39.2)(typescript@5.9.3))(eslint@9.39.2))(eslint@9.39.2))(eslint@9.39.2) eslint-plugin-jsx-a11y: 6.10.2(eslint@9.39.2) eslint-plugin-react: 7.37.5(eslint@9.39.2) eslint-plugin-react-hooks: 5.2.0(eslint@9.39.2) @@ -7324,7 +7254,7 @@ snapshots: transitivePeerDependencies: - supports-color - eslint-import-resolver-typescript@3.10.1(eslint-plugin-import@2.32.0)(eslint@9.39.2): + eslint-import-resolver-typescript@3.10.1(eslint-plugin-import@2.32.0(@typescript-eslint/parser@8.49.0(eslint@9.39.2)(typescript@5.9.3))(eslint@9.39.2))(eslint@9.39.2): dependencies: '@nolyfill/is-core-module': 1.0.39 debug: 4.4.3 @@ -7335,22 +7265,22 @@ snapshots: tinyglobby: 0.2.15 unrs-resolver: 1.11.1 optionalDependencies: - eslint-plugin-import: 2.32.0(@typescript-eslint/parser@8.49.0(eslint@9.39.2)(typescript@5.9.3))(eslint-import-resolver-typescript@3.10.1)(eslint@9.39.2) + eslint-plugin-import: 2.32.0(@typescript-eslint/parser@8.49.0(eslint@9.39.2)(typescript@5.9.3))(eslint-import-resolver-typescript@3.10.1(eslint-plugin-import@2.32.0(@typescript-eslint/parser@8.49.0(eslint@9.39.2)(typescript@5.9.3))(eslint@9.39.2))(eslint@9.39.2))(eslint@9.39.2) transitivePeerDependencies: - supports-color - eslint-module-utils@2.12.1(@typescript-eslint/parser@8.49.0(eslint@9.39.2)(typescript@5.9.3))(eslint-import-resolver-node@0.3.9)(eslint-import-resolver-typescript@3.10.1)(eslint@9.39.2): + eslint-module-utils@2.12.1(@typescript-eslint/parser@8.49.0(eslint@9.39.2)(typescript@5.9.3))(eslint-import-resolver-node@0.3.9)(eslint-import-resolver-typescript@3.10.1(eslint-plugin-import@2.32.0(@typescript-eslint/parser@8.49.0(eslint@9.39.2)(typescript@5.9.3))(eslint@9.39.2))(eslint@9.39.2))(eslint@9.39.2): dependencies: debug: 3.2.7 optionalDependencies: '@typescript-eslint/parser': 8.49.0(eslint@9.39.2)(typescript@5.9.3) eslint: 9.39.2 eslint-import-resolver-node: 0.3.9 - eslint-import-resolver-typescript: 3.10.1(eslint-plugin-import@2.32.0)(eslint@9.39.2) + eslint-import-resolver-typescript: 3.10.1(eslint-plugin-import@2.32.0(@typescript-eslint/parser@8.49.0(eslint@9.39.2)(typescript@5.9.3))(eslint@9.39.2))(eslint@9.39.2) transitivePeerDependencies: - supports-color - eslint-plugin-import@2.32.0(@typescript-eslint/parser@8.49.0(eslint@9.39.2)(typescript@5.9.3))(eslint-import-resolver-typescript@3.10.1)(eslint@9.39.2): + eslint-plugin-import@2.32.0(@typescript-eslint/parser@8.49.0(eslint@9.39.2)(typescript@5.9.3))(eslint-import-resolver-typescript@3.10.1(eslint-plugin-import@2.32.0(@typescript-eslint/parser@8.49.0(eslint@9.39.2)(typescript@5.9.3))(eslint@9.39.2))(eslint@9.39.2))(eslint@9.39.2): dependencies: '@rtsao/scc': 1.1.0 array-includes: 3.1.9 @@ -7361,7 +7291,7 @@ snapshots: doctrine: 2.1.0 eslint: 9.39.2 eslint-import-resolver-node: 0.3.9 - eslint-module-utils: 2.12.1(@typescript-eslint/parser@8.49.0(eslint@9.39.2)(typescript@5.9.3))(eslint-import-resolver-node@0.3.9)(eslint-import-resolver-typescript@3.10.1)(eslint@9.39.2) + eslint-module-utils: 2.12.1(@typescript-eslint/parser@8.49.0(eslint@9.39.2)(typescript@5.9.3))(eslint-import-resolver-node@0.3.9)(eslint-import-resolver-typescript@3.10.1(eslint-plugin-import@2.32.0(@typescript-eslint/parser@8.49.0(eslint@9.39.2)(typescript@5.9.3))(eslint@9.39.2))(eslint@9.39.2))(eslint@9.39.2) hasown: 2.0.2 is-core-module: 2.16.1 is-glob: 4.0.3 @@ -8036,7 +7966,7 @@ snapshots: lexical@0.35.0: {} - lib0@0.2.114: + lib0@0.2.116: dependencies: isomorphic.js: 0.2.5 @@ -8068,8 +7998,6 @@ snapshots: luxon@3.7.2: {} - lz-string@1.5.0: {} - magic-string@0.30.21: dependencies: '@jridgewell/sourcemap-codec': 1.5.5 @@ -8526,20 +8454,20 @@ snapshots: pathe@2.0.3: {} - payload-oapi@0.2.5(@types/json-schema@7.0.15)(payload@3.68.4(graphql@16.12.0)(typescript@5.9.3)): + payload-oapi@0.2.5(@types/json-schema@7.0.15)(payload@3.69.0(graphql@16.12.0)(typescript@5.9.3)): dependencies: '@openapi-contrib/json-schema-to-openapi-schema': 4.3.0(@types/json-schema@7.0.15)(openapi-types@12.1.3) mutative: 1.3.0 openapi-types: 12.1.3 - payload: 3.68.4(graphql@16.12.0)(typescript@5.9.3) + payload: 3.69.0(graphql@16.12.0)(typescript@5.9.3) util: 0.12.5 transitivePeerDependencies: - '@types/json-schema' - payload@3.68.4(graphql@16.12.0)(typescript@5.9.3): + payload@3.69.0(graphql@16.12.0)(typescript@5.9.3): dependencies: '@next/env': 15.5.9 - '@payloadcms/translations': 3.68.4 + '@payloadcms/translations': 3.69.0 '@types/busboy': 1.5.4 ajv: 8.17.1 bson-objectid: 2.0.4 @@ -8563,6 +8491,7 @@ snapshots: pino-pretty: 13.1.2 pluralize: 8.0.0 qs-esm: 7.0.2 + range-parser: 1.2.1 sanitize-filename: 1.6.3 scmp: 2.1.0 ts-essentials: 10.0.3(typescript@5.9.3) @@ -8596,7 +8525,7 @@ snapshots: dependencies: pg-int8: 1.0.1 postgres-array: 2.0.0 - postgres-bytea: 1.0.0 + postgres-bytea: 1.0.1 postgres-date: 1.0.7 postgres-interval: 1.2.0 @@ -8694,7 +8623,7 @@ snapshots: postgres-array@3.0.4: {} - postgres-bytea@1.0.0: {} + postgres-bytea@1.0.1: {} postgres-bytea@3.0.0: dependencies: @@ -8716,12 +8645,6 @@ snapshots: prettier@3.7.4: {} - pretty-format@27.5.1: - dependencies: - ansi-regex: 5.0.1 - ansi-styles: 5.2.0 - react-is: 17.0.2 - prismjs@1.30.0: {} process-warning@5.0.0: {} @@ -8750,6 +8673,8 @@ snapshots: quick-format-unescaped@4.0.4: {} + range-parser@1.2.1: {} + react-datepicker@7.6.0(react-dom@19.2.3(react@19.2.3))(react@19.2.3): dependencies: '@floating-ui/react': 0.27.16(react-dom@19.2.3(react@19.2.3))(react@19.2.3) @@ -8779,8 +8704,6 @@ snapshots: react-is@16.13.1: {} - react-is@17.0.2: {} - react-refresh@0.17.0: {} react-select@5.9.0(@types/react@19.2.7)(react-dom@19.2.3(react@19.2.3))(react@19.2.3): @@ -9252,7 +9175,7 @@ snapshots: tsx@4.20.3: dependencies: esbuild: 0.25.12 - get-tsconfig: 4.13.0 + get-tsconfig: 4.8.1 optionalDependencies: fsevents: 2.3.3 @@ -9576,7 +9499,7 @@ snapshots: yjs@13.6.27: dependencies: - lib0: 0.2.114 + lib0: 0.2.116 yocto-queue@0.1.0: {} diff --git a/src/app/(payload)/admin/importMap.js b/src/app/(payload)/admin/importMap.js index 998fe25..c0f8759 100644 --- a/src/app/(payload)/admin/importMap.js +++ b/src/app/(payload)/admin/importMap.js @@ -27,6 +27,7 @@ import { BoldFeatureClient as BoldFeatureClient_e70f5e05f09f93e00b997edb1ef0c864 import { ItalicFeatureClient as ItalicFeatureClient_e70f5e05f09f93e00b997edb1ef0c864 } from '@payloadcms/richtext-lexical/client' import { TenantSelector as TenantSelector_d6d5f193a167989e2ee7d14202901e62 } from '@payloadcms/plugin-multi-tenant/rsc' import { TenantSelectionProvider as TenantSelectionProvider_d6d5f193a167989e2ee7d14202901e62 } from '@payloadcms/plugin-multi-tenant/rsc' +import { CollectionCards as CollectionCards_ab83ff7e88da8d3530831f296ec4756a } from '@payloadcms/ui/rsc' export const importMap = { "@payloadcms/plugin-multi-tenant/client#TenantField": TenantField_1d0591e3cf4f332c83a86da13a0de59a, @@ -57,5 +58,6 @@ export const importMap = { "@payloadcms/richtext-lexical/client#BoldFeatureClient": BoldFeatureClient_e70f5e05f09f93e00b997edb1ef0c864, "@payloadcms/richtext-lexical/client#ItalicFeatureClient": ItalicFeatureClient_e70f5e05f09f93e00b997edb1ef0c864, "@payloadcms/plugin-multi-tenant/rsc#TenantSelector": TenantSelector_d6d5f193a167989e2ee7d14202901e62, - "@payloadcms/plugin-multi-tenant/rsc#TenantSelectionProvider": TenantSelectionProvider_d6d5f193a167989e2ee7d14202901e62 + "@payloadcms/plugin-multi-tenant/rsc#TenantSelectionProvider": TenantSelectionProvider_d6d5f193a167989e2ee7d14202901e62, + "@payloadcms/ui/rsc#CollectionCards": CollectionCards_ab83ff7e88da8d3530831f296ec4756a } diff --git a/src/app/(payload)/admin/login/page.tsx b/src/app/(payload)/admin/login/page.tsx deleted file mode 100644 index dfb3bff..0000000 --- a/src/app/(payload)/admin/login/page.tsx +++ /dev/null @@ -1,196 +0,0 @@ -/** - * Custom Login Page - * - * Komplett eigene Login-Seite um den Redirect-Loop-Bug in Payload zu umgehen. - * Diese Seite rendert ein einfaches Login-Formular das direkt mit der Payload API kommuniziert. - */ - -import { headers, cookies } from 'next/headers' -import { redirect } from 'next/navigation' -import { getPayload } from 'payload' -import configPromise from '@payload-config' - -type SearchParams = { - redirect?: string - error?: string -} - -export default async function LoginPage({ - searchParams, -}: { - searchParams: Promise -}) { - const resolvedParams = await searchParams - const payload = await getPayload({ config: configPromise }) - - // Prüfe ob User bereits eingeloggt ist - const headersList = await headers() - const cookieStore = await cookies() - const token = cookieStore.get('payload-token')?.value - - if (token) { - try { - const { user } = await payload.auth({ headers: headersList }) - if (user) { - // User ist eingeloggt - weiterleiten - const redirectTo = resolvedParams.redirect || '/admin' - // Verhindere Redirect-Loop - if (!redirectTo.includes('/login')) { - redirect(redirectTo) - } - redirect('/admin') - } - } catch { - // Token ungültig - weiter zum Login - } - } - - // Bestimme Redirect-Ziel (verhindere Loop) - let redirectTarget = resolvedParams.redirect || '/admin' - if (redirectTarget.includes('/login')) { - redirectTarget = '/admin' - } - - const error = resolvedParams.error - - return ( - - - - - Anmelden - Payload - - - -
-
- - - - - - -
-

Anmelden

- - {error && ( -
- {error === 'invalid' ? 'E-Mail oder Passwort ist falsch.' : error} -
- )} - -
- - -
- - -
- -
- - -
- - -
-
- - - ) -} diff --git a/src/app/my-route/route.ts b/src/app/my-route/route.ts deleted file mode 100644 index 8364e5f..0000000 --- a/src/app/my-route/route.ts +++ /dev/null @@ -1,5 +0,0 @@ -export const GET = async () => { - return Response.json({ - message: 'This is an example of a custom route.', - }) -} diff --git a/src/collections/Users.ts b/src/collections/Users.ts index 96e1fd5..dae909d 100644 --- a/src/collections/Users.ts +++ b/src/collections/Users.ts @@ -1,4 +1,4 @@ -import type { CollectionConfig } from 'payload' +import type { CollectionConfig, Access } from 'payload' import { auditUserAfterChange, auditUserAfterDelete } from '../hooks/auditUserChanges' import { auditAfterLogin, @@ -6,11 +6,29 @@ import { auditAfterForgotPassword, } from '../hooks/auditAuthEvents' +// Users können ihren eigenen Account bearbeiten +const canUpdateOwnAccount: Access = ({ req: { user }, id }) => { + // Super Admins können alle User bearbeiten + if (user?.isSuperAdmin) { + return true + } + // User können ihren eigenen Account bearbeiten + if (user?.id && id && String(user.id) === String(id)) { + return true + } + // Ansonsten Multi-Tenant Access Control + return true +} + export const Users: CollectionConfig = { slug: 'users', admin: { useAsTitle: 'email', }, + access: { + // Erlaubt Benutzern, ihren eigenen Account zu aktualisieren + update: canUpdateOwnAccount, + }, auth: { // Cookie-Konfiguration für Production hinter Reverse-Proxy (Cloudflare/Caddy) cookies: { diff --git a/src/globals/SEOSettings.ts b/src/globals/SEOSettings.ts index e0be527..42d3d6e 100644 --- a/src/globals/SEOSettings.ts +++ b/src/globals/SEOSettings.ts @@ -16,6 +16,12 @@ export const SEOSettings: GlobalConfig = { group: 'Einstellungen', description: 'Globale SEO-Konfiguration und Schema.org Daten', }, + access: { + // Alle angemeldeten Benutzer können lesen + read: ({ req: { user } }) => Boolean(user), + // Nur Super Admins können bearbeiten + update: ({ req: { user } }) => Boolean(user?.isSuperAdmin), + }, fields: [ // === META DEFAULTS === { diff --git a/src/lib/cache-keys.ts b/src/lib/cache-keys.ts deleted file mode 100644 index 665c348..0000000 --- a/src/lib/cache-keys.ts +++ /dev/null @@ -1,33 +0,0 @@ -// Zentrale Cache-Key Definitionen -export const CacheKeys = { - // Pages - page: (slug: string, locale: string) => `page:${locale}:${slug}`, - pages: (tenant: string, locale: string) => `pages:${tenant}:${locale}`, - - // Posts - post: (slug: string, locale: string) => `post:${locale}:${slug}`, - posts: (tenant: string, locale: string) => `posts:${tenant}:${locale}`, - postsList: (tenant: string, locale: string, page: number) => - `posts:${tenant}:${locale}:list:${page}`, - - // Navigation - navigation: (tenant: string, locale: string) => `nav:${tenant}:${locale}`, - - // Categories - categories: (tenant: string, locale: string) => `categories:${tenant}:${locale}`, - - // Global Settings - globals: (tenant: string, slug: string) => `global:${tenant}:${slug}`, - - // Tenant-spezifisch - tenant: (slug: string) => `tenant:${slug}`, -} - -// TTL Werte (in Sekunden) -export const CacheTTL = { - SHORT: 60, // 1 Minute - DEFAULT: 300, // 5 Minuten - MEDIUM: 900, // 15 Minuten - LONG: 3600, // 1 Stunde - VERY_LONG: 86400, // 24 Stunden -} diff --git a/src/migrations_backup/20251126_163428.json b/src/migrations_backup/20251126_163428.json deleted file mode 100644 index c363089..0000000 --- a/src/migrations_backup/20251126_163428.json +++ /dev/null @@ -1,963 +0,0 @@ -{ - "version": "7", - "dialect": "postgresql", - "tables": { - "public.users_sessions": { - "name": "users_sessions", - "schema": "", - "columns": { - "_order": { - "name": "_order", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "varchar", - "primaryKey": true, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": false - }, - "expires_at": { - "name": "expires_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "users_sessions_order_idx": { - "name": "users_sessions_order_idx", - "columns": [ - { - "expression": "_order", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "users_sessions_parent_id_idx": { - "name": "users_sessions_parent_id_idx", - "columns": [ - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "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": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.users": { - "name": "users", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "serial", - "primaryKey": true, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "created_at": { - "name": "created_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "email": { - "name": "email", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "reset_password_token": { - "name": "reset_password_token", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "reset_password_expiration": { - "name": "reset_password_expiration", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": false - }, - "salt": { - "name": "salt", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "hash": { - "name": "hash", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "login_attempts": { - "name": "login_attempts", - "type": "numeric", - "primaryKey": false, - "notNull": false, - "default": 0 - }, - "lock_until": { - "name": "lock_until", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "users_updated_at_idx": { - "name": "users_updated_at_idx", - "columns": [ - { - "expression": "updated_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "users_created_at_idx": { - "name": "users_created_at_idx", - "columns": [ - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "users_email_idx": { - "name": "users_email_idx", - "columns": [ - { - "expression": "email", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.media": { - "name": "media", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "serial", - "primaryKey": true, - "notNull": true - }, - "alt": { - "name": "alt", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "created_at": { - "name": "created_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "url": { - "name": "url", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "thumbnail_u_r_l": { - "name": "thumbnail_u_r_l", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "filename": { - "name": "filename", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "mime_type": { - "name": "mime_type", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "filesize": { - "name": "filesize", - "type": "numeric", - "primaryKey": false, - "notNull": false - }, - "width": { - "name": "width", - "type": "numeric", - "primaryKey": false, - "notNull": false - }, - "height": { - "name": "height", - "type": "numeric", - "primaryKey": false, - "notNull": false - }, - "focal_x": { - "name": "focal_x", - "type": "numeric", - "primaryKey": false, - "notNull": false - }, - "focal_y": { - "name": "focal_y", - "type": "numeric", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "media_updated_at_idx": { - "name": "media_updated_at_idx", - "columns": [ - { - "expression": "updated_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "media_created_at_idx": { - "name": "media_created_at_idx", - "columns": [ - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "media_filename_idx": { - "name": "media_filename_idx", - "columns": [ - { - "expression": "filename", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.payload_kv": { - "name": "payload_kv", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "serial", - "primaryKey": true, - "notNull": true - }, - "key": { - "name": "key", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "data": { - "name": "data", - "type": "jsonb", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "payload_kv_key_idx": { - "name": "payload_kv_key_idx", - "columns": [ - { - "expression": "key", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.payload_locked_documents": { - "name": "payload_locked_documents", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "serial", - "primaryKey": true, - "notNull": true - }, - "global_slug": { - "name": "global_slug", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "created_at": { - "name": "created_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - } - }, - "indexes": { - "payload_locked_documents_global_slug_idx": { - "name": "payload_locked_documents_global_slug_idx", - "columns": [ - { - "expression": "global_slug", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "payload_locked_documents_updated_at_idx": { - "name": "payload_locked_documents_updated_at_idx", - "columns": [ - { - "expression": "updated_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "payload_locked_documents_created_at_idx": { - "name": "payload_locked_documents_created_at_idx", - "columns": [ - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.payload_locked_documents_rels": { - "name": "payload_locked_documents_rels", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "serial", - "primaryKey": true, - "notNull": true - }, - "order": { - "name": "order", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "parent_id": { - "name": "parent_id", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "path": { - "name": "path", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "users_id": { - "name": "users_id", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "media_id": { - "name": "media_id", - "type": "integer", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "payload_locked_documents_rels_order_idx": { - "name": "payload_locked_documents_rels_order_idx", - "columns": [ - { - "expression": "order", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "payload_locked_documents_rels_parent_idx": { - "name": "payload_locked_documents_rels_parent_idx", - "columns": [ - { - "expression": "parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "payload_locked_documents_rels_path_idx": { - "name": "payload_locked_documents_rels_path_idx", - "columns": [ - { - "expression": "path", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "payload_locked_documents_rels_users_id_idx": { - "name": "payload_locked_documents_rels_users_id_idx", - "columns": [ - { - "expression": "users_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "payload_locked_documents_rels_media_id_idx": { - "name": "payload_locked_documents_rels_media_id_idx", - "columns": [ - { - "expression": "media_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "payload_locked_documents_rels_parent_fk": { - "name": "payload_locked_documents_rels_parent_fk", - "tableFrom": "payload_locked_documents_rels", - "tableTo": "payload_locked_documents", - "columnsFrom": [ - "parent_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - }, - "payload_locked_documents_rels_users_fk": { - "name": "payload_locked_documents_rels_users_fk", - "tableFrom": "payload_locked_documents_rels", - "tableTo": "users", - "columnsFrom": [ - "users_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - }, - "payload_locked_documents_rels_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" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.payload_preferences": { - "name": "payload_preferences", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "serial", - "primaryKey": true, - "notNull": true - }, - "key": { - "name": "key", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "value": { - "name": "value", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "created_at": { - "name": "created_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - } - }, - "indexes": { - "payload_preferences_key_idx": { - "name": "payload_preferences_key_idx", - "columns": [ - { - "expression": "key", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "payload_preferences_updated_at_idx": { - "name": "payload_preferences_updated_at_idx", - "columns": [ - { - "expression": "updated_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "payload_preferences_created_at_idx": { - "name": "payload_preferences_created_at_idx", - "columns": [ - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.payload_preferences_rels": { - "name": "payload_preferences_rels", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "serial", - "primaryKey": true, - "notNull": true - }, - "order": { - "name": "order", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "parent_id": { - "name": "parent_id", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "path": { - "name": "path", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "users_id": { - "name": "users_id", - "type": "integer", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "payload_preferences_rels_order_idx": { - "name": "payload_preferences_rels_order_idx", - "columns": [ - { - "expression": "order", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "payload_preferences_rels_parent_idx": { - "name": "payload_preferences_rels_parent_idx", - "columns": [ - { - "expression": "parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "payload_preferences_rels_path_idx": { - "name": "payload_preferences_rels_path_idx", - "columns": [ - { - "expression": "path", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "payload_preferences_rels_users_id_idx": { - "name": "payload_preferences_rels_users_id_idx", - "columns": [ - { - "expression": "users_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "payload_preferences_rels_parent_fk": { - "name": "payload_preferences_rels_parent_fk", - "tableFrom": "payload_preferences_rels", - "tableTo": "payload_preferences", - "columnsFrom": [ - "parent_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - }, - "payload_preferences_rels_users_fk": { - "name": "payload_preferences_rels_users_fk", - "tableFrom": "payload_preferences_rels", - "tableTo": "users", - "columnsFrom": [ - "users_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.payload_migrations": { - "name": "payload_migrations", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "serial", - "primaryKey": true, - "notNull": true - }, - "name": { - "name": "name", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "batch": { - "name": "batch", - "type": "numeric", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "created_at": { - "name": "created_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - } - }, - "indexes": { - "payload_migrations_updated_at_idx": { - "name": "payload_migrations_updated_at_idx", - "columns": [ - { - "expression": "updated_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "payload_migrations_created_at_idx": { - "name": "payload_migrations_created_at_idx", - "columns": [ - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - } - }, - "enums": {}, - "schemas": {}, - "sequences": {}, - "roles": {}, - "policies": {}, - "views": {}, - "_meta": { - "schemas": {}, - "tables": {}, - "columns": {} - }, - "id": "8f5aa12b-08f6-4857-a473-f525e7f7ee01", - "prevId": "00000000-0000-0000-0000-000000000000" -} \ No newline at end of file diff --git a/src/migrations_backup/20251126_163428.ts b/src/migrations_backup/20251126_163428.ts deleted file mode 100644 index ca3c1cd..0000000 --- a/src/migrations_backup/20251126_163428.ts +++ /dev/null @@ -1,133 +0,0 @@ -import { MigrateUpArgs, MigrateDownArgs, sql } from '@payloadcms/db-postgres' - -export async function up({ db, payload, req }: MigrateUpArgs): Promise { - await db.execute(sql` - CREATE TABLE "users_sessions" ( - "_order" integer NOT NULL, - "_parent_id" integer NOT NULL, - "id" varchar PRIMARY KEY NOT NULL, - "created_at" timestamp(3) with time zone, - "expires_at" timestamp(3) with time zone NOT NULL - ); - - CREATE TABLE "users" ( - "id" serial PRIMARY KEY NOT NULL, - "updated_at" timestamp(3) with time zone DEFAULT now() NOT NULL, - "created_at" timestamp(3) with time zone DEFAULT now() NOT NULL, - "email" varchar NOT NULL, - "reset_password_token" varchar, - "reset_password_expiration" timestamp(3) with time zone, - "salt" varchar, - "hash" varchar, - "login_attempts" numeric DEFAULT 0, - "lock_until" timestamp(3) with time zone - ); - - CREATE TABLE "media" ( - "id" serial PRIMARY KEY NOT NULL, - "alt" varchar NOT NULL, - "updated_at" timestamp(3) with time zone DEFAULT now() NOT NULL, - "created_at" timestamp(3) with time zone DEFAULT now() NOT NULL, - "url" varchar, - "thumbnail_u_r_l" varchar, - "filename" varchar, - "mime_type" varchar, - "filesize" numeric, - "width" numeric, - "height" numeric, - "focal_x" numeric, - "focal_y" numeric - ); - - CREATE TABLE "payload_kv" ( - "id" serial PRIMARY KEY NOT NULL, - "key" varchar NOT NULL, - "data" jsonb NOT NULL - ); - - CREATE TABLE "payload_locked_documents" ( - "id" serial PRIMARY KEY NOT NULL, - "global_slug" varchar, - "updated_at" timestamp(3) with time zone DEFAULT now() NOT NULL, - "created_at" timestamp(3) with time zone DEFAULT now() NOT NULL - ); - - CREATE TABLE "payload_locked_documents_rels" ( - "id" serial PRIMARY KEY NOT NULL, - "order" integer, - "parent_id" integer NOT NULL, - "path" varchar NOT NULL, - "users_id" integer, - "media_id" integer - ); - - CREATE TABLE "payload_preferences" ( - "id" serial PRIMARY KEY NOT NULL, - "key" varchar, - "value" jsonb, - "updated_at" timestamp(3) with time zone DEFAULT now() NOT NULL, - "created_at" timestamp(3) with time zone DEFAULT now() NOT NULL - ); - - CREATE TABLE "payload_preferences_rels" ( - "id" serial PRIMARY KEY NOT NULL, - "order" integer, - "parent_id" integer NOT NULL, - "path" varchar NOT NULL, - "users_id" integer - ); - - CREATE TABLE "payload_migrations" ( - "id" serial PRIMARY KEY NOT NULL, - "name" varchar, - "batch" numeric, - "updated_at" timestamp(3) with time zone DEFAULT now() NOT NULL, - "created_at" timestamp(3) with time zone DEFAULT now() NOT NULL - ); - - ALTER TABLE "users_sessions" ADD CONSTRAINT "users_sessions_parent_id_fk" FOREIGN KEY ("_parent_id") REFERENCES "public"."users"("id") ON DELETE cascade ON UPDATE no action; - ALTER TABLE "payload_locked_documents_rels" ADD CONSTRAINT "payload_locked_documents_rels_parent_fk" FOREIGN KEY ("parent_id") REFERENCES "public"."payload_locked_documents"("id") ON DELETE cascade ON UPDATE no action; - ALTER TABLE "payload_locked_documents_rels" ADD CONSTRAINT "payload_locked_documents_rels_users_fk" FOREIGN KEY ("users_id") REFERENCES "public"."users"("id") ON DELETE cascade ON UPDATE no action; - ALTER TABLE "payload_locked_documents_rels" ADD CONSTRAINT "payload_locked_documents_rels_media_fk" FOREIGN KEY ("media_id") REFERENCES "public"."media"("id") ON DELETE cascade ON UPDATE no action; - ALTER TABLE "payload_preferences_rels" ADD CONSTRAINT "payload_preferences_rels_parent_fk" FOREIGN KEY ("parent_id") REFERENCES "public"."payload_preferences"("id") ON DELETE cascade ON UPDATE no action; - ALTER TABLE "payload_preferences_rels" ADD CONSTRAINT "payload_preferences_rels_users_fk" FOREIGN KEY ("users_id") REFERENCES "public"."users"("id") ON DELETE cascade ON UPDATE no action; - CREATE INDEX "users_sessions_order_idx" ON "users_sessions" USING btree ("_order"); - CREATE INDEX "users_sessions_parent_id_idx" ON "users_sessions" USING btree ("_parent_id"); - CREATE INDEX "users_updated_at_idx" ON "users" USING btree ("updated_at"); - CREATE INDEX "users_created_at_idx" ON "users" USING btree ("created_at"); - CREATE UNIQUE INDEX "users_email_idx" ON "users" USING btree ("email"); - CREATE INDEX "media_updated_at_idx" ON "media" USING btree ("updated_at"); - CREATE INDEX "media_created_at_idx" ON "media" USING btree ("created_at"); - CREATE UNIQUE INDEX "media_filename_idx" ON "media" USING btree ("filename"); - CREATE UNIQUE INDEX "payload_kv_key_idx" ON "payload_kv" USING btree ("key"); - CREATE INDEX "payload_locked_documents_global_slug_idx" ON "payload_locked_documents" USING btree ("global_slug"); - CREATE INDEX "payload_locked_documents_updated_at_idx" ON "payload_locked_documents" USING btree ("updated_at"); - CREATE INDEX "payload_locked_documents_created_at_idx" ON "payload_locked_documents" USING btree ("created_at"); - CREATE INDEX "payload_locked_documents_rels_order_idx" ON "payload_locked_documents_rels" USING btree ("order"); - CREATE INDEX "payload_locked_documents_rels_parent_idx" ON "payload_locked_documents_rels" USING btree ("parent_id"); - CREATE INDEX "payload_locked_documents_rels_path_idx" ON "payload_locked_documents_rels" USING btree ("path"); - CREATE INDEX "payload_locked_documents_rels_users_id_idx" ON "payload_locked_documents_rels" USING btree ("users_id"); - CREATE INDEX "payload_locked_documents_rels_media_id_idx" ON "payload_locked_documents_rels" USING btree ("media_id"); - CREATE INDEX "payload_preferences_key_idx" ON "payload_preferences" USING btree ("key"); - CREATE INDEX "payload_preferences_updated_at_idx" ON "payload_preferences" USING btree ("updated_at"); - CREATE INDEX "payload_preferences_created_at_idx" ON "payload_preferences" USING btree ("created_at"); - CREATE INDEX "payload_preferences_rels_order_idx" ON "payload_preferences_rels" USING btree ("order"); - CREATE INDEX "payload_preferences_rels_parent_idx" ON "payload_preferences_rels" USING btree ("parent_id"); - CREATE INDEX "payload_preferences_rels_path_idx" ON "payload_preferences_rels" USING btree ("path"); - CREATE INDEX "payload_preferences_rels_users_id_idx" ON "payload_preferences_rels" USING btree ("users_id"); - CREATE INDEX "payload_migrations_updated_at_idx" ON "payload_migrations" USING btree ("updated_at"); - CREATE INDEX "payload_migrations_created_at_idx" ON "payload_migrations" USING btree ("created_at");`) -} - -export async function down({ db, payload, req }: MigrateDownArgs): Promise { - await db.execute(sql` - DROP TABLE "users_sessions" CASCADE; - DROP TABLE "users" CASCADE; - DROP TABLE "media" CASCADE; - DROP TABLE "payload_kv" CASCADE; - DROP TABLE "payload_locked_documents" CASCADE; - DROP TABLE "payload_locked_documents_rels" CASCADE; - DROP TABLE "payload_preferences" CASCADE; - DROP TABLE "payload_preferences_rels" CASCADE; - DROP TABLE "payload_migrations" CASCADE;`) -} diff --git a/src/migrations_backup/20251126_200521.json b/src/migrations_backup/20251126_200521.json deleted file mode 100644 index 93a74ed..0000000 --- a/src/migrations_backup/20251126_200521.json +++ /dev/null @@ -1,1315 +0,0 @@ -{ - "version": "7", - "dialect": "postgresql", - "tables": { - "public.users_tenants": { - "name": "users_tenants", - "schema": "", - "columns": { - "_order": { - "name": "_order", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "varchar", - "primaryKey": true, - "notNull": true - }, - "tenant_id": { - "name": "tenant_id", - "type": "integer", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "users_tenants_order_idx": { - "name": "users_tenants_order_idx", - "columns": [ - { - "expression": "_order", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "users_tenants_parent_id_idx": { - "name": "users_tenants_parent_id_idx", - "columns": [ - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "users_tenants_tenant_idx": { - "name": "users_tenants_tenant_idx", - "columns": [ - { - "expression": "tenant_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "users_tenants_tenant_id_tenants_id_fk": { - "name": "users_tenants_tenant_id_tenants_id_fk", - "tableFrom": "users_tenants", - "tableTo": "tenants", - "columnsFrom": [ - "tenant_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "set null", - "onUpdate": "no action" - }, - "users_tenants_parent_id_fk": { - "name": "users_tenants_parent_id_fk", - "tableFrom": "users_tenants", - "tableTo": "users", - "columnsFrom": [ - "_parent_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.users_sessions": { - "name": "users_sessions", - "schema": "", - "columns": { - "_order": { - "name": "_order", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "varchar", - "primaryKey": true, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": false - }, - "expires_at": { - "name": "expires_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "users_sessions_order_idx": { - "name": "users_sessions_order_idx", - "columns": [ - { - "expression": "_order", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "users_sessions_parent_id_idx": { - "name": "users_sessions_parent_id_idx", - "columns": [ - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "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": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.users": { - "name": "users", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "serial", - "primaryKey": true, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "created_at": { - "name": "created_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "email": { - "name": "email", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "reset_password_token": { - "name": "reset_password_token", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "reset_password_expiration": { - "name": "reset_password_expiration", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": false - }, - "salt": { - "name": "salt", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "hash": { - "name": "hash", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "login_attempts": { - "name": "login_attempts", - "type": "numeric", - "primaryKey": false, - "notNull": false, - "default": 0 - }, - "lock_until": { - "name": "lock_until", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "users_updated_at_idx": { - "name": "users_updated_at_idx", - "columns": [ - { - "expression": "updated_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "users_created_at_idx": { - "name": "users_created_at_idx", - "columns": [ - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "users_email_idx": { - "name": "users_email_idx", - "columns": [ - { - "expression": "email", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.media": { - "name": "media", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "serial", - "primaryKey": true, - "notNull": true - }, - "tenant_id": { - "name": "tenant_id", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "alt": { - "name": "alt", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "created_at": { - "name": "created_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "url": { - "name": "url", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "thumbnail_u_r_l": { - "name": "thumbnail_u_r_l", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "filename": { - "name": "filename", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "mime_type": { - "name": "mime_type", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "filesize": { - "name": "filesize", - "type": "numeric", - "primaryKey": false, - "notNull": false - }, - "width": { - "name": "width", - "type": "numeric", - "primaryKey": false, - "notNull": false - }, - "height": { - "name": "height", - "type": "numeric", - "primaryKey": false, - "notNull": false - }, - "focal_x": { - "name": "focal_x", - "type": "numeric", - "primaryKey": false, - "notNull": false - }, - "focal_y": { - "name": "focal_y", - "type": "numeric", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "media_tenant_idx": { - "name": "media_tenant_idx", - "columns": [ - { - "expression": "tenant_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "media_updated_at_idx": { - "name": "media_updated_at_idx", - "columns": [ - { - "expression": "updated_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "media_created_at_idx": { - "name": "media_created_at_idx", - "columns": [ - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "media_filename_idx": { - "name": "media_filename_idx", - "columns": [ - { - "expression": "filename", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "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": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.tenants_domains": { - "name": "tenants_domains", - "schema": "", - "columns": { - "_order": { - "name": "_order", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "varchar", - "primaryKey": true, - "notNull": true - }, - "domain": { - "name": "domain", - "type": "varchar", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "tenants_domains_order_idx": { - "name": "tenants_domains_order_idx", - "columns": [ - { - "expression": "_order", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "tenants_domains_parent_id_idx": { - "name": "tenants_domains_parent_id_idx", - "columns": [ - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "tenants_domains_parent_id_fk": { - "name": "tenants_domains_parent_id_fk", - "tableFrom": "tenants_domains", - "tableTo": "tenants", - "columnsFrom": [ - "_parent_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.tenants": { - "name": "tenants", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "serial", - "primaryKey": true, - "notNull": true - }, - "name": { - "name": "name", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "slug": { - "name": "slug", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "created_at": { - "name": "created_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - } - }, - "indexes": { - "tenants_slug_idx": { - "name": "tenants_slug_idx", - "columns": [ - { - "expression": "slug", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "tenants_updated_at_idx": { - "name": "tenants_updated_at_idx", - "columns": [ - { - "expression": "updated_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "tenants_created_at_idx": { - "name": "tenants_created_at_idx", - "columns": [ - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.payload_kv": { - "name": "payload_kv", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "serial", - "primaryKey": true, - "notNull": true - }, - "key": { - "name": "key", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "data": { - "name": "data", - "type": "jsonb", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "payload_kv_key_idx": { - "name": "payload_kv_key_idx", - "columns": [ - { - "expression": "key", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.payload_locked_documents": { - "name": "payload_locked_documents", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "serial", - "primaryKey": true, - "notNull": true - }, - "global_slug": { - "name": "global_slug", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "created_at": { - "name": "created_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - } - }, - "indexes": { - "payload_locked_documents_global_slug_idx": { - "name": "payload_locked_documents_global_slug_idx", - "columns": [ - { - "expression": "global_slug", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "payload_locked_documents_updated_at_idx": { - "name": "payload_locked_documents_updated_at_idx", - "columns": [ - { - "expression": "updated_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "payload_locked_documents_created_at_idx": { - "name": "payload_locked_documents_created_at_idx", - "columns": [ - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.payload_locked_documents_rels": { - "name": "payload_locked_documents_rels", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "serial", - "primaryKey": true, - "notNull": true - }, - "order": { - "name": "order", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "parent_id": { - "name": "parent_id", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "path": { - "name": "path", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "users_id": { - "name": "users_id", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "media_id": { - "name": "media_id", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "tenants_id": { - "name": "tenants_id", - "type": "integer", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "payload_locked_documents_rels_order_idx": { - "name": "payload_locked_documents_rels_order_idx", - "columns": [ - { - "expression": "order", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "payload_locked_documents_rels_parent_idx": { - "name": "payload_locked_documents_rels_parent_idx", - "columns": [ - { - "expression": "parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "payload_locked_documents_rels_path_idx": { - "name": "payload_locked_documents_rels_path_idx", - "columns": [ - { - "expression": "path", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "payload_locked_documents_rels_users_id_idx": { - "name": "payload_locked_documents_rels_users_id_idx", - "columns": [ - { - "expression": "users_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "payload_locked_documents_rels_media_id_idx": { - "name": "payload_locked_documents_rels_media_id_idx", - "columns": [ - { - "expression": "media_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "payload_locked_documents_rels_tenants_id_idx": { - "name": "payload_locked_documents_rels_tenants_id_idx", - "columns": [ - { - "expression": "tenants_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "payload_locked_documents_rels_parent_fk": { - "name": "payload_locked_documents_rels_parent_fk", - "tableFrom": "payload_locked_documents_rels", - "tableTo": "payload_locked_documents", - "columnsFrom": [ - "parent_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - }, - "payload_locked_documents_rels_users_fk": { - "name": "payload_locked_documents_rels_users_fk", - "tableFrom": "payload_locked_documents_rels", - "tableTo": "users", - "columnsFrom": [ - "users_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - }, - "payload_locked_documents_rels_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_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" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.payload_preferences": { - "name": "payload_preferences", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "serial", - "primaryKey": true, - "notNull": true - }, - "key": { - "name": "key", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "value": { - "name": "value", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "created_at": { - "name": "created_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - } - }, - "indexes": { - "payload_preferences_key_idx": { - "name": "payload_preferences_key_idx", - "columns": [ - { - "expression": "key", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "payload_preferences_updated_at_idx": { - "name": "payload_preferences_updated_at_idx", - "columns": [ - { - "expression": "updated_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "payload_preferences_created_at_idx": { - "name": "payload_preferences_created_at_idx", - "columns": [ - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.payload_preferences_rels": { - "name": "payload_preferences_rels", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "serial", - "primaryKey": true, - "notNull": true - }, - "order": { - "name": "order", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "parent_id": { - "name": "parent_id", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "path": { - "name": "path", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "users_id": { - "name": "users_id", - "type": "integer", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "payload_preferences_rels_order_idx": { - "name": "payload_preferences_rels_order_idx", - "columns": [ - { - "expression": "order", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "payload_preferences_rels_parent_idx": { - "name": "payload_preferences_rels_parent_idx", - "columns": [ - { - "expression": "parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "payload_preferences_rels_path_idx": { - "name": "payload_preferences_rels_path_idx", - "columns": [ - { - "expression": "path", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "payload_preferences_rels_users_id_idx": { - "name": "payload_preferences_rels_users_id_idx", - "columns": [ - { - "expression": "users_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "payload_preferences_rels_parent_fk": { - "name": "payload_preferences_rels_parent_fk", - "tableFrom": "payload_preferences_rels", - "tableTo": "payload_preferences", - "columnsFrom": [ - "parent_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - }, - "payload_preferences_rels_users_fk": { - "name": "payload_preferences_rels_users_fk", - "tableFrom": "payload_preferences_rels", - "tableTo": "users", - "columnsFrom": [ - "users_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.payload_migrations": { - "name": "payload_migrations", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "serial", - "primaryKey": true, - "notNull": true - }, - "name": { - "name": "name", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "batch": { - "name": "batch", - "type": "numeric", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "created_at": { - "name": "created_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - } - }, - "indexes": { - "payload_migrations_updated_at_idx": { - "name": "payload_migrations_updated_at_idx", - "columns": [ - { - "expression": "updated_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "payload_migrations_created_at_idx": { - "name": "payload_migrations_created_at_idx", - "columns": [ - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - } - }, - "enums": {}, - "schemas": {}, - "sequences": {}, - "roles": {}, - "policies": {}, - "views": {}, - "_meta": { - "schemas": {}, - "tables": {}, - "columns": {} - }, - "id": "f5e53f39-8bba-40aa-84e1-96ba6763250f", - "prevId": "00000000-0000-0000-0000-000000000000" -} \ No newline at end of file diff --git a/src/migrations_backup/20251126_200521.ts b/src/migrations_backup/20251126_200521.ts deleted file mode 100644 index 51853f1..0000000 --- a/src/migrations_backup/20251126_200521.ts +++ /dev/null @@ -1,62 +0,0 @@ -import { MigrateUpArgs, MigrateDownArgs, sql } from '@payloadcms/db-postgres' - -export async function up({ db, payload, req }: MigrateUpArgs): Promise { - await db.execute(sql` - CREATE TABLE "users_tenants" ( - "_order" integer NOT NULL, - "_parent_id" integer NOT NULL, - "id" varchar PRIMARY KEY NOT NULL, - "tenant_id" integer NOT NULL - ); - - CREATE TABLE "tenants_domains" ( - "_order" integer NOT NULL, - "_parent_id" integer NOT NULL, - "id" varchar PRIMARY KEY NOT NULL, - "domain" varchar NOT NULL - ); - - CREATE TABLE "tenants" ( - "id" serial PRIMARY KEY NOT NULL, - "name" varchar NOT NULL, - "slug" varchar NOT NULL, - "updated_at" timestamp(3) with time zone DEFAULT now() NOT NULL, - "created_at" timestamp(3) with time zone DEFAULT now() NOT NULL - ); - - ALTER TABLE "media" ADD COLUMN "tenant_id" integer; - ALTER TABLE "payload_locked_documents_rels" ADD COLUMN "tenants_id" integer; - ALTER TABLE "users_tenants" ADD CONSTRAINT "users_tenants_tenant_id_tenants_id_fk" FOREIGN KEY ("tenant_id") REFERENCES "public"."tenants"("id") ON DELETE set null ON UPDATE no action; - ALTER TABLE "users_tenants" ADD CONSTRAINT "users_tenants_parent_id_fk" FOREIGN KEY ("_parent_id") REFERENCES "public"."users"("id") ON DELETE cascade ON UPDATE no action; - ALTER TABLE "tenants_domains" ADD CONSTRAINT "tenants_domains_parent_id_fk" FOREIGN KEY ("_parent_id") REFERENCES "public"."tenants"("id") ON DELETE cascade ON UPDATE no action; - CREATE INDEX "users_tenants_order_idx" ON "users_tenants" USING btree ("_order"); - CREATE INDEX "users_tenants_parent_id_idx" ON "users_tenants" USING btree ("_parent_id"); - CREATE INDEX "users_tenants_tenant_idx" ON "users_tenants" USING btree ("tenant_id"); - CREATE INDEX "tenants_domains_order_idx" ON "tenants_domains" USING btree ("_order"); - CREATE INDEX "tenants_domains_parent_id_idx" ON "tenants_domains" USING btree ("_parent_id"); - CREATE UNIQUE INDEX "tenants_slug_idx" ON "tenants" USING btree ("slug"); - CREATE INDEX "tenants_updated_at_idx" ON "tenants" USING btree ("updated_at"); - CREATE INDEX "tenants_created_at_idx" ON "tenants" USING btree ("created_at"); - ALTER TABLE "media" ADD CONSTRAINT "media_tenant_id_tenants_id_fk" FOREIGN KEY ("tenant_id") REFERENCES "public"."tenants"("id") ON DELETE set null ON UPDATE no action; - ALTER TABLE "payload_locked_documents_rels" ADD CONSTRAINT "payload_locked_documents_rels_tenants_fk" FOREIGN KEY ("tenants_id") REFERENCES "public"."tenants"("id") ON DELETE cascade ON UPDATE no action; - CREATE INDEX "media_tenant_idx" ON "media" USING btree ("tenant_id"); - CREATE INDEX "payload_locked_documents_rels_tenants_id_idx" ON "payload_locked_documents_rels" USING btree ("tenants_id");`) -} - -export async function down({ db, payload, req }: MigrateDownArgs): Promise { - await db.execute(sql` - ALTER TABLE "users_tenants" DISABLE ROW LEVEL SECURITY; - ALTER TABLE "tenants_domains" DISABLE ROW LEVEL SECURITY; - ALTER TABLE "tenants" DISABLE ROW LEVEL SECURITY; - DROP TABLE "users_tenants" CASCADE; - DROP TABLE "tenants_domains" CASCADE; - DROP TABLE "tenants" CASCADE; - ALTER TABLE "media" DROP CONSTRAINT "media_tenant_id_tenants_id_fk"; - - ALTER TABLE "payload_locked_documents_rels" DROP CONSTRAINT "payload_locked_documents_rels_tenants_fk"; - - DROP INDEX "media_tenant_idx"; - DROP INDEX "payload_locked_documents_rels_tenants_id_idx"; - ALTER TABLE "media" DROP COLUMN "tenant_id"; - ALTER TABLE "payload_locked_documents_rels" DROP COLUMN "tenants_id";`) -} diff --git a/src/migrations_backup/20251127_081206.json b/src/migrations_backup/20251127_081206.json deleted file mode 100644 index b68d87b..0000000 --- a/src/migrations_backup/20251127_081206.json +++ /dev/null @@ -1,4481 +0,0 @@ -{ - "version": "7", - "dialect": "postgresql", - "tables": { - "public.users_tenants": { - "name": "users_tenants", - "schema": "", - "columns": { - "_order": { - "name": "_order", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "varchar", - "primaryKey": true, - "notNull": true - }, - "tenant_id": { - "name": "tenant_id", - "type": "integer", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "users_tenants_order_idx": { - "name": "users_tenants_order_idx", - "columns": [ - { - "expression": "_order", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "users_tenants_parent_id_idx": { - "name": "users_tenants_parent_id_idx", - "columns": [ - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "users_tenants_tenant_idx": { - "name": "users_tenants_tenant_idx", - "columns": [ - { - "expression": "tenant_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "users_tenants_tenant_id_tenants_id_fk": { - "name": "users_tenants_tenant_id_tenants_id_fk", - "tableFrom": "users_tenants", - "tableTo": "tenants", - "columnsFrom": [ - "tenant_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "set null", - "onUpdate": "no action" - }, - "users_tenants_parent_id_fk": { - "name": "users_tenants_parent_id_fk", - "tableFrom": "users_tenants", - "tableTo": "users", - "columnsFrom": [ - "_parent_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.users_sessions": { - "name": "users_sessions", - "schema": "", - "columns": { - "_order": { - "name": "_order", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "varchar", - "primaryKey": true, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": false - }, - "expires_at": { - "name": "expires_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "users_sessions_order_idx": { - "name": "users_sessions_order_idx", - "columns": [ - { - "expression": "_order", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "users_sessions_parent_id_idx": { - "name": "users_sessions_parent_id_idx", - "columns": [ - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "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": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.users": { - "name": "users", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "serial", - "primaryKey": true, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "created_at": { - "name": "created_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "email": { - "name": "email", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "reset_password_token": { - "name": "reset_password_token", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "reset_password_expiration": { - "name": "reset_password_expiration", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": false - }, - "salt": { - "name": "salt", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "hash": { - "name": "hash", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "login_attempts": { - "name": "login_attempts", - "type": "numeric", - "primaryKey": false, - "notNull": false, - "default": 0 - }, - "lock_until": { - "name": "lock_until", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "users_updated_at_idx": { - "name": "users_updated_at_idx", - "columns": [ - { - "expression": "updated_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "users_created_at_idx": { - "name": "users_created_at_idx", - "columns": [ - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "users_email_idx": { - "name": "users_email_idx", - "columns": [ - { - "expression": "email", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.media": { - "name": "media", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "serial", - "primaryKey": true, - "notNull": true - }, - "tenant_id": { - "name": "tenant_id", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "alt": { - "name": "alt", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "created_at": { - "name": "created_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "url": { - "name": "url", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "thumbnail_u_r_l": { - "name": "thumbnail_u_r_l", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "filename": { - "name": "filename", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "mime_type": { - "name": "mime_type", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "filesize": { - "name": "filesize", - "type": "numeric", - "primaryKey": false, - "notNull": false - }, - "width": { - "name": "width", - "type": "numeric", - "primaryKey": false, - "notNull": false - }, - "height": { - "name": "height", - "type": "numeric", - "primaryKey": false, - "notNull": false - }, - "focal_x": { - "name": "focal_x", - "type": "numeric", - "primaryKey": false, - "notNull": false - }, - "focal_y": { - "name": "focal_y", - "type": "numeric", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "media_tenant_idx": { - "name": "media_tenant_idx", - "columns": [ - { - "expression": "tenant_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "media_updated_at_idx": { - "name": "media_updated_at_idx", - "columns": [ - { - "expression": "updated_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "media_created_at_idx": { - "name": "media_created_at_idx", - "columns": [ - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "media_filename_idx": { - "name": "media_filename_idx", - "columns": [ - { - "expression": "filename", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "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": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.tenants_domains": { - "name": "tenants_domains", - "schema": "", - "columns": { - "_order": { - "name": "_order", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "varchar", - "primaryKey": true, - "notNull": true - }, - "domain": { - "name": "domain", - "type": "varchar", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "tenants_domains_order_idx": { - "name": "tenants_domains_order_idx", - "columns": [ - { - "expression": "_order", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "tenants_domains_parent_id_idx": { - "name": "tenants_domains_parent_id_idx", - "columns": [ - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "tenants_domains_parent_id_fk": { - "name": "tenants_domains_parent_id_fk", - "tableFrom": "tenants_domains", - "tableTo": "tenants", - "columnsFrom": [ - "_parent_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.tenants": { - "name": "tenants", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "serial", - "primaryKey": true, - "notNull": true - }, - "name": { - "name": "name", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "slug": { - "name": "slug", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "created_at": { - "name": "created_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - } - }, - "indexes": { - "tenants_slug_idx": { - "name": "tenants_slug_idx", - "columns": [ - { - "expression": "slug", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "tenants_updated_at_idx": { - "name": "tenants_updated_at_idx", - "columns": [ - { - "expression": "updated_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "tenants_created_at_idx": { - "name": "tenants_created_at_idx", - "columns": [ - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.pages": { - "name": "pages", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "serial", - "primaryKey": true, - "notNull": true - }, - "tenant_id": { - "name": "tenant_id", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "title": { - "name": "title", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "slug": { - "name": "slug", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "hero_image_id": { - "name": "hero_image_id", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "hero_headline": { - "name": "hero_headline", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "hero_subline": { - "name": "hero_subline", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "content": { - "name": "content", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "seo_meta_title": { - "name": "seo_meta_title", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "seo_meta_description": { - "name": "seo_meta_description", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "seo_og_image_id": { - "name": "seo_og_image_id", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "status": { - "name": "status", - "type": "enum_pages_status", - "typeSchema": "public", - "primaryKey": false, - "notNull": false, - "default": "'draft'" - }, - "published_at": { - "name": "published_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "created_at": { - "name": "created_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - } - }, - "indexes": { - "pages_tenant_idx": { - "name": "pages_tenant_idx", - "columns": [ - { - "expression": "tenant_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "pages_slug_idx": { - "name": "pages_slug_idx", - "columns": [ - { - "expression": "slug", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "pages_hero_hero_image_idx": { - "name": "pages_hero_hero_image_idx", - "columns": [ - { - "expression": "hero_image_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "pages_seo_seo_og_image_idx": { - "name": "pages_seo_seo_og_image_idx", - "columns": [ - { - "expression": "seo_og_image_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "pages_updated_at_idx": { - "name": "pages_updated_at_idx", - "columns": [ - { - "expression": "updated_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "pages_created_at_idx": { - "name": "pages_created_at_idx", - "columns": [ - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "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" - }, - "pages_hero_image_id_media_id_fk": { - "name": "pages_hero_image_id_media_id_fk", - "tableFrom": "pages", - "tableTo": "media", - "columnsFrom": [ - "hero_image_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "set null", - "onUpdate": "no action" - }, - "pages_seo_og_image_id_media_id_fk": { - "name": "pages_seo_og_image_id_media_id_fk", - "tableFrom": "pages", - "tableTo": "media", - "columnsFrom": [ - "seo_og_image_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "set null", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.posts": { - "name": "posts", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "serial", - "primaryKey": true, - "notNull": true - }, - "tenant_id": { - "name": "tenant_id", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "title": { - "name": "title", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "slug": { - "name": "slug", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "excerpt": { - "name": "excerpt", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "content": { - "name": "content", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "featured_image_id": { - "name": "featured_image_id", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "category_id": { - "name": "category_id", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "author_id": { - "name": "author_id", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "published_at": { - "name": "published_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": false - }, - "status": { - "name": "status", - "type": "enum_posts_status", - "typeSchema": "public", - "primaryKey": false, - "notNull": false, - "default": "'draft'" - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "created_at": { - "name": "created_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - } - }, - "indexes": { - "posts_tenant_idx": { - "name": "posts_tenant_idx", - "columns": [ - { - "expression": "tenant_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "posts_slug_idx": { - "name": "posts_slug_idx", - "columns": [ - { - "expression": "slug", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "posts_featured_image_idx": { - "name": "posts_featured_image_idx", - "columns": [ - { - "expression": "featured_image_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "posts_category_idx": { - "name": "posts_category_idx", - "columns": [ - { - "expression": "category_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "posts_author_idx": { - "name": "posts_author_idx", - "columns": [ - { - "expression": "author_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "posts_updated_at_idx": { - "name": "posts_updated_at_idx", - "columns": [ - { - "expression": "updated_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "posts_created_at_idx": { - "name": "posts_created_at_idx", - "columns": [ - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "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" - }, - "posts_category_id_categories_id_fk": { - "name": "posts_category_id_categories_id_fk", - "tableFrom": "posts", - "tableTo": "categories", - "columnsFrom": [ - "category_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "set null", - "onUpdate": "no action" - }, - "posts_author_id_users_id_fk": { - "name": "posts_author_id_users_id_fk", - "tableFrom": "posts", - "tableTo": "users", - "columnsFrom": [ - "author_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "set null", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.categories": { - "name": "categories", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "serial", - "primaryKey": true, - "notNull": true - }, - "tenant_id": { - "name": "tenant_id", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "name": { - "name": "name", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "slug": { - "name": "slug", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "description": { - "name": "description", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "created_at": { - "name": "created_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - } - }, - "indexes": { - "categories_tenant_idx": { - "name": "categories_tenant_idx", - "columns": [ - { - "expression": "tenant_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "categories_slug_idx": { - "name": "categories_slug_idx", - "columns": [ - { - "expression": "slug", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "categories_updated_at_idx": { - "name": "categories_updated_at_idx", - "columns": [ - { - "expression": "updated_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "categories_created_at_idx": { - "name": "categories_created_at_idx", - "columns": [ - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "categories_tenant_id_tenants_id_fk": { - "name": "categories_tenant_id_tenants_id_fk", - "tableFrom": "categories", - "tableTo": "tenants", - "columnsFrom": [ - "tenant_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "set null", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.social_links": { - "name": "social_links", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "serial", - "primaryKey": true, - "notNull": true - }, - "tenant_id": { - "name": "tenant_id", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "platform": { - "name": "platform", - "type": "enum_social_links_platform", - "typeSchema": "public", - "primaryKey": false, - "notNull": true - }, - "url": { - "name": "url", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "is_active": { - "name": "is_active", - "type": "boolean", - "primaryKey": false, - "notNull": false, - "default": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "created_at": { - "name": "created_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - } - }, - "indexes": { - "social_links_tenant_idx": { - "name": "social_links_tenant_idx", - "columns": [ - { - "expression": "tenant_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "social_links_updated_at_idx": { - "name": "social_links_updated_at_idx", - "columns": [ - { - "expression": "updated_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "social_links_created_at_idx": { - "name": "social_links_created_at_idx", - "columns": [ - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "social_links_tenant_id_tenants_id_fk": { - "name": "social_links_tenant_id_tenants_id_fk", - "tableFrom": "social_links", - "tableTo": "tenants", - "columnsFrom": [ - "tenant_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "set null", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.forms_blocks_checkbox": { - "name": "forms_blocks_checkbox", - "schema": "", - "columns": { - "_order": { - "name": "_order", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_path": { - "name": "_path", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "varchar", - "primaryKey": true, - "notNull": true - }, - "name": { - "name": "name", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "label": { - "name": "label", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "width": { - "name": "width", - "type": "numeric", - "primaryKey": false, - "notNull": false - }, - "required": { - "name": "required", - "type": "boolean", - "primaryKey": false, - "notNull": false - }, - "default_value": { - "name": "default_value", - "type": "boolean", - "primaryKey": false, - "notNull": false - }, - "block_name": { - "name": "block_name", - "type": "varchar", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "forms_blocks_checkbox_order_idx": { - "name": "forms_blocks_checkbox_order_idx", - "columns": [ - { - "expression": "_order", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "forms_blocks_checkbox_parent_id_idx": { - "name": "forms_blocks_checkbox_parent_id_idx", - "columns": [ - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "forms_blocks_checkbox_path_idx": { - "name": "forms_blocks_checkbox_path_idx", - "columns": [ - { - "expression": "_path", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "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": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.forms_blocks_email": { - "name": "forms_blocks_email", - "schema": "", - "columns": { - "_order": { - "name": "_order", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_path": { - "name": "_path", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "varchar", - "primaryKey": true, - "notNull": true - }, - "name": { - "name": "name", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "label": { - "name": "label", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "width": { - "name": "width", - "type": "numeric", - "primaryKey": false, - "notNull": false - }, - "required": { - "name": "required", - "type": "boolean", - "primaryKey": false, - "notNull": false - }, - "block_name": { - "name": "block_name", - "type": "varchar", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "forms_blocks_email_order_idx": { - "name": "forms_blocks_email_order_idx", - "columns": [ - { - "expression": "_order", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "forms_blocks_email_parent_id_idx": { - "name": "forms_blocks_email_parent_id_idx", - "columns": [ - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "forms_blocks_email_path_idx": { - "name": "forms_blocks_email_path_idx", - "columns": [ - { - "expression": "_path", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "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": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.forms_blocks_message": { - "name": "forms_blocks_message", - "schema": "", - "columns": { - "_order": { - "name": "_order", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_path": { - "name": "_path", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "varchar", - "primaryKey": true, - "notNull": true - }, - "message": { - "name": "message", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "block_name": { - "name": "block_name", - "type": "varchar", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "forms_blocks_message_order_idx": { - "name": "forms_blocks_message_order_idx", - "columns": [ - { - "expression": "_order", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "forms_blocks_message_parent_id_idx": { - "name": "forms_blocks_message_parent_id_idx", - "columns": [ - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "forms_blocks_message_path_idx": { - "name": "forms_blocks_message_path_idx", - "columns": [ - { - "expression": "_path", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "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": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.forms_blocks_number": { - "name": "forms_blocks_number", - "schema": "", - "columns": { - "_order": { - "name": "_order", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_path": { - "name": "_path", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "varchar", - "primaryKey": true, - "notNull": true - }, - "name": { - "name": "name", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "label": { - "name": "label", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "width": { - "name": "width", - "type": "numeric", - "primaryKey": false, - "notNull": false - }, - "default_value": { - "name": "default_value", - "type": "numeric", - "primaryKey": false, - "notNull": false - }, - "required": { - "name": "required", - "type": "boolean", - "primaryKey": false, - "notNull": false - }, - "block_name": { - "name": "block_name", - "type": "varchar", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "forms_blocks_number_order_idx": { - "name": "forms_blocks_number_order_idx", - "columns": [ - { - "expression": "_order", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "forms_blocks_number_parent_id_idx": { - "name": "forms_blocks_number_parent_id_idx", - "columns": [ - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "forms_blocks_number_path_idx": { - "name": "forms_blocks_number_path_idx", - "columns": [ - { - "expression": "_path", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "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": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.forms_blocks_select_options": { - "name": "forms_blocks_select_options", - "schema": "", - "columns": { - "_order": { - "name": "_order", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "varchar", - "primaryKey": true, - "notNull": true - }, - "label": { - "name": "label", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "value": { - "name": "value", - "type": "varchar", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "forms_blocks_select_options_order_idx": { - "name": "forms_blocks_select_options_order_idx", - "columns": [ - { - "expression": "_order", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "forms_blocks_select_options_parent_id_idx": { - "name": "forms_blocks_select_options_parent_id_idx", - "columns": [ - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "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": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.forms_blocks_select": { - "name": "forms_blocks_select", - "schema": "", - "columns": { - "_order": { - "name": "_order", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_path": { - "name": "_path", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "varchar", - "primaryKey": true, - "notNull": true - }, - "name": { - "name": "name", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "label": { - "name": "label", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "width": { - "name": "width", - "type": "numeric", - "primaryKey": false, - "notNull": false - }, - "default_value": { - "name": "default_value", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "placeholder": { - "name": "placeholder", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "required": { - "name": "required", - "type": "boolean", - "primaryKey": false, - "notNull": false - }, - "block_name": { - "name": "block_name", - "type": "varchar", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "forms_blocks_select_order_idx": { - "name": "forms_blocks_select_order_idx", - "columns": [ - { - "expression": "_order", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "forms_blocks_select_parent_id_idx": { - "name": "forms_blocks_select_parent_id_idx", - "columns": [ - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "forms_blocks_select_path_idx": { - "name": "forms_blocks_select_path_idx", - "columns": [ - { - "expression": "_path", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "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": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.forms_blocks_text": { - "name": "forms_blocks_text", - "schema": "", - "columns": { - "_order": { - "name": "_order", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_path": { - "name": "_path", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "varchar", - "primaryKey": true, - "notNull": true - }, - "name": { - "name": "name", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "label": { - "name": "label", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "width": { - "name": "width", - "type": "numeric", - "primaryKey": false, - "notNull": false - }, - "default_value": { - "name": "default_value", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "required": { - "name": "required", - "type": "boolean", - "primaryKey": false, - "notNull": false - }, - "block_name": { - "name": "block_name", - "type": "varchar", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "forms_blocks_text_order_idx": { - "name": "forms_blocks_text_order_idx", - "columns": [ - { - "expression": "_order", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "forms_blocks_text_parent_id_idx": { - "name": "forms_blocks_text_parent_id_idx", - "columns": [ - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "forms_blocks_text_path_idx": { - "name": "forms_blocks_text_path_idx", - "columns": [ - { - "expression": "_path", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "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": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.forms_blocks_textarea": { - "name": "forms_blocks_textarea", - "schema": "", - "columns": { - "_order": { - "name": "_order", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_path": { - "name": "_path", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "varchar", - "primaryKey": true, - "notNull": true - }, - "name": { - "name": "name", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "label": { - "name": "label", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "width": { - "name": "width", - "type": "numeric", - "primaryKey": false, - "notNull": false - }, - "default_value": { - "name": "default_value", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "required": { - "name": "required", - "type": "boolean", - "primaryKey": false, - "notNull": false - }, - "block_name": { - "name": "block_name", - "type": "varchar", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "forms_blocks_textarea_order_idx": { - "name": "forms_blocks_textarea_order_idx", - "columns": [ - { - "expression": "_order", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "forms_blocks_textarea_parent_id_idx": { - "name": "forms_blocks_textarea_parent_id_idx", - "columns": [ - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "forms_blocks_textarea_path_idx": { - "name": "forms_blocks_textarea_path_idx", - "columns": [ - { - "expression": "_path", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "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": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.forms_emails": { - "name": "forms_emails", - "schema": "", - "columns": { - "_order": { - "name": "_order", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "varchar", - "primaryKey": true, - "notNull": true - }, - "email_to": { - "name": "email_to", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "cc": { - "name": "cc", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "bcc": { - "name": "bcc", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "reply_to": { - "name": "reply_to", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "email_from": { - "name": "email_from", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "subject": { - "name": "subject", - "type": "varchar", - "primaryKey": false, - "notNull": true, - "default": "'You''ve received a new message.'" - }, - "message": { - "name": "message", - "type": "jsonb", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "forms_emails_order_idx": { - "name": "forms_emails_order_idx", - "columns": [ - { - "expression": "_order", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "forms_emails_parent_id_idx": { - "name": "forms_emails_parent_id_idx", - "columns": [ - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "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": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.forms": { - "name": "forms", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "serial", - "primaryKey": true, - "notNull": true - }, - "title": { - "name": "title", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "submit_button_label": { - "name": "submit_button_label", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "confirmation_type": { - "name": "confirmation_type", - "type": "enum_forms_confirmation_type", - "typeSchema": "public", - "primaryKey": false, - "notNull": false, - "default": "'message'" - }, - "confirmation_message": { - "name": "confirmation_message", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "redirect_url": { - "name": "redirect_url", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "created_at": { - "name": "created_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - } - }, - "indexes": { - "forms_updated_at_idx": { - "name": "forms_updated_at_idx", - "columns": [ - { - "expression": "updated_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "forms_created_at_idx": { - "name": "forms_created_at_idx", - "columns": [ - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.form_submissions_submission_data": { - "name": "form_submissions_submission_data", - "schema": "", - "columns": { - "_order": { - "name": "_order", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "varchar", - "primaryKey": true, - "notNull": true - }, - "field": { - "name": "field", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "value": { - "name": "value", - "type": "varchar", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "form_submissions_submission_data_order_idx": { - "name": "form_submissions_submission_data_order_idx", - "columns": [ - { - "expression": "_order", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "form_submissions_submission_data_parent_id_idx": { - "name": "form_submissions_submission_data_parent_id_idx", - "columns": [ - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "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": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.form_submissions": { - "name": "form_submissions", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "serial", - "primaryKey": true, - "notNull": true - }, - "form_id": { - "name": "form_id", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "created_at": { - "name": "created_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - } - }, - "indexes": { - "form_submissions_form_idx": { - "name": "form_submissions_form_idx", - "columns": [ - { - "expression": "form_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "form_submissions_updated_at_idx": { - "name": "form_submissions_updated_at_idx", - "columns": [ - { - "expression": "updated_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "form_submissions_created_at_idx": { - "name": "form_submissions_created_at_idx", - "columns": [ - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "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" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.redirects": { - "name": "redirects", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "serial", - "primaryKey": true, - "notNull": true - }, - "from": { - "name": "from", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "to_type": { - "name": "to_type", - "type": "enum_redirects_to_type", - "typeSchema": "public", - "primaryKey": false, - "notNull": false, - "default": "'reference'" - }, - "to_url": { - "name": "to_url", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "created_at": { - "name": "created_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - } - }, - "indexes": { - "redirects_from_idx": { - "name": "redirects_from_idx", - "columns": [ - { - "expression": "from", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "redirects_updated_at_idx": { - "name": "redirects_updated_at_idx", - "columns": [ - { - "expression": "updated_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "redirects_created_at_idx": { - "name": "redirects_created_at_idx", - "columns": [ - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.payload_kv": { - "name": "payload_kv", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "serial", - "primaryKey": true, - "notNull": true - }, - "key": { - "name": "key", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "data": { - "name": "data", - "type": "jsonb", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "payload_kv_key_idx": { - "name": "payload_kv_key_idx", - "columns": [ - { - "expression": "key", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.payload_locked_documents": { - "name": "payload_locked_documents", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "serial", - "primaryKey": true, - "notNull": true - }, - "global_slug": { - "name": "global_slug", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "created_at": { - "name": "created_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - } - }, - "indexes": { - "payload_locked_documents_global_slug_idx": { - "name": "payload_locked_documents_global_slug_idx", - "columns": [ - { - "expression": "global_slug", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "payload_locked_documents_updated_at_idx": { - "name": "payload_locked_documents_updated_at_idx", - "columns": [ - { - "expression": "updated_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "payload_locked_documents_created_at_idx": { - "name": "payload_locked_documents_created_at_idx", - "columns": [ - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.payload_locked_documents_rels": { - "name": "payload_locked_documents_rels", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "serial", - "primaryKey": true, - "notNull": true - }, - "order": { - "name": "order", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "parent_id": { - "name": "parent_id", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "path": { - "name": "path", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "users_id": { - "name": "users_id", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "media_id": { - "name": "media_id", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "tenants_id": { - "name": "tenants_id", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "pages_id": { - "name": "pages_id", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "posts_id": { - "name": "posts_id", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "categories_id": { - "name": "categories_id", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "social_links_id": { - "name": "social_links_id", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "forms_id": { - "name": "forms_id", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "form_submissions_id": { - "name": "form_submissions_id", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "redirects_id": { - "name": "redirects_id", - "type": "integer", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "payload_locked_documents_rels_order_idx": { - "name": "payload_locked_documents_rels_order_idx", - "columns": [ - { - "expression": "order", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "payload_locked_documents_rels_parent_idx": { - "name": "payload_locked_documents_rels_parent_idx", - "columns": [ - { - "expression": "parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "payload_locked_documents_rels_path_idx": { - "name": "payload_locked_documents_rels_path_idx", - "columns": [ - { - "expression": "path", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "payload_locked_documents_rels_users_id_idx": { - "name": "payload_locked_documents_rels_users_id_idx", - "columns": [ - { - "expression": "users_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "payload_locked_documents_rels_media_id_idx": { - "name": "payload_locked_documents_rels_media_id_idx", - "columns": [ - { - "expression": "media_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "payload_locked_documents_rels_tenants_id_idx": { - "name": "payload_locked_documents_rels_tenants_id_idx", - "columns": [ - { - "expression": "tenants_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "payload_locked_documents_rels_pages_id_idx": { - "name": "payload_locked_documents_rels_pages_id_idx", - "columns": [ - { - "expression": "pages_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "payload_locked_documents_rels_posts_id_idx": { - "name": "payload_locked_documents_rels_posts_id_idx", - "columns": [ - { - "expression": "posts_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "payload_locked_documents_rels_categories_id_idx": { - "name": "payload_locked_documents_rels_categories_id_idx", - "columns": [ - { - "expression": "categories_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "payload_locked_documents_rels_social_links_id_idx": { - "name": "payload_locked_documents_rels_social_links_id_idx", - "columns": [ - { - "expression": "social_links_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "payload_locked_documents_rels_forms_id_idx": { - "name": "payload_locked_documents_rels_forms_id_idx", - "columns": [ - { - "expression": "forms_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "payload_locked_documents_rels_form_submissions_id_idx": { - "name": "payload_locked_documents_rels_form_submissions_id_idx", - "columns": [ - { - "expression": "form_submissions_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "payload_locked_documents_rels_redirects_id_idx": { - "name": "payload_locked_documents_rels_redirects_id_idx", - "columns": [ - { - "expression": "redirects_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "payload_locked_documents_rels_parent_fk": { - "name": "payload_locked_documents_rels_parent_fk", - "tableFrom": "payload_locked_documents_rels", - "tableTo": "payload_locked_documents", - "columnsFrom": [ - "parent_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - }, - "payload_locked_documents_rels_users_fk": { - "name": "payload_locked_documents_rels_users_fk", - "tableFrom": "payload_locked_documents_rels", - "tableTo": "users", - "columnsFrom": [ - "users_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - }, - "payload_locked_documents_rels_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_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_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_categories_fk": { - "name": "payload_locked_documents_rels_categories_fk", - "tableFrom": "payload_locked_documents_rels", - "tableTo": "categories", - "columnsFrom": [ - "categories_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - }, - "payload_locked_documents_rels_social_links_fk": { - "name": "payload_locked_documents_rels_social_links_fk", - "tableFrom": "payload_locked_documents_rels", - "tableTo": "social_links", - "columnsFrom": [ - "social_links_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" - }, - "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" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.payload_preferences": { - "name": "payload_preferences", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "serial", - "primaryKey": true, - "notNull": true - }, - "key": { - "name": "key", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "value": { - "name": "value", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "created_at": { - "name": "created_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - } - }, - "indexes": { - "payload_preferences_key_idx": { - "name": "payload_preferences_key_idx", - "columns": [ - { - "expression": "key", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "payload_preferences_updated_at_idx": { - "name": "payload_preferences_updated_at_idx", - "columns": [ - { - "expression": "updated_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "payload_preferences_created_at_idx": { - "name": "payload_preferences_created_at_idx", - "columns": [ - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.payload_preferences_rels": { - "name": "payload_preferences_rels", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "serial", - "primaryKey": true, - "notNull": true - }, - "order": { - "name": "order", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "parent_id": { - "name": "parent_id", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "path": { - "name": "path", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "users_id": { - "name": "users_id", - "type": "integer", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "payload_preferences_rels_order_idx": { - "name": "payload_preferences_rels_order_idx", - "columns": [ - { - "expression": "order", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "payload_preferences_rels_parent_idx": { - "name": "payload_preferences_rels_parent_idx", - "columns": [ - { - "expression": "parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "payload_preferences_rels_path_idx": { - "name": "payload_preferences_rels_path_idx", - "columns": [ - { - "expression": "path", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "payload_preferences_rels_users_id_idx": { - "name": "payload_preferences_rels_users_id_idx", - "columns": [ - { - "expression": "users_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "payload_preferences_rels_parent_fk": { - "name": "payload_preferences_rels_parent_fk", - "tableFrom": "payload_preferences_rels", - "tableTo": "payload_preferences", - "columnsFrom": [ - "parent_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - }, - "payload_preferences_rels_users_fk": { - "name": "payload_preferences_rels_users_fk", - "tableFrom": "payload_preferences_rels", - "tableTo": "users", - "columnsFrom": [ - "users_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.payload_migrations": { - "name": "payload_migrations", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "serial", - "primaryKey": true, - "notNull": true - }, - "name": { - "name": "name", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "batch": { - "name": "batch", - "type": "numeric", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "created_at": { - "name": "created_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - } - }, - "indexes": { - "payload_migrations_updated_at_idx": { - "name": "payload_migrations_updated_at_idx", - "columns": [ - { - "expression": "updated_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "payload_migrations_created_at_idx": { - "name": "payload_migrations_created_at_idx", - "columns": [ - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.site_settings": { - "name": "site_settings", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "serial", - "primaryKey": true, - "notNull": true - }, - "site_name": { - "name": "site_name", - "type": "varchar", - "primaryKey": false, - "notNull": false, - "default": "'porwoll.de'" - }, - "site_tagline": { - "name": "site_tagline", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "logo_id": { - "name": "logo_id", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "favicon_id": { - "name": "favicon_id", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "contact_email": { - "name": "contact_email", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "contact_phone": { - "name": "contact_phone", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "contact_address": { - "name": "contact_address", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "footer_copyright_text": { - "name": "footer_copyright_text", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "footer_show_social_links": { - "name": "footer_show_social_links", - "type": "boolean", - "primaryKey": false, - "notNull": false, - "default": true - }, - "seo_default_meta_title": { - "name": "seo_default_meta_title", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "seo_default_meta_description": { - "name": "seo_default_meta_description", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "seo_default_og_image_id": { - "name": "seo_default_og_image_id", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "site_settings_logo_idx": { - "name": "site_settings_logo_idx", - "columns": [ - { - "expression": "logo_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "site_settings_favicon_idx": { - "name": "site_settings_favicon_idx", - "columns": [ - { - "expression": "favicon_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "site_settings_seo_seo_default_og_image_idx": { - "name": "site_settings_seo_seo_default_og_image_idx", - "columns": [ - { - "expression": "seo_default_og_image_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "site_settings_logo_id_media_id_fk": { - "name": "site_settings_logo_id_media_id_fk", - "tableFrom": "site_settings", - "tableTo": "media", - "columnsFrom": [ - "logo_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "set null", - "onUpdate": "no action" - }, - "site_settings_favicon_id_media_id_fk": { - "name": "site_settings_favicon_id_media_id_fk", - "tableFrom": "site_settings", - "tableTo": "media", - "columnsFrom": [ - "favicon_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "set null", - "onUpdate": "no action" - }, - "site_settings_seo_default_og_image_id_media_id_fk": { - "name": "site_settings_seo_default_og_image_id_media_id_fk", - "tableFrom": "site_settings", - "tableTo": "media", - "columnsFrom": [ - "seo_default_og_image_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "set null", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.navigation_main_menu_submenu": { - "name": "navigation_main_menu_submenu", - "schema": "", - "columns": { - "_order": { - "name": "_order", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "varchar", - "primaryKey": true, - "notNull": true - }, - "label": { - "name": "label", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "link_type": { - "name": "link_type", - "type": "enum_navigation_main_menu_submenu_link_type", - "typeSchema": "public", - "primaryKey": false, - "notNull": false, - "default": "'page'" - }, - "page_id": { - "name": "page_id", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "url": { - "name": "url", - "type": "varchar", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "navigation_main_menu_submenu_order_idx": { - "name": "navigation_main_menu_submenu_order_idx", - "columns": [ - { - "expression": "_order", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "navigation_main_menu_submenu_parent_id_idx": { - "name": "navigation_main_menu_submenu_parent_id_idx", - "columns": [ - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "navigation_main_menu_submenu_page_idx": { - "name": "navigation_main_menu_submenu_page_idx", - "columns": [ - { - "expression": "page_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "navigation_main_menu_submenu_page_id_pages_id_fk": { - "name": "navigation_main_menu_submenu_page_id_pages_id_fk", - "tableFrom": "navigation_main_menu_submenu", - "tableTo": "pages", - "columnsFrom": [ - "page_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "set null", - "onUpdate": "no action" - }, - "navigation_main_menu_submenu_parent_id_fk": { - "name": "navigation_main_menu_submenu_parent_id_fk", - "tableFrom": "navigation_main_menu_submenu", - "tableTo": "navigation_main_menu", - "columnsFrom": [ - "_parent_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.navigation_main_menu": { - "name": "navigation_main_menu", - "schema": "", - "columns": { - "_order": { - "name": "_order", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "varchar", - "primaryKey": true, - "notNull": true - }, - "label": { - "name": "label", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "type": { - "name": "type", - "type": "enum_navigation_main_menu_type", - "typeSchema": "public", - "primaryKey": false, - "notNull": false, - "default": "'page'" - }, - "page_id": { - "name": "page_id", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "url": { - "name": "url", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "open_in_new_tab": { - "name": "open_in_new_tab", - "type": "boolean", - "primaryKey": false, - "notNull": false, - "default": false - } - }, - "indexes": { - "navigation_main_menu_order_idx": { - "name": "navigation_main_menu_order_idx", - "columns": [ - { - "expression": "_order", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "navigation_main_menu_parent_id_idx": { - "name": "navigation_main_menu_parent_id_idx", - "columns": [ - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "navigation_main_menu_page_idx": { - "name": "navigation_main_menu_page_idx", - "columns": [ - { - "expression": "page_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "navigation_main_menu_page_id_pages_id_fk": { - "name": "navigation_main_menu_page_id_pages_id_fk", - "tableFrom": "navigation_main_menu", - "tableTo": "pages", - "columnsFrom": [ - "page_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "set null", - "onUpdate": "no action" - }, - "navigation_main_menu_parent_id_fk": { - "name": "navigation_main_menu_parent_id_fk", - "tableFrom": "navigation_main_menu", - "tableTo": "navigation", - "columnsFrom": [ - "_parent_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.navigation_footer_menu": { - "name": "navigation_footer_menu", - "schema": "", - "columns": { - "_order": { - "name": "_order", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "varchar", - "primaryKey": true, - "notNull": true - }, - "label": { - "name": "label", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "link_type": { - "name": "link_type", - "type": "enum_navigation_footer_menu_link_type", - "typeSchema": "public", - "primaryKey": false, - "notNull": false, - "default": "'page'" - }, - "page_id": { - "name": "page_id", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "url": { - "name": "url", - "type": "varchar", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "navigation_footer_menu_order_idx": { - "name": "navigation_footer_menu_order_idx", - "columns": [ - { - "expression": "_order", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "navigation_footer_menu_parent_id_idx": { - "name": "navigation_footer_menu_parent_id_idx", - "columns": [ - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "navigation_footer_menu_page_idx": { - "name": "navigation_footer_menu_page_idx", - "columns": [ - { - "expression": "page_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "navigation_footer_menu_page_id_pages_id_fk": { - "name": "navigation_footer_menu_page_id_pages_id_fk", - "tableFrom": "navigation_footer_menu", - "tableTo": "pages", - "columnsFrom": [ - "page_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "set null", - "onUpdate": "no action" - }, - "navigation_footer_menu_parent_id_fk": { - "name": "navigation_footer_menu_parent_id_fk", - "tableFrom": "navigation_footer_menu", - "tableTo": "navigation", - "columnsFrom": [ - "_parent_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.navigation": { - "name": "navigation", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "serial", - "primaryKey": true, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": false - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - } - }, - "enums": { - "public.enum_pages_status": { - "name": "enum_pages_status", - "schema": "public", - "values": [ - "draft", - "published" - ] - }, - "public.enum_posts_status": { - "name": "enum_posts_status", - "schema": "public", - "values": [ - "draft", - "published" - ] - }, - "public.enum_social_links_platform": { - "name": "enum_social_links_platform", - "schema": "public", - "values": [ - "facebook", - "x", - "instagram", - "youtube", - "linkedin", - "xing" - ] - }, - "public.enum_forms_confirmation_type": { - "name": "enum_forms_confirmation_type", - "schema": "public", - "values": [ - "message", - "redirect" - ] - }, - "public.enum_redirects_to_type": { - "name": "enum_redirects_to_type", - "schema": "public", - "values": [ - "reference", - "custom" - ] - }, - "public.enum_navigation_main_menu_submenu_link_type": { - "name": "enum_navigation_main_menu_submenu_link_type", - "schema": "public", - "values": [ - "page", - "custom" - ] - }, - "public.enum_navigation_main_menu_type": { - "name": "enum_navigation_main_menu_type", - "schema": "public", - "values": [ - "page", - "custom", - "submenu" - ] - }, - "public.enum_navigation_footer_menu_link_type": { - "name": "enum_navigation_footer_menu_link_type", - "schema": "public", - "values": [ - "page", - "custom" - ] - } - }, - "schemas": {}, - "sequences": {}, - "roles": {}, - "policies": {}, - "views": {}, - "_meta": { - "schemas": {}, - "tables": {}, - "columns": {} - }, - "id": "84355681-1498-4302-a5d4-817f8ee65067", - "prevId": "00000000-0000-0000-0000-000000000000" -} \ No newline at end of file diff --git a/src/migrations_backup/20251127_081206.ts b/src/migrations_backup/20251127_081206.ts deleted file mode 100644 index 5d27a76..0000000 --- a/src/migrations_backup/20251127_081206.ts +++ /dev/null @@ -1,466 +0,0 @@ -import { MigrateUpArgs, MigrateDownArgs, sql } from '@payloadcms/db-postgres' - -export async function up({ db, payload, req }: MigrateUpArgs): Promise { - await db.execute(sql` - CREATE TYPE "public"."enum_pages_status" AS ENUM('draft', 'published'); - CREATE TYPE "public"."enum_posts_status" AS ENUM('draft', 'published'); - CREATE TYPE "public"."enum_social_links_platform" AS ENUM('facebook', 'x', 'instagram', 'youtube', 'linkedin', 'xing'); - CREATE TYPE "public"."enum_forms_confirmation_type" AS ENUM('message', 'redirect'); - CREATE TYPE "public"."enum_redirects_to_type" AS ENUM('reference', 'custom'); - CREATE TYPE "public"."enum_navigation_main_menu_submenu_link_type" AS ENUM('page', 'custom'); - CREATE TYPE "public"."enum_navigation_main_menu_type" AS ENUM('page', 'custom', 'submenu'); - CREATE TYPE "public"."enum_navigation_footer_menu_link_type" AS ENUM('page', 'custom'); - CREATE TABLE "pages" ( - "id" serial PRIMARY KEY NOT NULL, - "tenant_id" integer, - "title" varchar NOT NULL, - "slug" varchar NOT NULL, - "hero_image_id" integer, - "hero_headline" varchar, - "hero_subline" varchar, - "content" jsonb, - "seo_meta_title" varchar, - "seo_meta_description" varchar, - "seo_og_image_id" integer, - "status" "enum_pages_status" DEFAULT 'draft', - "published_at" timestamp(3) with time zone, - "updated_at" timestamp(3) with time zone DEFAULT now() NOT NULL, - "created_at" timestamp(3) with time zone DEFAULT now() NOT NULL - ); - - CREATE TABLE "posts" ( - "id" serial PRIMARY KEY NOT NULL, - "tenant_id" integer, - "title" varchar NOT NULL, - "slug" varchar NOT NULL, - "excerpt" varchar, - "content" jsonb, - "featured_image_id" integer, - "category_id" integer, - "author_id" integer, - "published_at" timestamp(3) with time zone, - "status" "enum_posts_status" DEFAULT 'draft', - "updated_at" timestamp(3) with time zone DEFAULT now() NOT NULL, - "created_at" timestamp(3) with time zone DEFAULT now() NOT NULL - ); - - CREATE TABLE "categories" ( - "id" serial PRIMARY KEY NOT NULL, - "tenant_id" integer, - "name" varchar NOT NULL, - "slug" varchar NOT NULL, - "description" varchar, - "updated_at" timestamp(3) with time zone DEFAULT now() NOT NULL, - "created_at" timestamp(3) with time zone DEFAULT now() NOT NULL - ); - - CREATE TABLE "social_links" ( - "id" serial PRIMARY KEY NOT NULL, - "tenant_id" integer, - "platform" "enum_social_links_platform" NOT NULL, - "url" varchar NOT NULL, - "is_active" boolean DEFAULT true, - "updated_at" timestamp(3) with time zone DEFAULT now() NOT NULL, - "created_at" timestamp(3) with time zone DEFAULT now() NOT NULL - ); - - CREATE TABLE "forms_blocks_checkbox" ( - "_order" integer NOT NULL, - "_parent_id" integer NOT NULL, - "_path" text NOT NULL, - "id" varchar PRIMARY KEY NOT NULL, - "name" varchar NOT NULL, - "label" varchar, - "width" numeric, - "required" boolean, - "default_value" boolean, - "block_name" varchar - ); - - CREATE TABLE "forms_blocks_email" ( - "_order" integer NOT NULL, - "_parent_id" integer NOT NULL, - "_path" text NOT NULL, - "id" varchar PRIMARY KEY NOT NULL, - "name" varchar NOT NULL, - "label" varchar, - "width" numeric, - "required" boolean, - "block_name" varchar - ); - - CREATE TABLE "forms_blocks_message" ( - "_order" integer NOT NULL, - "_parent_id" integer NOT NULL, - "_path" text NOT NULL, - "id" varchar PRIMARY KEY NOT NULL, - "message" jsonb, - "block_name" varchar - ); - - CREATE TABLE "forms_blocks_number" ( - "_order" integer NOT NULL, - "_parent_id" integer NOT NULL, - "_path" text NOT NULL, - "id" varchar PRIMARY KEY NOT NULL, - "name" varchar NOT NULL, - "label" varchar, - "width" numeric, - "default_value" numeric, - "required" boolean, - "block_name" varchar - ); - - CREATE TABLE "forms_blocks_select_options" ( - "_order" integer NOT NULL, - "_parent_id" varchar NOT NULL, - "id" varchar PRIMARY KEY NOT NULL, - "label" varchar NOT NULL, - "value" varchar NOT NULL - ); - - CREATE TABLE "forms_blocks_select" ( - "_order" integer NOT NULL, - "_parent_id" integer NOT NULL, - "_path" text NOT NULL, - "id" varchar PRIMARY KEY NOT NULL, - "name" varchar NOT NULL, - "label" varchar, - "width" numeric, - "default_value" varchar, - "placeholder" varchar, - "required" boolean, - "block_name" varchar - ); - - CREATE TABLE "forms_blocks_text" ( - "_order" integer NOT NULL, - "_parent_id" integer NOT NULL, - "_path" text NOT NULL, - "id" varchar PRIMARY KEY NOT NULL, - "name" varchar NOT NULL, - "label" varchar, - "width" numeric, - "default_value" varchar, - "required" boolean, - "block_name" varchar - ); - - CREATE TABLE "forms_blocks_textarea" ( - "_order" integer NOT NULL, - "_parent_id" integer NOT NULL, - "_path" text NOT NULL, - "id" varchar PRIMARY KEY NOT NULL, - "name" varchar NOT NULL, - "label" varchar, - "width" numeric, - "default_value" varchar, - "required" boolean, - "block_name" varchar - ); - - CREATE TABLE "forms_emails" ( - "_order" integer NOT NULL, - "_parent_id" integer NOT NULL, - "id" varchar PRIMARY KEY NOT NULL, - "email_to" varchar, - "cc" varchar, - "bcc" varchar, - "reply_to" varchar, - "email_from" varchar, - "subject" varchar DEFAULT 'You''ve received a new message.' NOT NULL, - "message" jsonb - ); - - CREATE TABLE "forms" ( - "id" serial PRIMARY KEY NOT NULL, - "title" varchar NOT NULL, - "submit_button_label" varchar, - "confirmation_type" "enum_forms_confirmation_type" DEFAULT 'message', - "confirmation_message" jsonb, - "redirect_url" varchar, - "updated_at" timestamp(3) with time zone DEFAULT now() NOT NULL, - "created_at" timestamp(3) with time zone DEFAULT now() NOT NULL - ); - - CREATE TABLE "form_submissions_submission_data" ( - "_order" integer NOT NULL, - "_parent_id" integer NOT NULL, - "id" varchar PRIMARY KEY NOT NULL, - "field" varchar NOT NULL, - "value" varchar NOT NULL - ); - - CREATE TABLE "form_submissions" ( - "id" serial PRIMARY KEY NOT NULL, - "form_id" integer NOT NULL, - "updated_at" timestamp(3) with time zone DEFAULT now() NOT NULL, - "created_at" timestamp(3) with time zone DEFAULT now() NOT NULL - ); - - CREATE TABLE "redirects" ( - "id" serial PRIMARY KEY NOT NULL, - "from" varchar NOT NULL, - "to_type" "enum_redirects_to_type" DEFAULT 'reference', - "to_url" varchar, - "updated_at" timestamp(3) with time zone DEFAULT now() NOT NULL, - "created_at" timestamp(3) with time zone DEFAULT now() NOT NULL - ); - - CREATE TABLE "site_settings" ( - "id" serial PRIMARY KEY NOT NULL, - "site_name" varchar DEFAULT 'porwoll.de', - "site_tagline" varchar, - "logo_id" integer, - "favicon_id" integer, - "contact_email" varchar, - "contact_phone" varchar, - "contact_address" varchar, - "footer_copyright_text" varchar, - "footer_show_social_links" boolean DEFAULT true, - "seo_default_meta_title" varchar, - "seo_default_meta_description" varchar, - "seo_default_og_image_id" integer, - "updated_at" timestamp(3) with time zone, - "created_at" timestamp(3) with time zone - ); - - CREATE TABLE "navigation_main_menu_submenu" ( - "_order" integer NOT NULL, - "_parent_id" varchar NOT NULL, - "id" varchar PRIMARY KEY NOT NULL, - "label" varchar, - "link_type" "enum_navigation_main_menu_submenu_link_type" DEFAULT 'page', - "page_id" integer, - "url" varchar - ); - - CREATE TABLE "navigation_main_menu" ( - "_order" integer NOT NULL, - "_parent_id" integer NOT NULL, - "id" varchar PRIMARY KEY NOT NULL, - "label" varchar NOT NULL, - "type" "enum_navigation_main_menu_type" DEFAULT 'page', - "page_id" integer, - "url" varchar, - "open_in_new_tab" boolean DEFAULT false - ); - - CREATE TABLE "navigation_footer_menu" ( - "_order" integer NOT NULL, - "_parent_id" integer NOT NULL, - "id" varchar PRIMARY KEY NOT NULL, - "label" varchar NOT NULL, - "link_type" "enum_navigation_footer_menu_link_type" DEFAULT 'page', - "page_id" integer, - "url" varchar - ); - - CREATE TABLE "navigation" ( - "id" serial PRIMARY KEY NOT NULL, - "updated_at" timestamp(3) with time zone, - "created_at" timestamp(3) with time zone - ); - - ALTER TABLE "payload_locked_documents_rels" ADD COLUMN "pages_id" integer; - ALTER TABLE "payload_locked_documents_rels" ADD COLUMN "posts_id" integer; - ALTER TABLE "payload_locked_documents_rels" ADD COLUMN "categories_id" integer; - ALTER TABLE "payload_locked_documents_rels" ADD COLUMN "social_links_id" integer; - ALTER TABLE "payload_locked_documents_rels" ADD COLUMN "forms_id" integer; - ALTER TABLE "payload_locked_documents_rels" ADD COLUMN "form_submissions_id" integer; - ALTER TABLE "payload_locked_documents_rels" ADD COLUMN "redirects_id" integer; - ALTER TABLE "pages" ADD CONSTRAINT "pages_tenant_id_tenants_id_fk" FOREIGN KEY ("tenant_id") REFERENCES "public"."tenants"("id") ON DELETE set null ON UPDATE no action; - ALTER TABLE "pages" ADD CONSTRAINT "pages_hero_image_id_media_id_fk" FOREIGN KEY ("hero_image_id") REFERENCES "public"."media"("id") ON DELETE set null ON UPDATE no action; - ALTER TABLE "pages" ADD CONSTRAINT "pages_seo_og_image_id_media_id_fk" FOREIGN KEY ("seo_og_image_id") REFERENCES "public"."media"("id") ON DELETE set null ON UPDATE no action; - ALTER TABLE "posts" ADD CONSTRAINT "posts_tenant_id_tenants_id_fk" FOREIGN KEY ("tenant_id") REFERENCES "public"."tenants"("id") ON DELETE set null ON UPDATE no action; - ALTER TABLE "posts" ADD CONSTRAINT "posts_featured_image_id_media_id_fk" FOREIGN KEY ("featured_image_id") REFERENCES "public"."media"("id") ON DELETE set null ON UPDATE no action; - ALTER TABLE "posts" ADD CONSTRAINT "posts_category_id_categories_id_fk" FOREIGN KEY ("category_id") REFERENCES "public"."categories"("id") ON DELETE set null ON UPDATE no action; - ALTER TABLE "posts" ADD CONSTRAINT "posts_author_id_users_id_fk" FOREIGN KEY ("author_id") REFERENCES "public"."users"("id") ON DELETE set null ON UPDATE no action; - ALTER TABLE "categories" ADD CONSTRAINT "categories_tenant_id_tenants_id_fk" FOREIGN KEY ("tenant_id") REFERENCES "public"."tenants"("id") ON DELETE set null ON UPDATE no action; - ALTER TABLE "social_links" ADD CONSTRAINT "social_links_tenant_id_tenants_id_fk" FOREIGN KEY ("tenant_id") REFERENCES "public"."tenants"("id") ON DELETE set null ON UPDATE no action; - ALTER TABLE "forms_blocks_checkbox" ADD CONSTRAINT "forms_blocks_checkbox_parent_id_fk" FOREIGN KEY ("_parent_id") REFERENCES "public"."forms"("id") ON DELETE cascade ON UPDATE no action; - ALTER TABLE "forms_blocks_email" ADD CONSTRAINT "forms_blocks_email_parent_id_fk" FOREIGN KEY ("_parent_id") REFERENCES "public"."forms"("id") ON DELETE cascade ON UPDATE no action; - ALTER TABLE "forms_blocks_message" ADD CONSTRAINT "forms_blocks_message_parent_id_fk" FOREIGN KEY ("_parent_id") REFERENCES "public"."forms"("id") ON DELETE cascade ON UPDATE no action; - ALTER TABLE "forms_blocks_number" ADD CONSTRAINT "forms_blocks_number_parent_id_fk" FOREIGN KEY ("_parent_id") REFERENCES "public"."forms"("id") ON DELETE cascade ON UPDATE no action; - ALTER TABLE "forms_blocks_select_options" ADD CONSTRAINT "forms_blocks_select_options_parent_id_fk" FOREIGN KEY ("_parent_id") REFERENCES "public"."forms_blocks_select"("id") ON DELETE cascade ON UPDATE no action; - ALTER TABLE "forms_blocks_select" ADD CONSTRAINT "forms_blocks_select_parent_id_fk" FOREIGN KEY ("_parent_id") REFERENCES "public"."forms"("id") ON DELETE cascade ON UPDATE no action; - ALTER TABLE "forms_blocks_text" ADD CONSTRAINT "forms_blocks_text_parent_id_fk" FOREIGN KEY ("_parent_id") REFERENCES "public"."forms"("id") ON DELETE cascade ON UPDATE no action; - ALTER TABLE "forms_blocks_textarea" ADD CONSTRAINT "forms_blocks_textarea_parent_id_fk" FOREIGN KEY ("_parent_id") REFERENCES "public"."forms"("id") ON DELETE cascade ON UPDATE no action; - ALTER TABLE "forms_emails" ADD CONSTRAINT "forms_emails_parent_id_fk" FOREIGN KEY ("_parent_id") REFERENCES "public"."forms"("id") ON DELETE cascade ON UPDATE no action; - ALTER TABLE "form_submissions_submission_data" ADD CONSTRAINT "form_submissions_submission_data_parent_id_fk" FOREIGN KEY ("_parent_id") REFERENCES "public"."form_submissions"("id") ON DELETE cascade ON UPDATE no action; - ALTER TABLE "form_submissions" ADD CONSTRAINT "form_submissions_form_id_forms_id_fk" FOREIGN KEY ("form_id") REFERENCES "public"."forms"("id") ON DELETE set null ON UPDATE no action; - ALTER TABLE "site_settings" ADD CONSTRAINT "site_settings_logo_id_media_id_fk" FOREIGN KEY ("logo_id") REFERENCES "public"."media"("id") ON DELETE set null ON UPDATE no action; - ALTER TABLE "site_settings" ADD CONSTRAINT "site_settings_favicon_id_media_id_fk" FOREIGN KEY ("favicon_id") REFERENCES "public"."media"("id") ON DELETE set null ON UPDATE no action; - ALTER TABLE "site_settings" ADD CONSTRAINT "site_settings_seo_default_og_image_id_media_id_fk" FOREIGN KEY ("seo_default_og_image_id") REFERENCES "public"."media"("id") ON DELETE set null ON UPDATE no action; - ALTER TABLE "navigation_main_menu_submenu" ADD CONSTRAINT "navigation_main_menu_submenu_page_id_pages_id_fk" FOREIGN KEY ("page_id") REFERENCES "public"."pages"("id") ON DELETE set null ON UPDATE no action; - ALTER TABLE "navigation_main_menu_submenu" ADD CONSTRAINT "navigation_main_menu_submenu_parent_id_fk" FOREIGN KEY ("_parent_id") REFERENCES "public"."navigation_main_menu"("id") ON DELETE cascade ON UPDATE no action; - ALTER TABLE "navigation_main_menu" ADD CONSTRAINT "navigation_main_menu_page_id_pages_id_fk" FOREIGN KEY ("page_id") REFERENCES "public"."pages"("id") ON DELETE set null ON UPDATE no action; - ALTER TABLE "navigation_main_menu" ADD CONSTRAINT "navigation_main_menu_parent_id_fk" FOREIGN KEY ("_parent_id") REFERENCES "public"."navigation"("id") ON DELETE cascade ON UPDATE no action; - ALTER TABLE "navigation_footer_menu" ADD CONSTRAINT "navigation_footer_menu_page_id_pages_id_fk" FOREIGN KEY ("page_id") REFERENCES "public"."pages"("id") ON DELETE set null ON UPDATE no action; - ALTER TABLE "navigation_footer_menu" ADD CONSTRAINT "navigation_footer_menu_parent_id_fk" FOREIGN KEY ("_parent_id") REFERENCES "public"."navigation"("id") ON DELETE cascade ON UPDATE no action; - CREATE INDEX "pages_tenant_idx" ON "pages" USING btree ("tenant_id"); - CREATE UNIQUE INDEX "pages_slug_idx" ON "pages" USING btree ("slug"); - CREATE INDEX "pages_hero_hero_image_idx" ON "pages" USING btree ("hero_image_id"); - CREATE INDEX "pages_seo_seo_og_image_idx" ON "pages" USING btree ("seo_og_image_id"); - CREATE INDEX "pages_updated_at_idx" ON "pages" USING btree ("updated_at"); - CREATE INDEX "pages_created_at_idx" ON "pages" USING btree ("created_at"); - CREATE INDEX "posts_tenant_idx" ON "posts" USING btree ("tenant_id"); - CREATE UNIQUE INDEX "posts_slug_idx" ON "posts" USING btree ("slug"); - CREATE INDEX "posts_featured_image_idx" ON "posts" USING btree ("featured_image_id"); - CREATE INDEX "posts_category_idx" ON "posts" USING btree ("category_id"); - CREATE INDEX "posts_author_idx" ON "posts" USING btree ("author_id"); - CREATE INDEX "posts_updated_at_idx" ON "posts" USING btree ("updated_at"); - CREATE INDEX "posts_created_at_idx" ON "posts" USING btree ("created_at"); - CREATE INDEX "categories_tenant_idx" ON "categories" USING btree ("tenant_id"); - CREATE UNIQUE INDEX "categories_slug_idx" ON "categories" USING btree ("slug"); - CREATE INDEX "categories_updated_at_idx" ON "categories" USING btree ("updated_at"); - CREATE INDEX "categories_created_at_idx" ON "categories" USING btree ("created_at"); - CREATE INDEX "social_links_tenant_idx" ON "social_links" USING btree ("tenant_id"); - CREATE INDEX "social_links_updated_at_idx" ON "social_links" USING btree ("updated_at"); - CREATE INDEX "social_links_created_at_idx" ON "social_links" USING btree ("created_at"); - CREATE INDEX "forms_blocks_checkbox_order_idx" ON "forms_blocks_checkbox" USING btree ("_order"); - CREATE INDEX "forms_blocks_checkbox_parent_id_idx" ON "forms_blocks_checkbox" USING btree ("_parent_id"); - CREATE INDEX "forms_blocks_checkbox_path_idx" ON "forms_blocks_checkbox" USING btree ("_path"); - CREATE INDEX "forms_blocks_email_order_idx" ON "forms_blocks_email" USING btree ("_order"); - CREATE INDEX "forms_blocks_email_parent_id_idx" ON "forms_blocks_email" USING btree ("_parent_id"); - CREATE INDEX "forms_blocks_email_path_idx" ON "forms_blocks_email" USING btree ("_path"); - CREATE INDEX "forms_blocks_message_order_idx" ON "forms_blocks_message" USING btree ("_order"); - CREATE INDEX "forms_blocks_message_parent_id_idx" ON "forms_blocks_message" USING btree ("_parent_id"); - CREATE INDEX "forms_blocks_message_path_idx" ON "forms_blocks_message" USING btree ("_path"); - CREATE INDEX "forms_blocks_number_order_idx" ON "forms_blocks_number" USING btree ("_order"); - CREATE INDEX "forms_blocks_number_parent_id_idx" ON "forms_blocks_number" USING btree ("_parent_id"); - CREATE INDEX "forms_blocks_number_path_idx" ON "forms_blocks_number" USING btree ("_path"); - CREATE INDEX "forms_blocks_select_options_order_idx" ON "forms_blocks_select_options" USING btree ("_order"); - CREATE INDEX "forms_blocks_select_options_parent_id_idx" ON "forms_blocks_select_options" USING btree ("_parent_id"); - CREATE INDEX "forms_blocks_select_order_idx" ON "forms_blocks_select" USING btree ("_order"); - CREATE INDEX "forms_blocks_select_parent_id_idx" ON "forms_blocks_select" USING btree ("_parent_id"); - CREATE INDEX "forms_blocks_select_path_idx" ON "forms_blocks_select" USING btree ("_path"); - CREATE INDEX "forms_blocks_text_order_idx" ON "forms_blocks_text" USING btree ("_order"); - CREATE INDEX "forms_blocks_text_parent_id_idx" ON "forms_blocks_text" USING btree ("_parent_id"); - CREATE INDEX "forms_blocks_text_path_idx" ON "forms_blocks_text" USING btree ("_path"); - CREATE INDEX "forms_blocks_textarea_order_idx" ON "forms_blocks_textarea" USING btree ("_order"); - CREATE INDEX "forms_blocks_textarea_parent_id_idx" ON "forms_blocks_textarea" USING btree ("_parent_id"); - CREATE INDEX "forms_blocks_textarea_path_idx" ON "forms_blocks_textarea" USING btree ("_path"); - CREATE INDEX "forms_emails_order_idx" ON "forms_emails" USING btree ("_order"); - CREATE INDEX "forms_emails_parent_id_idx" ON "forms_emails" USING btree ("_parent_id"); - CREATE INDEX "forms_updated_at_idx" ON "forms" USING btree ("updated_at"); - CREATE INDEX "forms_created_at_idx" ON "forms" USING btree ("created_at"); - CREATE INDEX "form_submissions_submission_data_order_idx" ON "form_submissions_submission_data" USING btree ("_order"); - CREATE INDEX "form_submissions_submission_data_parent_id_idx" ON "form_submissions_submission_data" USING btree ("_parent_id"); - CREATE INDEX "form_submissions_form_idx" ON "form_submissions" USING btree ("form_id"); - CREATE INDEX "form_submissions_updated_at_idx" ON "form_submissions" USING btree ("updated_at"); - CREATE INDEX "form_submissions_created_at_idx" ON "form_submissions" USING btree ("created_at"); - CREATE UNIQUE INDEX "redirects_from_idx" ON "redirects" USING btree ("from"); - CREATE INDEX "redirects_updated_at_idx" ON "redirects" USING btree ("updated_at"); - CREATE INDEX "redirects_created_at_idx" ON "redirects" USING btree ("created_at"); - CREATE INDEX "site_settings_logo_idx" ON "site_settings" USING btree ("logo_id"); - CREATE INDEX "site_settings_favicon_idx" ON "site_settings" USING btree ("favicon_id"); - CREATE INDEX "site_settings_seo_seo_default_og_image_idx" ON "site_settings" USING btree ("seo_default_og_image_id"); - CREATE INDEX "navigation_main_menu_submenu_order_idx" ON "navigation_main_menu_submenu" USING btree ("_order"); - CREATE INDEX "navigation_main_menu_submenu_parent_id_idx" ON "navigation_main_menu_submenu" USING btree ("_parent_id"); - CREATE INDEX "navigation_main_menu_submenu_page_idx" ON "navigation_main_menu_submenu" USING btree ("page_id"); - CREATE INDEX "navigation_main_menu_order_idx" ON "navigation_main_menu" USING btree ("_order"); - CREATE INDEX "navigation_main_menu_parent_id_idx" ON "navigation_main_menu" USING btree ("_parent_id"); - CREATE INDEX "navigation_main_menu_page_idx" ON "navigation_main_menu" USING btree ("page_id"); - CREATE INDEX "navigation_footer_menu_order_idx" ON "navigation_footer_menu" USING btree ("_order"); - CREATE INDEX "navigation_footer_menu_parent_id_idx" ON "navigation_footer_menu" USING btree ("_parent_id"); - CREATE INDEX "navigation_footer_menu_page_idx" ON "navigation_footer_menu" USING btree ("page_id"); - ALTER TABLE "payload_locked_documents_rels" ADD CONSTRAINT "payload_locked_documents_rels_pages_fk" FOREIGN KEY ("pages_id") REFERENCES "public"."pages"("id") ON DELETE cascade ON UPDATE no action; - ALTER TABLE "payload_locked_documents_rels" ADD CONSTRAINT "payload_locked_documents_rels_posts_fk" FOREIGN KEY ("posts_id") REFERENCES "public"."posts"("id") ON DELETE cascade ON UPDATE no action; - ALTER TABLE "payload_locked_documents_rels" ADD CONSTRAINT "payload_locked_documents_rels_categories_fk" FOREIGN KEY ("categories_id") REFERENCES "public"."categories"("id") ON DELETE cascade ON UPDATE no action; - ALTER TABLE "payload_locked_documents_rels" ADD CONSTRAINT "payload_locked_documents_rels_social_links_fk" FOREIGN KEY ("social_links_id") REFERENCES "public"."social_links"("id") ON DELETE cascade ON UPDATE no action; - ALTER TABLE "payload_locked_documents_rels" ADD CONSTRAINT "payload_locked_documents_rels_forms_fk" FOREIGN KEY ("forms_id") REFERENCES "public"."forms"("id") ON DELETE cascade ON UPDATE no action; - ALTER TABLE "payload_locked_documents_rels" ADD CONSTRAINT "payload_locked_documents_rels_form_submissions_fk" FOREIGN KEY ("form_submissions_id") REFERENCES "public"."form_submissions"("id") ON DELETE cascade ON UPDATE no action; - ALTER TABLE "payload_locked_documents_rels" ADD CONSTRAINT "payload_locked_documents_rels_redirects_fk" FOREIGN KEY ("redirects_id") REFERENCES "public"."redirects"("id") ON DELETE cascade ON UPDATE no action; - CREATE INDEX "payload_locked_documents_rels_pages_id_idx" ON "payload_locked_documents_rels" USING btree ("pages_id"); - CREATE INDEX "payload_locked_documents_rels_posts_id_idx" ON "payload_locked_documents_rels" USING btree ("posts_id"); - CREATE INDEX "payload_locked_documents_rels_categories_id_idx" ON "payload_locked_documents_rels" USING btree ("categories_id"); - CREATE INDEX "payload_locked_documents_rels_social_links_id_idx" ON "payload_locked_documents_rels" USING btree ("social_links_id"); - CREATE INDEX "payload_locked_documents_rels_forms_id_idx" ON "payload_locked_documents_rels" USING btree ("forms_id"); - CREATE INDEX "payload_locked_documents_rels_form_submissions_id_idx" ON "payload_locked_documents_rels" USING btree ("form_submissions_id"); - CREATE INDEX "payload_locked_documents_rels_redirects_id_idx" ON "payload_locked_documents_rels" USING btree ("redirects_id");`) -} - -export async function down({ db, payload, req }: MigrateDownArgs): Promise { - await db.execute(sql` - ALTER TABLE "pages" DISABLE ROW LEVEL SECURITY; - ALTER TABLE "posts" DISABLE ROW LEVEL SECURITY; - ALTER TABLE "categories" DISABLE ROW LEVEL SECURITY; - ALTER TABLE "social_links" DISABLE ROW LEVEL SECURITY; - ALTER TABLE "forms_blocks_checkbox" DISABLE ROW LEVEL SECURITY; - ALTER TABLE "forms_blocks_email" DISABLE ROW LEVEL SECURITY; - ALTER TABLE "forms_blocks_message" DISABLE ROW LEVEL SECURITY; - ALTER TABLE "forms_blocks_number" DISABLE ROW LEVEL SECURITY; - ALTER TABLE "forms_blocks_select_options" DISABLE ROW LEVEL SECURITY; - ALTER TABLE "forms_blocks_select" DISABLE ROW LEVEL SECURITY; - ALTER TABLE "forms_blocks_text" DISABLE ROW LEVEL SECURITY; - ALTER TABLE "forms_blocks_textarea" DISABLE ROW LEVEL SECURITY; - ALTER TABLE "forms_emails" DISABLE ROW LEVEL SECURITY; - ALTER TABLE "forms" DISABLE ROW LEVEL SECURITY; - ALTER TABLE "form_submissions_submission_data" DISABLE ROW LEVEL SECURITY; - ALTER TABLE "form_submissions" DISABLE ROW LEVEL SECURITY; - ALTER TABLE "redirects" DISABLE ROW LEVEL SECURITY; - ALTER TABLE "site_settings" DISABLE ROW LEVEL SECURITY; - ALTER TABLE "navigation_main_menu_submenu" DISABLE ROW LEVEL SECURITY; - ALTER TABLE "navigation_main_menu" DISABLE ROW LEVEL SECURITY; - ALTER TABLE "navigation_footer_menu" DISABLE ROW LEVEL SECURITY; - ALTER TABLE "navigation" DISABLE ROW LEVEL SECURITY; - DROP TABLE "pages" CASCADE; - DROP TABLE "posts" CASCADE; - DROP TABLE "categories" CASCADE; - DROP TABLE "social_links" CASCADE; - DROP TABLE "forms_blocks_checkbox" CASCADE; - DROP TABLE "forms_blocks_email" CASCADE; - DROP TABLE "forms_blocks_message" CASCADE; - DROP TABLE "forms_blocks_number" CASCADE; - DROP TABLE "forms_blocks_select_options" CASCADE; - DROP TABLE "forms_blocks_select" CASCADE; - DROP TABLE "forms_blocks_text" CASCADE; - DROP TABLE "forms_blocks_textarea" CASCADE; - DROP TABLE "forms_emails" CASCADE; - DROP TABLE "forms" CASCADE; - DROP TABLE "form_submissions_submission_data" CASCADE; - DROP TABLE "form_submissions" CASCADE; - DROP TABLE "redirects" CASCADE; - DROP TABLE "site_settings" CASCADE; - DROP TABLE "navigation_main_menu_submenu" CASCADE; - DROP TABLE "navigation_main_menu" CASCADE; - DROP TABLE "navigation_footer_menu" CASCADE; - DROP TABLE "navigation" CASCADE; - ALTER TABLE "payload_locked_documents_rels" DROP CONSTRAINT "payload_locked_documents_rels_pages_fk"; - - ALTER TABLE "payload_locked_documents_rels" DROP CONSTRAINT "payload_locked_documents_rels_posts_fk"; - - ALTER TABLE "payload_locked_documents_rels" DROP CONSTRAINT "payload_locked_documents_rels_categories_fk"; - - ALTER TABLE "payload_locked_documents_rels" DROP CONSTRAINT "payload_locked_documents_rels_social_links_fk"; - - ALTER TABLE "payload_locked_documents_rels" DROP CONSTRAINT "payload_locked_documents_rels_forms_fk"; - - ALTER TABLE "payload_locked_documents_rels" DROP CONSTRAINT "payload_locked_documents_rels_form_submissions_fk"; - - ALTER TABLE "payload_locked_documents_rels" DROP CONSTRAINT "payload_locked_documents_rels_redirects_fk"; - - DROP INDEX "payload_locked_documents_rels_pages_id_idx"; - DROP INDEX "payload_locked_documents_rels_posts_id_idx"; - DROP INDEX "payload_locked_documents_rels_categories_id_idx"; - DROP INDEX "payload_locked_documents_rels_social_links_id_idx"; - DROP INDEX "payload_locked_documents_rels_forms_id_idx"; - DROP INDEX "payload_locked_documents_rels_form_submissions_id_idx"; - DROP INDEX "payload_locked_documents_rels_redirects_id_idx"; - ALTER TABLE "payload_locked_documents_rels" DROP COLUMN "pages_id"; - ALTER TABLE "payload_locked_documents_rels" DROP COLUMN "posts_id"; - ALTER TABLE "payload_locked_documents_rels" DROP COLUMN "categories_id"; - ALTER TABLE "payload_locked_documents_rels" DROP COLUMN "social_links_id"; - ALTER TABLE "payload_locked_documents_rels" DROP COLUMN "forms_id"; - ALTER TABLE "payload_locked_documents_rels" DROP COLUMN "form_submissions_id"; - ALTER TABLE "payload_locked_documents_rels" DROP COLUMN "redirects_id"; - DROP TYPE "public"."enum_pages_status"; - DROP TYPE "public"."enum_posts_status"; - DROP TYPE "public"."enum_social_links_platform"; - DROP TYPE "public"."enum_forms_confirmation_type"; - DROP TYPE "public"."enum_redirects_to_type"; - DROP TYPE "public"."enum_navigation_main_menu_submenu_link_type"; - DROP TYPE "public"."enum_navigation_main_menu_type"; - DROP TYPE "public"."enum_navigation_footer_menu_link_type";`) -} diff --git a/src/migrations_backup/20251127_085124.json b/src/migrations_backup/20251127_085124.json deleted file mode 100644 index 66e0265..0000000 --- a/src/migrations_backup/20251127_085124.json +++ /dev/null @@ -1,6300 +0,0 @@ -{ - "version": "7", - "dialect": "postgresql", - "tables": { - "public.users_tenants": { - "name": "users_tenants", - "schema": "", - "columns": { - "_order": { - "name": "_order", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "varchar", - "primaryKey": true, - "notNull": true - }, - "tenant_id": { - "name": "tenant_id", - "type": "integer", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "users_tenants_order_idx": { - "name": "users_tenants_order_idx", - "columns": [ - { - "expression": "_order", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "users_tenants_parent_id_idx": { - "name": "users_tenants_parent_id_idx", - "columns": [ - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "users_tenants_tenant_idx": { - "name": "users_tenants_tenant_idx", - "columns": [ - { - "expression": "tenant_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "users_tenants_tenant_id_tenants_id_fk": { - "name": "users_tenants_tenant_id_tenants_id_fk", - "tableFrom": "users_tenants", - "tableTo": "tenants", - "columnsFrom": [ - "tenant_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "set null", - "onUpdate": "no action" - }, - "users_tenants_parent_id_fk": { - "name": "users_tenants_parent_id_fk", - "tableFrom": "users_tenants", - "tableTo": "users", - "columnsFrom": [ - "_parent_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.users_sessions": { - "name": "users_sessions", - "schema": "", - "columns": { - "_order": { - "name": "_order", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "varchar", - "primaryKey": true, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": false - }, - "expires_at": { - "name": "expires_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "users_sessions_order_idx": { - "name": "users_sessions_order_idx", - "columns": [ - { - "expression": "_order", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "users_sessions_parent_id_idx": { - "name": "users_sessions_parent_id_idx", - "columns": [ - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "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": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.users": { - "name": "users", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "serial", - "primaryKey": true, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "created_at": { - "name": "created_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "email": { - "name": "email", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "reset_password_token": { - "name": "reset_password_token", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "reset_password_expiration": { - "name": "reset_password_expiration", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": false - }, - "salt": { - "name": "salt", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "hash": { - "name": "hash", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "login_attempts": { - "name": "login_attempts", - "type": "numeric", - "primaryKey": false, - "notNull": false, - "default": 0 - }, - "lock_until": { - "name": "lock_until", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "users_updated_at_idx": { - "name": "users_updated_at_idx", - "columns": [ - { - "expression": "updated_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "users_created_at_idx": { - "name": "users_created_at_idx", - "columns": [ - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "users_email_idx": { - "name": "users_email_idx", - "columns": [ - { - "expression": "email", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.media": { - "name": "media", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "serial", - "primaryKey": true, - "notNull": true - }, - "tenant_id": { - "name": "tenant_id", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "alt": { - "name": "alt", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "created_at": { - "name": "created_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "url": { - "name": "url", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "thumbnail_u_r_l": { - "name": "thumbnail_u_r_l", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "filename": { - "name": "filename", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "mime_type": { - "name": "mime_type", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "filesize": { - "name": "filesize", - "type": "numeric", - "primaryKey": false, - "notNull": false - }, - "width": { - "name": "width", - "type": "numeric", - "primaryKey": false, - "notNull": false - }, - "height": { - "name": "height", - "type": "numeric", - "primaryKey": false, - "notNull": false - }, - "focal_x": { - "name": "focal_x", - "type": "numeric", - "primaryKey": false, - "notNull": false - }, - "focal_y": { - "name": "focal_y", - "type": "numeric", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "media_tenant_idx": { - "name": "media_tenant_idx", - "columns": [ - { - "expression": "tenant_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "media_updated_at_idx": { - "name": "media_updated_at_idx", - "columns": [ - { - "expression": "updated_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "media_created_at_idx": { - "name": "media_created_at_idx", - "columns": [ - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "media_filename_idx": { - "name": "media_filename_idx", - "columns": [ - { - "expression": "filename", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "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": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.tenants_domains": { - "name": "tenants_domains", - "schema": "", - "columns": { - "_order": { - "name": "_order", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "varchar", - "primaryKey": true, - "notNull": true - }, - "domain": { - "name": "domain", - "type": "varchar", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "tenants_domains_order_idx": { - "name": "tenants_domains_order_idx", - "columns": [ - { - "expression": "_order", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "tenants_domains_parent_id_idx": { - "name": "tenants_domains_parent_id_idx", - "columns": [ - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "tenants_domains_parent_id_fk": { - "name": "tenants_domains_parent_id_fk", - "tableFrom": "tenants_domains", - "tableTo": "tenants", - "columnsFrom": [ - "_parent_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.tenants": { - "name": "tenants", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "serial", - "primaryKey": true, - "notNull": true - }, - "name": { - "name": "name", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "slug": { - "name": "slug", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "created_at": { - "name": "created_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - } - }, - "indexes": { - "tenants_slug_idx": { - "name": "tenants_slug_idx", - "columns": [ - { - "expression": "slug", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "tenants_updated_at_idx": { - "name": "tenants_updated_at_idx", - "columns": [ - { - "expression": "updated_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "tenants_created_at_idx": { - "name": "tenants_created_at_idx", - "columns": [ - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.pages_blocks_hero_block": { - "name": "pages_blocks_hero_block", - "schema": "", - "columns": { - "_order": { - "name": "_order", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_path": { - "name": "_path", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "varchar", - "primaryKey": true, - "notNull": true - }, - "background_image_id": { - "name": "background_image_id", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "headline": { - "name": "headline", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "subline": { - "name": "subline", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "alignment": { - "name": "alignment", - "type": "enum_pages_blocks_hero_block_alignment", - "typeSchema": "public", - "primaryKey": false, - "notNull": false, - "default": "'center'" - }, - "overlay": { - "name": "overlay", - "type": "boolean", - "primaryKey": false, - "notNull": false, - "default": true - }, - "cta_text": { - "name": "cta_text", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "cta_link": { - "name": "cta_link", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "cta_style": { - "name": "cta_style", - "type": "enum_pages_blocks_hero_block_cta_style", - "typeSchema": "public", - "primaryKey": false, - "notNull": false, - "default": "'primary'" - }, - "block_name": { - "name": "block_name", - "type": "varchar", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "pages_blocks_hero_block_order_idx": { - "name": "pages_blocks_hero_block_order_idx", - "columns": [ - { - "expression": "_order", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "pages_blocks_hero_block_parent_id_idx": { - "name": "pages_blocks_hero_block_parent_id_idx", - "columns": [ - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "pages_blocks_hero_block_path_idx": { - "name": "pages_blocks_hero_block_path_idx", - "columns": [ - { - "expression": "_path", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "pages_blocks_hero_block_background_image_idx": { - "name": "pages_blocks_hero_block_background_image_idx", - "columns": [ - { - "expression": "background_image_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "pages_blocks_hero_block_background_image_id_media_id_fk": { - "name": "pages_blocks_hero_block_background_image_id_media_id_fk", - "tableFrom": "pages_blocks_hero_block", - "tableTo": "media", - "columnsFrom": [ - "background_image_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "set null", - "onUpdate": "no action" - }, - "pages_blocks_hero_block_parent_id_fk": { - "name": "pages_blocks_hero_block_parent_id_fk", - "tableFrom": "pages_blocks_hero_block", - "tableTo": "pages", - "columnsFrom": [ - "_parent_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.pages_blocks_text_block": { - "name": "pages_blocks_text_block", - "schema": "", - "columns": { - "_order": { - "name": "_order", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_path": { - "name": "_path", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "varchar", - "primaryKey": true, - "notNull": true - }, - "content": { - "name": "content", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "width": { - "name": "width", - "type": "enum_pages_blocks_text_block_width", - "typeSchema": "public", - "primaryKey": false, - "notNull": false, - "default": "'medium'" - }, - "block_name": { - "name": "block_name", - "type": "varchar", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "pages_blocks_text_block_order_idx": { - "name": "pages_blocks_text_block_order_idx", - "columns": [ - { - "expression": "_order", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "pages_blocks_text_block_parent_id_idx": { - "name": "pages_blocks_text_block_parent_id_idx", - "columns": [ - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "pages_blocks_text_block_path_idx": { - "name": "pages_blocks_text_block_path_idx", - "columns": [ - { - "expression": "_path", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "pages_blocks_text_block_parent_id_fk": { - "name": "pages_blocks_text_block_parent_id_fk", - "tableFrom": "pages_blocks_text_block", - "tableTo": "pages", - "columnsFrom": [ - "_parent_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.pages_blocks_image_text_block": { - "name": "pages_blocks_image_text_block", - "schema": "", - "columns": { - "_order": { - "name": "_order", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_path": { - "name": "_path", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "varchar", - "primaryKey": true, - "notNull": true - }, - "image_id": { - "name": "image_id", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "image_position": { - "name": "image_position", - "type": "enum_pages_blocks_image_text_block_image_position", - "typeSchema": "public", - "primaryKey": false, - "notNull": false, - "default": "'left'" - }, - "headline": { - "name": "headline", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "content": { - "name": "content", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "cta_text": { - "name": "cta_text", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "cta_link": { - "name": "cta_link", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "block_name": { - "name": "block_name", - "type": "varchar", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "pages_blocks_image_text_block_order_idx": { - "name": "pages_blocks_image_text_block_order_idx", - "columns": [ - { - "expression": "_order", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "pages_blocks_image_text_block_parent_id_idx": { - "name": "pages_blocks_image_text_block_parent_id_idx", - "columns": [ - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "pages_blocks_image_text_block_path_idx": { - "name": "pages_blocks_image_text_block_path_idx", - "columns": [ - { - "expression": "_path", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "pages_blocks_image_text_block_image_idx": { - "name": "pages_blocks_image_text_block_image_idx", - "columns": [ - { - "expression": "image_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "pages_blocks_image_text_block_image_id_media_id_fk": { - "name": "pages_blocks_image_text_block_image_id_media_id_fk", - "tableFrom": "pages_blocks_image_text_block", - "tableTo": "media", - "columnsFrom": [ - "image_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "set null", - "onUpdate": "no action" - }, - "pages_blocks_image_text_block_parent_id_fk": { - "name": "pages_blocks_image_text_block_parent_id_fk", - "tableFrom": "pages_blocks_image_text_block", - "tableTo": "pages", - "columnsFrom": [ - "_parent_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.pages_blocks_card_grid_block_cards": { - "name": "pages_blocks_card_grid_block_cards", - "schema": "", - "columns": { - "_order": { - "name": "_order", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "varchar", - "primaryKey": true, - "notNull": true - }, - "image_id": { - "name": "image_id", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "title": { - "name": "title", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "description": { - "name": "description", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "link": { - "name": "link", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "link_text": { - "name": "link_text", - "type": "varchar", - "primaryKey": false, - "notNull": false, - "default": "'mehr'" - } - }, - "indexes": { - "pages_blocks_card_grid_block_cards_order_idx": { - "name": "pages_blocks_card_grid_block_cards_order_idx", - "columns": [ - { - "expression": "_order", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "pages_blocks_card_grid_block_cards_parent_id_idx": { - "name": "pages_blocks_card_grid_block_cards_parent_id_idx", - "columns": [ - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "pages_blocks_card_grid_block_cards_image_idx": { - "name": "pages_blocks_card_grid_block_cards_image_idx", - "columns": [ - { - "expression": "image_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "pages_blocks_card_grid_block_cards_image_id_media_id_fk": { - "name": "pages_blocks_card_grid_block_cards_image_id_media_id_fk", - "tableFrom": "pages_blocks_card_grid_block_cards", - "tableTo": "media", - "columnsFrom": [ - "image_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "set null", - "onUpdate": "no action" - }, - "pages_blocks_card_grid_block_cards_parent_id_fk": { - "name": "pages_blocks_card_grid_block_cards_parent_id_fk", - "tableFrom": "pages_blocks_card_grid_block_cards", - "tableTo": "pages_blocks_card_grid_block", - "columnsFrom": [ - "_parent_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.pages_blocks_card_grid_block": { - "name": "pages_blocks_card_grid_block", - "schema": "", - "columns": { - "_order": { - "name": "_order", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_path": { - "name": "_path", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "varchar", - "primaryKey": true, - "notNull": true - }, - "headline": { - "name": "headline", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "columns": { - "name": "columns", - "type": "enum_pages_blocks_card_grid_block_columns", - "typeSchema": "public", - "primaryKey": false, - "notNull": false, - "default": "'3'" - }, - "block_name": { - "name": "block_name", - "type": "varchar", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "pages_blocks_card_grid_block_order_idx": { - "name": "pages_blocks_card_grid_block_order_idx", - "columns": [ - { - "expression": "_order", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "pages_blocks_card_grid_block_parent_id_idx": { - "name": "pages_blocks_card_grid_block_parent_id_idx", - "columns": [ - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "pages_blocks_card_grid_block_path_idx": { - "name": "pages_blocks_card_grid_block_path_idx", - "columns": [ - { - "expression": "_path", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "pages_blocks_card_grid_block_parent_id_fk": { - "name": "pages_blocks_card_grid_block_parent_id_fk", - "tableFrom": "pages_blocks_card_grid_block", - "tableTo": "pages", - "columnsFrom": [ - "_parent_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.pages_blocks_quote_block": { - "name": "pages_blocks_quote_block", - "schema": "", - "columns": { - "_order": { - "name": "_order", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_path": { - "name": "_path", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "varchar", - "primaryKey": true, - "notNull": true - }, - "quote": { - "name": "quote", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "author": { - "name": "author", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "role": { - "name": "role", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "image_id": { - "name": "image_id", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "style": { - "name": "style", - "type": "enum_pages_blocks_quote_block_style", - "typeSchema": "public", - "primaryKey": false, - "notNull": false, - "default": "'simple'" - }, - "block_name": { - "name": "block_name", - "type": "varchar", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "pages_blocks_quote_block_order_idx": { - "name": "pages_blocks_quote_block_order_idx", - "columns": [ - { - "expression": "_order", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "pages_blocks_quote_block_parent_id_idx": { - "name": "pages_blocks_quote_block_parent_id_idx", - "columns": [ - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "pages_blocks_quote_block_path_idx": { - "name": "pages_blocks_quote_block_path_idx", - "columns": [ - { - "expression": "_path", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "pages_blocks_quote_block_image_idx": { - "name": "pages_blocks_quote_block_image_idx", - "columns": [ - { - "expression": "image_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "pages_blocks_quote_block_image_id_media_id_fk": { - "name": "pages_blocks_quote_block_image_id_media_id_fk", - "tableFrom": "pages_blocks_quote_block", - "tableTo": "media", - "columnsFrom": [ - "image_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "set null", - "onUpdate": "no action" - }, - "pages_blocks_quote_block_parent_id_fk": { - "name": "pages_blocks_quote_block_parent_id_fk", - "tableFrom": "pages_blocks_quote_block", - "tableTo": "pages", - "columnsFrom": [ - "_parent_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.pages_blocks_cta_block_buttons": { - "name": "pages_blocks_cta_block_buttons", - "schema": "", - "columns": { - "_order": { - "name": "_order", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "varchar", - "primaryKey": true, - "notNull": true - }, - "text": { - "name": "text", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "link": { - "name": "link", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "style": { - "name": "style", - "type": "enum_pages_blocks_cta_block_buttons_style", - "typeSchema": "public", - "primaryKey": false, - "notNull": false, - "default": "'primary'" - } - }, - "indexes": { - "pages_blocks_cta_block_buttons_order_idx": { - "name": "pages_blocks_cta_block_buttons_order_idx", - "columns": [ - { - "expression": "_order", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "pages_blocks_cta_block_buttons_parent_id_idx": { - "name": "pages_blocks_cta_block_buttons_parent_id_idx", - "columns": [ - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "pages_blocks_cta_block_buttons_parent_id_fk": { - "name": "pages_blocks_cta_block_buttons_parent_id_fk", - "tableFrom": "pages_blocks_cta_block_buttons", - "tableTo": "pages_blocks_cta_block", - "columnsFrom": [ - "_parent_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.pages_blocks_cta_block": { - "name": "pages_blocks_cta_block", - "schema": "", - "columns": { - "_order": { - "name": "_order", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_path": { - "name": "_path", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "varchar", - "primaryKey": true, - "notNull": true - }, - "headline": { - "name": "headline", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "description": { - "name": "description", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "background_color": { - "name": "background_color", - "type": "enum_pages_blocks_cta_block_background_color", - "typeSchema": "public", - "primaryKey": false, - "notNull": false, - "default": "'dark'" - }, - "block_name": { - "name": "block_name", - "type": "varchar", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "pages_blocks_cta_block_order_idx": { - "name": "pages_blocks_cta_block_order_idx", - "columns": [ - { - "expression": "_order", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "pages_blocks_cta_block_parent_id_idx": { - "name": "pages_blocks_cta_block_parent_id_idx", - "columns": [ - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "pages_blocks_cta_block_path_idx": { - "name": "pages_blocks_cta_block_path_idx", - "columns": [ - { - "expression": "_path", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "pages_blocks_cta_block_parent_id_fk": { - "name": "pages_blocks_cta_block_parent_id_fk", - "tableFrom": "pages_blocks_cta_block", - "tableTo": "pages", - "columnsFrom": [ - "_parent_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.pages_blocks_contact_form_block": { - "name": "pages_blocks_contact_form_block", - "schema": "", - "columns": { - "_order": { - "name": "_order", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_path": { - "name": "_path", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "varchar", - "primaryKey": true, - "notNull": true - }, - "headline": { - "name": "headline", - "type": "varchar", - "primaryKey": false, - "notNull": false, - "default": "'Kontakt'" - }, - "description": { - "name": "description", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "recipient_email": { - "name": "recipient_email", - "type": "varchar", - "primaryKey": false, - "notNull": false, - "default": "'info@porwoll.de'" - }, - "show_phone": { - "name": "show_phone", - "type": "boolean", - "primaryKey": false, - "notNull": false, - "default": true - }, - "show_address": { - "name": "show_address", - "type": "boolean", - "primaryKey": false, - "notNull": false, - "default": true - }, - "show_socials": { - "name": "show_socials", - "type": "boolean", - "primaryKey": false, - "notNull": false, - "default": true - }, - "block_name": { - "name": "block_name", - "type": "varchar", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "pages_blocks_contact_form_block_order_idx": { - "name": "pages_blocks_contact_form_block_order_idx", - "columns": [ - { - "expression": "_order", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "pages_blocks_contact_form_block_parent_id_idx": { - "name": "pages_blocks_contact_form_block_parent_id_idx", - "columns": [ - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "pages_blocks_contact_form_block_path_idx": { - "name": "pages_blocks_contact_form_block_path_idx", - "columns": [ - { - "expression": "_path", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "pages_blocks_contact_form_block_parent_id_fk": { - "name": "pages_blocks_contact_form_block_parent_id_fk", - "tableFrom": "pages_blocks_contact_form_block", - "tableTo": "pages", - "columnsFrom": [ - "_parent_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.pages_blocks_timeline_block_events": { - "name": "pages_blocks_timeline_block_events", - "schema": "", - "columns": { - "_order": { - "name": "_order", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "varchar", - "primaryKey": true, - "notNull": true - }, - "year": { - "name": "year", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "title": { - "name": "title", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "description": { - "name": "description", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "image_id": { - "name": "image_id", - "type": "integer", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "pages_blocks_timeline_block_events_order_idx": { - "name": "pages_blocks_timeline_block_events_order_idx", - "columns": [ - { - "expression": "_order", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "pages_blocks_timeline_block_events_parent_id_idx": { - "name": "pages_blocks_timeline_block_events_parent_id_idx", - "columns": [ - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "pages_blocks_timeline_block_events_image_idx": { - "name": "pages_blocks_timeline_block_events_image_idx", - "columns": [ - { - "expression": "image_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "pages_blocks_timeline_block_events_image_id_media_id_fk": { - "name": "pages_blocks_timeline_block_events_image_id_media_id_fk", - "tableFrom": "pages_blocks_timeline_block_events", - "tableTo": "media", - "columnsFrom": [ - "image_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "set null", - "onUpdate": "no action" - }, - "pages_blocks_timeline_block_events_parent_id_fk": { - "name": "pages_blocks_timeline_block_events_parent_id_fk", - "tableFrom": "pages_blocks_timeline_block_events", - "tableTo": "pages_blocks_timeline_block", - "columnsFrom": [ - "_parent_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.pages_blocks_timeline_block": { - "name": "pages_blocks_timeline_block", - "schema": "", - "columns": { - "_order": { - "name": "_order", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_path": { - "name": "_path", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "varchar", - "primaryKey": true, - "notNull": true - }, - "headline": { - "name": "headline", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "block_name": { - "name": "block_name", - "type": "varchar", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "pages_blocks_timeline_block_order_idx": { - "name": "pages_blocks_timeline_block_order_idx", - "columns": [ - { - "expression": "_order", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "pages_blocks_timeline_block_parent_id_idx": { - "name": "pages_blocks_timeline_block_parent_id_idx", - "columns": [ - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "pages_blocks_timeline_block_path_idx": { - "name": "pages_blocks_timeline_block_path_idx", - "columns": [ - { - "expression": "_path", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "pages_blocks_timeline_block_parent_id_fk": { - "name": "pages_blocks_timeline_block_parent_id_fk", - "tableFrom": "pages_blocks_timeline_block", - "tableTo": "pages", - "columnsFrom": [ - "_parent_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.pages_blocks_divider_block": { - "name": "pages_blocks_divider_block", - "schema": "", - "columns": { - "_order": { - "name": "_order", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_path": { - "name": "_path", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "varchar", - "primaryKey": true, - "notNull": true - }, - "style": { - "name": "style", - "type": "enum_pages_blocks_divider_block_style", - "typeSchema": "public", - "primaryKey": false, - "notNull": false, - "default": "'space'" - }, - "spacing": { - "name": "spacing", - "type": "enum_pages_blocks_divider_block_spacing", - "typeSchema": "public", - "primaryKey": false, - "notNull": false, - "default": "'medium'" - }, - "block_name": { - "name": "block_name", - "type": "varchar", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "pages_blocks_divider_block_order_idx": { - "name": "pages_blocks_divider_block_order_idx", - "columns": [ - { - "expression": "_order", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "pages_blocks_divider_block_parent_id_idx": { - "name": "pages_blocks_divider_block_parent_id_idx", - "columns": [ - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "pages_blocks_divider_block_path_idx": { - "name": "pages_blocks_divider_block_path_idx", - "columns": [ - { - "expression": "_path", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "pages_blocks_divider_block_parent_id_fk": { - "name": "pages_blocks_divider_block_parent_id_fk", - "tableFrom": "pages_blocks_divider_block", - "tableTo": "pages", - "columnsFrom": [ - "_parent_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.pages_blocks_video_block": { - "name": "pages_blocks_video_block", - "schema": "", - "columns": { - "_order": { - "name": "_order", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_path": { - "name": "_path", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "varchar", - "primaryKey": true, - "notNull": true - }, - "video_url": { - "name": "video_url", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "caption": { - "name": "caption", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "aspect_ratio": { - "name": "aspect_ratio", - "type": "enum_pages_blocks_video_block_aspect_ratio", - "typeSchema": "public", - "primaryKey": false, - "notNull": false, - "default": "'16:9'" - }, - "block_name": { - "name": "block_name", - "type": "varchar", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "pages_blocks_video_block_order_idx": { - "name": "pages_blocks_video_block_order_idx", - "columns": [ - { - "expression": "_order", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "pages_blocks_video_block_parent_id_idx": { - "name": "pages_blocks_video_block_parent_id_idx", - "columns": [ - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "pages_blocks_video_block_path_idx": { - "name": "pages_blocks_video_block_path_idx", - "columns": [ - { - "expression": "_path", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "pages_blocks_video_block_parent_id_fk": { - "name": "pages_blocks_video_block_parent_id_fk", - "tableFrom": "pages_blocks_video_block", - "tableTo": "pages", - "columnsFrom": [ - "_parent_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.pages": { - "name": "pages", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "serial", - "primaryKey": true, - "notNull": true - }, - "tenant_id": { - "name": "tenant_id", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "title": { - "name": "title", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "slug": { - "name": "slug", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "hero_image_id": { - "name": "hero_image_id", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "hero_headline": { - "name": "hero_headline", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "hero_subline": { - "name": "hero_subline", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "seo_meta_title": { - "name": "seo_meta_title", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "seo_meta_description": { - "name": "seo_meta_description", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "seo_og_image_id": { - "name": "seo_og_image_id", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "status": { - "name": "status", - "type": "enum_pages_status", - "typeSchema": "public", - "primaryKey": false, - "notNull": false, - "default": "'draft'" - }, - "published_at": { - "name": "published_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "created_at": { - "name": "created_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - } - }, - "indexes": { - "pages_tenant_idx": { - "name": "pages_tenant_idx", - "columns": [ - { - "expression": "tenant_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "pages_slug_idx": { - "name": "pages_slug_idx", - "columns": [ - { - "expression": "slug", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "pages_hero_hero_image_idx": { - "name": "pages_hero_hero_image_idx", - "columns": [ - { - "expression": "hero_image_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "pages_seo_seo_og_image_idx": { - "name": "pages_seo_seo_og_image_idx", - "columns": [ - { - "expression": "seo_og_image_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "pages_updated_at_idx": { - "name": "pages_updated_at_idx", - "columns": [ - { - "expression": "updated_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "pages_created_at_idx": { - "name": "pages_created_at_idx", - "columns": [ - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "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" - }, - "pages_hero_image_id_media_id_fk": { - "name": "pages_hero_image_id_media_id_fk", - "tableFrom": "pages", - "tableTo": "media", - "columnsFrom": [ - "hero_image_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "set null", - "onUpdate": "no action" - }, - "pages_seo_og_image_id_media_id_fk": { - "name": "pages_seo_og_image_id_media_id_fk", - "tableFrom": "pages", - "tableTo": "media", - "columnsFrom": [ - "seo_og_image_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "set null", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.posts": { - "name": "posts", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "serial", - "primaryKey": true, - "notNull": true - }, - "tenant_id": { - "name": "tenant_id", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "title": { - "name": "title", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "slug": { - "name": "slug", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "excerpt": { - "name": "excerpt", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "content": { - "name": "content", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "featured_image_id": { - "name": "featured_image_id", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "category_id": { - "name": "category_id", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "author_id": { - "name": "author_id", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "published_at": { - "name": "published_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": false - }, - "status": { - "name": "status", - "type": "enum_posts_status", - "typeSchema": "public", - "primaryKey": false, - "notNull": false, - "default": "'draft'" - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "created_at": { - "name": "created_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - } - }, - "indexes": { - "posts_tenant_idx": { - "name": "posts_tenant_idx", - "columns": [ - { - "expression": "tenant_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "posts_slug_idx": { - "name": "posts_slug_idx", - "columns": [ - { - "expression": "slug", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "posts_featured_image_idx": { - "name": "posts_featured_image_idx", - "columns": [ - { - "expression": "featured_image_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "posts_category_idx": { - "name": "posts_category_idx", - "columns": [ - { - "expression": "category_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "posts_author_idx": { - "name": "posts_author_idx", - "columns": [ - { - "expression": "author_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "posts_updated_at_idx": { - "name": "posts_updated_at_idx", - "columns": [ - { - "expression": "updated_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "posts_created_at_idx": { - "name": "posts_created_at_idx", - "columns": [ - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "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" - }, - "posts_category_id_categories_id_fk": { - "name": "posts_category_id_categories_id_fk", - "tableFrom": "posts", - "tableTo": "categories", - "columnsFrom": [ - "category_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "set null", - "onUpdate": "no action" - }, - "posts_author_id_users_id_fk": { - "name": "posts_author_id_users_id_fk", - "tableFrom": "posts", - "tableTo": "users", - "columnsFrom": [ - "author_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "set null", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.categories": { - "name": "categories", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "serial", - "primaryKey": true, - "notNull": true - }, - "tenant_id": { - "name": "tenant_id", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "name": { - "name": "name", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "slug": { - "name": "slug", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "description": { - "name": "description", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "created_at": { - "name": "created_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - } - }, - "indexes": { - "categories_tenant_idx": { - "name": "categories_tenant_idx", - "columns": [ - { - "expression": "tenant_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "categories_slug_idx": { - "name": "categories_slug_idx", - "columns": [ - { - "expression": "slug", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "categories_updated_at_idx": { - "name": "categories_updated_at_idx", - "columns": [ - { - "expression": "updated_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "categories_created_at_idx": { - "name": "categories_created_at_idx", - "columns": [ - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "categories_tenant_id_tenants_id_fk": { - "name": "categories_tenant_id_tenants_id_fk", - "tableFrom": "categories", - "tableTo": "tenants", - "columnsFrom": [ - "tenant_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "set null", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.social_links": { - "name": "social_links", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "serial", - "primaryKey": true, - "notNull": true - }, - "tenant_id": { - "name": "tenant_id", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "platform": { - "name": "platform", - "type": "enum_social_links_platform", - "typeSchema": "public", - "primaryKey": false, - "notNull": true - }, - "url": { - "name": "url", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "is_active": { - "name": "is_active", - "type": "boolean", - "primaryKey": false, - "notNull": false, - "default": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "created_at": { - "name": "created_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - } - }, - "indexes": { - "social_links_tenant_idx": { - "name": "social_links_tenant_idx", - "columns": [ - { - "expression": "tenant_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "social_links_updated_at_idx": { - "name": "social_links_updated_at_idx", - "columns": [ - { - "expression": "updated_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "social_links_created_at_idx": { - "name": "social_links_created_at_idx", - "columns": [ - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "social_links_tenant_id_tenants_id_fk": { - "name": "social_links_tenant_id_tenants_id_fk", - "tableFrom": "social_links", - "tableTo": "tenants", - "columnsFrom": [ - "tenant_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "set null", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.forms_blocks_checkbox": { - "name": "forms_blocks_checkbox", - "schema": "", - "columns": { - "_order": { - "name": "_order", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_path": { - "name": "_path", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "varchar", - "primaryKey": true, - "notNull": true - }, - "name": { - "name": "name", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "label": { - "name": "label", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "width": { - "name": "width", - "type": "numeric", - "primaryKey": false, - "notNull": false - }, - "required": { - "name": "required", - "type": "boolean", - "primaryKey": false, - "notNull": false - }, - "default_value": { - "name": "default_value", - "type": "boolean", - "primaryKey": false, - "notNull": false - }, - "block_name": { - "name": "block_name", - "type": "varchar", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "forms_blocks_checkbox_order_idx": { - "name": "forms_blocks_checkbox_order_idx", - "columns": [ - { - "expression": "_order", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "forms_blocks_checkbox_parent_id_idx": { - "name": "forms_blocks_checkbox_parent_id_idx", - "columns": [ - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "forms_blocks_checkbox_path_idx": { - "name": "forms_blocks_checkbox_path_idx", - "columns": [ - { - "expression": "_path", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "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": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.forms_blocks_email": { - "name": "forms_blocks_email", - "schema": "", - "columns": { - "_order": { - "name": "_order", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_path": { - "name": "_path", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "varchar", - "primaryKey": true, - "notNull": true - }, - "name": { - "name": "name", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "label": { - "name": "label", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "width": { - "name": "width", - "type": "numeric", - "primaryKey": false, - "notNull": false - }, - "required": { - "name": "required", - "type": "boolean", - "primaryKey": false, - "notNull": false - }, - "block_name": { - "name": "block_name", - "type": "varchar", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "forms_blocks_email_order_idx": { - "name": "forms_blocks_email_order_idx", - "columns": [ - { - "expression": "_order", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "forms_blocks_email_parent_id_idx": { - "name": "forms_blocks_email_parent_id_idx", - "columns": [ - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "forms_blocks_email_path_idx": { - "name": "forms_blocks_email_path_idx", - "columns": [ - { - "expression": "_path", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "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": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.forms_blocks_message": { - "name": "forms_blocks_message", - "schema": "", - "columns": { - "_order": { - "name": "_order", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_path": { - "name": "_path", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "varchar", - "primaryKey": true, - "notNull": true - }, - "message": { - "name": "message", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "block_name": { - "name": "block_name", - "type": "varchar", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "forms_blocks_message_order_idx": { - "name": "forms_blocks_message_order_idx", - "columns": [ - { - "expression": "_order", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "forms_blocks_message_parent_id_idx": { - "name": "forms_blocks_message_parent_id_idx", - "columns": [ - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "forms_blocks_message_path_idx": { - "name": "forms_blocks_message_path_idx", - "columns": [ - { - "expression": "_path", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "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": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.forms_blocks_number": { - "name": "forms_blocks_number", - "schema": "", - "columns": { - "_order": { - "name": "_order", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_path": { - "name": "_path", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "varchar", - "primaryKey": true, - "notNull": true - }, - "name": { - "name": "name", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "label": { - "name": "label", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "width": { - "name": "width", - "type": "numeric", - "primaryKey": false, - "notNull": false - }, - "default_value": { - "name": "default_value", - "type": "numeric", - "primaryKey": false, - "notNull": false - }, - "required": { - "name": "required", - "type": "boolean", - "primaryKey": false, - "notNull": false - }, - "block_name": { - "name": "block_name", - "type": "varchar", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "forms_blocks_number_order_idx": { - "name": "forms_blocks_number_order_idx", - "columns": [ - { - "expression": "_order", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "forms_blocks_number_parent_id_idx": { - "name": "forms_blocks_number_parent_id_idx", - "columns": [ - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "forms_blocks_number_path_idx": { - "name": "forms_blocks_number_path_idx", - "columns": [ - { - "expression": "_path", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "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": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.forms_blocks_select_options": { - "name": "forms_blocks_select_options", - "schema": "", - "columns": { - "_order": { - "name": "_order", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "varchar", - "primaryKey": true, - "notNull": true - }, - "label": { - "name": "label", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "value": { - "name": "value", - "type": "varchar", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "forms_blocks_select_options_order_idx": { - "name": "forms_blocks_select_options_order_idx", - "columns": [ - { - "expression": "_order", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "forms_blocks_select_options_parent_id_idx": { - "name": "forms_blocks_select_options_parent_id_idx", - "columns": [ - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "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": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.forms_blocks_select": { - "name": "forms_blocks_select", - "schema": "", - "columns": { - "_order": { - "name": "_order", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_path": { - "name": "_path", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "varchar", - "primaryKey": true, - "notNull": true - }, - "name": { - "name": "name", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "label": { - "name": "label", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "width": { - "name": "width", - "type": "numeric", - "primaryKey": false, - "notNull": false - }, - "default_value": { - "name": "default_value", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "placeholder": { - "name": "placeholder", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "required": { - "name": "required", - "type": "boolean", - "primaryKey": false, - "notNull": false - }, - "block_name": { - "name": "block_name", - "type": "varchar", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "forms_blocks_select_order_idx": { - "name": "forms_blocks_select_order_idx", - "columns": [ - { - "expression": "_order", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "forms_blocks_select_parent_id_idx": { - "name": "forms_blocks_select_parent_id_idx", - "columns": [ - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "forms_blocks_select_path_idx": { - "name": "forms_blocks_select_path_idx", - "columns": [ - { - "expression": "_path", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "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": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.forms_blocks_text": { - "name": "forms_blocks_text", - "schema": "", - "columns": { - "_order": { - "name": "_order", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_path": { - "name": "_path", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "varchar", - "primaryKey": true, - "notNull": true - }, - "name": { - "name": "name", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "label": { - "name": "label", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "width": { - "name": "width", - "type": "numeric", - "primaryKey": false, - "notNull": false - }, - "default_value": { - "name": "default_value", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "required": { - "name": "required", - "type": "boolean", - "primaryKey": false, - "notNull": false - }, - "block_name": { - "name": "block_name", - "type": "varchar", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "forms_blocks_text_order_idx": { - "name": "forms_blocks_text_order_idx", - "columns": [ - { - "expression": "_order", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "forms_blocks_text_parent_id_idx": { - "name": "forms_blocks_text_parent_id_idx", - "columns": [ - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "forms_blocks_text_path_idx": { - "name": "forms_blocks_text_path_idx", - "columns": [ - { - "expression": "_path", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "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": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.forms_blocks_textarea": { - "name": "forms_blocks_textarea", - "schema": "", - "columns": { - "_order": { - "name": "_order", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_path": { - "name": "_path", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "varchar", - "primaryKey": true, - "notNull": true - }, - "name": { - "name": "name", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "label": { - "name": "label", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "width": { - "name": "width", - "type": "numeric", - "primaryKey": false, - "notNull": false - }, - "default_value": { - "name": "default_value", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "required": { - "name": "required", - "type": "boolean", - "primaryKey": false, - "notNull": false - }, - "block_name": { - "name": "block_name", - "type": "varchar", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "forms_blocks_textarea_order_idx": { - "name": "forms_blocks_textarea_order_idx", - "columns": [ - { - "expression": "_order", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "forms_blocks_textarea_parent_id_idx": { - "name": "forms_blocks_textarea_parent_id_idx", - "columns": [ - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "forms_blocks_textarea_path_idx": { - "name": "forms_blocks_textarea_path_idx", - "columns": [ - { - "expression": "_path", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "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": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.forms_emails": { - "name": "forms_emails", - "schema": "", - "columns": { - "_order": { - "name": "_order", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "varchar", - "primaryKey": true, - "notNull": true - }, - "email_to": { - "name": "email_to", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "cc": { - "name": "cc", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "bcc": { - "name": "bcc", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "reply_to": { - "name": "reply_to", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "email_from": { - "name": "email_from", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "subject": { - "name": "subject", - "type": "varchar", - "primaryKey": false, - "notNull": true, - "default": "'You''ve received a new message.'" - }, - "message": { - "name": "message", - "type": "jsonb", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "forms_emails_order_idx": { - "name": "forms_emails_order_idx", - "columns": [ - { - "expression": "_order", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "forms_emails_parent_id_idx": { - "name": "forms_emails_parent_id_idx", - "columns": [ - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "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": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.forms": { - "name": "forms", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "serial", - "primaryKey": true, - "notNull": true - }, - "title": { - "name": "title", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "submit_button_label": { - "name": "submit_button_label", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "confirmation_type": { - "name": "confirmation_type", - "type": "enum_forms_confirmation_type", - "typeSchema": "public", - "primaryKey": false, - "notNull": false, - "default": "'message'" - }, - "confirmation_message": { - "name": "confirmation_message", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "redirect_url": { - "name": "redirect_url", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "created_at": { - "name": "created_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - } - }, - "indexes": { - "forms_updated_at_idx": { - "name": "forms_updated_at_idx", - "columns": [ - { - "expression": "updated_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "forms_created_at_idx": { - "name": "forms_created_at_idx", - "columns": [ - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.form_submissions_submission_data": { - "name": "form_submissions_submission_data", - "schema": "", - "columns": { - "_order": { - "name": "_order", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "varchar", - "primaryKey": true, - "notNull": true - }, - "field": { - "name": "field", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "value": { - "name": "value", - "type": "varchar", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "form_submissions_submission_data_order_idx": { - "name": "form_submissions_submission_data_order_idx", - "columns": [ - { - "expression": "_order", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "form_submissions_submission_data_parent_id_idx": { - "name": "form_submissions_submission_data_parent_id_idx", - "columns": [ - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "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": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.form_submissions": { - "name": "form_submissions", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "serial", - "primaryKey": true, - "notNull": true - }, - "form_id": { - "name": "form_id", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "created_at": { - "name": "created_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - } - }, - "indexes": { - "form_submissions_form_idx": { - "name": "form_submissions_form_idx", - "columns": [ - { - "expression": "form_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "form_submissions_updated_at_idx": { - "name": "form_submissions_updated_at_idx", - "columns": [ - { - "expression": "updated_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "form_submissions_created_at_idx": { - "name": "form_submissions_created_at_idx", - "columns": [ - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "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" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.redirects": { - "name": "redirects", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "serial", - "primaryKey": true, - "notNull": true - }, - "from": { - "name": "from", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "to_type": { - "name": "to_type", - "type": "enum_redirects_to_type", - "typeSchema": "public", - "primaryKey": false, - "notNull": false, - "default": "'reference'" - }, - "to_url": { - "name": "to_url", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "created_at": { - "name": "created_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - } - }, - "indexes": { - "redirects_from_idx": { - "name": "redirects_from_idx", - "columns": [ - { - "expression": "from", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "redirects_updated_at_idx": { - "name": "redirects_updated_at_idx", - "columns": [ - { - "expression": "updated_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "redirects_created_at_idx": { - "name": "redirects_created_at_idx", - "columns": [ - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.payload_kv": { - "name": "payload_kv", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "serial", - "primaryKey": true, - "notNull": true - }, - "key": { - "name": "key", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "data": { - "name": "data", - "type": "jsonb", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "payload_kv_key_idx": { - "name": "payload_kv_key_idx", - "columns": [ - { - "expression": "key", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.payload_locked_documents": { - "name": "payload_locked_documents", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "serial", - "primaryKey": true, - "notNull": true - }, - "global_slug": { - "name": "global_slug", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "created_at": { - "name": "created_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - } - }, - "indexes": { - "payload_locked_documents_global_slug_idx": { - "name": "payload_locked_documents_global_slug_idx", - "columns": [ - { - "expression": "global_slug", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "payload_locked_documents_updated_at_idx": { - "name": "payload_locked_documents_updated_at_idx", - "columns": [ - { - "expression": "updated_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "payload_locked_documents_created_at_idx": { - "name": "payload_locked_documents_created_at_idx", - "columns": [ - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.payload_locked_documents_rels": { - "name": "payload_locked_documents_rels", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "serial", - "primaryKey": true, - "notNull": true - }, - "order": { - "name": "order", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "parent_id": { - "name": "parent_id", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "path": { - "name": "path", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "users_id": { - "name": "users_id", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "media_id": { - "name": "media_id", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "tenants_id": { - "name": "tenants_id", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "pages_id": { - "name": "pages_id", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "posts_id": { - "name": "posts_id", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "categories_id": { - "name": "categories_id", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "social_links_id": { - "name": "social_links_id", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "forms_id": { - "name": "forms_id", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "form_submissions_id": { - "name": "form_submissions_id", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "redirects_id": { - "name": "redirects_id", - "type": "integer", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "payload_locked_documents_rels_order_idx": { - "name": "payload_locked_documents_rels_order_idx", - "columns": [ - { - "expression": "order", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "payload_locked_documents_rels_parent_idx": { - "name": "payload_locked_documents_rels_parent_idx", - "columns": [ - { - "expression": "parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "payload_locked_documents_rels_path_idx": { - "name": "payload_locked_documents_rels_path_idx", - "columns": [ - { - "expression": "path", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "payload_locked_documents_rels_users_id_idx": { - "name": "payload_locked_documents_rels_users_id_idx", - "columns": [ - { - "expression": "users_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "payload_locked_documents_rels_media_id_idx": { - "name": "payload_locked_documents_rels_media_id_idx", - "columns": [ - { - "expression": "media_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "payload_locked_documents_rels_tenants_id_idx": { - "name": "payload_locked_documents_rels_tenants_id_idx", - "columns": [ - { - "expression": "tenants_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "payload_locked_documents_rels_pages_id_idx": { - "name": "payload_locked_documents_rels_pages_id_idx", - "columns": [ - { - "expression": "pages_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "payload_locked_documents_rels_posts_id_idx": { - "name": "payload_locked_documents_rels_posts_id_idx", - "columns": [ - { - "expression": "posts_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "payload_locked_documents_rels_categories_id_idx": { - "name": "payload_locked_documents_rels_categories_id_idx", - "columns": [ - { - "expression": "categories_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "payload_locked_documents_rels_social_links_id_idx": { - "name": "payload_locked_documents_rels_social_links_id_idx", - "columns": [ - { - "expression": "social_links_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "payload_locked_documents_rels_forms_id_idx": { - "name": "payload_locked_documents_rels_forms_id_idx", - "columns": [ - { - "expression": "forms_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "payload_locked_documents_rels_form_submissions_id_idx": { - "name": "payload_locked_documents_rels_form_submissions_id_idx", - "columns": [ - { - "expression": "form_submissions_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "payload_locked_documents_rels_redirects_id_idx": { - "name": "payload_locked_documents_rels_redirects_id_idx", - "columns": [ - { - "expression": "redirects_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "payload_locked_documents_rels_parent_fk": { - "name": "payload_locked_documents_rels_parent_fk", - "tableFrom": "payload_locked_documents_rels", - "tableTo": "payload_locked_documents", - "columnsFrom": [ - "parent_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - }, - "payload_locked_documents_rels_users_fk": { - "name": "payload_locked_documents_rels_users_fk", - "tableFrom": "payload_locked_documents_rels", - "tableTo": "users", - "columnsFrom": [ - "users_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - }, - "payload_locked_documents_rels_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_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_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_categories_fk": { - "name": "payload_locked_documents_rels_categories_fk", - "tableFrom": "payload_locked_documents_rels", - "tableTo": "categories", - "columnsFrom": [ - "categories_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - }, - "payload_locked_documents_rels_social_links_fk": { - "name": "payload_locked_documents_rels_social_links_fk", - "tableFrom": "payload_locked_documents_rels", - "tableTo": "social_links", - "columnsFrom": [ - "social_links_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" - }, - "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" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.payload_preferences": { - "name": "payload_preferences", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "serial", - "primaryKey": true, - "notNull": true - }, - "key": { - "name": "key", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "value": { - "name": "value", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "created_at": { - "name": "created_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - } - }, - "indexes": { - "payload_preferences_key_idx": { - "name": "payload_preferences_key_idx", - "columns": [ - { - "expression": "key", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "payload_preferences_updated_at_idx": { - "name": "payload_preferences_updated_at_idx", - "columns": [ - { - "expression": "updated_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "payload_preferences_created_at_idx": { - "name": "payload_preferences_created_at_idx", - "columns": [ - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.payload_preferences_rels": { - "name": "payload_preferences_rels", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "serial", - "primaryKey": true, - "notNull": true - }, - "order": { - "name": "order", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "parent_id": { - "name": "parent_id", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "path": { - "name": "path", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "users_id": { - "name": "users_id", - "type": "integer", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "payload_preferences_rels_order_idx": { - "name": "payload_preferences_rels_order_idx", - "columns": [ - { - "expression": "order", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "payload_preferences_rels_parent_idx": { - "name": "payload_preferences_rels_parent_idx", - "columns": [ - { - "expression": "parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "payload_preferences_rels_path_idx": { - "name": "payload_preferences_rels_path_idx", - "columns": [ - { - "expression": "path", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "payload_preferences_rels_users_id_idx": { - "name": "payload_preferences_rels_users_id_idx", - "columns": [ - { - "expression": "users_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "payload_preferences_rels_parent_fk": { - "name": "payload_preferences_rels_parent_fk", - "tableFrom": "payload_preferences_rels", - "tableTo": "payload_preferences", - "columnsFrom": [ - "parent_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - }, - "payload_preferences_rels_users_fk": { - "name": "payload_preferences_rels_users_fk", - "tableFrom": "payload_preferences_rels", - "tableTo": "users", - "columnsFrom": [ - "users_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.payload_migrations": { - "name": "payload_migrations", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "serial", - "primaryKey": true, - "notNull": true - }, - "name": { - "name": "name", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "batch": { - "name": "batch", - "type": "numeric", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "created_at": { - "name": "created_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - } - }, - "indexes": { - "payload_migrations_updated_at_idx": { - "name": "payload_migrations_updated_at_idx", - "columns": [ - { - "expression": "updated_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "payload_migrations_created_at_idx": { - "name": "payload_migrations_created_at_idx", - "columns": [ - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.site_settings": { - "name": "site_settings", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "serial", - "primaryKey": true, - "notNull": true - }, - "site_name": { - "name": "site_name", - "type": "varchar", - "primaryKey": false, - "notNull": false, - "default": "'porwoll.de'" - }, - "site_tagline": { - "name": "site_tagline", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "logo_id": { - "name": "logo_id", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "favicon_id": { - "name": "favicon_id", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "contact_email": { - "name": "contact_email", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "contact_phone": { - "name": "contact_phone", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "contact_address": { - "name": "contact_address", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "footer_copyright_text": { - "name": "footer_copyright_text", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "footer_show_social_links": { - "name": "footer_show_social_links", - "type": "boolean", - "primaryKey": false, - "notNull": false, - "default": true - }, - "seo_default_meta_title": { - "name": "seo_default_meta_title", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "seo_default_meta_description": { - "name": "seo_default_meta_description", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "seo_default_og_image_id": { - "name": "seo_default_og_image_id", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "site_settings_logo_idx": { - "name": "site_settings_logo_idx", - "columns": [ - { - "expression": "logo_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "site_settings_favicon_idx": { - "name": "site_settings_favicon_idx", - "columns": [ - { - "expression": "favicon_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "site_settings_seo_seo_default_og_image_idx": { - "name": "site_settings_seo_seo_default_og_image_idx", - "columns": [ - { - "expression": "seo_default_og_image_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "site_settings_logo_id_media_id_fk": { - "name": "site_settings_logo_id_media_id_fk", - "tableFrom": "site_settings", - "tableTo": "media", - "columnsFrom": [ - "logo_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "set null", - "onUpdate": "no action" - }, - "site_settings_favicon_id_media_id_fk": { - "name": "site_settings_favicon_id_media_id_fk", - "tableFrom": "site_settings", - "tableTo": "media", - "columnsFrom": [ - "favicon_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "set null", - "onUpdate": "no action" - }, - "site_settings_seo_default_og_image_id_media_id_fk": { - "name": "site_settings_seo_default_og_image_id_media_id_fk", - "tableFrom": "site_settings", - "tableTo": "media", - "columnsFrom": [ - "seo_default_og_image_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "set null", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.navigation_main_menu_submenu": { - "name": "navigation_main_menu_submenu", - "schema": "", - "columns": { - "_order": { - "name": "_order", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "varchar", - "primaryKey": true, - "notNull": true - }, - "label": { - "name": "label", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "link_type": { - "name": "link_type", - "type": "enum_navigation_main_menu_submenu_link_type", - "typeSchema": "public", - "primaryKey": false, - "notNull": false, - "default": "'page'" - }, - "page_id": { - "name": "page_id", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "url": { - "name": "url", - "type": "varchar", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "navigation_main_menu_submenu_order_idx": { - "name": "navigation_main_menu_submenu_order_idx", - "columns": [ - { - "expression": "_order", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "navigation_main_menu_submenu_parent_id_idx": { - "name": "navigation_main_menu_submenu_parent_id_idx", - "columns": [ - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "navigation_main_menu_submenu_page_idx": { - "name": "navigation_main_menu_submenu_page_idx", - "columns": [ - { - "expression": "page_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "navigation_main_menu_submenu_page_id_pages_id_fk": { - "name": "navigation_main_menu_submenu_page_id_pages_id_fk", - "tableFrom": "navigation_main_menu_submenu", - "tableTo": "pages", - "columnsFrom": [ - "page_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "set null", - "onUpdate": "no action" - }, - "navigation_main_menu_submenu_parent_id_fk": { - "name": "navigation_main_menu_submenu_parent_id_fk", - "tableFrom": "navigation_main_menu_submenu", - "tableTo": "navigation_main_menu", - "columnsFrom": [ - "_parent_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.navigation_main_menu": { - "name": "navigation_main_menu", - "schema": "", - "columns": { - "_order": { - "name": "_order", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "varchar", - "primaryKey": true, - "notNull": true - }, - "label": { - "name": "label", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "type": { - "name": "type", - "type": "enum_navigation_main_menu_type", - "typeSchema": "public", - "primaryKey": false, - "notNull": false, - "default": "'page'" - }, - "page_id": { - "name": "page_id", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "url": { - "name": "url", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "open_in_new_tab": { - "name": "open_in_new_tab", - "type": "boolean", - "primaryKey": false, - "notNull": false, - "default": false - } - }, - "indexes": { - "navigation_main_menu_order_idx": { - "name": "navigation_main_menu_order_idx", - "columns": [ - { - "expression": "_order", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "navigation_main_menu_parent_id_idx": { - "name": "navigation_main_menu_parent_id_idx", - "columns": [ - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "navigation_main_menu_page_idx": { - "name": "navigation_main_menu_page_idx", - "columns": [ - { - "expression": "page_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "navigation_main_menu_page_id_pages_id_fk": { - "name": "navigation_main_menu_page_id_pages_id_fk", - "tableFrom": "navigation_main_menu", - "tableTo": "pages", - "columnsFrom": [ - "page_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "set null", - "onUpdate": "no action" - }, - "navigation_main_menu_parent_id_fk": { - "name": "navigation_main_menu_parent_id_fk", - "tableFrom": "navigation_main_menu", - "tableTo": "navigation", - "columnsFrom": [ - "_parent_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.navigation_footer_menu": { - "name": "navigation_footer_menu", - "schema": "", - "columns": { - "_order": { - "name": "_order", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "varchar", - "primaryKey": true, - "notNull": true - }, - "label": { - "name": "label", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "link_type": { - "name": "link_type", - "type": "enum_navigation_footer_menu_link_type", - "typeSchema": "public", - "primaryKey": false, - "notNull": false, - "default": "'page'" - }, - "page_id": { - "name": "page_id", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "url": { - "name": "url", - "type": "varchar", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "navigation_footer_menu_order_idx": { - "name": "navigation_footer_menu_order_idx", - "columns": [ - { - "expression": "_order", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "navigation_footer_menu_parent_id_idx": { - "name": "navigation_footer_menu_parent_id_idx", - "columns": [ - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "navigation_footer_menu_page_idx": { - "name": "navigation_footer_menu_page_idx", - "columns": [ - { - "expression": "page_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "navigation_footer_menu_page_id_pages_id_fk": { - "name": "navigation_footer_menu_page_id_pages_id_fk", - "tableFrom": "navigation_footer_menu", - "tableTo": "pages", - "columnsFrom": [ - "page_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "set null", - "onUpdate": "no action" - }, - "navigation_footer_menu_parent_id_fk": { - "name": "navigation_footer_menu_parent_id_fk", - "tableFrom": "navigation_footer_menu", - "tableTo": "navigation", - "columnsFrom": [ - "_parent_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.navigation": { - "name": "navigation", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "serial", - "primaryKey": true, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": false - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - } - }, - "enums": { - "public.enum_pages_blocks_hero_block_alignment": { - "name": "enum_pages_blocks_hero_block_alignment", - "schema": "public", - "values": [ - "left", - "center", - "right" - ] - }, - "public.enum_pages_blocks_hero_block_cta_style": { - "name": "enum_pages_blocks_hero_block_cta_style", - "schema": "public", - "values": [ - "primary", - "secondary", - "outline" - ] - }, - "public.enum_pages_blocks_text_block_width": { - "name": "enum_pages_blocks_text_block_width", - "schema": "public", - "values": [ - "narrow", - "medium", - "full" - ] - }, - "public.enum_pages_blocks_image_text_block_image_position": { - "name": "enum_pages_blocks_image_text_block_image_position", - "schema": "public", - "values": [ - "left", - "right" - ] - }, - "public.enum_pages_blocks_card_grid_block_columns": { - "name": "enum_pages_blocks_card_grid_block_columns", - "schema": "public", - "values": [ - "2", - "3", - "4" - ] - }, - "public.enum_pages_blocks_quote_block_style": { - "name": "enum_pages_blocks_quote_block_style", - "schema": "public", - "values": [ - "simple", - "highlighted", - "with-image" - ] - }, - "public.enum_pages_blocks_cta_block_buttons_style": { - "name": "enum_pages_blocks_cta_block_buttons_style", - "schema": "public", - "values": [ - "primary", - "secondary", - "outline" - ] - }, - "public.enum_pages_blocks_cta_block_background_color": { - "name": "enum_pages_blocks_cta_block_background_color", - "schema": "public", - "values": [ - "dark", - "light", - "accent" - ] - }, - "public.enum_pages_blocks_divider_block_style": { - "name": "enum_pages_blocks_divider_block_style", - "schema": "public", - "values": [ - "line", - "space", - "dots" - ] - }, - "public.enum_pages_blocks_divider_block_spacing": { - "name": "enum_pages_blocks_divider_block_spacing", - "schema": "public", - "values": [ - "small", - "medium", - "large" - ] - }, - "public.enum_pages_blocks_video_block_aspect_ratio": { - "name": "enum_pages_blocks_video_block_aspect_ratio", - "schema": "public", - "values": [ - "16:9", - "4:3", - "1:1" - ] - }, - "public.enum_pages_status": { - "name": "enum_pages_status", - "schema": "public", - "values": [ - "draft", - "published" - ] - }, - "public.enum_posts_status": { - "name": "enum_posts_status", - "schema": "public", - "values": [ - "draft", - "published" - ] - }, - "public.enum_social_links_platform": { - "name": "enum_social_links_platform", - "schema": "public", - "values": [ - "facebook", - "x", - "instagram", - "youtube", - "linkedin", - "xing" - ] - }, - "public.enum_forms_confirmation_type": { - "name": "enum_forms_confirmation_type", - "schema": "public", - "values": [ - "message", - "redirect" - ] - }, - "public.enum_redirects_to_type": { - "name": "enum_redirects_to_type", - "schema": "public", - "values": [ - "reference", - "custom" - ] - }, - "public.enum_navigation_main_menu_submenu_link_type": { - "name": "enum_navigation_main_menu_submenu_link_type", - "schema": "public", - "values": [ - "page", - "custom" - ] - }, - "public.enum_navigation_main_menu_type": { - "name": "enum_navigation_main_menu_type", - "schema": "public", - "values": [ - "page", - "custom", - "submenu" - ] - }, - "public.enum_navigation_footer_menu_link_type": { - "name": "enum_navigation_footer_menu_link_type", - "schema": "public", - "values": [ - "page", - "custom" - ] - } - }, - "schemas": {}, - "sequences": {}, - "roles": {}, - "policies": {}, - "views": {}, - "_meta": { - "schemas": {}, - "tables": {}, - "columns": {} - }, - "id": "b865cd71-c045-4bfe-a574-7d5b225a6dd4", - "prevId": "00000000-0000-0000-0000-000000000000" -} \ No newline at end of file diff --git a/src/migrations_backup/20251127_085124.ts b/src/migrations_backup/20251127_085124.ts deleted file mode 100644 index f747484..0000000 --- a/src/migrations_backup/20251127_085124.ts +++ /dev/null @@ -1,253 +0,0 @@ -import { MigrateUpArgs, MigrateDownArgs, sql } from '@payloadcms/db-postgres' - -export async function up({ db, payload, req }: MigrateUpArgs): Promise { - await db.execute(sql` - CREATE TYPE "public"."enum_pages_blocks_hero_block_alignment" AS ENUM('left', 'center', 'right'); - CREATE TYPE "public"."enum_pages_blocks_hero_block_cta_style" AS ENUM('primary', 'secondary', 'outline'); - CREATE TYPE "public"."enum_pages_blocks_text_block_width" AS ENUM('narrow', 'medium', 'full'); - CREATE TYPE "public"."enum_pages_blocks_image_text_block_image_position" AS ENUM('left', 'right'); - CREATE TYPE "public"."enum_pages_blocks_card_grid_block_columns" AS ENUM('2', '3', '4'); - CREATE TYPE "public"."enum_pages_blocks_quote_block_style" AS ENUM('simple', 'highlighted', 'with-image'); - CREATE TYPE "public"."enum_pages_blocks_cta_block_buttons_style" AS ENUM('primary', 'secondary', 'outline'); - CREATE TYPE "public"."enum_pages_blocks_cta_block_background_color" AS ENUM('dark', 'light', 'accent'); - CREATE TYPE "public"."enum_pages_blocks_divider_block_style" AS ENUM('line', 'space', 'dots'); - CREATE TYPE "public"."enum_pages_blocks_divider_block_spacing" AS ENUM('small', 'medium', 'large'); - CREATE TYPE "public"."enum_pages_blocks_video_block_aspect_ratio" AS ENUM('16:9', '4:3', '1:1'); - CREATE TABLE "pages_blocks_hero_block" ( - "_order" integer NOT NULL, - "_parent_id" integer NOT NULL, - "_path" text NOT NULL, - "id" varchar PRIMARY KEY NOT NULL, - "background_image_id" integer, - "headline" varchar NOT NULL, - "subline" varchar, - "alignment" "enum_pages_blocks_hero_block_alignment" DEFAULT 'center', - "overlay" boolean DEFAULT true, - "cta_text" varchar, - "cta_link" varchar, - "cta_style" "enum_pages_blocks_hero_block_cta_style" DEFAULT 'primary', - "block_name" varchar - ); - - CREATE TABLE "pages_blocks_text_block" ( - "_order" integer NOT NULL, - "_parent_id" integer NOT NULL, - "_path" text NOT NULL, - "id" varchar PRIMARY KEY NOT NULL, - "content" jsonb NOT NULL, - "width" "enum_pages_blocks_text_block_width" DEFAULT 'medium', - "block_name" varchar - ); - - CREATE TABLE "pages_blocks_image_text_block" ( - "_order" integer NOT NULL, - "_parent_id" integer NOT NULL, - "_path" text NOT NULL, - "id" varchar PRIMARY KEY NOT NULL, - "image_id" integer NOT NULL, - "image_position" "enum_pages_blocks_image_text_block_image_position" DEFAULT 'left', - "headline" varchar, - "content" jsonb, - "cta_text" varchar, - "cta_link" varchar, - "block_name" varchar - ); - - CREATE TABLE "pages_blocks_card_grid_block_cards" ( - "_order" integer NOT NULL, - "_parent_id" varchar NOT NULL, - "id" varchar PRIMARY KEY NOT NULL, - "image_id" integer, - "title" varchar NOT NULL, - "description" varchar, - "link" varchar, - "link_text" varchar DEFAULT 'mehr' - ); - - CREATE TABLE "pages_blocks_card_grid_block" ( - "_order" integer NOT NULL, - "_parent_id" integer NOT NULL, - "_path" text NOT NULL, - "id" varchar PRIMARY KEY NOT NULL, - "headline" varchar, - "columns" "enum_pages_blocks_card_grid_block_columns" DEFAULT '3', - "block_name" varchar - ); - - CREATE TABLE "pages_blocks_quote_block" ( - "_order" integer NOT NULL, - "_parent_id" integer NOT NULL, - "_path" text NOT NULL, - "id" varchar PRIMARY KEY NOT NULL, - "quote" varchar NOT NULL, - "author" varchar, - "role" varchar, - "image_id" integer, - "style" "enum_pages_blocks_quote_block_style" DEFAULT 'simple', - "block_name" varchar - ); - - CREATE TABLE "pages_blocks_cta_block_buttons" ( - "_order" integer NOT NULL, - "_parent_id" varchar NOT NULL, - "id" varchar PRIMARY KEY NOT NULL, - "text" varchar NOT NULL, - "link" varchar NOT NULL, - "style" "enum_pages_blocks_cta_block_buttons_style" DEFAULT 'primary' - ); - - CREATE TABLE "pages_blocks_cta_block" ( - "_order" integer NOT NULL, - "_parent_id" integer NOT NULL, - "_path" text NOT NULL, - "id" varchar PRIMARY KEY NOT NULL, - "headline" varchar NOT NULL, - "description" varchar, - "background_color" "enum_pages_blocks_cta_block_background_color" DEFAULT 'dark', - "block_name" varchar - ); - - CREATE TABLE "pages_blocks_contact_form_block" ( - "_order" integer NOT NULL, - "_parent_id" integer NOT NULL, - "_path" text NOT NULL, - "id" varchar PRIMARY KEY NOT NULL, - "headline" varchar DEFAULT 'Kontakt', - "description" varchar, - "recipient_email" varchar DEFAULT 'info@porwoll.de', - "show_phone" boolean DEFAULT true, - "show_address" boolean DEFAULT true, - "show_socials" boolean DEFAULT true, - "block_name" varchar - ); - - CREATE TABLE "pages_blocks_timeline_block_events" ( - "_order" integer NOT NULL, - "_parent_id" varchar NOT NULL, - "id" varchar PRIMARY KEY NOT NULL, - "year" varchar NOT NULL, - "title" varchar NOT NULL, - "description" varchar, - "image_id" integer - ); - - CREATE TABLE "pages_blocks_timeline_block" ( - "_order" integer NOT NULL, - "_parent_id" integer NOT NULL, - "_path" text NOT NULL, - "id" varchar PRIMARY KEY NOT NULL, - "headline" varchar, - "block_name" varchar - ); - - CREATE TABLE "pages_blocks_divider_block" ( - "_order" integer NOT NULL, - "_parent_id" integer NOT NULL, - "_path" text NOT NULL, - "id" varchar PRIMARY KEY NOT NULL, - "style" "enum_pages_blocks_divider_block_style" DEFAULT 'space', - "spacing" "enum_pages_blocks_divider_block_spacing" DEFAULT 'medium', - "block_name" varchar - ); - - CREATE TABLE "pages_blocks_video_block" ( - "_order" integer NOT NULL, - "_parent_id" integer NOT NULL, - "_path" text NOT NULL, - "id" varchar PRIMARY KEY NOT NULL, - "video_url" varchar NOT NULL, - "caption" varchar, - "aspect_ratio" "enum_pages_blocks_video_block_aspect_ratio" DEFAULT '16:9', - "block_name" varchar - ); - - ALTER TABLE "pages_blocks_hero_block" ADD CONSTRAINT "pages_blocks_hero_block_background_image_id_media_id_fk" FOREIGN KEY ("background_image_id") REFERENCES "public"."media"("id") ON DELETE set null ON UPDATE no action; - ALTER TABLE "pages_blocks_hero_block" ADD CONSTRAINT "pages_blocks_hero_block_parent_id_fk" FOREIGN KEY ("_parent_id") REFERENCES "public"."pages"("id") ON DELETE cascade ON UPDATE no action; - ALTER TABLE "pages_blocks_text_block" ADD CONSTRAINT "pages_blocks_text_block_parent_id_fk" FOREIGN KEY ("_parent_id") REFERENCES "public"."pages"("id") ON DELETE cascade ON UPDATE no action; - ALTER TABLE "pages_blocks_image_text_block" ADD CONSTRAINT "pages_blocks_image_text_block_image_id_media_id_fk" FOREIGN KEY ("image_id") REFERENCES "public"."media"("id") ON DELETE set null ON UPDATE no action; - ALTER TABLE "pages_blocks_image_text_block" ADD CONSTRAINT "pages_blocks_image_text_block_parent_id_fk" FOREIGN KEY ("_parent_id") REFERENCES "public"."pages"("id") ON DELETE cascade ON UPDATE no action; - ALTER TABLE "pages_blocks_card_grid_block_cards" ADD CONSTRAINT "pages_blocks_card_grid_block_cards_image_id_media_id_fk" FOREIGN KEY ("image_id") REFERENCES "public"."media"("id") ON DELETE set null ON UPDATE no action; - ALTER TABLE "pages_blocks_card_grid_block_cards" ADD CONSTRAINT "pages_blocks_card_grid_block_cards_parent_id_fk" FOREIGN KEY ("_parent_id") REFERENCES "public"."pages_blocks_card_grid_block"("id") ON DELETE cascade ON UPDATE no action; - ALTER TABLE "pages_blocks_card_grid_block" ADD CONSTRAINT "pages_blocks_card_grid_block_parent_id_fk" FOREIGN KEY ("_parent_id") REFERENCES "public"."pages"("id") ON DELETE cascade ON UPDATE no action; - ALTER TABLE "pages_blocks_quote_block" ADD CONSTRAINT "pages_blocks_quote_block_image_id_media_id_fk" FOREIGN KEY ("image_id") REFERENCES "public"."media"("id") ON DELETE set null ON UPDATE no action; - ALTER TABLE "pages_blocks_quote_block" ADD CONSTRAINT "pages_blocks_quote_block_parent_id_fk" FOREIGN KEY ("_parent_id") REFERENCES "public"."pages"("id") ON DELETE cascade ON UPDATE no action; - ALTER TABLE "pages_blocks_cta_block_buttons" ADD CONSTRAINT "pages_blocks_cta_block_buttons_parent_id_fk" FOREIGN KEY ("_parent_id") REFERENCES "public"."pages_blocks_cta_block"("id") ON DELETE cascade ON UPDATE no action; - ALTER TABLE "pages_blocks_cta_block" ADD CONSTRAINT "pages_blocks_cta_block_parent_id_fk" FOREIGN KEY ("_parent_id") REFERENCES "public"."pages"("id") ON DELETE cascade ON UPDATE no action; - ALTER TABLE "pages_blocks_contact_form_block" ADD CONSTRAINT "pages_blocks_contact_form_block_parent_id_fk" FOREIGN KEY ("_parent_id") REFERENCES "public"."pages"("id") ON DELETE cascade ON UPDATE no action; - ALTER TABLE "pages_blocks_timeline_block_events" ADD CONSTRAINT "pages_blocks_timeline_block_events_image_id_media_id_fk" FOREIGN KEY ("image_id") REFERENCES "public"."media"("id") ON DELETE set null ON UPDATE no action; - ALTER TABLE "pages_blocks_timeline_block_events" ADD CONSTRAINT "pages_blocks_timeline_block_events_parent_id_fk" FOREIGN KEY ("_parent_id") REFERENCES "public"."pages_blocks_timeline_block"("id") ON DELETE cascade ON UPDATE no action; - ALTER TABLE "pages_blocks_timeline_block" ADD CONSTRAINT "pages_blocks_timeline_block_parent_id_fk" FOREIGN KEY ("_parent_id") REFERENCES "public"."pages"("id") ON DELETE cascade ON UPDATE no action; - ALTER TABLE "pages_blocks_divider_block" ADD CONSTRAINT "pages_blocks_divider_block_parent_id_fk" FOREIGN KEY ("_parent_id") REFERENCES "public"."pages"("id") ON DELETE cascade ON UPDATE no action; - ALTER TABLE "pages_blocks_video_block" ADD CONSTRAINT "pages_blocks_video_block_parent_id_fk" FOREIGN KEY ("_parent_id") REFERENCES "public"."pages"("id") ON DELETE cascade ON UPDATE no action; - CREATE INDEX "pages_blocks_hero_block_order_idx" ON "pages_blocks_hero_block" USING btree ("_order"); - CREATE INDEX "pages_blocks_hero_block_parent_id_idx" ON "pages_blocks_hero_block" USING btree ("_parent_id"); - CREATE INDEX "pages_blocks_hero_block_path_idx" ON "pages_blocks_hero_block" USING btree ("_path"); - CREATE INDEX "pages_blocks_hero_block_background_image_idx" ON "pages_blocks_hero_block" USING btree ("background_image_id"); - CREATE INDEX "pages_blocks_text_block_order_idx" ON "pages_blocks_text_block" USING btree ("_order"); - CREATE INDEX "pages_blocks_text_block_parent_id_idx" ON "pages_blocks_text_block" USING btree ("_parent_id"); - CREATE INDEX "pages_blocks_text_block_path_idx" ON "pages_blocks_text_block" USING btree ("_path"); - CREATE INDEX "pages_blocks_image_text_block_order_idx" ON "pages_blocks_image_text_block" USING btree ("_order"); - CREATE INDEX "pages_blocks_image_text_block_parent_id_idx" ON "pages_blocks_image_text_block" USING btree ("_parent_id"); - CREATE INDEX "pages_blocks_image_text_block_path_idx" ON "pages_blocks_image_text_block" USING btree ("_path"); - CREATE INDEX "pages_blocks_image_text_block_image_idx" ON "pages_blocks_image_text_block" USING btree ("image_id"); - CREATE INDEX "pages_blocks_card_grid_block_cards_order_idx" ON "pages_blocks_card_grid_block_cards" USING btree ("_order"); - CREATE INDEX "pages_blocks_card_grid_block_cards_parent_id_idx" ON "pages_blocks_card_grid_block_cards" USING btree ("_parent_id"); - CREATE INDEX "pages_blocks_card_grid_block_cards_image_idx" ON "pages_blocks_card_grid_block_cards" USING btree ("image_id"); - CREATE INDEX "pages_blocks_card_grid_block_order_idx" ON "pages_blocks_card_grid_block" USING btree ("_order"); - CREATE INDEX "pages_blocks_card_grid_block_parent_id_idx" ON "pages_blocks_card_grid_block" USING btree ("_parent_id"); - CREATE INDEX "pages_blocks_card_grid_block_path_idx" ON "pages_blocks_card_grid_block" USING btree ("_path"); - CREATE INDEX "pages_blocks_quote_block_order_idx" ON "pages_blocks_quote_block" USING btree ("_order"); - CREATE INDEX "pages_blocks_quote_block_parent_id_idx" ON "pages_blocks_quote_block" USING btree ("_parent_id"); - CREATE INDEX "pages_blocks_quote_block_path_idx" ON "pages_blocks_quote_block" USING btree ("_path"); - CREATE INDEX "pages_blocks_quote_block_image_idx" ON "pages_blocks_quote_block" USING btree ("image_id"); - CREATE INDEX "pages_blocks_cta_block_buttons_order_idx" ON "pages_blocks_cta_block_buttons" USING btree ("_order"); - CREATE INDEX "pages_blocks_cta_block_buttons_parent_id_idx" ON "pages_blocks_cta_block_buttons" USING btree ("_parent_id"); - CREATE INDEX "pages_blocks_cta_block_order_idx" ON "pages_blocks_cta_block" USING btree ("_order"); - CREATE INDEX "pages_blocks_cta_block_parent_id_idx" ON "pages_blocks_cta_block" USING btree ("_parent_id"); - CREATE INDEX "pages_blocks_cta_block_path_idx" ON "pages_blocks_cta_block" USING btree ("_path"); - CREATE INDEX "pages_blocks_contact_form_block_order_idx" ON "pages_blocks_contact_form_block" USING btree ("_order"); - CREATE INDEX "pages_blocks_contact_form_block_parent_id_idx" ON "pages_blocks_contact_form_block" USING btree ("_parent_id"); - CREATE INDEX "pages_blocks_contact_form_block_path_idx" ON "pages_blocks_contact_form_block" USING btree ("_path"); - CREATE INDEX "pages_blocks_timeline_block_events_order_idx" ON "pages_blocks_timeline_block_events" USING btree ("_order"); - CREATE INDEX "pages_blocks_timeline_block_events_parent_id_idx" ON "pages_blocks_timeline_block_events" USING btree ("_parent_id"); - CREATE INDEX "pages_blocks_timeline_block_events_image_idx" ON "pages_blocks_timeline_block_events" USING btree ("image_id"); - CREATE INDEX "pages_blocks_timeline_block_order_idx" ON "pages_blocks_timeline_block" USING btree ("_order"); - CREATE INDEX "pages_blocks_timeline_block_parent_id_idx" ON "pages_blocks_timeline_block" USING btree ("_parent_id"); - CREATE INDEX "pages_blocks_timeline_block_path_idx" ON "pages_blocks_timeline_block" USING btree ("_path"); - CREATE INDEX "pages_blocks_divider_block_order_idx" ON "pages_blocks_divider_block" USING btree ("_order"); - CREATE INDEX "pages_blocks_divider_block_parent_id_idx" ON "pages_blocks_divider_block" USING btree ("_parent_id"); - CREATE INDEX "pages_blocks_divider_block_path_idx" ON "pages_blocks_divider_block" USING btree ("_path"); - CREATE INDEX "pages_blocks_video_block_order_idx" ON "pages_blocks_video_block" USING btree ("_order"); - CREATE INDEX "pages_blocks_video_block_parent_id_idx" ON "pages_blocks_video_block" USING btree ("_parent_id"); - CREATE INDEX "pages_blocks_video_block_path_idx" ON "pages_blocks_video_block" USING btree ("_path"); - ALTER TABLE "pages" DROP COLUMN "content";`) -} - -export async function down({ db, payload, req }: MigrateDownArgs): Promise { - await db.execute(sql` - DROP TABLE "pages_blocks_hero_block" CASCADE; - DROP TABLE "pages_blocks_text_block" CASCADE; - DROP TABLE "pages_blocks_image_text_block" CASCADE; - DROP TABLE "pages_blocks_card_grid_block_cards" CASCADE; - DROP TABLE "pages_blocks_card_grid_block" CASCADE; - DROP TABLE "pages_blocks_quote_block" CASCADE; - DROP TABLE "pages_blocks_cta_block_buttons" CASCADE; - DROP TABLE "pages_blocks_cta_block" CASCADE; - DROP TABLE "pages_blocks_contact_form_block" CASCADE; - DROP TABLE "pages_blocks_timeline_block_events" CASCADE; - DROP TABLE "pages_blocks_timeline_block" CASCADE; - DROP TABLE "pages_blocks_divider_block" CASCADE; - DROP TABLE "pages_blocks_video_block" CASCADE; - ALTER TABLE "pages" ADD COLUMN "content" jsonb; - DROP TYPE "public"."enum_pages_blocks_hero_block_alignment"; - DROP TYPE "public"."enum_pages_blocks_hero_block_cta_style"; - DROP TYPE "public"."enum_pages_blocks_text_block_width"; - DROP TYPE "public"."enum_pages_blocks_image_text_block_image_position"; - DROP TYPE "public"."enum_pages_blocks_card_grid_block_columns"; - DROP TYPE "public"."enum_pages_blocks_quote_block_style"; - DROP TYPE "public"."enum_pages_blocks_cta_block_buttons_style"; - DROP TYPE "public"."enum_pages_blocks_cta_block_background_color"; - DROP TYPE "public"."enum_pages_blocks_divider_block_style"; - DROP TYPE "public"."enum_pages_blocks_divider_block_spacing"; - DROP TYPE "public"."enum_pages_blocks_video_block_aspect_ratio";`) -} diff --git a/src/migrations_backup/20251127_224713.json b/src/migrations_backup/20251127_224713.json deleted file mode 100644 index 8090def..0000000 --- a/src/migrations_backup/20251127_224713.json +++ /dev/null @@ -1,7050 +0,0 @@ -{ - "version": "7", - "dialect": "postgresql", - "tables": { - "public.users_tenants": { - "name": "users_tenants", - "schema": "", - "columns": { - "_order": { - "name": "_order", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "varchar", - "primaryKey": true, - "notNull": true - }, - "tenant_id": { - "name": "tenant_id", - "type": "integer", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "users_tenants_order_idx": { - "name": "users_tenants_order_idx", - "columns": [ - { - "expression": "_order", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "users_tenants_parent_id_idx": { - "name": "users_tenants_parent_id_idx", - "columns": [ - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "users_tenants_tenant_idx": { - "name": "users_tenants_tenant_idx", - "columns": [ - { - "expression": "tenant_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "users_tenants_tenant_id_tenants_id_fk": { - "name": "users_tenants_tenant_id_tenants_id_fk", - "tableFrom": "users_tenants", - "tableTo": "tenants", - "columnsFrom": [ - "tenant_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "set null", - "onUpdate": "no action" - }, - "users_tenants_parent_id_fk": { - "name": "users_tenants_parent_id_fk", - "tableFrom": "users_tenants", - "tableTo": "users", - "columnsFrom": [ - "_parent_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.users_sessions": { - "name": "users_sessions", - "schema": "", - "columns": { - "_order": { - "name": "_order", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "varchar", - "primaryKey": true, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": false - }, - "expires_at": { - "name": "expires_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "users_sessions_order_idx": { - "name": "users_sessions_order_idx", - "columns": [ - { - "expression": "_order", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "users_sessions_parent_id_idx": { - "name": "users_sessions_parent_id_idx", - "columns": [ - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "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": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.users": { - "name": "users", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "serial", - "primaryKey": true, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "created_at": { - "name": "created_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "email": { - "name": "email", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "reset_password_token": { - "name": "reset_password_token", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "reset_password_expiration": { - "name": "reset_password_expiration", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": false - }, - "salt": { - "name": "salt", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "hash": { - "name": "hash", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "login_attempts": { - "name": "login_attempts", - "type": "numeric", - "primaryKey": false, - "notNull": false, - "default": 0 - }, - "lock_until": { - "name": "lock_until", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "users_updated_at_idx": { - "name": "users_updated_at_idx", - "columns": [ - { - "expression": "updated_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "users_created_at_idx": { - "name": "users_created_at_idx", - "columns": [ - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "users_email_idx": { - "name": "users_email_idx", - "columns": [ - { - "expression": "email", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.media": { - "name": "media", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "serial", - "primaryKey": true, - "notNull": true - }, - "tenant_id": { - "name": "tenant_id", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "alt": { - "name": "alt", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "created_at": { - "name": "created_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "url": { - "name": "url", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "thumbnail_u_r_l": { - "name": "thumbnail_u_r_l", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "filename": { - "name": "filename", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "mime_type": { - "name": "mime_type", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "filesize": { - "name": "filesize", - "type": "numeric", - "primaryKey": false, - "notNull": false - }, - "width": { - "name": "width", - "type": "numeric", - "primaryKey": false, - "notNull": false - }, - "height": { - "name": "height", - "type": "numeric", - "primaryKey": false, - "notNull": false - }, - "focal_x": { - "name": "focal_x", - "type": "numeric", - "primaryKey": false, - "notNull": false - }, - "focal_y": { - "name": "focal_y", - "type": "numeric", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "media_tenant_idx": { - "name": "media_tenant_idx", - "columns": [ - { - "expression": "tenant_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "media_updated_at_idx": { - "name": "media_updated_at_idx", - "columns": [ - { - "expression": "updated_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "media_created_at_idx": { - "name": "media_created_at_idx", - "columns": [ - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "media_filename_idx": { - "name": "media_filename_idx", - "columns": [ - { - "expression": "filename", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "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": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.tenants_domains": { - "name": "tenants_domains", - "schema": "", - "columns": { - "_order": { - "name": "_order", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "varchar", - "primaryKey": true, - "notNull": true - }, - "domain": { - "name": "domain", - "type": "varchar", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "tenants_domains_order_idx": { - "name": "tenants_domains_order_idx", - "columns": [ - { - "expression": "_order", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "tenants_domains_parent_id_idx": { - "name": "tenants_domains_parent_id_idx", - "columns": [ - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "tenants_domains_parent_id_fk": { - "name": "tenants_domains_parent_id_fk", - "tableFrom": "tenants_domains", - "tableTo": "tenants", - "columnsFrom": [ - "_parent_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.tenants": { - "name": "tenants", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "serial", - "primaryKey": true, - "notNull": true - }, - "name": { - "name": "name", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "slug": { - "name": "slug", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "created_at": { - "name": "created_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - } - }, - "indexes": { - "tenants_slug_idx": { - "name": "tenants_slug_idx", - "columns": [ - { - "expression": "slug", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "tenants_updated_at_idx": { - "name": "tenants_updated_at_idx", - "columns": [ - { - "expression": "updated_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "tenants_created_at_idx": { - "name": "tenants_created_at_idx", - "columns": [ - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.pages_blocks_hero_block": { - "name": "pages_blocks_hero_block", - "schema": "", - "columns": { - "_order": { - "name": "_order", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_path": { - "name": "_path", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "varchar", - "primaryKey": true, - "notNull": true - }, - "background_image_id": { - "name": "background_image_id", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "headline": { - "name": "headline", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "subline": { - "name": "subline", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "alignment": { - "name": "alignment", - "type": "enum_pages_blocks_hero_block_alignment", - "typeSchema": "public", - "primaryKey": false, - "notNull": false, - "default": "'center'" - }, - "overlay": { - "name": "overlay", - "type": "boolean", - "primaryKey": false, - "notNull": false, - "default": true - }, - "cta_text": { - "name": "cta_text", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "cta_link": { - "name": "cta_link", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "cta_style": { - "name": "cta_style", - "type": "enum_pages_blocks_hero_block_cta_style", - "typeSchema": "public", - "primaryKey": false, - "notNull": false, - "default": "'primary'" - }, - "block_name": { - "name": "block_name", - "type": "varchar", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "pages_blocks_hero_block_order_idx": { - "name": "pages_blocks_hero_block_order_idx", - "columns": [ - { - "expression": "_order", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "pages_blocks_hero_block_parent_id_idx": { - "name": "pages_blocks_hero_block_parent_id_idx", - "columns": [ - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "pages_blocks_hero_block_path_idx": { - "name": "pages_blocks_hero_block_path_idx", - "columns": [ - { - "expression": "_path", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "pages_blocks_hero_block_background_image_idx": { - "name": "pages_blocks_hero_block_background_image_idx", - "columns": [ - { - "expression": "background_image_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "pages_blocks_hero_block_background_image_id_media_id_fk": { - "name": "pages_blocks_hero_block_background_image_id_media_id_fk", - "tableFrom": "pages_blocks_hero_block", - "tableTo": "media", - "columnsFrom": [ - "background_image_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "set null", - "onUpdate": "no action" - }, - "pages_blocks_hero_block_parent_id_fk": { - "name": "pages_blocks_hero_block_parent_id_fk", - "tableFrom": "pages_blocks_hero_block", - "tableTo": "pages", - "columnsFrom": [ - "_parent_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.pages_blocks_text_block": { - "name": "pages_blocks_text_block", - "schema": "", - "columns": { - "_order": { - "name": "_order", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_path": { - "name": "_path", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "varchar", - "primaryKey": true, - "notNull": true - }, - "content": { - "name": "content", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "width": { - "name": "width", - "type": "enum_pages_blocks_text_block_width", - "typeSchema": "public", - "primaryKey": false, - "notNull": false, - "default": "'medium'" - }, - "block_name": { - "name": "block_name", - "type": "varchar", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "pages_blocks_text_block_order_idx": { - "name": "pages_blocks_text_block_order_idx", - "columns": [ - { - "expression": "_order", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "pages_blocks_text_block_parent_id_idx": { - "name": "pages_blocks_text_block_parent_id_idx", - "columns": [ - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "pages_blocks_text_block_path_idx": { - "name": "pages_blocks_text_block_path_idx", - "columns": [ - { - "expression": "_path", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "pages_blocks_text_block_parent_id_fk": { - "name": "pages_blocks_text_block_parent_id_fk", - "tableFrom": "pages_blocks_text_block", - "tableTo": "pages", - "columnsFrom": [ - "_parent_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.pages_blocks_image_text_block": { - "name": "pages_blocks_image_text_block", - "schema": "", - "columns": { - "_order": { - "name": "_order", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_path": { - "name": "_path", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "varchar", - "primaryKey": true, - "notNull": true - }, - "image_id": { - "name": "image_id", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "image_position": { - "name": "image_position", - "type": "enum_pages_blocks_image_text_block_image_position", - "typeSchema": "public", - "primaryKey": false, - "notNull": false, - "default": "'left'" - }, - "headline": { - "name": "headline", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "content": { - "name": "content", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "cta_text": { - "name": "cta_text", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "cta_link": { - "name": "cta_link", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "block_name": { - "name": "block_name", - "type": "varchar", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "pages_blocks_image_text_block_order_idx": { - "name": "pages_blocks_image_text_block_order_idx", - "columns": [ - { - "expression": "_order", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "pages_blocks_image_text_block_parent_id_idx": { - "name": "pages_blocks_image_text_block_parent_id_idx", - "columns": [ - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "pages_blocks_image_text_block_path_idx": { - "name": "pages_blocks_image_text_block_path_idx", - "columns": [ - { - "expression": "_path", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "pages_blocks_image_text_block_image_idx": { - "name": "pages_blocks_image_text_block_image_idx", - "columns": [ - { - "expression": "image_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "pages_blocks_image_text_block_image_id_media_id_fk": { - "name": "pages_blocks_image_text_block_image_id_media_id_fk", - "tableFrom": "pages_blocks_image_text_block", - "tableTo": "media", - "columnsFrom": [ - "image_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "set null", - "onUpdate": "no action" - }, - "pages_blocks_image_text_block_parent_id_fk": { - "name": "pages_blocks_image_text_block_parent_id_fk", - "tableFrom": "pages_blocks_image_text_block", - "tableTo": "pages", - "columnsFrom": [ - "_parent_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.pages_blocks_card_grid_block_cards": { - "name": "pages_blocks_card_grid_block_cards", - "schema": "", - "columns": { - "_order": { - "name": "_order", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "varchar", - "primaryKey": true, - "notNull": true - }, - "image_id": { - "name": "image_id", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "title": { - "name": "title", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "description": { - "name": "description", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "link": { - "name": "link", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "link_text": { - "name": "link_text", - "type": "varchar", - "primaryKey": false, - "notNull": false, - "default": "'mehr'" - } - }, - "indexes": { - "pages_blocks_card_grid_block_cards_order_idx": { - "name": "pages_blocks_card_grid_block_cards_order_idx", - "columns": [ - { - "expression": "_order", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "pages_blocks_card_grid_block_cards_parent_id_idx": { - "name": "pages_blocks_card_grid_block_cards_parent_id_idx", - "columns": [ - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "pages_blocks_card_grid_block_cards_image_idx": { - "name": "pages_blocks_card_grid_block_cards_image_idx", - "columns": [ - { - "expression": "image_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "pages_blocks_card_grid_block_cards_image_id_media_id_fk": { - "name": "pages_blocks_card_grid_block_cards_image_id_media_id_fk", - "tableFrom": "pages_blocks_card_grid_block_cards", - "tableTo": "media", - "columnsFrom": [ - "image_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "set null", - "onUpdate": "no action" - }, - "pages_blocks_card_grid_block_cards_parent_id_fk": { - "name": "pages_blocks_card_grid_block_cards_parent_id_fk", - "tableFrom": "pages_blocks_card_grid_block_cards", - "tableTo": "pages_blocks_card_grid_block", - "columnsFrom": [ - "_parent_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.pages_blocks_card_grid_block": { - "name": "pages_blocks_card_grid_block", - "schema": "", - "columns": { - "_order": { - "name": "_order", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_path": { - "name": "_path", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "varchar", - "primaryKey": true, - "notNull": true - }, - "headline": { - "name": "headline", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "columns": { - "name": "columns", - "type": "enum_pages_blocks_card_grid_block_columns", - "typeSchema": "public", - "primaryKey": false, - "notNull": false, - "default": "'3'" - }, - "block_name": { - "name": "block_name", - "type": "varchar", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "pages_blocks_card_grid_block_order_idx": { - "name": "pages_blocks_card_grid_block_order_idx", - "columns": [ - { - "expression": "_order", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "pages_blocks_card_grid_block_parent_id_idx": { - "name": "pages_blocks_card_grid_block_parent_id_idx", - "columns": [ - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "pages_blocks_card_grid_block_path_idx": { - "name": "pages_blocks_card_grid_block_path_idx", - "columns": [ - { - "expression": "_path", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "pages_blocks_card_grid_block_parent_id_fk": { - "name": "pages_blocks_card_grid_block_parent_id_fk", - "tableFrom": "pages_blocks_card_grid_block", - "tableTo": "pages", - "columnsFrom": [ - "_parent_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.pages_blocks_quote_block": { - "name": "pages_blocks_quote_block", - "schema": "", - "columns": { - "_order": { - "name": "_order", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_path": { - "name": "_path", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "varchar", - "primaryKey": true, - "notNull": true - }, - "quote": { - "name": "quote", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "author": { - "name": "author", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "role": { - "name": "role", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "image_id": { - "name": "image_id", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "style": { - "name": "style", - "type": "enum_pages_blocks_quote_block_style", - "typeSchema": "public", - "primaryKey": false, - "notNull": false, - "default": "'simple'" - }, - "block_name": { - "name": "block_name", - "type": "varchar", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "pages_blocks_quote_block_order_idx": { - "name": "pages_blocks_quote_block_order_idx", - "columns": [ - { - "expression": "_order", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "pages_blocks_quote_block_parent_id_idx": { - "name": "pages_blocks_quote_block_parent_id_idx", - "columns": [ - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "pages_blocks_quote_block_path_idx": { - "name": "pages_blocks_quote_block_path_idx", - "columns": [ - { - "expression": "_path", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "pages_blocks_quote_block_image_idx": { - "name": "pages_blocks_quote_block_image_idx", - "columns": [ - { - "expression": "image_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "pages_blocks_quote_block_image_id_media_id_fk": { - "name": "pages_blocks_quote_block_image_id_media_id_fk", - "tableFrom": "pages_blocks_quote_block", - "tableTo": "media", - "columnsFrom": [ - "image_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "set null", - "onUpdate": "no action" - }, - "pages_blocks_quote_block_parent_id_fk": { - "name": "pages_blocks_quote_block_parent_id_fk", - "tableFrom": "pages_blocks_quote_block", - "tableTo": "pages", - "columnsFrom": [ - "_parent_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.pages_blocks_cta_block_buttons": { - "name": "pages_blocks_cta_block_buttons", - "schema": "", - "columns": { - "_order": { - "name": "_order", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "varchar", - "primaryKey": true, - "notNull": true - }, - "text": { - "name": "text", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "link": { - "name": "link", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "style": { - "name": "style", - "type": "enum_pages_blocks_cta_block_buttons_style", - "typeSchema": "public", - "primaryKey": false, - "notNull": false, - "default": "'primary'" - } - }, - "indexes": { - "pages_blocks_cta_block_buttons_order_idx": { - "name": "pages_blocks_cta_block_buttons_order_idx", - "columns": [ - { - "expression": "_order", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "pages_blocks_cta_block_buttons_parent_id_idx": { - "name": "pages_blocks_cta_block_buttons_parent_id_idx", - "columns": [ - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "pages_blocks_cta_block_buttons_parent_id_fk": { - "name": "pages_blocks_cta_block_buttons_parent_id_fk", - "tableFrom": "pages_blocks_cta_block_buttons", - "tableTo": "pages_blocks_cta_block", - "columnsFrom": [ - "_parent_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.pages_blocks_cta_block": { - "name": "pages_blocks_cta_block", - "schema": "", - "columns": { - "_order": { - "name": "_order", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_path": { - "name": "_path", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "varchar", - "primaryKey": true, - "notNull": true - }, - "headline": { - "name": "headline", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "description": { - "name": "description", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "background_color": { - "name": "background_color", - "type": "enum_pages_blocks_cta_block_background_color", - "typeSchema": "public", - "primaryKey": false, - "notNull": false, - "default": "'dark'" - }, - "block_name": { - "name": "block_name", - "type": "varchar", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "pages_blocks_cta_block_order_idx": { - "name": "pages_blocks_cta_block_order_idx", - "columns": [ - { - "expression": "_order", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "pages_blocks_cta_block_parent_id_idx": { - "name": "pages_blocks_cta_block_parent_id_idx", - "columns": [ - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "pages_blocks_cta_block_path_idx": { - "name": "pages_blocks_cta_block_path_idx", - "columns": [ - { - "expression": "_path", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "pages_blocks_cta_block_parent_id_fk": { - "name": "pages_blocks_cta_block_parent_id_fk", - "tableFrom": "pages_blocks_cta_block", - "tableTo": "pages", - "columnsFrom": [ - "_parent_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.pages_blocks_contact_form_block": { - "name": "pages_blocks_contact_form_block", - "schema": "", - "columns": { - "_order": { - "name": "_order", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_path": { - "name": "_path", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "varchar", - "primaryKey": true, - "notNull": true - }, - "headline": { - "name": "headline", - "type": "varchar", - "primaryKey": false, - "notNull": false, - "default": "'Kontakt'" - }, - "description": { - "name": "description", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "recipient_email": { - "name": "recipient_email", - "type": "varchar", - "primaryKey": false, - "notNull": false, - "default": "'info@porwoll.de'" - }, - "show_phone": { - "name": "show_phone", - "type": "boolean", - "primaryKey": false, - "notNull": false, - "default": true - }, - "show_address": { - "name": "show_address", - "type": "boolean", - "primaryKey": false, - "notNull": false, - "default": true - }, - "show_socials": { - "name": "show_socials", - "type": "boolean", - "primaryKey": false, - "notNull": false, - "default": true - }, - "block_name": { - "name": "block_name", - "type": "varchar", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "pages_blocks_contact_form_block_order_idx": { - "name": "pages_blocks_contact_form_block_order_idx", - "columns": [ - { - "expression": "_order", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "pages_blocks_contact_form_block_parent_id_idx": { - "name": "pages_blocks_contact_form_block_parent_id_idx", - "columns": [ - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "pages_blocks_contact_form_block_path_idx": { - "name": "pages_blocks_contact_form_block_path_idx", - "columns": [ - { - "expression": "_path", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "pages_blocks_contact_form_block_parent_id_fk": { - "name": "pages_blocks_contact_form_block_parent_id_fk", - "tableFrom": "pages_blocks_contact_form_block", - "tableTo": "pages", - "columnsFrom": [ - "_parent_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.pages_blocks_timeline_block_events": { - "name": "pages_blocks_timeline_block_events", - "schema": "", - "columns": { - "_order": { - "name": "_order", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "varchar", - "primaryKey": true, - "notNull": true - }, - "year": { - "name": "year", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "title": { - "name": "title", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "description": { - "name": "description", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "image_id": { - "name": "image_id", - "type": "integer", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "pages_blocks_timeline_block_events_order_idx": { - "name": "pages_blocks_timeline_block_events_order_idx", - "columns": [ - { - "expression": "_order", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "pages_blocks_timeline_block_events_parent_id_idx": { - "name": "pages_blocks_timeline_block_events_parent_id_idx", - "columns": [ - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "pages_blocks_timeline_block_events_image_idx": { - "name": "pages_blocks_timeline_block_events_image_idx", - "columns": [ - { - "expression": "image_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "pages_blocks_timeline_block_events_image_id_media_id_fk": { - "name": "pages_blocks_timeline_block_events_image_id_media_id_fk", - "tableFrom": "pages_blocks_timeline_block_events", - "tableTo": "media", - "columnsFrom": [ - "image_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "set null", - "onUpdate": "no action" - }, - "pages_blocks_timeline_block_events_parent_id_fk": { - "name": "pages_blocks_timeline_block_events_parent_id_fk", - "tableFrom": "pages_blocks_timeline_block_events", - "tableTo": "pages_blocks_timeline_block", - "columnsFrom": [ - "_parent_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.pages_blocks_timeline_block": { - "name": "pages_blocks_timeline_block", - "schema": "", - "columns": { - "_order": { - "name": "_order", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_path": { - "name": "_path", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "varchar", - "primaryKey": true, - "notNull": true - }, - "headline": { - "name": "headline", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "block_name": { - "name": "block_name", - "type": "varchar", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "pages_blocks_timeline_block_order_idx": { - "name": "pages_blocks_timeline_block_order_idx", - "columns": [ - { - "expression": "_order", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "pages_blocks_timeline_block_parent_id_idx": { - "name": "pages_blocks_timeline_block_parent_id_idx", - "columns": [ - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "pages_blocks_timeline_block_path_idx": { - "name": "pages_blocks_timeline_block_path_idx", - "columns": [ - { - "expression": "_path", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "pages_blocks_timeline_block_parent_id_fk": { - "name": "pages_blocks_timeline_block_parent_id_fk", - "tableFrom": "pages_blocks_timeline_block", - "tableTo": "pages", - "columnsFrom": [ - "_parent_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.pages_blocks_divider_block": { - "name": "pages_blocks_divider_block", - "schema": "", - "columns": { - "_order": { - "name": "_order", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_path": { - "name": "_path", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "varchar", - "primaryKey": true, - "notNull": true - }, - "style": { - "name": "style", - "type": "enum_pages_blocks_divider_block_style", - "typeSchema": "public", - "primaryKey": false, - "notNull": false, - "default": "'space'" - }, - "spacing": { - "name": "spacing", - "type": "enum_pages_blocks_divider_block_spacing", - "typeSchema": "public", - "primaryKey": false, - "notNull": false, - "default": "'medium'" - }, - "block_name": { - "name": "block_name", - "type": "varchar", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "pages_blocks_divider_block_order_idx": { - "name": "pages_blocks_divider_block_order_idx", - "columns": [ - { - "expression": "_order", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "pages_blocks_divider_block_parent_id_idx": { - "name": "pages_blocks_divider_block_parent_id_idx", - "columns": [ - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "pages_blocks_divider_block_path_idx": { - "name": "pages_blocks_divider_block_path_idx", - "columns": [ - { - "expression": "_path", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "pages_blocks_divider_block_parent_id_fk": { - "name": "pages_blocks_divider_block_parent_id_fk", - "tableFrom": "pages_blocks_divider_block", - "tableTo": "pages", - "columnsFrom": [ - "_parent_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.pages_blocks_video_block": { - "name": "pages_blocks_video_block", - "schema": "", - "columns": { - "_order": { - "name": "_order", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_path": { - "name": "_path", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "varchar", - "primaryKey": true, - "notNull": true - }, - "video_url": { - "name": "video_url", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "caption": { - "name": "caption", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "aspect_ratio": { - "name": "aspect_ratio", - "type": "enum_pages_blocks_video_block_aspect_ratio", - "typeSchema": "public", - "primaryKey": false, - "notNull": false, - "default": "'16:9'" - }, - "block_name": { - "name": "block_name", - "type": "varchar", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "pages_blocks_video_block_order_idx": { - "name": "pages_blocks_video_block_order_idx", - "columns": [ - { - "expression": "_order", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "pages_blocks_video_block_parent_id_idx": { - "name": "pages_blocks_video_block_parent_id_idx", - "columns": [ - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "pages_blocks_video_block_path_idx": { - "name": "pages_blocks_video_block_path_idx", - "columns": [ - { - "expression": "_path", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "pages_blocks_video_block_parent_id_fk": { - "name": "pages_blocks_video_block_parent_id_fk", - "tableFrom": "pages_blocks_video_block", - "tableTo": "pages", - "columnsFrom": [ - "_parent_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.pages": { - "name": "pages", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "serial", - "primaryKey": true, - "notNull": true - }, - "tenant_id": { - "name": "tenant_id", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "title": { - "name": "title", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "slug": { - "name": "slug", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "hero_image_id": { - "name": "hero_image_id", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "hero_headline": { - "name": "hero_headline", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "hero_subline": { - "name": "hero_subline", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "seo_meta_title": { - "name": "seo_meta_title", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "seo_meta_description": { - "name": "seo_meta_description", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "seo_og_image_id": { - "name": "seo_og_image_id", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "status": { - "name": "status", - "type": "enum_pages_status", - "typeSchema": "public", - "primaryKey": false, - "notNull": false, - "default": "'draft'" - }, - "published_at": { - "name": "published_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "created_at": { - "name": "created_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - } - }, - "indexes": { - "pages_tenant_idx": { - "name": "pages_tenant_idx", - "columns": [ - { - "expression": "tenant_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "pages_slug_idx": { - "name": "pages_slug_idx", - "columns": [ - { - "expression": "slug", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "pages_hero_hero_image_idx": { - "name": "pages_hero_hero_image_idx", - "columns": [ - { - "expression": "hero_image_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "pages_seo_seo_og_image_idx": { - "name": "pages_seo_seo_og_image_idx", - "columns": [ - { - "expression": "seo_og_image_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "pages_updated_at_idx": { - "name": "pages_updated_at_idx", - "columns": [ - { - "expression": "updated_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "pages_created_at_idx": { - "name": "pages_created_at_idx", - "columns": [ - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "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" - }, - "pages_hero_image_id_media_id_fk": { - "name": "pages_hero_image_id_media_id_fk", - "tableFrom": "pages", - "tableTo": "media", - "columnsFrom": [ - "hero_image_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "set null", - "onUpdate": "no action" - }, - "pages_seo_og_image_id_media_id_fk": { - "name": "pages_seo_og_image_id_media_id_fk", - "tableFrom": "pages", - "tableTo": "media", - "columnsFrom": [ - "seo_og_image_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "set null", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.posts": { - "name": "posts", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "serial", - "primaryKey": true, - "notNull": true - }, - "tenant_id": { - "name": "tenant_id", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "title": { - "name": "title", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "slug": { - "name": "slug", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "excerpt": { - "name": "excerpt", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "content": { - "name": "content", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "featured_image_id": { - "name": "featured_image_id", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "category_id": { - "name": "category_id", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "author_id": { - "name": "author_id", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "published_at": { - "name": "published_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": false - }, - "status": { - "name": "status", - "type": "enum_posts_status", - "typeSchema": "public", - "primaryKey": false, - "notNull": false, - "default": "'draft'" - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "created_at": { - "name": "created_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - } - }, - "indexes": { - "posts_tenant_idx": { - "name": "posts_tenant_idx", - "columns": [ - { - "expression": "tenant_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "posts_slug_idx": { - "name": "posts_slug_idx", - "columns": [ - { - "expression": "slug", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "posts_featured_image_idx": { - "name": "posts_featured_image_idx", - "columns": [ - { - "expression": "featured_image_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "posts_category_idx": { - "name": "posts_category_idx", - "columns": [ - { - "expression": "category_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "posts_author_idx": { - "name": "posts_author_idx", - "columns": [ - { - "expression": "author_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "posts_updated_at_idx": { - "name": "posts_updated_at_idx", - "columns": [ - { - "expression": "updated_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "posts_created_at_idx": { - "name": "posts_created_at_idx", - "columns": [ - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "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" - }, - "posts_category_id_categories_id_fk": { - "name": "posts_category_id_categories_id_fk", - "tableFrom": "posts", - "tableTo": "categories", - "columnsFrom": [ - "category_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "set null", - "onUpdate": "no action" - }, - "posts_author_id_users_id_fk": { - "name": "posts_author_id_users_id_fk", - "tableFrom": "posts", - "tableTo": "users", - "columnsFrom": [ - "author_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "set null", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.categories": { - "name": "categories", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "serial", - "primaryKey": true, - "notNull": true - }, - "tenant_id": { - "name": "tenant_id", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "name": { - "name": "name", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "slug": { - "name": "slug", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "description": { - "name": "description", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "created_at": { - "name": "created_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - } - }, - "indexes": { - "categories_tenant_idx": { - "name": "categories_tenant_idx", - "columns": [ - { - "expression": "tenant_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "categories_slug_idx": { - "name": "categories_slug_idx", - "columns": [ - { - "expression": "slug", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "categories_updated_at_idx": { - "name": "categories_updated_at_idx", - "columns": [ - { - "expression": "updated_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "categories_created_at_idx": { - "name": "categories_created_at_idx", - "columns": [ - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "categories_tenant_id_tenants_id_fk": { - "name": "categories_tenant_id_tenants_id_fk", - "tableFrom": "categories", - "tableTo": "tenants", - "columnsFrom": [ - "tenant_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "set null", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.social_links": { - "name": "social_links", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "serial", - "primaryKey": true, - "notNull": true - }, - "tenant_id": { - "name": "tenant_id", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "platform": { - "name": "platform", - "type": "enum_social_links_platform", - "typeSchema": "public", - "primaryKey": false, - "notNull": true - }, - "url": { - "name": "url", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "is_active": { - "name": "is_active", - "type": "boolean", - "primaryKey": false, - "notNull": false, - "default": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "created_at": { - "name": "created_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - } - }, - "indexes": { - "social_links_tenant_idx": { - "name": "social_links_tenant_idx", - "columns": [ - { - "expression": "tenant_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "social_links_updated_at_idx": { - "name": "social_links_updated_at_idx", - "columns": [ - { - "expression": "updated_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "social_links_created_at_idx": { - "name": "social_links_created_at_idx", - "columns": [ - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "social_links_tenant_id_tenants_id_fk": { - "name": "social_links_tenant_id_tenants_id_fk", - "tableFrom": "social_links", - "tableTo": "tenants", - "columnsFrom": [ - "tenant_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "set null", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.cookie_configurations_enabled_categories": { - "name": "cookie_configurations_enabled_categories", - "schema": "", - "columns": { - "order": { - "name": "order", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "parent_id": { - "name": "parent_id", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "value": { - "name": "value", - "type": "enum_cookie_configurations_enabled_categories", - "typeSchema": "public", - "primaryKey": false, - "notNull": false - }, - "id": { - "name": "id", - "type": "serial", - "primaryKey": true, - "notNull": true - } - }, - "indexes": { - "cookie_configurations_enabled_categories_order_idx": { - "name": "cookie_configurations_enabled_categories_order_idx", - "columns": [ - { - "expression": "order", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "cookie_configurations_enabled_categories_parent_idx": { - "name": "cookie_configurations_enabled_categories_parent_idx", - "columns": [ - { - "expression": "parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "cookie_configurations_enabled_categories_parent_fk": { - "name": "cookie_configurations_enabled_categories_parent_fk", - "tableFrom": "cookie_configurations_enabled_categories", - "tableTo": "cookie_configurations", - "columnsFrom": [ - "parent_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.cookie_configurations": { - "name": "cookie_configurations", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "serial", - "primaryKey": true, - "notNull": true - }, - "tenant_id": { - "name": "tenant_id", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "title": { - "name": "title", - "type": "varchar", - "primaryKey": false, - "notNull": true, - "default": "'Cookie-Einstellungen'" - }, - "revision": { - "name": "revision", - "type": "numeric", - "primaryKey": false, - "notNull": true, - "default": 1 - }, - "translations_de_banner_title": { - "name": "translations_de_banner_title", - "type": "varchar", - "primaryKey": false, - "notNull": false, - "default": "'Wir respektieren Ihre Privatsphäre'" - }, - "translations_de_banner_description": { - "name": "translations_de_banner_description", - "type": "varchar", - "primaryKey": false, - "notNull": false, - "default": "'Diese Website verwendet Cookies, um Ihnen die bestmögliche Erfahrung zu bieten. Sie können Ihre Einstellungen jederzeit anpassen.'" - }, - "translations_de_accept_all_button": { - "name": "translations_de_accept_all_button", - "type": "varchar", - "primaryKey": false, - "notNull": false, - "default": "'Alle akzeptieren'" - }, - "translations_de_accept_necessary_button": { - "name": "translations_de_accept_necessary_button", - "type": "varchar", - "primaryKey": false, - "notNull": false, - "default": "'Nur notwendige'" - }, - "translations_de_settings_button": { - "name": "translations_de_settings_button", - "type": "varchar", - "primaryKey": false, - "notNull": false, - "default": "'Einstellungen'" - }, - "translations_de_save_button": { - "name": "translations_de_save_button", - "type": "varchar", - "primaryKey": false, - "notNull": false, - "default": "'Auswahl speichern'" - }, - "translations_de_privacy_policy_url": { - "name": "translations_de_privacy_policy_url", - "type": "varchar", - "primaryKey": false, - "notNull": false, - "default": "'/datenschutz'" - }, - "translations_de_category_labels_necessary_title": { - "name": "translations_de_category_labels_necessary_title", - "type": "varchar", - "primaryKey": false, - "notNull": false, - "default": "'Notwendig'" - }, - "translations_de_category_labels_necessary_description": { - "name": "translations_de_category_labels_necessary_description", - "type": "varchar", - "primaryKey": false, - "notNull": false, - "default": "'Diese Cookies sind für die Grundfunktionen der Website erforderlich.'" - }, - "translations_de_category_labels_functional_title": { - "name": "translations_de_category_labels_functional_title", - "type": "varchar", - "primaryKey": false, - "notNull": false, - "default": "'Funktional'" - }, - "translations_de_category_labels_functional_description": { - "name": "translations_de_category_labels_functional_description", - "type": "varchar", - "primaryKey": false, - "notNull": false, - "default": "'Diese Cookies ermöglichen erweiterte Funktionen und Personalisierung.'" - }, - "translations_de_category_labels_analytics_title": { - "name": "translations_de_category_labels_analytics_title", - "type": "varchar", - "primaryKey": false, - "notNull": false, - "default": "'Statistik'" - }, - "translations_de_category_labels_analytics_description": { - "name": "translations_de_category_labels_analytics_description", - "type": "varchar", - "primaryKey": false, - "notNull": false, - "default": "'Diese Cookies helfen uns zu verstehen, wie Besucher mit der Website interagieren.'" - }, - "translations_de_category_labels_marketing_title": { - "name": "translations_de_category_labels_marketing_title", - "type": "varchar", - "primaryKey": false, - "notNull": false, - "default": "'Marketing'" - }, - "translations_de_category_labels_marketing_description": { - "name": "translations_de_category_labels_marketing_description", - "type": "varchar", - "primaryKey": false, - "notNull": false, - "default": "'Diese Cookies werden verwendet, um Werbung relevanter für Sie zu gestalten.'" - }, - "styling_position": { - "name": "styling_position", - "type": "enum_cookie_configurations_styling_position", - "typeSchema": "public", - "primaryKey": false, - "notNull": false, - "default": "'bottom'" - }, - "styling_theme": { - "name": "styling_theme", - "type": "enum_cookie_configurations_styling_theme", - "typeSchema": "public", - "primaryKey": false, - "notNull": false, - "default": "'dark'" - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "created_at": { - "name": "created_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - } - }, - "indexes": { - "cookie_configurations_tenant_idx": { - "name": "cookie_configurations_tenant_idx", - "columns": [ - { - "expression": "tenant_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "cookie_configurations_updated_at_idx": { - "name": "cookie_configurations_updated_at_idx", - "columns": [ - { - "expression": "updated_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "cookie_configurations_created_at_idx": { - "name": "cookie_configurations_created_at_idx", - "columns": [ - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "cookie_configurations_tenant_id_tenants_id_fk": { - "name": "cookie_configurations_tenant_id_tenants_id_fk", - "tableFrom": "cookie_configurations", - "tableTo": "tenants", - "columnsFrom": [ - "tenant_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "set null", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.cookie_inventory": { - "name": "cookie_inventory", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "serial", - "primaryKey": true, - "notNull": true - }, - "tenant_id": { - "name": "tenant_id", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "category": { - "name": "category", - "type": "enum_cookie_inventory_category", - "typeSchema": "public", - "primaryKey": false, - "notNull": true - }, - "duration": { - "name": "duration", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "description": { - "name": "description", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "is_active": { - "name": "is_active", - "type": "boolean", - "primaryKey": false, - "notNull": false, - "default": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "created_at": { - "name": "created_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - } - }, - "indexes": { - "cookie_inventory_tenant_idx": { - "name": "cookie_inventory_tenant_idx", - "columns": [ - { - "expression": "tenant_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "cookie_inventory_updated_at_idx": { - "name": "cookie_inventory_updated_at_idx", - "columns": [ - { - "expression": "updated_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "cookie_inventory_created_at_idx": { - "name": "cookie_inventory_created_at_idx", - "columns": [ - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "cookie_inventory_tenant_id_tenants_id_fk": { - "name": "cookie_inventory_tenant_id_tenants_id_fk", - "tableFrom": "cookie_inventory", - "tableTo": "tenants", - "columnsFrom": [ - "tenant_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "set null", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.consent_logs": { - "name": "consent_logs", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "serial", - "primaryKey": true, - "notNull": true - }, - "consent_id": { - "name": "consent_id", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "client_ref": { - "name": "client_ref", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "tenant_id": { - "name": "tenant_id", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "categories": { - "name": "categories", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "revision": { - "name": "revision", - "type": "numeric", - "primaryKey": false, - "notNull": true - }, - "user_agent": { - "name": "user_agent", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "anonymized_ip": { - "name": "anonymized_ip", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "expires_at": { - "name": "expires_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "created_at": { - "name": "created_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - } - }, - "indexes": { - "consent_logs_consent_id_idx": { - "name": "consent_logs_consent_id_idx", - "columns": [ - { - "expression": "consent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "consent_logs_tenant_idx": { - "name": "consent_logs_tenant_idx", - "columns": [ - { - "expression": "tenant_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "consent_logs_updated_at_idx": { - "name": "consent_logs_updated_at_idx", - "columns": [ - { - "expression": "updated_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "consent_logs_created_at_idx": { - "name": "consent_logs_created_at_idx", - "columns": [ - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "consent_logs_tenant_id_tenants_id_fk": { - "name": "consent_logs_tenant_id_tenants_id_fk", - "tableFrom": "consent_logs", - "tableTo": "tenants", - "columnsFrom": [ - "tenant_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "set null", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.forms_blocks_checkbox": { - "name": "forms_blocks_checkbox", - "schema": "", - "columns": { - "_order": { - "name": "_order", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_path": { - "name": "_path", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "varchar", - "primaryKey": true, - "notNull": true - }, - "name": { - "name": "name", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "label": { - "name": "label", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "width": { - "name": "width", - "type": "numeric", - "primaryKey": false, - "notNull": false - }, - "required": { - "name": "required", - "type": "boolean", - "primaryKey": false, - "notNull": false - }, - "default_value": { - "name": "default_value", - "type": "boolean", - "primaryKey": false, - "notNull": false - }, - "block_name": { - "name": "block_name", - "type": "varchar", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "forms_blocks_checkbox_order_idx": { - "name": "forms_blocks_checkbox_order_idx", - "columns": [ - { - "expression": "_order", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "forms_blocks_checkbox_parent_id_idx": { - "name": "forms_blocks_checkbox_parent_id_idx", - "columns": [ - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "forms_blocks_checkbox_path_idx": { - "name": "forms_blocks_checkbox_path_idx", - "columns": [ - { - "expression": "_path", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "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": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.forms_blocks_email": { - "name": "forms_blocks_email", - "schema": "", - "columns": { - "_order": { - "name": "_order", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_path": { - "name": "_path", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "varchar", - "primaryKey": true, - "notNull": true - }, - "name": { - "name": "name", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "label": { - "name": "label", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "width": { - "name": "width", - "type": "numeric", - "primaryKey": false, - "notNull": false - }, - "required": { - "name": "required", - "type": "boolean", - "primaryKey": false, - "notNull": false - }, - "block_name": { - "name": "block_name", - "type": "varchar", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "forms_blocks_email_order_idx": { - "name": "forms_blocks_email_order_idx", - "columns": [ - { - "expression": "_order", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "forms_blocks_email_parent_id_idx": { - "name": "forms_blocks_email_parent_id_idx", - "columns": [ - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "forms_blocks_email_path_idx": { - "name": "forms_blocks_email_path_idx", - "columns": [ - { - "expression": "_path", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "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": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.forms_blocks_message": { - "name": "forms_blocks_message", - "schema": "", - "columns": { - "_order": { - "name": "_order", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_path": { - "name": "_path", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "varchar", - "primaryKey": true, - "notNull": true - }, - "message": { - "name": "message", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "block_name": { - "name": "block_name", - "type": "varchar", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "forms_blocks_message_order_idx": { - "name": "forms_blocks_message_order_idx", - "columns": [ - { - "expression": "_order", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "forms_blocks_message_parent_id_idx": { - "name": "forms_blocks_message_parent_id_idx", - "columns": [ - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "forms_blocks_message_path_idx": { - "name": "forms_blocks_message_path_idx", - "columns": [ - { - "expression": "_path", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "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": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.forms_blocks_number": { - "name": "forms_blocks_number", - "schema": "", - "columns": { - "_order": { - "name": "_order", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_path": { - "name": "_path", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "varchar", - "primaryKey": true, - "notNull": true - }, - "name": { - "name": "name", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "label": { - "name": "label", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "width": { - "name": "width", - "type": "numeric", - "primaryKey": false, - "notNull": false - }, - "default_value": { - "name": "default_value", - "type": "numeric", - "primaryKey": false, - "notNull": false - }, - "required": { - "name": "required", - "type": "boolean", - "primaryKey": false, - "notNull": false - }, - "block_name": { - "name": "block_name", - "type": "varchar", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "forms_blocks_number_order_idx": { - "name": "forms_blocks_number_order_idx", - "columns": [ - { - "expression": "_order", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "forms_blocks_number_parent_id_idx": { - "name": "forms_blocks_number_parent_id_idx", - "columns": [ - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "forms_blocks_number_path_idx": { - "name": "forms_blocks_number_path_idx", - "columns": [ - { - "expression": "_path", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "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": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.forms_blocks_select_options": { - "name": "forms_blocks_select_options", - "schema": "", - "columns": { - "_order": { - "name": "_order", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "varchar", - "primaryKey": true, - "notNull": true - }, - "label": { - "name": "label", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "value": { - "name": "value", - "type": "varchar", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "forms_blocks_select_options_order_idx": { - "name": "forms_blocks_select_options_order_idx", - "columns": [ - { - "expression": "_order", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "forms_blocks_select_options_parent_id_idx": { - "name": "forms_blocks_select_options_parent_id_idx", - "columns": [ - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "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": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.forms_blocks_select": { - "name": "forms_blocks_select", - "schema": "", - "columns": { - "_order": { - "name": "_order", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_path": { - "name": "_path", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "varchar", - "primaryKey": true, - "notNull": true - }, - "name": { - "name": "name", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "label": { - "name": "label", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "width": { - "name": "width", - "type": "numeric", - "primaryKey": false, - "notNull": false - }, - "default_value": { - "name": "default_value", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "placeholder": { - "name": "placeholder", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "required": { - "name": "required", - "type": "boolean", - "primaryKey": false, - "notNull": false - }, - "block_name": { - "name": "block_name", - "type": "varchar", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "forms_blocks_select_order_idx": { - "name": "forms_blocks_select_order_idx", - "columns": [ - { - "expression": "_order", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "forms_blocks_select_parent_id_idx": { - "name": "forms_blocks_select_parent_id_idx", - "columns": [ - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "forms_blocks_select_path_idx": { - "name": "forms_blocks_select_path_idx", - "columns": [ - { - "expression": "_path", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "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": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.forms_blocks_text": { - "name": "forms_blocks_text", - "schema": "", - "columns": { - "_order": { - "name": "_order", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_path": { - "name": "_path", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "varchar", - "primaryKey": true, - "notNull": true - }, - "name": { - "name": "name", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "label": { - "name": "label", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "width": { - "name": "width", - "type": "numeric", - "primaryKey": false, - "notNull": false - }, - "default_value": { - "name": "default_value", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "required": { - "name": "required", - "type": "boolean", - "primaryKey": false, - "notNull": false - }, - "block_name": { - "name": "block_name", - "type": "varchar", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "forms_blocks_text_order_idx": { - "name": "forms_blocks_text_order_idx", - "columns": [ - { - "expression": "_order", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "forms_blocks_text_parent_id_idx": { - "name": "forms_blocks_text_parent_id_idx", - "columns": [ - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "forms_blocks_text_path_idx": { - "name": "forms_blocks_text_path_idx", - "columns": [ - { - "expression": "_path", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "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": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.forms_blocks_textarea": { - "name": "forms_blocks_textarea", - "schema": "", - "columns": { - "_order": { - "name": "_order", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_path": { - "name": "_path", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "varchar", - "primaryKey": true, - "notNull": true - }, - "name": { - "name": "name", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "label": { - "name": "label", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "width": { - "name": "width", - "type": "numeric", - "primaryKey": false, - "notNull": false - }, - "default_value": { - "name": "default_value", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "required": { - "name": "required", - "type": "boolean", - "primaryKey": false, - "notNull": false - }, - "block_name": { - "name": "block_name", - "type": "varchar", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "forms_blocks_textarea_order_idx": { - "name": "forms_blocks_textarea_order_idx", - "columns": [ - { - "expression": "_order", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "forms_blocks_textarea_parent_id_idx": { - "name": "forms_blocks_textarea_parent_id_idx", - "columns": [ - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "forms_blocks_textarea_path_idx": { - "name": "forms_blocks_textarea_path_idx", - "columns": [ - { - "expression": "_path", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "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": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.forms_emails": { - "name": "forms_emails", - "schema": "", - "columns": { - "_order": { - "name": "_order", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "varchar", - "primaryKey": true, - "notNull": true - }, - "email_to": { - "name": "email_to", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "cc": { - "name": "cc", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "bcc": { - "name": "bcc", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "reply_to": { - "name": "reply_to", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "email_from": { - "name": "email_from", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "subject": { - "name": "subject", - "type": "varchar", - "primaryKey": false, - "notNull": true, - "default": "'You''ve received a new message.'" - }, - "message": { - "name": "message", - "type": "jsonb", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "forms_emails_order_idx": { - "name": "forms_emails_order_idx", - "columns": [ - { - "expression": "_order", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "forms_emails_parent_id_idx": { - "name": "forms_emails_parent_id_idx", - "columns": [ - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "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": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.forms": { - "name": "forms", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "serial", - "primaryKey": true, - "notNull": true - }, - "title": { - "name": "title", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "submit_button_label": { - "name": "submit_button_label", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "confirmation_type": { - "name": "confirmation_type", - "type": "enum_forms_confirmation_type", - "typeSchema": "public", - "primaryKey": false, - "notNull": false, - "default": "'message'" - }, - "confirmation_message": { - "name": "confirmation_message", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "redirect_url": { - "name": "redirect_url", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "created_at": { - "name": "created_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - } - }, - "indexes": { - "forms_updated_at_idx": { - "name": "forms_updated_at_idx", - "columns": [ - { - "expression": "updated_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "forms_created_at_idx": { - "name": "forms_created_at_idx", - "columns": [ - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.form_submissions_submission_data": { - "name": "form_submissions_submission_data", - "schema": "", - "columns": { - "_order": { - "name": "_order", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "varchar", - "primaryKey": true, - "notNull": true - }, - "field": { - "name": "field", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "value": { - "name": "value", - "type": "varchar", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "form_submissions_submission_data_order_idx": { - "name": "form_submissions_submission_data_order_idx", - "columns": [ - { - "expression": "_order", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "form_submissions_submission_data_parent_id_idx": { - "name": "form_submissions_submission_data_parent_id_idx", - "columns": [ - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "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": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.form_submissions": { - "name": "form_submissions", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "serial", - "primaryKey": true, - "notNull": true - }, - "form_id": { - "name": "form_id", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "created_at": { - "name": "created_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - } - }, - "indexes": { - "form_submissions_form_idx": { - "name": "form_submissions_form_idx", - "columns": [ - { - "expression": "form_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "form_submissions_updated_at_idx": { - "name": "form_submissions_updated_at_idx", - "columns": [ - { - "expression": "updated_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "form_submissions_created_at_idx": { - "name": "form_submissions_created_at_idx", - "columns": [ - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "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" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.redirects": { - "name": "redirects", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "serial", - "primaryKey": true, - "notNull": true - }, - "from": { - "name": "from", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "to_type": { - "name": "to_type", - "type": "enum_redirects_to_type", - "typeSchema": "public", - "primaryKey": false, - "notNull": false, - "default": "'reference'" - }, - "to_url": { - "name": "to_url", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "created_at": { - "name": "created_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - } - }, - "indexes": { - "redirects_from_idx": { - "name": "redirects_from_idx", - "columns": [ - { - "expression": "from", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "redirects_updated_at_idx": { - "name": "redirects_updated_at_idx", - "columns": [ - { - "expression": "updated_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "redirects_created_at_idx": { - "name": "redirects_created_at_idx", - "columns": [ - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.payload_kv": { - "name": "payload_kv", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "serial", - "primaryKey": true, - "notNull": true - }, - "key": { - "name": "key", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "data": { - "name": "data", - "type": "jsonb", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "payload_kv_key_idx": { - "name": "payload_kv_key_idx", - "columns": [ - { - "expression": "key", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.payload_locked_documents": { - "name": "payload_locked_documents", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "serial", - "primaryKey": true, - "notNull": true - }, - "global_slug": { - "name": "global_slug", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "created_at": { - "name": "created_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - } - }, - "indexes": { - "payload_locked_documents_global_slug_idx": { - "name": "payload_locked_documents_global_slug_idx", - "columns": [ - { - "expression": "global_slug", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "payload_locked_documents_updated_at_idx": { - "name": "payload_locked_documents_updated_at_idx", - "columns": [ - { - "expression": "updated_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "payload_locked_documents_created_at_idx": { - "name": "payload_locked_documents_created_at_idx", - "columns": [ - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.payload_locked_documents_rels": { - "name": "payload_locked_documents_rels", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "serial", - "primaryKey": true, - "notNull": true - }, - "order": { - "name": "order", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "parent_id": { - "name": "parent_id", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "path": { - "name": "path", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "users_id": { - "name": "users_id", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "media_id": { - "name": "media_id", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "tenants_id": { - "name": "tenants_id", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "pages_id": { - "name": "pages_id", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "posts_id": { - "name": "posts_id", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "categories_id": { - "name": "categories_id", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "social_links_id": { - "name": "social_links_id", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "cookie_configurations_id": { - "name": "cookie_configurations_id", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "cookie_inventory_id": { - "name": "cookie_inventory_id", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "consent_logs_id": { - "name": "consent_logs_id", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "forms_id": { - "name": "forms_id", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "form_submissions_id": { - "name": "form_submissions_id", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "redirects_id": { - "name": "redirects_id", - "type": "integer", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "payload_locked_documents_rels_order_idx": { - "name": "payload_locked_documents_rels_order_idx", - "columns": [ - { - "expression": "order", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "payload_locked_documents_rels_parent_idx": { - "name": "payload_locked_documents_rels_parent_idx", - "columns": [ - { - "expression": "parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "payload_locked_documents_rels_path_idx": { - "name": "payload_locked_documents_rels_path_idx", - "columns": [ - { - "expression": "path", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "payload_locked_documents_rels_users_id_idx": { - "name": "payload_locked_documents_rels_users_id_idx", - "columns": [ - { - "expression": "users_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "payload_locked_documents_rels_media_id_idx": { - "name": "payload_locked_documents_rels_media_id_idx", - "columns": [ - { - "expression": "media_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "payload_locked_documents_rels_tenants_id_idx": { - "name": "payload_locked_documents_rels_tenants_id_idx", - "columns": [ - { - "expression": "tenants_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "payload_locked_documents_rels_pages_id_idx": { - "name": "payload_locked_documents_rels_pages_id_idx", - "columns": [ - { - "expression": "pages_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "payload_locked_documents_rels_posts_id_idx": { - "name": "payload_locked_documents_rels_posts_id_idx", - "columns": [ - { - "expression": "posts_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "payload_locked_documents_rels_categories_id_idx": { - "name": "payload_locked_documents_rels_categories_id_idx", - "columns": [ - { - "expression": "categories_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "payload_locked_documents_rels_social_links_id_idx": { - "name": "payload_locked_documents_rels_social_links_id_idx", - "columns": [ - { - "expression": "social_links_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "payload_locked_documents_rels_cookie_configurations_id_idx": { - "name": "payload_locked_documents_rels_cookie_configurations_id_idx", - "columns": [ - { - "expression": "cookie_configurations_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "payload_locked_documents_rels_cookie_inventory_id_idx": { - "name": "payload_locked_documents_rels_cookie_inventory_id_idx", - "columns": [ - { - "expression": "cookie_inventory_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "payload_locked_documents_rels_consent_logs_id_idx": { - "name": "payload_locked_documents_rels_consent_logs_id_idx", - "columns": [ - { - "expression": "consent_logs_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "payload_locked_documents_rels_forms_id_idx": { - "name": "payload_locked_documents_rels_forms_id_idx", - "columns": [ - { - "expression": "forms_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "payload_locked_documents_rels_form_submissions_id_idx": { - "name": "payload_locked_documents_rels_form_submissions_id_idx", - "columns": [ - { - "expression": "form_submissions_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "payload_locked_documents_rels_redirects_id_idx": { - "name": "payload_locked_documents_rels_redirects_id_idx", - "columns": [ - { - "expression": "redirects_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "payload_locked_documents_rels_parent_fk": { - "name": "payload_locked_documents_rels_parent_fk", - "tableFrom": "payload_locked_documents_rels", - "tableTo": "payload_locked_documents", - "columnsFrom": [ - "parent_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - }, - "payload_locked_documents_rels_users_fk": { - "name": "payload_locked_documents_rels_users_fk", - "tableFrom": "payload_locked_documents_rels", - "tableTo": "users", - "columnsFrom": [ - "users_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - }, - "payload_locked_documents_rels_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_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_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_categories_fk": { - "name": "payload_locked_documents_rels_categories_fk", - "tableFrom": "payload_locked_documents_rels", - "tableTo": "categories", - "columnsFrom": [ - "categories_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - }, - "payload_locked_documents_rels_social_links_fk": { - "name": "payload_locked_documents_rels_social_links_fk", - "tableFrom": "payload_locked_documents_rels", - "tableTo": "social_links", - "columnsFrom": [ - "social_links_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - }, - "payload_locked_documents_rels_cookie_configurations_fk": { - "name": "payload_locked_documents_rels_cookie_configurations_fk", - "tableFrom": "payload_locked_documents_rels", - "tableTo": "cookie_configurations", - "columnsFrom": [ - "cookie_configurations_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - }, - "payload_locked_documents_rels_cookie_inventory_fk": { - "name": "payload_locked_documents_rels_cookie_inventory_fk", - "tableFrom": "payload_locked_documents_rels", - "tableTo": "cookie_inventory", - "columnsFrom": [ - "cookie_inventory_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - }, - "payload_locked_documents_rels_consent_logs_fk": { - "name": "payload_locked_documents_rels_consent_logs_fk", - "tableFrom": "payload_locked_documents_rels", - "tableTo": "consent_logs", - "columnsFrom": [ - "consent_logs_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" - }, - "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" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.payload_preferences": { - "name": "payload_preferences", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "serial", - "primaryKey": true, - "notNull": true - }, - "key": { - "name": "key", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "value": { - "name": "value", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "created_at": { - "name": "created_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - } - }, - "indexes": { - "payload_preferences_key_idx": { - "name": "payload_preferences_key_idx", - "columns": [ - { - "expression": "key", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "payload_preferences_updated_at_idx": { - "name": "payload_preferences_updated_at_idx", - "columns": [ - { - "expression": "updated_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "payload_preferences_created_at_idx": { - "name": "payload_preferences_created_at_idx", - "columns": [ - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.payload_preferences_rels": { - "name": "payload_preferences_rels", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "serial", - "primaryKey": true, - "notNull": true - }, - "order": { - "name": "order", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "parent_id": { - "name": "parent_id", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "path": { - "name": "path", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "users_id": { - "name": "users_id", - "type": "integer", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "payload_preferences_rels_order_idx": { - "name": "payload_preferences_rels_order_idx", - "columns": [ - { - "expression": "order", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "payload_preferences_rels_parent_idx": { - "name": "payload_preferences_rels_parent_idx", - "columns": [ - { - "expression": "parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "payload_preferences_rels_path_idx": { - "name": "payload_preferences_rels_path_idx", - "columns": [ - { - "expression": "path", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "payload_preferences_rels_users_id_idx": { - "name": "payload_preferences_rels_users_id_idx", - "columns": [ - { - "expression": "users_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "payload_preferences_rels_parent_fk": { - "name": "payload_preferences_rels_parent_fk", - "tableFrom": "payload_preferences_rels", - "tableTo": "payload_preferences", - "columnsFrom": [ - "parent_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - }, - "payload_preferences_rels_users_fk": { - "name": "payload_preferences_rels_users_fk", - "tableFrom": "payload_preferences_rels", - "tableTo": "users", - "columnsFrom": [ - "users_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.payload_migrations": { - "name": "payload_migrations", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "serial", - "primaryKey": true, - "notNull": true - }, - "name": { - "name": "name", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "batch": { - "name": "batch", - "type": "numeric", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "created_at": { - "name": "created_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - } - }, - "indexes": { - "payload_migrations_updated_at_idx": { - "name": "payload_migrations_updated_at_idx", - "columns": [ - { - "expression": "updated_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "payload_migrations_created_at_idx": { - "name": "payload_migrations_created_at_idx", - "columns": [ - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.site_settings": { - "name": "site_settings", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "serial", - "primaryKey": true, - "notNull": true - }, - "site_name": { - "name": "site_name", - "type": "varchar", - "primaryKey": false, - "notNull": false, - "default": "'porwoll.de'" - }, - "site_tagline": { - "name": "site_tagline", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "logo_id": { - "name": "logo_id", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "favicon_id": { - "name": "favicon_id", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "contact_email": { - "name": "contact_email", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "contact_phone": { - "name": "contact_phone", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "contact_address": { - "name": "contact_address", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "footer_copyright_text": { - "name": "footer_copyright_text", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "footer_show_social_links": { - "name": "footer_show_social_links", - "type": "boolean", - "primaryKey": false, - "notNull": false, - "default": true - }, - "seo_default_meta_title": { - "name": "seo_default_meta_title", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "seo_default_meta_description": { - "name": "seo_default_meta_description", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "seo_default_og_image_id": { - "name": "seo_default_og_image_id", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "site_settings_logo_idx": { - "name": "site_settings_logo_idx", - "columns": [ - { - "expression": "logo_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "site_settings_favicon_idx": { - "name": "site_settings_favicon_idx", - "columns": [ - { - "expression": "favicon_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "site_settings_seo_seo_default_og_image_idx": { - "name": "site_settings_seo_seo_default_og_image_idx", - "columns": [ - { - "expression": "seo_default_og_image_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "site_settings_logo_id_media_id_fk": { - "name": "site_settings_logo_id_media_id_fk", - "tableFrom": "site_settings", - "tableTo": "media", - "columnsFrom": [ - "logo_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "set null", - "onUpdate": "no action" - }, - "site_settings_favicon_id_media_id_fk": { - "name": "site_settings_favicon_id_media_id_fk", - "tableFrom": "site_settings", - "tableTo": "media", - "columnsFrom": [ - "favicon_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "set null", - "onUpdate": "no action" - }, - "site_settings_seo_default_og_image_id_media_id_fk": { - "name": "site_settings_seo_default_og_image_id_media_id_fk", - "tableFrom": "site_settings", - "tableTo": "media", - "columnsFrom": [ - "seo_default_og_image_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "set null", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.navigation_main_menu_submenu": { - "name": "navigation_main_menu_submenu", - "schema": "", - "columns": { - "_order": { - "name": "_order", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "varchar", - "primaryKey": true, - "notNull": true - }, - "label": { - "name": "label", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "link_type": { - "name": "link_type", - "type": "enum_navigation_main_menu_submenu_link_type", - "typeSchema": "public", - "primaryKey": false, - "notNull": false, - "default": "'page'" - }, - "page_id": { - "name": "page_id", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "url": { - "name": "url", - "type": "varchar", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "navigation_main_menu_submenu_order_idx": { - "name": "navigation_main_menu_submenu_order_idx", - "columns": [ - { - "expression": "_order", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "navigation_main_menu_submenu_parent_id_idx": { - "name": "navigation_main_menu_submenu_parent_id_idx", - "columns": [ - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "navigation_main_menu_submenu_page_idx": { - "name": "navigation_main_menu_submenu_page_idx", - "columns": [ - { - "expression": "page_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "navigation_main_menu_submenu_page_id_pages_id_fk": { - "name": "navigation_main_menu_submenu_page_id_pages_id_fk", - "tableFrom": "navigation_main_menu_submenu", - "tableTo": "pages", - "columnsFrom": [ - "page_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "set null", - "onUpdate": "no action" - }, - "navigation_main_menu_submenu_parent_id_fk": { - "name": "navigation_main_menu_submenu_parent_id_fk", - "tableFrom": "navigation_main_menu_submenu", - "tableTo": "navigation_main_menu", - "columnsFrom": [ - "_parent_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.navigation_main_menu": { - "name": "navigation_main_menu", - "schema": "", - "columns": { - "_order": { - "name": "_order", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "varchar", - "primaryKey": true, - "notNull": true - }, - "label": { - "name": "label", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "type": { - "name": "type", - "type": "enum_navigation_main_menu_type", - "typeSchema": "public", - "primaryKey": false, - "notNull": false, - "default": "'page'" - }, - "page_id": { - "name": "page_id", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "url": { - "name": "url", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "open_in_new_tab": { - "name": "open_in_new_tab", - "type": "boolean", - "primaryKey": false, - "notNull": false, - "default": false - } - }, - "indexes": { - "navigation_main_menu_order_idx": { - "name": "navigation_main_menu_order_idx", - "columns": [ - { - "expression": "_order", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "navigation_main_menu_parent_id_idx": { - "name": "navigation_main_menu_parent_id_idx", - "columns": [ - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "navigation_main_menu_page_idx": { - "name": "navigation_main_menu_page_idx", - "columns": [ - { - "expression": "page_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "navigation_main_menu_page_id_pages_id_fk": { - "name": "navigation_main_menu_page_id_pages_id_fk", - "tableFrom": "navigation_main_menu", - "tableTo": "pages", - "columnsFrom": [ - "page_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "set null", - "onUpdate": "no action" - }, - "navigation_main_menu_parent_id_fk": { - "name": "navigation_main_menu_parent_id_fk", - "tableFrom": "navigation_main_menu", - "tableTo": "navigation", - "columnsFrom": [ - "_parent_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.navigation_footer_menu": { - "name": "navigation_footer_menu", - "schema": "", - "columns": { - "_order": { - "name": "_order", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "varchar", - "primaryKey": true, - "notNull": true - }, - "label": { - "name": "label", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "link_type": { - "name": "link_type", - "type": "enum_navigation_footer_menu_link_type", - "typeSchema": "public", - "primaryKey": false, - "notNull": false, - "default": "'page'" - }, - "page_id": { - "name": "page_id", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "url": { - "name": "url", - "type": "varchar", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "navigation_footer_menu_order_idx": { - "name": "navigation_footer_menu_order_idx", - "columns": [ - { - "expression": "_order", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "navigation_footer_menu_parent_id_idx": { - "name": "navigation_footer_menu_parent_id_idx", - "columns": [ - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "navigation_footer_menu_page_idx": { - "name": "navigation_footer_menu_page_idx", - "columns": [ - { - "expression": "page_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "navigation_footer_menu_page_id_pages_id_fk": { - "name": "navigation_footer_menu_page_id_pages_id_fk", - "tableFrom": "navigation_footer_menu", - "tableTo": "pages", - "columnsFrom": [ - "page_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "set null", - "onUpdate": "no action" - }, - "navigation_footer_menu_parent_id_fk": { - "name": "navigation_footer_menu_parent_id_fk", - "tableFrom": "navigation_footer_menu", - "tableTo": "navigation", - "columnsFrom": [ - "_parent_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.navigation": { - "name": "navigation", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "serial", - "primaryKey": true, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": false - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - } - }, - "enums": { - "public.enum_pages_blocks_hero_block_alignment": { - "name": "enum_pages_blocks_hero_block_alignment", - "schema": "public", - "values": [ - "left", - "center", - "right" - ] - }, - "public.enum_pages_blocks_hero_block_cta_style": { - "name": "enum_pages_blocks_hero_block_cta_style", - "schema": "public", - "values": [ - "primary", - "secondary", - "outline" - ] - }, - "public.enum_pages_blocks_text_block_width": { - "name": "enum_pages_blocks_text_block_width", - "schema": "public", - "values": [ - "narrow", - "medium", - "full" - ] - }, - "public.enum_pages_blocks_image_text_block_image_position": { - "name": "enum_pages_blocks_image_text_block_image_position", - "schema": "public", - "values": [ - "left", - "right" - ] - }, - "public.enum_pages_blocks_card_grid_block_columns": { - "name": "enum_pages_blocks_card_grid_block_columns", - "schema": "public", - "values": [ - "2", - "3", - "4" - ] - }, - "public.enum_pages_blocks_quote_block_style": { - "name": "enum_pages_blocks_quote_block_style", - "schema": "public", - "values": [ - "simple", - "highlighted", - "with-image" - ] - }, - "public.enum_pages_blocks_cta_block_buttons_style": { - "name": "enum_pages_blocks_cta_block_buttons_style", - "schema": "public", - "values": [ - "primary", - "secondary", - "outline" - ] - }, - "public.enum_pages_blocks_cta_block_background_color": { - "name": "enum_pages_blocks_cta_block_background_color", - "schema": "public", - "values": [ - "dark", - "light", - "accent" - ] - }, - "public.enum_pages_blocks_divider_block_style": { - "name": "enum_pages_blocks_divider_block_style", - "schema": "public", - "values": [ - "line", - "space", - "dots" - ] - }, - "public.enum_pages_blocks_divider_block_spacing": { - "name": "enum_pages_blocks_divider_block_spacing", - "schema": "public", - "values": [ - "small", - "medium", - "large" - ] - }, - "public.enum_pages_blocks_video_block_aspect_ratio": { - "name": "enum_pages_blocks_video_block_aspect_ratio", - "schema": "public", - "values": [ - "16:9", - "4:3", - "1:1" - ] - }, - "public.enum_pages_status": { - "name": "enum_pages_status", - "schema": "public", - "values": [ - "draft", - "published" - ] - }, - "public.enum_posts_status": { - "name": "enum_posts_status", - "schema": "public", - "values": [ - "draft", - "published" - ] - }, - "public.enum_social_links_platform": { - "name": "enum_social_links_platform", - "schema": "public", - "values": [ - "facebook", - "x", - "instagram", - "youtube", - "linkedin", - "xing" - ] - }, - "public.enum_cookie_configurations_enabled_categories": { - "name": "enum_cookie_configurations_enabled_categories", - "schema": "public", - "values": [ - "necessary", - "functional", - "analytics", - "marketing" - ] - }, - "public.enum_cookie_configurations_styling_position": { - "name": "enum_cookie_configurations_styling_position", - "schema": "public", - "values": [ - "bottom", - "top", - "middle" - ] - }, - "public.enum_cookie_configurations_styling_theme": { - "name": "enum_cookie_configurations_styling_theme", - "schema": "public", - "values": [ - "dark", - "light", - "auto" - ] - }, - "public.enum_cookie_inventory_category": { - "name": "enum_cookie_inventory_category", - "schema": "public", - "values": [ - "necessary", - "functional", - "analytics", - "marketing" - ] - }, - "public.enum_forms_confirmation_type": { - "name": "enum_forms_confirmation_type", - "schema": "public", - "values": [ - "message", - "redirect" - ] - }, - "public.enum_redirects_to_type": { - "name": "enum_redirects_to_type", - "schema": "public", - "values": [ - "reference", - "custom" - ] - }, - "public.enum_navigation_main_menu_submenu_link_type": { - "name": "enum_navigation_main_menu_submenu_link_type", - "schema": "public", - "values": [ - "page", - "custom" - ] - }, - "public.enum_navigation_main_menu_type": { - "name": "enum_navigation_main_menu_type", - "schema": "public", - "values": [ - "page", - "custom", - "submenu" - ] - }, - "public.enum_navigation_footer_menu_link_type": { - "name": "enum_navigation_footer_menu_link_type", - "schema": "public", - "values": [ - "page", - "custom" - ] - } - }, - "schemas": {}, - "sequences": {}, - "roles": {}, - "policies": {}, - "views": {}, - "_meta": { - "schemas": {}, - "tables": {}, - "columns": {} - }, - "id": "63c49ffe-0292-48f7-ae69-4a24b9fbae85", - "prevId": "00000000-0000-0000-0000-000000000000" -} \ No newline at end of file diff --git a/src/migrations_backup/20251127_224713.ts b/src/migrations_backup/20251127_224713.ts deleted file mode 100644 index ae8cf46..0000000 --- a/src/migrations_backup/20251127_224713.ts +++ /dev/null @@ -1,122 +0,0 @@ -import { MigrateUpArgs, MigrateDownArgs, sql } from '@payloadcms/db-postgres' - -export async function up({ db, payload, req }: MigrateUpArgs): Promise { - await db.execute(sql` - CREATE TYPE "public"."enum_cookie_configurations_enabled_categories" AS ENUM('necessary', 'functional', 'analytics', 'marketing'); - CREATE TYPE "public"."enum_cookie_configurations_styling_position" AS ENUM('bottom', 'top', 'middle'); - CREATE TYPE "public"."enum_cookie_configurations_styling_theme" AS ENUM('dark', 'light', 'auto'); - CREATE TYPE "public"."enum_cookie_inventory_category" AS ENUM('necessary', 'functional', 'analytics', 'marketing'); - CREATE TABLE "cookie_configurations_enabled_categories" ( - "order" integer NOT NULL, - "parent_id" integer NOT NULL, - "value" "enum_cookie_configurations_enabled_categories", - "id" serial PRIMARY KEY NOT NULL - ); - - CREATE TABLE "cookie_configurations" ( - "id" serial PRIMARY KEY NOT NULL, - "tenant_id" integer NOT NULL, - "title" varchar DEFAULT 'Cookie-Einstellungen' NOT NULL, - "revision" numeric DEFAULT 1 NOT NULL, - "translations_de_banner_title" varchar DEFAULT 'Wir respektieren Ihre Privatsphäre', - "translations_de_banner_description" varchar DEFAULT 'Diese Website verwendet Cookies, um Ihnen die bestmögliche Erfahrung zu bieten. Sie können Ihre Einstellungen jederzeit anpassen.', - "translations_de_accept_all_button" varchar DEFAULT 'Alle akzeptieren', - "translations_de_accept_necessary_button" varchar DEFAULT 'Nur notwendige', - "translations_de_settings_button" varchar DEFAULT 'Einstellungen', - "translations_de_save_button" varchar DEFAULT 'Auswahl speichern', - "translations_de_privacy_policy_url" varchar DEFAULT '/datenschutz', - "translations_de_category_labels_necessary_title" varchar DEFAULT 'Notwendig', - "translations_de_category_labels_necessary_description" varchar DEFAULT 'Diese Cookies sind für die Grundfunktionen der Website erforderlich.', - "translations_de_category_labels_functional_title" varchar DEFAULT 'Funktional', - "translations_de_category_labels_functional_description" varchar DEFAULT 'Diese Cookies ermöglichen erweiterte Funktionen und Personalisierung.', - "translations_de_category_labels_analytics_title" varchar DEFAULT 'Statistik', - "translations_de_category_labels_analytics_description" varchar DEFAULT 'Diese Cookies helfen uns zu verstehen, wie Besucher mit der Website interagieren.', - "translations_de_category_labels_marketing_title" varchar DEFAULT 'Marketing', - "translations_de_category_labels_marketing_description" varchar DEFAULT 'Diese Cookies werden verwendet, um Werbung relevanter für Sie zu gestalten.', - "styling_position" "enum_cookie_configurations_styling_position" DEFAULT 'bottom', - "styling_theme" "enum_cookie_configurations_styling_theme" DEFAULT 'dark', - "updated_at" timestamp(3) with time zone DEFAULT now() NOT NULL, - "created_at" timestamp(3) with time zone DEFAULT now() NOT NULL - ); - - CREATE TABLE "cookie_inventory" ( - "id" serial PRIMARY KEY NOT NULL, - "tenant_id" integer NOT NULL, - "name" varchar NOT NULL, - "provider" varchar NOT NULL, - "category" "enum_cookie_inventory_category" NOT NULL, - "duration" varchar NOT NULL, - "description" varchar NOT NULL, - "is_active" boolean DEFAULT true, - "updated_at" timestamp(3) with time zone DEFAULT now() NOT NULL, - "created_at" timestamp(3) with time zone DEFAULT now() NOT NULL - ); - - CREATE TABLE "consent_logs" ( - "id" serial PRIMARY KEY NOT NULL, - "consent_id" varchar NOT NULL, - "client_ref" varchar, - "tenant_id" integer NOT NULL, - "categories" jsonb NOT NULL, - "revision" numeric NOT NULL, - "user_agent" varchar, - "anonymized_ip" varchar, - "expires_at" timestamp(3) with time zone NOT NULL, - "updated_at" timestamp(3) with time zone DEFAULT now() NOT NULL, - "created_at" timestamp(3) with time zone DEFAULT now() NOT NULL - ); - - ALTER TABLE "payload_locked_documents_rels" ADD COLUMN "cookie_configurations_id" integer; - ALTER TABLE "payload_locked_documents_rels" ADD COLUMN "cookie_inventory_id" integer; - ALTER TABLE "payload_locked_documents_rels" ADD COLUMN "consent_logs_id" integer; - ALTER TABLE "cookie_configurations_enabled_categories" ADD CONSTRAINT "cookie_configurations_enabled_categories_parent_fk" FOREIGN KEY ("parent_id") REFERENCES "public"."cookie_configurations"("id") ON DELETE cascade ON UPDATE no action; - ALTER TABLE "cookie_configurations" ADD CONSTRAINT "cookie_configurations_tenant_id_tenants_id_fk" FOREIGN KEY ("tenant_id") REFERENCES "public"."tenants"("id") ON DELETE set null ON UPDATE no action; - ALTER TABLE "cookie_inventory" ADD CONSTRAINT "cookie_inventory_tenant_id_tenants_id_fk" FOREIGN KEY ("tenant_id") REFERENCES "public"."tenants"("id") ON DELETE set null ON UPDATE no action; - ALTER TABLE "consent_logs" ADD CONSTRAINT "consent_logs_tenant_id_tenants_id_fk" FOREIGN KEY ("tenant_id") REFERENCES "public"."tenants"("id") ON DELETE set null ON UPDATE no action; - CREATE INDEX "cookie_configurations_enabled_categories_order_idx" ON "cookie_configurations_enabled_categories" USING btree ("order"); - CREATE INDEX "cookie_configurations_enabled_categories_parent_idx" ON "cookie_configurations_enabled_categories" USING btree ("parent_id"); - CREATE UNIQUE INDEX "cookie_configurations_tenant_idx" ON "cookie_configurations" USING btree ("tenant_id"); - CREATE INDEX "cookie_configurations_updated_at_idx" ON "cookie_configurations" USING btree ("updated_at"); - CREATE INDEX "cookie_configurations_created_at_idx" ON "cookie_configurations" USING btree ("created_at"); - CREATE INDEX "cookie_inventory_tenant_idx" ON "cookie_inventory" USING btree ("tenant_id"); - CREATE INDEX "cookie_inventory_updated_at_idx" ON "cookie_inventory" USING btree ("updated_at"); - CREATE INDEX "cookie_inventory_created_at_idx" ON "cookie_inventory" USING btree ("created_at"); - CREATE UNIQUE INDEX "consent_logs_consent_id_idx" ON "consent_logs" USING btree ("consent_id"); - CREATE INDEX "consent_logs_tenant_idx" ON "consent_logs" USING btree ("tenant_id"); - CREATE INDEX "consent_logs_updated_at_idx" ON "consent_logs" USING btree ("updated_at"); - CREATE INDEX "consent_logs_created_at_idx" ON "consent_logs" USING btree ("created_at"); - ALTER TABLE "payload_locked_documents_rels" ADD CONSTRAINT "payload_locked_documents_rels_cookie_configurations_fk" FOREIGN KEY ("cookie_configurations_id") REFERENCES "public"."cookie_configurations"("id") ON DELETE cascade ON UPDATE no action; - ALTER TABLE "payload_locked_documents_rels" ADD CONSTRAINT "payload_locked_documents_rels_cookie_inventory_fk" FOREIGN KEY ("cookie_inventory_id") REFERENCES "public"."cookie_inventory"("id") ON DELETE cascade ON UPDATE no action; - ALTER TABLE "payload_locked_documents_rels" ADD CONSTRAINT "payload_locked_documents_rels_consent_logs_fk" FOREIGN KEY ("consent_logs_id") REFERENCES "public"."consent_logs"("id") ON DELETE cascade ON UPDATE no action; - CREATE INDEX "payload_locked_documents_rels_cookie_configurations_id_idx" ON "payload_locked_documents_rels" USING btree ("cookie_configurations_id"); - CREATE INDEX "payload_locked_documents_rels_cookie_inventory_id_idx" ON "payload_locked_documents_rels" USING btree ("cookie_inventory_id"); - CREATE INDEX "payload_locked_documents_rels_consent_logs_id_idx" ON "payload_locked_documents_rels" USING btree ("consent_logs_id");`) -} - -export async function down({ db, payload, req }: MigrateDownArgs): Promise { - await db.execute(sql` - ALTER TABLE "cookie_configurations_enabled_categories" DISABLE ROW LEVEL SECURITY; - ALTER TABLE "cookie_configurations" DISABLE ROW LEVEL SECURITY; - ALTER TABLE "cookie_inventory" DISABLE ROW LEVEL SECURITY; - ALTER TABLE "consent_logs" DISABLE ROW LEVEL SECURITY; - DROP TABLE "cookie_configurations_enabled_categories" CASCADE; - DROP TABLE "cookie_configurations" CASCADE; - DROP TABLE "cookie_inventory" CASCADE; - DROP TABLE "consent_logs" CASCADE; - ALTER TABLE "payload_locked_documents_rels" DROP CONSTRAINT "payload_locked_documents_rels_cookie_configurations_fk"; - - ALTER TABLE "payload_locked_documents_rels" DROP CONSTRAINT "payload_locked_documents_rels_cookie_inventory_fk"; - - ALTER TABLE "payload_locked_documents_rels" DROP CONSTRAINT "payload_locked_documents_rels_consent_logs_fk"; - - DROP INDEX "payload_locked_documents_rels_cookie_configurations_id_idx"; - DROP INDEX "payload_locked_documents_rels_cookie_inventory_id_idx"; - DROP INDEX "payload_locked_documents_rels_consent_logs_id_idx"; - ALTER TABLE "payload_locked_documents_rels" DROP COLUMN "cookie_configurations_id"; - ALTER TABLE "payload_locked_documents_rels" DROP COLUMN "cookie_inventory_id"; - ALTER TABLE "payload_locked_documents_rels" DROP COLUMN "consent_logs_id"; - DROP TYPE "public"."enum_cookie_configurations_enabled_categories"; - DROP TYPE "public"."enum_cookie_configurations_styling_position"; - DROP TYPE "public"."enum_cookie_configurations_styling_theme"; - DROP TYPE "public"."enum_cookie_inventory_category";`) -} diff --git a/src/migrations_backup/20251128_142608.json b/src/migrations_backup/20251128_142608.json deleted file mode 100644 index 1e12a1d..0000000 --- a/src/migrations_backup/20251128_142608.json +++ /dev/null @@ -1,7343 +0,0 @@ -{ - "version": "7", - "dialect": "postgresql", - "tables": { - "public.users_tenants": { - "name": "users_tenants", - "schema": "", - "columns": { - "_order": { - "name": "_order", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "varchar", - "primaryKey": true, - "notNull": true - }, - "tenant_id": { - "name": "tenant_id", - "type": "integer", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "users_tenants_order_idx": { - "name": "users_tenants_order_idx", - "columns": [ - { - "expression": "_order", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "users_tenants_parent_id_idx": { - "name": "users_tenants_parent_id_idx", - "columns": [ - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "users_tenants_tenant_idx": { - "name": "users_tenants_tenant_idx", - "columns": [ - { - "expression": "tenant_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "users_tenants_tenant_id_tenants_id_fk": { - "name": "users_tenants_tenant_id_tenants_id_fk", - "tableFrom": "users_tenants", - "tableTo": "tenants", - "columnsFrom": [ - "tenant_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "set null", - "onUpdate": "no action" - }, - "users_tenants_parent_id_fk": { - "name": "users_tenants_parent_id_fk", - "tableFrom": "users_tenants", - "tableTo": "users", - "columnsFrom": [ - "_parent_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.users_sessions": { - "name": "users_sessions", - "schema": "", - "columns": { - "_order": { - "name": "_order", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "varchar", - "primaryKey": true, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": false - }, - "expires_at": { - "name": "expires_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "users_sessions_order_idx": { - "name": "users_sessions_order_idx", - "columns": [ - { - "expression": "_order", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "users_sessions_parent_id_idx": { - "name": "users_sessions_parent_id_idx", - "columns": [ - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "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": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.users": { - "name": "users", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "serial", - "primaryKey": true, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "created_at": { - "name": "created_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "email": { - "name": "email", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "reset_password_token": { - "name": "reset_password_token", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "reset_password_expiration": { - "name": "reset_password_expiration", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": false - }, - "salt": { - "name": "salt", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "hash": { - "name": "hash", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "login_attempts": { - "name": "login_attempts", - "type": "numeric", - "primaryKey": false, - "notNull": false, - "default": 0 - }, - "lock_until": { - "name": "lock_until", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "users_updated_at_idx": { - "name": "users_updated_at_idx", - "columns": [ - { - "expression": "updated_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "users_created_at_idx": { - "name": "users_created_at_idx", - "columns": [ - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "users_email_idx": { - "name": "users_email_idx", - "columns": [ - { - "expression": "email", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.media": { - "name": "media", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "serial", - "primaryKey": true, - "notNull": true - }, - "tenant_id": { - "name": "tenant_id", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "alt": { - "name": "alt", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "created_at": { - "name": "created_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "url": { - "name": "url", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "thumbnail_u_r_l": { - "name": "thumbnail_u_r_l", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "filename": { - "name": "filename", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "mime_type": { - "name": "mime_type", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "filesize": { - "name": "filesize", - "type": "numeric", - "primaryKey": false, - "notNull": false - }, - "width": { - "name": "width", - "type": "numeric", - "primaryKey": false, - "notNull": false - }, - "height": { - "name": "height", - "type": "numeric", - "primaryKey": false, - "notNull": false - }, - "focal_x": { - "name": "focal_x", - "type": "numeric", - "primaryKey": false, - "notNull": false - }, - "focal_y": { - "name": "focal_y", - "type": "numeric", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "media_tenant_idx": { - "name": "media_tenant_idx", - "columns": [ - { - "expression": "tenant_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "media_updated_at_idx": { - "name": "media_updated_at_idx", - "columns": [ - { - "expression": "updated_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "media_created_at_idx": { - "name": "media_created_at_idx", - "columns": [ - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "media_filename_idx": { - "name": "media_filename_idx", - "columns": [ - { - "expression": "filename", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "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": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.tenants_domains": { - "name": "tenants_domains", - "schema": "", - "columns": { - "_order": { - "name": "_order", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "varchar", - "primaryKey": true, - "notNull": true - }, - "domain": { - "name": "domain", - "type": "varchar", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "tenants_domains_order_idx": { - "name": "tenants_domains_order_idx", - "columns": [ - { - "expression": "_order", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "tenants_domains_parent_id_idx": { - "name": "tenants_domains_parent_id_idx", - "columns": [ - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "tenants_domains_parent_id_fk": { - "name": "tenants_domains_parent_id_fk", - "tableFrom": "tenants_domains", - "tableTo": "tenants", - "columnsFrom": [ - "_parent_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.tenants": { - "name": "tenants", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "serial", - "primaryKey": true, - "notNull": true - }, - "name": { - "name": "name", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "slug": { - "name": "slug", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "created_at": { - "name": "created_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - } - }, - "indexes": { - "tenants_slug_idx": { - "name": "tenants_slug_idx", - "columns": [ - { - "expression": "slug", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "tenants_updated_at_idx": { - "name": "tenants_updated_at_idx", - "columns": [ - { - "expression": "updated_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "tenants_created_at_idx": { - "name": "tenants_created_at_idx", - "columns": [ - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.pages_blocks_hero_block": { - "name": "pages_blocks_hero_block", - "schema": "", - "columns": { - "_order": { - "name": "_order", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_path": { - "name": "_path", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "varchar", - "primaryKey": true, - "notNull": true - }, - "background_image_id": { - "name": "background_image_id", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "headline": { - "name": "headline", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "subline": { - "name": "subline", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "alignment": { - "name": "alignment", - "type": "enum_pages_blocks_hero_block_alignment", - "typeSchema": "public", - "primaryKey": false, - "notNull": false, - "default": "'center'" - }, - "overlay": { - "name": "overlay", - "type": "boolean", - "primaryKey": false, - "notNull": false, - "default": true - }, - "cta_text": { - "name": "cta_text", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "cta_link": { - "name": "cta_link", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "cta_style": { - "name": "cta_style", - "type": "enum_pages_blocks_hero_block_cta_style", - "typeSchema": "public", - "primaryKey": false, - "notNull": false, - "default": "'primary'" - }, - "block_name": { - "name": "block_name", - "type": "varchar", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "pages_blocks_hero_block_order_idx": { - "name": "pages_blocks_hero_block_order_idx", - "columns": [ - { - "expression": "_order", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "pages_blocks_hero_block_parent_id_idx": { - "name": "pages_blocks_hero_block_parent_id_idx", - "columns": [ - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "pages_blocks_hero_block_path_idx": { - "name": "pages_blocks_hero_block_path_idx", - "columns": [ - { - "expression": "_path", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "pages_blocks_hero_block_background_image_idx": { - "name": "pages_blocks_hero_block_background_image_idx", - "columns": [ - { - "expression": "background_image_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "pages_blocks_hero_block_background_image_id_media_id_fk": { - "name": "pages_blocks_hero_block_background_image_id_media_id_fk", - "tableFrom": "pages_blocks_hero_block", - "tableTo": "media", - "columnsFrom": [ - "background_image_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "set null", - "onUpdate": "no action" - }, - "pages_blocks_hero_block_parent_id_fk": { - "name": "pages_blocks_hero_block_parent_id_fk", - "tableFrom": "pages_blocks_hero_block", - "tableTo": "pages", - "columnsFrom": [ - "_parent_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.pages_blocks_text_block": { - "name": "pages_blocks_text_block", - "schema": "", - "columns": { - "_order": { - "name": "_order", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_path": { - "name": "_path", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "varchar", - "primaryKey": true, - "notNull": true - }, - "content": { - "name": "content", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "width": { - "name": "width", - "type": "enum_pages_blocks_text_block_width", - "typeSchema": "public", - "primaryKey": false, - "notNull": false, - "default": "'medium'" - }, - "block_name": { - "name": "block_name", - "type": "varchar", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "pages_blocks_text_block_order_idx": { - "name": "pages_blocks_text_block_order_idx", - "columns": [ - { - "expression": "_order", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "pages_blocks_text_block_parent_id_idx": { - "name": "pages_blocks_text_block_parent_id_idx", - "columns": [ - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "pages_blocks_text_block_path_idx": { - "name": "pages_blocks_text_block_path_idx", - "columns": [ - { - "expression": "_path", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "pages_blocks_text_block_parent_id_fk": { - "name": "pages_blocks_text_block_parent_id_fk", - "tableFrom": "pages_blocks_text_block", - "tableTo": "pages", - "columnsFrom": [ - "_parent_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.pages_blocks_image_text_block": { - "name": "pages_blocks_image_text_block", - "schema": "", - "columns": { - "_order": { - "name": "_order", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_path": { - "name": "_path", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "varchar", - "primaryKey": true, - "notNull": true - }, - "image_id": { - "name": "image_id", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "image_position": { - "name": "image_position", - "type": "enum_pages_blocks_image_text_block_image_position", - "typeSchema": "public", - "primaryKey": false, - "notNull": false, - "default": "'left'" - }, - "headline": { - "name": "headline", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "content": { - "name": "content", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "cta_text": { - "name": "cta_text", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "cta_link": { - "name": "cta_link", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "block_name": { - "name": "block_name", - "type": "varchar", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "pages_blocks_image_text_block_order_idx": { - "name": "pages_blocks_image_text_block_order_idx", - "columns": [ - { - "expression": "_order", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "pages_blocks_image_text_block_parent_id_idx": { - "name": "pages_blocks_image_text_block_parent_id_idx", - "columns": [ - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "pages_blocks_image_text_block_path_idx": { - "name": "pages_blocks_image_text_block_path_idx", - "columns": [ - { - "expression": "_path", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "pages_blocks_image_text_block_image_idx": { - "name": "pages_blocks_image_text_block_image_idx", - "columns": [ - { - "expression": "image_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "pages_blocks_image_text_block_image_id_media_id_fk": { - "name": "pages_blocks_image_text_block_image_id_media_id_fk", - "tableFrom": "pages_blocks_image_text_block", - "tableTo": "media", - "columnsFrom": [ - "image_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "set null", - "onUpdate": "no action" - }, - "pages_blocks_image_text_block_parent_id_fk": { - "name": "pages_blocks_image_text_block_parent_id_fk", - "tableFrom": "pages_blocks_image_text_block", - "tableTo": "pages", - "columnsFrom": [ - "_parent_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.pages_blocks_card_grid_block_cards": { - "name": "pages_blocks_card_grid_block_cards", - "schema": "", - "columns": { - "_order": { - "name": "_order", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "varchar", - "primaryKey": true, - "notNull": true - }, - "image_id": { - "name": "image_id", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "title": { - "name": "title", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "description": { - "name": "description", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "link": { - "name": "link", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "link_text": { - "name": "link_text", - "type": "varchar", - "primaryKey": false, - "notNull": false, - "default": "'mehr'" - } - }, - "indexes": { - "pages_blocks_card_grid_block_cards_order_idx": { - "name": "pages_blocks_card_grid_block_cards_order_idx", - "columns": [ - { - "expression": "_order", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "pages_blocks_card_grid_block_cards_parent_id_idx": { - "name": "pages_blocks_card_grid_block_cards_parent_id_idx", - "columns": [ - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "pages_blocks_card_grid_block_cards_image_idx": { - "name": "pages_blocks_card_grid_block_cards_image_idx", - "columns": [ - { - "expression": "image_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "pages_blocks_card_grid_block_cards_image_id_media_id_fk": { - "name": "pages_blocks_card_grid_block_cards_image_id_media_id_fk", - "tableFrom": "pages_blocks_card_grid_block_cards", - "tableTo": "media", - "columnsFrom": [ - "image_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "set null", - "onUpdate": "no action" - }, - "pages_blocks_card_grid_block_cards_parent_id_fk": { - "name": "pages_blocks_card_grid_block_cards_parent_id_fk", - "tableFrom": "pages_blocks_card_grid_block_cards", - "tableTo": "pages_blocks_card_grid_block", - "columnsFrom": [ - "_parent_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.pages_blocks_card_grid_block": { - "name": "pages_blocks_card_grid_block", - "schema": "", - "columns": { - "_order": { - "name": "_order", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_path": { - "name": "_path", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "varchar", - "primaryKey": true, - "notNull": true - }, - "headline": { - "name": "headline", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "columns": { - "name": "columns", - "type": "enum_pages_blocks_card_grid_block_columns", - "typeSchema": "public", - "primaryKey": false, - "notNull": false, - "default": "'3'" - }, - "block_name": { - "name": "block_name", - "type": "varchar", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "pages_blocks_card_grid_block_order_idx": { - "name": "pages_blocks_card_grid_block_order_idx", - "columns": [ - { - "expression": "_order", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "pages_blocks_card_grid_block_parent_id_idx": { - "name": "pages_blocks_card_grid_block_parent_id_idx", - "columns": [ - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "pages_blocks_card_grid_block_path_idx": { - "name": "pages_blocks_card_grid_block_path_idx", - "columns": [ - { - "expression": "_path", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "pages_blocks_card_grid_block_parent_id_fk": { - "name": "pages_blocks_card_grid_block_parent_id_fk", - "tableFrom": "pages_blocks_card_grid_block", - "tableTo": "pages", - "columnsFrom": [ - "_parent_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.pages_blocks_quote_block": { - "name": "pages_blocks_quote_block", - "schema": "", - "columns": { - "_order": { - "name": "_order", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_path": { - "name": "_path", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "varchar", - "primaryKey": true, - "notNull": true - }, - "quote": { - "name": "quote", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "author": { - "name": "author", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "role": { - "name": "role", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "image_id": { - "name": "image_id", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "style": { - "name": "style", - "type": "enum_pages_blocks_quote_block_style", - "typeSchema": "public", - "primaryKey": false, - "notNull": false, - "default": "'simple'" - }, - "block_name": { - "name": "block_name", - "type": "varchar", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "pages_blocks_quote_block_order_idx": { - "name": "pages_blocks_quote_block_order_idx", - "columns": [ - { - "expression": "_order", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "pages_blocks_quote_block_parent_id_idx": { - "name": "pages_blocks_quote_block_parent_id_idx", - "columns": [ - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "pages_blocks_quote_block_path_idx": { - "name": "pages_blocks_quote_block_path_idx", - "columns": [ - { - "expression": "_path", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "pages_blocks_quote_block_image_idx": { - "name": "pages_blocks_quote_block_image_idx", - "columns": [ - { - "expression": "image_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "pages_blocks_quote_block_image_id_media_id_fk": { - "name": "pages_blocks_quote_block_image_id_media_id_fk", - "tableFrom": "pages_blocks_quote_block", - "tableTo": "media", - "columnsFrom": [ - "image_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "set null", - "onUpdate": "no action" - }, - "pages_blocks_quote_block_parent_id_fk": { - "name": "pages_blocks_quote_block_parent_id_fk", - "tableFrom": "pages_blocks_quote_block", - "tableTo": "pages", - "columnsFrom": [ - "_parent_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.pages_blocks_cta_block_buttons": { - "name": "pages_blocks_cta_block_buttons", - "schema": "", - "columns": { - "_order": { - "name": "_order", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "varchar", - "primaryKey": true, - "notNull": true - }, - "text": { - "name": "text", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "link": { - "name": "link", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "style": { - "name": "style", - "type": "enum_pages_blocks_cta_block_buttons_style", - "typeSchema": "public", - "primaryKey": false, - "notNull": false, - "default": "'primary'" - } - }, - "indexes": { - "pages_blocks_cta_block_buttons_order_idx": { - "name": "pages_blocks_cta_block_buttons_order_idx", - "columns": [ - { - "expression": "_order", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "pages_blocks_cta_block_buttons_parent_id_idx": { - "name": "pages_blocks_cta_block_buttons_parent_id_idx", - "columns": [ - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "pages_blocks_cta_block_buttons_parent_id_fk": { - "name": "pages_blocks_cta_block_buttons_parent_id_fk", - "tableFrom": "pages_blocks_cta_block_buttons", - "tableTo": "pages_blocks_cta_block", - "columnsFrom": [ - "_parent_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.pages_blocks_cta_block": { - "name": "pages_blocks_cta_block", - "schema": "", - "columns": { - "_order": { - "name": "_order", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_path": { - "name": "_path", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "varchar", - "primaryKey": true, - "notNull": true - }, - "headline": { - "name": "headline", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "description": { - "name": "description", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "background_color": { - "name": "background_color", - "type": "enum_pages_blocks_cta_block_background_color", - "typeSchema": "public", - "primaryKey": false, - "notNull": false, - "default": "'dark'" - }, - "block_name": { - "name": "block_name", - "type": "varchar", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "pages_blocks_cta_block_order_idx": { - "name": "pages_blocks_cta_block_order_idx", - "columns": [ - { - "expression": "_order", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "pages_blocks_cta_block_parent_id_idx": { - "name": "pages_blocks_cta_block_parent_id_idx", - "columns": [ - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "pages_blocks_cta_block_path_idx": { - "name": "pages_blocks_cta_block_path_idx", - "columns": [ - { - "expression": "_path", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "pages_blocks_cta_block_parent_id_fk": { - "name": "pages_blocks_cta_block_parent_id_fk", - "tableFrom": "pages_blocks_cta_block", - "tableTo": "pages", - "columnsFrom": [ - "_parent_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.pages_blocks_contact_form_block": { - "name": "pages_blocks_contact_form_block", - "schema": "", - "columns": { - "_order": { - "name": "_order", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_path": { - "name": "_path", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "varchar", - "primaryKey": true, - "notNull": true - }, - "headline": { - "name": "headline", - "type": "varchar", - "primaryKey": false, - "notNull": false, - "default": "'Kontakt'" - }, - "description": { - "name": "description", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "recipient_email": { - "name": "recipient_email", - "type": "varchar", - "primaryKey": false, - "notNull": false, - "default": "'info@porwoll.de'" - }, - "show_phone": { - "name": "show_phone", - "type": "boolean", - "primaryKey": false, - "notNull": false, - "default": true - }, - "show_address": { - "name": "show_address", - "type": "boolean", - "primaryKey": false, - "notNull": false, - "default": true - }, - "show_socials": { - "name": "show_socials", - "type": "boolean", - "primaryKey": false, - "notNull": false, - "default": true - }, - "block_name": { - "name": "block_name", - "type": "varchar", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "pages_blocks_contact_form_block_order_idx": { - "name": "pages_blocks_contact_form_block_order_idx", - "columns": [ - { - "expression": "_order", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "pages_blocks_contact_form_block_parent_id_idx": { - "name": "pages_blocks_contact_form_block_parent_id_idx", - "columns": [ - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "pages_blocks_contact_form_block_path_idx": { - "name": "pages_blocks_contact_form_block_path_idx", - "columns": [ - { - "expression": "_path", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "pages_blocks_contact_form_block_parent_id_fk": { - "name": "pages_blocks_contact_form_block_parent_id_fk", - "tableFrom": "pages_blocks_contact_form_block", - "tableTo": "pages", - "columnsFrom": [ - "_parent_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.pages_blocks_timeline_block_events": { - "name": "pages_blocks_timeline_block_events", - "schema": "", - "columns": { - "_order": { - "name": "_order", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "varchar", - "primaryKey": true, - "notNull": true - }, - "year": { - "name": "year", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "title": { - "name": "title", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "description": { - "name": "description", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "image_id": { - "name": "image_id", - "type": "integer", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "pages_blocks_timeline_block_events_order_idx": { - "name": "pages_blocks_timeline_block_events_order_idx", - "columns": [ - { - "expression": "_order", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "pages_blocks_timeline_block_events_parent_id_idx": { - "name": "pages_blocks_timeline_block_events_parent_id_idx", - "columns": [ - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "pages_blocks_timeline_block_events_image_idx": { - "name": "pages_blocks_timeline_block_events_image_idx", - "columns": [ - { - "expression": "image_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "pages_blocks_timeline_block_events_image_id_media_id_fk": { - "name": "pages_blocks_timeline_block_events_image_id_media_id_fk", - "tableFrom": "pages_blocks_timeline_block_events", - "tableTo": "media", - "columnsFrom": [ - "image_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "set null", - "onUpdate": "no action" - }, - "pages_blocks_timeline_block_events_parent_id_fk": { - "name": "pages_blocks_timeline_block_events_parent_id_fk", - "tableFrom": "pages_blocks_timeline_block_events", - "tableTo": "pages_blocks_timeline_block", - "columnsFrom": [ - "_parent_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.pages_blocks_timeline_block": { - "name": "pages_blocks_timeline_block", - "schema": "", - "columns": { - "_order": { - "name": "_order", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_path": { - "name": "_path", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "varchar", - "primaryKey": true, - "notNull": true - }, - "headline": { - "name": "headline", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "block_name": { - "name": "block_name", - "type": "varchar", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "pages_blocks_timeline_block_order_idx": { - "name": "pages_blocks_timeline_block_order_idx", - "columns": [ - { - "expression": "_order", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "pages_blocks_timeline_block_parent_id_idx": { - "name": "pages_blocks_timeline_block_parent_id_idx", - "columns": [ - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "pages_blocks_timeline_block_path_idx": { - "name": "pages_blocks_timeline_block_path_idx", - "columns": [ - { - "expression": "_path", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "pages_blocks_timeline_block_parent_id_fk": { - "name": "pages_blocks_timeline_block_parent_id_fk", - "tableFrom": "pages_blocks_timeline_block", - "tableTo": "pages", - "columnsFrom": [ - "_parent_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.pages_blocks_divider_block": { - "name": "pages_blocks_divider_block", - "schema": "", - "columns": { - "_order": { - "name": "_order", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_path": { - "name": "_path", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "varchar", - "primaryKey": true, - "notNull": true - }, - "style": { - "name": "style", - "type": "enum_pages_blocks_divider_block_style", - "typeSchema": "public", - "primaryKey": false, - "notNull": false, - "default": "'space'" - }, - "spacing": { - "name": "spacing", - "type": "enum_pages_blocks_divider_block_spacing", - "typeSchema": "public", - "primaryKey": false, - "notNull": false, - "default": "'medium'" - }, - "block_name": { - "name": "block_name", - "type": "varchar", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "pages_blocks_divider_block_order_idx": { - "name": "pages_blocks_divider_block_order_idx", - "columns": [ - { - "expression": "_order", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "pages_blocks_divider_block_parent_id_idx": { - "name": "pages_blocks_divider_block_parent_id_idx", - "columns": [ - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "pages_blocks_divider_block_path_idx": { - "name": "pages_blocks_divider_block_path_idx", - "columns": [ - { - "expression": "_path", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "pages_blocks_divider_block_parent_id_fk": { - "name": "pages_blocks_divider_block_parent_id_fk", - "tableFrom": "pages_blocks_divider_block", - "tableTo": "pages", - "columnsFrom": [ - "_parent_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.pages_blocks_video_block": { - "name": "pages_blocks_video_block", - "schema": "", - "columns": { - "_order": { - "name": "_order", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_path": { - "name": "_path", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "varchar", - "primaryKey": true, - "notNull": true - }, - "video_url": { - "name": "video_url", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "caption": { - "name": "caption", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "aspect_ratio": { - "name": "aspect_ratio", - "type": "enum_pages_blocks_video_block_aspect_ratio", - "typeSchema": "public", - "primaryKey": false, - "notNull": false, - "default": "'16:9'" - }, - "block_name": { - "name": "block_name", - "type": "varchar", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "pages_blocks_video_block_order_idx": { - "name": "pages_blocks_video_block_order_idx", - "columns": [ - { - "expression": "_order", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "pages_blocks_video_block_parent_id_idx": { - "name": "pages_blocks_video_block_parent_id_idx", - "columns": [ - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "pages_blocks_video_block_path_idx": { - "name": "pages_blocks_video_block_path_idx", - "columns": [ - { - "expression": "_path", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "pages_blocks_video_block_parent_id_fk": { - "name": "pages_blocks_video_block_parent_id_fk", - "tableFrom": "pages_blocks_video_block", - "tableTo": "pages", - "columnsFrom": [ - "_parent_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.pages": { - "name": "pages", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "serial", - "primaryKey": true, - "notNull": true - }, - "tenant_id": { - "name": "tenant_id", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "title": { - "name": "title", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "slug": { - "name": "slug", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "hero_image_id": { - "name": "hero_image_id", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "hero_headline": { - "name": "hero_headline", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "hero_subline": { - "name": "hero_subline", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "seo_meta_title": { - "name": "seo_meta_title", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "seo_meta_description": { - "name": "seo_meta_description", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "seo_og_image_id": { - "name": "seo_og_image_id", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "status": { - "name": "status", - "type": "enum_pages_status", - "typeSchema": "public", - "primaryKey": false, - "notNull": false, - "default": "'draft'" - }, - "published_at": { - "name": "published_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "created_at": { - "name": "created_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - } - }, - "indexes": { - "pages_tenant_idx": { - "name": "pages_tenant_idx", - "columns": [ - { - "expression": "tenant_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "pages_slug_idx": { - "name": "pages_slug_idx", - "columns": [ - { - "expression": "slug", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "pages_hero_hero_image_idx": { - "name": "pages_hero_hero_image_idx", - "columns": [ - { - "expression": "hero_image_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "pages_seo_seo_og_image_idx": { - "name": "pages_seo_seo_og_image_idx", - "columns": [ - { - "expression": "seo_og_image_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "pages_updated_at_idx": { - "name": "pages_updated_at_idx", - "columns": [ - { - "expression": "updated_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "pages_created_at_idx": { - "name": "pages_created_at_idx", - "columns": [ - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "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" - }, - "pages_hero_image_id_media_id_fk": { - "name": "pages_hero_image_id_media_id_fk", - "tableFrom": "pages", - "tableTo": "media", - "columnsFrom": [ - "hero_image_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "set null", - "onUpdate": "no action" - }, - "pages_seo_og_image_id_media_id_fk": { - "name": "pages_seo_og_image_id_media_id_fk", - "tableFrom": "pages", - "tableTo": "media", - "columnsFrom": [ - "seo_og_image_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "set null", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.posts": { - "name": "posts", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "serial", - "primaryKey": true, - "notNull": true - }, - "tenant_id": { - "name": "tenant_id", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "title": { - "name": "title", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "slug": { - "name": "slug", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "excerpt": { - "name": "excerpt", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "content": { - "name": "content", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "featured_image_id": { - "name": "featured_image_id", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "category_id": { - "name": "category_id", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "author_id": { - "name": "author_id", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "published_at": { - "name": "published_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": false - }, - "status": { - "name": "status", - "type": "enum_posts_status", - "typeSchema": "public", - "primaryKey": false, - "notNull": false, - "default": "'draft'" - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "created_at": { - "name": "created_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - } - }, - "indexes": { - "posts_tenant_idx": { - "name": "posts_tenant_idx", - "columns": [ - { - "expression": "tenant_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "posts_slug_idx": { - "name": "posts_slug_idx", - "columns": [ - { - "expression": "slug", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "posts_featured_image_idx": { - "name": "posts_featured_image_idx", - "columns": [ - { - "expression": "featured_image_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "posts_category_idx": { - "name": "posts_category_idx", - "columns": [ - { - "expression": "category_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "posts_author_idx": { - "name": "posts_author_idx", - "columns": [ - { - "expression": "author_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "posts_updated_at_idx": { - "name": "posts_updated_at_idx", - "columns": [ - { - "expression": "updated_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "posts_created_at_idx": { - "name": "posts_created_at_idx", - "columns": [ - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "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" - }, - "posts_category_id_categories_id_fk": { - "name": "posts_category_id_categories_id_fk", - "tableFrom": "posts", - "tableTo": "categories", - "columnsFrom": [ - "category_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "set null", - "onUpdate": "no action" - }, - "posts_author_id_users_id_fk": { - "name": "posts_author_id_users_id_fk", - "tableFrom": "posts", - "tableTo": "users", - "columnsFrom": [ - "author_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "set null", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.categories": { - "name": "categories", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "serial", - "primaryKey": true, - "notNull": true - }, - "tenant_id": { - "name": "tenant_id", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "name": { - "name": "name", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "slug": { - "name": "slug", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "description": { - "name": "description", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "created_at": { - "name": "created_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - } - }, - "indexes": { - "categories_tenant_idx": { - "name": "categories_tenant_idx", - "columns": [ - { - "expression": "tenant_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "categories_slug_idx": { - "name": "categories_slug_idx", - "columns": [ - { - "expression": "slug", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "categories_updated_at_idx": { - "name": "categories_updated_at_idx", - "columns": [ - { - "expression": "updated_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "categories_created_at_idx": { - "name": "categories_created_at_idx", - "columns": [ - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "categories_tenant_id_tenants_id_fk": { - "name": "categories_tenant_id_tenants_id_fk", - "tableFrom": "categories", - "tableTo": "tenants", - "columnsFrom": [ - "tenant_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "set null", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.social_links": { - "name": "social_links", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "serial", - "primaryKey": true, - "notNull": true - }, - "tenant_id": { - "name": "tenant_id", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "platform": { - "name": "platform", - "type": "enum_social_links_platform", - "typeSchema": "public", - "primaryKey": false, - "notNull": true - }, - "url": { - "name": "url", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "is_active": { - "name": "is_active", - "type": "boolean", - "primaryKey": false, - "notNull": false, - "default": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "created_at": { - "name": "created_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - } - }, - "indexes": { - "social_links_tenant_idx": { - "name": "social_links_tenant_idx", - "columns": [ - { - "expression": "tenant_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "social_links_updated_at_idx": { - "name": "social_links_updated_at_idx", - "columns": [ - { - "expression": "updated_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "social_links_created_at_idx": { - "name": "social_links_created_at_idx", - "columns": [ - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "social_links_tenant_id_tenants_id_fk": { - "name": "social_links_tenant_id_tenants_id_fk", - "tableFrom": "social_links", - "tableTo": "tenants", - "columnsFrom": [ - "tenant_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "set null", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.cookie_configurations_enabled_categories": { - "name": "cookie_configurations_enabled_categories", - "schema": "", - "columns": { - "order": { - "name": "order", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "parent_id": { - "name": "parent_id", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "value": { - "name": "value", - "type": "enum_cookie_configurations_enabled_categories", - "typeSchema": "public", - "primaryKey": false, - "notNull": false - }, - "id": { - "name": "id", - "type": "serial", - "primaryKey": true, - "notNull": true - } - }, - "indexes": { - "cookie_configurations_enabled_categories_order_idx": { - "name": "cookie_configurations_enabled_categories_order_idx", - "columns": [ - { - "expression": "order", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "cookie_configurations_enabled_categories_parent_idx": { - "name": "cookie_configurations_enabled_categories_parent_idx", - "columns": [ - { - "expression": "parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "cookie_configurations_enabled_categories_parent_fk": { - "name": "cookie_configurations_enabled_categories_parent_fk", - "tableFrom": "cookie_configurations_enabled_categories", - "tableTo": "cookie_configurations", - "columnsFrom": [ - "parent_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.cookie_configurations": { - "name": "cookie_configurations", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "serial", - "primaryKey": true, - "notNull": true - }, - "tenant_id": { - "name": "tenant_id", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "title": { - "name": "title", - "type": "varchar", - "primaryKey": false, - "notNull": true, - "default": "'Cookie-Einstellungen'" - }, - "revision": { - "name": "revision", - "type": "numeric", - "primaryKey": false, - "notNull": true, - "default": 1 - }, - "translations_de_banner_title": { - "name": "translations_de_banner_title", - "type": "varchar", - "primaryKey": false, - "notNull": false, - "default": "'Wir respektieren Ihre Privatsphäre'" - }, - "translations_de_banner_description": { - "name": "translations_de_banner_description", - "type": "varchar", - "primaryKey": false, - "notNull": false, - "default": "'Diese Website verwendet Cookies, um Ihnen die bestmögliche Erfahrung zu bieten.'" - }, - "translations_de_accept_all_button": { - "name": "translations_de_accept_all_button", - "type": "varchar", - "primaryKey": false, - "notNull": false, - "default": "'Alle akzeptieren'" - }, - "translations_de_accept_necessary_button": { - "name": "translations_de_accept_necessary_button", - "type": "varchar", - "primaryKey": false, - "notNull": false, - "default": "'Nur notwendige'" - }, - "translations_de_settings_button": { - "name": "translations_de_settings_button", - "type": "varchar", - "primaryKey": false, - "notNull": false, - "default": "'Einstellungen'" - }, - "translations_de_save_button": { - "name": "translations_de_save_button", - "type": "varchar", - "primaryKey": false, - "notNull": false, - "default": "'Auswahl speichern'" - }, - "translations_de_privacy_policy_url": { - "name": "translations_de_privacy_policy_url", - "type": "varchar", - "primaryKey": false, - "notNull": false, - "default": "'/datenschutz'" - }, - "translations_de_category_labels_necessary_title": { - "name": "translations_de_category_labels_necessary_title", - "type": "varchar", - "primaryKey": false, - "notNull": false, - "default": "'Notwendig'" - }, - "translations_de_category_labels_necessary_description": { - "name": "translations_de_category_labels_necessary_description", - "type": "varchar", - "primaryKey": false, - "notNull": false, - "default": "'Diese Cookies sind für die Grundfunktionen der Website erforderlich.'" - }, - "translations_de_category_labels_functional_title": { - "name": "translations_de_category_labels_functional_title", - "type": "varchar", - "primaryKey": false, - "notNull": false, - "default": "'Funktional'" - }, - "translations_de_category_labels_functional_description": { - "name": "translations_de_category_labels_functional_description", - "type": "varchar", - "primaryKey": false, - "notNull": false, - "default": "'Diese Cookies ermöglichen erweiterte Funktionen.'" - }, - "translations_de_category_labels_analytics_title": { - "name": "translations_de_category_labels_analytics_title", - "type": "varchar", - "primaryKey": false, - "notNull": false, - "default": "'Statistik'" - }, - "translations_de_category_labels_analytics_description": { - "name": "translations_de_category_labels_analytics_description", - "type": "varchar", - "primaryKey": false, - "notNull": false, - "default": "'Diese Cookies helfen uns zu verstehen, wie Besucher die Website nutzen.'" - }, - "translations_de_category_labels_marketing_title": { - "name": "translations_de_category_labels_marketing_title", - "type": "varchar", - "primaryKey": false, - "notNull": false, - "default": "'Marketing'" - }, - "translations_de_category_labels_marketing_description": { - "name": "translations_de_category_labels_marketing_description", - "type": "varchar", - "primaryKey": false, - "notNull": false, - "default": "'Diese Cookies werden für Werbezwecke verwendet.'" - }, - "styling_position": { - "name": "styling_position", - "type": "enum_cookie_configurations_styling_position", - "typeSchema": "public", - "primaryKey": false, - "notNull": false, - "default": "'bottom'" - }, - "styling_theme": { - "name": "styling_theme", - "type": "enum_cookie_configurations_styling_theme", - "typeSchema": "public", - "primaryKey": false, - "notNull": false, - "default": "'dark'" - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "created_at": { - "name": "created_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - } - }, - "indexes": { - "cookie_configurations_tenant_idx": { - "name": "cookie_configurations_tenant_idx", - "columns": [ - { - "expression": "tenant_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "cookie_configurations_updated_at_idx": { - "name": "cookie_configurations_updated_at_idx", - "columns": [ - { - "expression": "updated_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "cookie_configurations_created_at_idx": { - "name": "cookie_configurations_created_at_idx", - "columns": [ - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "cookie_configurations_tenant_id_tenants_id_fk": { - "name": "cookie_configurations_tenant_id_tenants_id_fk", - "tableFrom": "cookie_configurations", - "tableTo": "tenants", - "columnsFrom": [ - "tenant_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "set null", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.cookie_inventory": { - "name": "cookie_inventory", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "serial", - "primaryKey": true, - "notNull": true - }, - "tenant_id": { - "name": "tenant_id", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "category": { - "name": "category", - "type": "enum_cookie_inventory_category", - "typeSchema": "public", - "primaryKey": false, - "notNull": true - }, - "duration": { - "name": "duration", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "description": { - "name": "description", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "is_active": { - "name": "is_active", - "type": "boolean", - "primaryKey": false, - "notNull": false, - "default": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "created_at": { - "name": "created_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - } - }, - "indexes": { - "cookie_inventory_tenant_idx": { - "name": "cookie_inventory_tenant_idx", - "columns": [ - { - "expression": "tenant_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "cookie_inventory_updated_at_idx": { - "name": "cookie_inventory_updated_at_idx", - "columns": [ - { - "expression": "updated_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "cookie_inventory_created_at_idx": { - "name": "cookie_inventory_created_at_idx", - "columns": [ - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "cookie_inventory_tenant_id_tenants_id_fk": { - "name": "cookie_inventory_tenant_id_tenants_id_fk", - "tableFrom": "cookie_inventory", - "tableTo": "tenants", - "columnsFrom": [ - "tenant_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "set null", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.consent_logs": { - "name": "consent_logs", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "serial", - "primaryKey": true, - "notNull": true - }, - "consent_id": { - "name": "consent_id", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "client_ref": { - "name": "client_ref", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "tenant_id": { - "name": "tenant_id", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "categories": { - "name": "categories", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "revision": { - "name": "revision", - "type": "numeric", - "primaryKey": false, - "notNull": true - }, - "user_agent": { - "name": "user_agent", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "anonymized_ip": { - "name": "anonymized_ip", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "expires_at": { - "name": "expires_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "created_at": { - "name": "created_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - } - }, - "indexes": { - "consent_logs_consent_id_idx": { - "name": "consent_logs_consent_id_idx", - "columns": [ - { - "expression": "consent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "consent_logs_tenant_idx": { - "name": "consent_logs_tenant_idx", - "columns": [ - { - "expression": "tenant_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "consent_logs_updated_at_idx": { - "name": "consent_logs_updated_at_idx", - "columns": [ - { - "expression": "updated_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "consent_logs_created_at_idx": { - "name": "consent_logs_created_at_idx", - "columns": [ - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "consent_logs_tenant_id_tenants_id_fk": { - "name": "consent_logs_tenant_id_tenants_id_fk", - "tableFrom": "consent_logs", - "tableTo": "tenants", - "columnsFrom": [ - "tenant_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "set null", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.privacy_policy_settings": { - "name": "privacy_policy_settings", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "serial", - "primaryKey": true, - "notNull": true - }, - "tenant_id": { - "name": "tenant_id", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "title": { - "name": "title", - "type": "varchar", - "primaryKey": false, - "notNull": true, - "default": "'Datenschutzerklärung'" - }, - "provider": { - "name": "provider", - "type": "enum_privacy_policy_settings_provider", - "typeSchema": "public", - "primaryKey": false, - "notNull": true, - "default": "'alfright'" - }, - "alfright_tenant_id": { - "name": "alfright_tenant_id", - "type": "varchar", - "primaryKey": false, - "notNull": false, - "default": "'alfright_schutzteam'" - }, - "alfright_api_key": { - "name": "alfright_api_key", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "alfright_language": { - "name": "alfright_language", - "type": "enum_privacy_policy_settings_alfright_language", - "typeSchema": "public", - "primaryKey": false, - "notNull": false, - "default": "'de-de'" - }, - "alfright_iframe_height": { - "name": "alfright_iframe_height", - "type": "numeric", - "primaryKey": false, - "notNull": false, - "default": 4000 - }, - "styling_header_color": { - "name": "styling_header_color", - "type": "varchar", - "primaryKey": false, - "notNull": false, - "default": "'#ca8a04'" - }, - "styling_header_font": { - "name": "styling_header_font", - "type": "varchar", - "primaryKey": false, - "notNull": false, - "default": "'Inter, sans-serif'" - }, - "styling_header_size": { - "name": "styling_header_size", - "type": "varchar", - "primaryKey": false, - "notNull": false, - "default": "'24px'" - }, - "styling_subheader_size": { - "name": "styling_subheader_size", - "type": "varchar", - "primaryKey": false, - "notNull": false, - "default": "'18px'" - }, - "styling_font_color": { - "name": "styling_font_color", - "type": "varchar", - "primaryKey": false, - "notNull": false, - "default": "'#f3f4f6'" - }, - "styling_text_font": { - "name": "styling_text_font", - "type": "varchar", - "primaryKey": false, - "notNull": false, - "default": "'Inter, sans-serif'" - }, - "styling_text_size": { - "name": "styling_text_size", - "type": "varchar", - "primaryKey": false, - "notNull": false, - "default": "'16px'" - }, - "styling_link_color": { - "name": "styling_link_color", - "type": "varchar", - "primaryKey": false, - "notNull": false, - "default": "'#ca8a04'" - }, - "styling_background_color": { - "name": "styling_background_color", - "type": "varchar", - "primaryKey": false, - "notNull": false, - "default": "'#111827'" - }, - "show_cookie_table": { - "name": "show_cookie_table", - "type": "boolean", - "primaryKey": false, - "notNull": false, - "default": true - }, - "cookie_table_title": { - "name": "cookie_table_title", - "type": "varchar", - "primaryKey": false, - "notNull": false, - "default": "'Übersicht der verwendeten Cookies'" - }, - "cookie_table_description": { - "name": "cookie_table_description", - "type": "varchar", - "primaryKey": false, - "notNull": false, - "default": "'Ergänzend zur Datenschutzerklärung finden Sie hier eine detaillierte Übersicht aller auf dieser Website eingesetzten Cookies. Sie können Ihre Cookie-Einstellungen jederzeit über den Link \"Cookie-Einstellungen\" im Footer anpassen.'" - }, - "seo_meta_title": { - "name": "seo_meta_title", - "type": "varchar", - "primaryKey": false, - "notNull": false, - "default": "'Datenschutzerklärung'" - }, - "seo_meta_description": { - "name": "seo_meta_description", - "type": "varchar", - "primaryKey": false, - "notNull": false, - "default": "'Informationen zum Datenschutz und zur Verarbeitung Ihrer personenbezogenen Daten.'" - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "created_at": { - "name": "created_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - } - }, - "indexes": { - "privacy_policy_settings_tenant_idx": { - "name": "privacy_policy_settings_tenant_idx", - "columns": [ - { - "expression": "tenant_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "privacy_policy_settings_updated_at_idx": { - "name": "privacy_policy_settings_updated_at_idx", - "columns": [ - { - "expression": "updated_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "privacy_policy_settings_created_at_idx": { - "name": "privacy_policy_settings_created_at_idx", - "columns": [ - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "privacy_policy_settings_tenant_id_tenants_id_fk": { - "name": "privacy_policy_settings_tenant_id_tenants_id_fk", - "tableFrom": "privacy_policy_settings", - "tableTo": "tenants", - "columnsFrom": [ - "tenant_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "set null", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.forms_blocks_checkbox": { - "name": "forms_blocks_checkbox", - "schema": "", - "columns": { - "_order": { - "name": "_order", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_path": { - "name": "_path", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "varchar", - "primaryKey": true, - "notNull": true - }, - "name": { - "name": "name", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "label": { - "name": "label", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "width": { - "name": "width", - "type": "numeric", - "primaryKey": false, - "notNull": false - }, - "required": { - "name": "required", - "type": "boolean", - "primaryKey": false, - "notNull": false - }, - "default_value": { - "name": "default_value", - "type": "boolean", - "primaryKey": false, - "notNull": false - }, - "block_name": { - "name": "block_name", - "type": "varchar", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "forms_blocks_checkbox_order_idx": { - "name": "forms_blocks_checkbox_order_idx", - "columns": [ - { - "expression": "_order", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "forms_blocks_checkbox_parent_id_idx": { - "name": "forms_blocks_checkbox_parent_id_idx", - "columns": [ - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "forms_blocks_checkbox_path_idx": { - "name": "forms_blocks_checkbox_path_idx", - "columns": [ - { - "expression": "_path", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "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": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.forms_blocks_email": { - "name": "forms_blocks_email", - "schema": "", - "columns": { - "_order": { - "name": "_order", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_path": { - "name": "_path", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "varchar", - "primaryKey": true, - "notNull": true - }, - "name": { - "name": "name", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "label": { - "name": "label", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "width": { - "name": "width", - "type": "numeric", - "primaryKey": false, - "notNull": false - }, - "required": { - "name": "required", - "type": "boolean", - "primaryKey": false, - "notNull": false - }, - "block_name": { - "name": "block_name", - "type": "varchar", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "forms_blocks_email_order_idx": { - "name": "forms_blocks_email_order_idx", - "columns": [ - { - "expression": "_order", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "forms_blocks_email_parent_id_idx": { - "name": "forms_blocks_email_parent_id_idx", - "columns": [ - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "forms_blocks_email_path_idx": { - "name": "forms_blocks_email_path_idx", - "columns": [ - { - "expression": "_path", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "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": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.forms_blocks_message": { - "name": "forms_blocks_message", - "schema": "", - "columns": { - "_order": { - "name": "_order", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_path": { - "name": "_path", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "varchar", - "primaryKey": true, - "notNull": true - }, - "message": { - "name": "message", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "block_name": { - "name": "block_name", - "type": "varchar", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "forms_blocks_message_order_idx": { - "name": "forms_blocks_message_order_idx", - "columns": [ - { - "expression": "_order", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "forms_blocks_message_parent_id_idx": { - "name": "forms_blocks_message_parent_id_idx", - "columns": [ - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "forms_blocks_message_path_idx": { - "name": "forms_blocks_message_path_idx", - "columns": [ - { - "expression": "_path", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "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": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.forms_blocks_number": { - "name": "forms_blocks_number", - "schema": "", - "columns": { - "_order": { - "name": "_order", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_path": { - "name": "_path", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "varchar", - "primaryKey": true, - "notNull": true - }, - "name": { - "name": "name", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "label": { - "name": "label", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "width": { - "name": "width", - "type": "numeric", - "primaryKey": false, - "notNull": false - }, - "default_value": { - "name": "default_value", - "type": "numeric", - "primaryKey": false, - "notNull": false - }, - "required": { - "name": "required", - "type": "boolean", - "primaryKey": false, - "notNull": false - }, - "block_name": { - "name": "block_name", - "type": "varchar", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "forms_blocks_number_order_idx": { - "name": "forms_blocks_number_order_idx", - "columns": [ - { - "expression": "_order", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "forms_blocks_number_parent_id_idx": { - "name": "forms_blocks_number_parent_id_idx", - "columns": [ - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "forms_blocks_number_path_idx": { - "name": "forms_blocks_number_path_idx", - "columns": [ - { - "expression": "_path", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "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": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.forms_blocks_select_options": { - "name": "forms_blocks_select_options", - "schema": "", - "columns": { - "_order": { - "name": "_order", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "varchar", - "primaryKey": true, - "notNull": true - }, - "label": { - "name": "label", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "value": { - "name": "value", - "type": "varchar", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "forms_blocks_select_options_order_idx": { - "name": "forms_blocks_select_options_order_idx", - "columns": [ - { - "expression": "_order", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "forms_blocks_select_options_parent_id_idx": { - "name": "forms_blocks_select_options_parent_id_idx", - "columns": [ - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "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": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.forms_blocks_select": { - "name": "forms_blocks_select", - "schema": "", - "columns": { - "_order": { - "name": "_order", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_path": { - "name": "_path", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "varchar", - "primaryKey": true, - "notNull": true - }, - "name": { - "name": "name", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "label": { - "name": "label", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "width": { - "name": "width", - "type": "numeric", - "primaryKey": false, - "notNull": false - }, - "default_value": { - "name": "default_value", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "placeholder": { - "name": "placeholder", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "required": { - "name": "required", - "type": "boolean", - "primaryKey": false, - "notNull": false - }, - "block_name": { - "name": "block_name", - "type": "varchar", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "forms_blocks_select_order_idx": { - "name": "forms_blocks_select_order_idx", - "columns": [ - { - "expression": "_order", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "forms_blocks_select_parent_id_idx": { - "name": "forms_blocks_select_parent_id_idx", - "columns": [ - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "forms_blocks_select_path_idx": { - "name": "forms_blocks_select_path_idx", - "columns": [ - { - "expression": "_path", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "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": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.forms_blocks_text": { - "name": "forms_blocks_text", - "schema": "", - "columns": { - "_order": { - "name": "_order", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_path": { - "name": "_path", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "varchar", - "primaryKey": true, - "notNull": true - }, - "name": { - "name": "name", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "label": { - "name": "label", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "width": { - "name": "width", - "type": "numeric", - "primaryKey": false, - "notNull": false - }, - "default_value": { - "name": "default_value", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "required": { - "name": "required", - "type": "boolean", - "primaryKey": false, - "notNull": false - }, - "block_name": { - "name": "block_name", - "type": "varchar", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "forms_blocks_text_order_idx": { - "name": "forms_blocks_text_order_idx", - "columns": [ - { - "expression": "_order", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "forms_blocks_text_parent_id_idx": { - "name": "forms_blocks_text_parent_id_idx", - "columns": [ - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "forms_blocks_text_path_idx": { - "name": "forms_blocks_text_path_idx", - "columns": [ - { - "expression": "_path", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "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": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.forms_blocks_textarea": { - "name": "forms_blocks_textarea", - "schema": "", - "columns": { - "_order": { - "name": "_order", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_path": { - "name": "_path", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "varchar", - "primaryKey": true, - "notNull": true - }, - "name": { - "name": "name", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "label": { - "name": "label", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "width": { - "name": "width", - "type": "numeric", - "primaryKey": false, - "notNull": false - }, - "default_value": { - "name": "default_value", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "required": { - "name": "required", - "type": "boolean", - "primaryKey": false, - "notNull": false - }, - "block_name": { - "name": "block_name", - "type": "varchar", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "forms_blocks_textarea_order_idx": { - "name": "forms_blocks_textarea_order_idx", - "columns": [ - { - "expression": "_order", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "forms_blocks_textarea_parent_id_idx": { - "name": "forms_blocks_textarea_parent_id_idx", - "columns": [ - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "forms_blocks_textarea_path_idx": { - "name": "forms_blocks_textarea_path_idx", - "columns": [ - { - "expression": "_path", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "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": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.forms_emails": { - "name": "forms_emails", - "schema": "", - "columns": { - "_order": { - "name": "_order", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "varchar", - "primaryKey": true, - "notNull": true - }, - "email_to": { - "name": "email_to", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "cc": { - "name": "cc", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "bcc": { - "name": "bcc", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "reply_to": { - "name": "reply_to", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "email_from": { - "name": "email_from", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "subject": { - "name": "subject", - "type": "varchar", - "primaryKey": false, - "notNull": true, - "default": "'You''ve received a new message.'" - }, - "message": { - "name": "message", - "type": "jsonb", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "forms_emails_order_idx": { - "name": "forms_emails_order_idx", - "columns": [ - { - "expression": "_order", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "forms_emails_parent_id_idx": { - "name": "forms_emails_parent_id_idx", - "columns": [ - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "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": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.forms": { - "name": "forms", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "serial", - "primaryKey": true, - "notNull": true - }, - "title": { - "name": "title", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "submit_button_label": { - "name": "submit_button_label", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "confirmation_type": { - "name": "confirmation_type", - "type": "enum_forms_confirmation_type", - "typeSchema": "public", - "primaryKey": false, - "notNull": false, - "default": "'message'" - }, - "confirmation_message": { - "name": "confirmation_message", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "redirect_url": { - "name": "redirect_url", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "created_at": { - "name": "created_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - } - }, - "indexes": { - "forms_updated_at_idx": { - "name": "forms_updated_at_idx", - "columns": [ - { - "expression": "updated_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "forms_created_at_idx": { - "name": "forms_created_at_idx", - "columns": [ - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.form_submissions_submission_data": { - "name": "form_submissions_submission_data", - "schema": "", - "columns": { - "_order": { - "name": "_order", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "varchar", - "primaryKey": true, - "notNull": true - }, - "field": { - "name": "field", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "value": { - "name": "value", - "type": "varchar", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "form_submissions_submission_data_order_idx": { - "name": "form_submissions_submission_data_order_idx", - "columns": [ - { - "expression": "_order", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "form_submissions_submission_data_parent_id_idx": { - "name": "form_submissions_submission_data_parent_id_idx", - "columns": [ - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "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": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.form_submissions": { - "name": "form_submissions", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "serial", - "primaryKey": true, - "notNull": true - }, - "form_id": { - "name": "form_id", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "created_at": { - "name": "created_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - } - }, - "indexes": { - "form_submissions_form_idx": { - "name": "form_submissions_form_idx", - "columns": [ - { - "expression": "form_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "form_submissions_updated_at_idx": { - "name": "form_submissions_updated_at_idx", - "columns": [ - { - "expression": "updated_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "form_submissions_created_at_idx": { - "name": "form_submissions_created_at_idx", - "columns": [ - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "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" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.redirects": { - "name": "redirects", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "serial", - "primaryKey": true, - "notNull": true - }, - "from": { - "name": "from", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "to_type": { - "name": "to_type", - "type": "enum_redirects_to_type", - "typeSchema": "public", - "primaryKey": false, - "notNull": false, - "default": "'reference'" - }, - "to_url": { - "name": "to_url", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "created_at": { - "name": "created_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - } - }, - "indexes": { - "redirects_from_idx": { - "name": "redirects_from_idx", - "columns": [ - { - "expression": "from", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "redirects_updated_at_idx": { - "name": "redirects_updated_at_idx", - "columns": [ - { - "expression": "updated_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "redirects_created_at_idx": { - "name": "redirects_created_at_idx", - "columns": [ - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.payload_kv": { - "name": "payload_kv", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "serial", - "primaryKey": true, - "notNull": true - }, - "key": { - "name": "key", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "data": { - "name": "data", - "type": "jsonb", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "payload_kv_key_idx": { - "name": "payload_kv_key_idx", - "columns": [ - { - "expression": "key", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.payload_locked_documents": { - "name": "payload_locked_documents", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "serial", - "primaryKey": true, - "notNull": true - }, - "global_slug": { - "name": "global_slug", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "created_at": { - "name": "created_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - } - }, - "indexes": { - "payload_locked_documents_global_slug_idx": { - "name": "payload_locked_documents_global_slug_idx", - "columns": [ - { - "expression": "global_slug", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "payload_locked_documents_updated_at_idx": { - "name": "payload_locked_documents_updated_at_idx", - "columns": [ - { - "expression": "updated_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "payload_locked_documents_created_at_idx": { - "name": "payload_locked_documents_created_at_idx", - "columns": [ - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.payload_locked_documents_rels": { - "name": "payload_locked_documents_rels", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "serial", - "primaryKey": true, - "notNull": true - }, - "order": { - "name": "order", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "parent_id": { - "name": "parent_id", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "path": { - "name": "path", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "users_id": { - "name": "users_id", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "media_id": { - "name": "media_id", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "tenants_id": { - "name": "tenants_id", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "pages_id": { - "name": "pages_id", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "posts_id": { - "name": "posts_id", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "categories_id": { - "name": "categories_id", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "social_links_id": { - "name": "social_links_id", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "cookie_configurations_id": { - "name": "cookie_configurations_id", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "cookie_inventory_id": { - "name": "cookie_inventory_id", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "consent_logs_id": { - "name": "consent_logs_id", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "privacy_policy_settings_id": { - "name": "privacy_policy_settings_id", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "forms_id": { - "name": "forms_id", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "form_submissions_id": { - "name": "form_submissions_id", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "redirects_id": { - "name": "redirects_id", - "type": "integer", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "payload_locked_documents_rels_order_idx": { - "name": "payload_locked_documents_rels_order_idx", - "columns": [ - { - "expression": "order", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "payload_locked_documents_rels_parent_idx": { - "name": "payload_locked_documents_rels_parent_idx", - "columns": [ - { - "expression": "parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "payload_locked_documents_rels_path_idx": { - "name": "payload_locked_documents_rels_path_idx", - "columns": [ - { - "expression": "path", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "payload_locked_documents_rels_users_id_idx": { - "name": "payload_locked_documents_rels_users_id_idx", - "columns": [ - { - "expression": "users_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "payload_locked_documents_rels_media_id_idx": { - "name": "payload_locked_documents_rels_media_id_idx", - "columns": [ - { - "expression": "media_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "payload_locked_documents_rels_tenants_id_idx": { - "name": "payload_locked_documents_rels_tenants_id_idx", - "columns": [ - { - "expression": "tenants_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "payload_locked_documents_rels_pages_id_idx": { - "name": "payload_locked_documents_rels_pages_id_idx", - "columns": [ - { - "expression": "pages_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "payload_locked_documents_rels_posts_id_idx": { - "name": "payload_locked_documents_rels_posts_id_idx", - "columns": [ - { - "expression": "posts_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "payload_locked_documents_rels_categories_id_idx": { - "name": "payload_locked_documents_rels_categories_id_idx", - "columns": [ - { - "expression": "categories_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "payload_locked_documents_rels_social_links_id_idx": { - "name": "payload_locked_documents_rels_social_links_id_idx", - "columns": [ - { - "expression": "social_links_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "payload_locked_documents_rels_cookie_configurations_id_idx": { - "name": "payload_locked_documents_rels_cookie_configurations_id_idx", - "columns": [ - { - "expression": "cookie_configurations_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "payload_locked_documents_rels_cookie_inventory_id_idx": { - "name": "payload_locked_documents_rels_cookie_inventory_id_idx", - "columns": [ - { - "expression": "cookie_inventory_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "payload_locked_documents_rels_consent_logs_id_idx": { - "name": "payload_locked_documents_rels_consent_logs_id_idx", - "columns": [ - { - "expression": "consent_logs_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "payload_locked_documents_rels_privacy_policy_settings_id_idx": { - "name": "payload_locked_documents_rels_privacy_policy_settings_id_idx", - "columns": [ - { - "expression": "privacy_policy_settings_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "payload_locked_documents_rels_forms_id_idx": { - "name": "payload_locked_documents_rels_forms_id_idx", - "columns": [ - { - "expression": "forms_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "payload_locked_documents_rels_form_submissions_id_idx": { - "name": "payload_locked_documents_rels_form_submissions_id_idx", - "columns": [ - { - "expression": "form_submissions_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "payload_locked_documents_rels_redirects_id_idx": { - "name": "payload_locked_documents_rels_redirects_id_idx", - "columns": [ - { - "expression": "redirects_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "payload_locked_documents_rels_parent_fk": { - "name": "payload_locked_documents_rels_parent_fk", - "tableFrom": "payload_locked_documents_rels", - "tableTo": "payload_locked_documents", - "columnsFrom": [ - "parent_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - }, - "payload_locked_documents_rels_users_fk": { - "name": "payload_locked_documents_rels_users_fk", - "tableFrom": "payload_locked_documents_rels", - "tableTo": "users", - "columnsFrom": [ - "users_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - }, - "payload_locked_documents_rels_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_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_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_categories_fk": { - "name": "payload_locked_documents_rels_categories_fk", - "tableFrom": "payload_locked_documents_rels", - "tableTo": "categories", - "columnsFrom": [ - "categories_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - }, - "payload_locked_documents_rels_social_links_fk": { - "name": "payload_locked_documents_rels_social_links_fk", - "tableFrom": "payload_locked_documents_rels", - "tableTo": "social_links", - "columnsFrom": [ - "social_links_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - }, - "payload_locked_documents_rels_cookie_configurations_fk": { - "name": "payload_locked_documents_rels_cookie_configurations_fk", - "tableFrom": "payload_locked_documents_rels", - "tableTo": "cookie_configurations", - "columnsFrom": [ - "cookie_configurations_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - }, - "payload_locked_documents_rels_cookie_inventory_fk": { - "name": "payload_locked_documents_rels_cookie_inventory_fk", - "tableFrom": "payload_locked_documents_rels", - "tableTo": "cookie_inventory", - "columnsFrom": [ - "cookie_inventory_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - }, - "payload_locked_documents_rels_consent_logs_fk": { - "name": "payload_locked_documents_rels_consent_logs_fk", - "tableFrom": "payload_locked_documents_rels", - "tableTo": "consent_logs", - "columnsFrom": [ - "consent_logs_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - }, - "payload_locked_documents_rels_privacy_policy_settings_fk": { - "name": "payload_locked_documents_rels_privacy_policy_settings_fk", - "tableFrom": "payload_locked_documents_rels", - "tableTo": "privacy_policy_settings", - "columnsFrom": [ - "privacy_policy_settings_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" - }, - "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" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.payload_preferences": { - "name": "payload_preferences", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "serial", - "primaryKey": true, - "notNull": true - }, - "key": { - "name": "key", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "value": { - "name": "value", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "created_at": { - "name": "created_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - } - }, - "indexes": { - "payload_preferences_key_idx": { - "name": "payload_preferences_key_idx", - "columns": [ - { - "expression": "key", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "payload_preferences_updated_at_idx": { - "name": "payload_preferences_updated_at_idx", - "columns": [ - { - "expression": "updated_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "payload_preferences_created_at_idx": { - "name": "payload_preferences_created_at_idx", - "columns": [ - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.payload_preferences_rels": { - "name": "payload_preferences_rels", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "serial", - "primaryKey": true, - "notNull": true - }, - "order": { - "name": "order", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "parent_id": { - "name": "parent_id", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "path": { - "name": "path", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "users_id": { - "name": "users_id", - "type": "integer", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "payload_preferences_rels_order_idx": { - "name": "payload_preferences_rels_order_idx", - "columns": [ - { - "expression": "order", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "payload_preferences_rels_parent_idx": { - "name": "payload_preferences_rels_parent_idx", - "columns": [ - { - "expression": "parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "payload_preferences_rels_path_idx": { - "name": "payload_preferences_rels_path_idx", - "columns": [ - { - "expression": "path", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "payload_preferences_rels_users_id_idx": { - "name": "payload_preferences_rels_users_id_idx", - "columns": [ - { - "expression": "users_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "payload_preferences_rels_parent_fk": { - "name": "payload_preferences_rels_parent_fk", - "tableFrom": "payload_preferences_rels", - "tableTo": "payload_preferences", - "columnsFrom": [ - "parent_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - }, - "payload_preferences_rels_users_fk": { - "name": "payload_preferences_rels_users_fk", - "tableFrom": "payload_preferences_rels", - "tableTo": "users", - "columnsFrom": [ - "users_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.payload_migrations": { - "name": "payload_migrations", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "serial", - "primaryKey": true, - "notNull": true - }, - "name": { - "name": "name", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "batch": { - "name": "batch", - "type": "numeric", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "created_at": { - "name": "created_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - } - }, - "indexes": { - "payload_migrations_updated_at_idx": { - "name": "payload_migrations_updated_at_idx", - "columns": [ - { - "expression": "updated_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "payload_migrations_created_at_idx": { - "name": "payload_migrations_created_at_idx", - "columns": [ - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.site_settings": { - "name": "site_settings", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "serial", - "primaryKey": true, - "notNull": true - }, - "site_name": { - "name": "site_name", - "type": "varchar", - "primaryKey": false, - "notNull": false, - "default": "'porwoll.de'" - }, - "site_tagline": { - "name": "site_tagline", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "logo_id": { - "name": "logo_id", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "favicon_id": { - "name": "favicon_id", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "contact_email": { - "name": "contact_email", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "contact_phone": { - "name": "contact_phone", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "contact_address": { - "name": "contact_address", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "footer_copyright_text": { - "name": "footer_copyright_text", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "footer_show_social_links": { - "name": "footer_show_social_links", - "type": "boolean", - "primaryKey": false, - "notNull": false, - "default": true - }, - "seo_default_meta_title": { - "name": "seo_default_meta_title", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "seo_default_meta_description": { - "name": "seo_default_meta_description", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "seo_default_og_image_id": { - "name": "seo_default_og_image_id", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "site_settings_logo_idx": { - "name": "site_settings_logo_idx", - "columns": [ - { - "expression": "logo_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "site_settings_favicon_idx": { - "name": "site_settings_favicon_idx", - "columns": [ - { - "expression": "favicon_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "site_settings_seo_seo_default_og_image_idx": { - "name": "site_settings_seo_seo_default_og_image_idx", - "columns": [ - { - "expression": "seo_default_og_image_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "site_settings_logo_id_media_id_fk": { - "name": "site_settings_logo_id_media_id_fk", - "tableFrom": "site_settings", - "tableTo": "media", - "columnsFrom": [ - "logo_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "set null", - "onUpdate": "no action" - }, - "site_settings_favicon_id_media_id_fk": { - "name": "site_settings_favicon_id_media_id_fk", - "tableFrom": "site_settings", - "tableTo": "media", - "columnsFrom": [ - "favicon_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "set null", - "onUpdate": "no action" - }, - "site_settings_seo_default_og_image_id_media_id_fk": { - "name": "site_settings_seo_default_og_image_id_media_id_fk", - "tableFrom": "site_settings", - "tableTo": "media", - "columnsFrom": [ - "seo_default_og_image_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "set null", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.navigation_main_menu_submenu": { - "name": "navigation_main_menu_submenu", - "schema": "", - "columns": { - "_order": { - "name": "_order", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "varchar", - "primaryKey": true, - "notNull": true - }, - "label": { - "name": "label", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "link_type": { - "name": "link_type", - "type": "enum_navigation_main_menu_submenu_link_type", - "typeSchema": "public", - "primaryKey": false, - "notNull": false, - "default": "'page'" - }, - "page_id": { - "name": "page_id", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "url": { - "name": "url", - "type": "varchar", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "navigation_main_menu_submenu_order_idx": { - "name": "navigation_main_menu_submenu_order_idx", - "columns": [ - { - "expression": "_order", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "navigation_main_menu_submenu_parent_id_idx": { - "name": "navigation_main_menu_submenu_parent_id_idx", - "columns": [ - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "navigation_main_menu_submenu_page_idx": { - "name": "navigation_main_menu_submenu_page_idx", - "columns": [ - { - "expression": "page_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "navigation_main_menu_submenu_page_id_pages_id_fk": { - "name": "navigation_main_menu_submenu_page_id_pages_id_fk", - "tableFrom": "navigation_main_menu_submenu", - "tableTo": "pages", - "columnsFrom": [ - "page_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "set null", - "onUpdate": "no action" - }, - "navigation_main_menu_submenu_parent_id_fk": { - "name": "navigation_main_menu_submenu_parent_id_fk", - "tableFrom": "navigation_main_menu_submenu", - "tableTo": "navigation_main_menu", - "columnsFrom": [ - "_parent_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.navigation_main_menu": { - "name": "navigation_main_menu", - "schema": "", - "columns": { - "_order": { - "name": "_order", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "varchar", - "primaryKey": true, - "notNull": true - }, - "label": { - "name": "label", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "type": { - "name": "type", - "type": "enum_navigation_main_menu_type", - "typeSchema": "public", - "primaryKey": false, - "notNull": false, - "default": "'page'" - }, - "page_id": { - "name": "page_id", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "url": { - "name": "url", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "open_in_new_tab": { - "name": "open_in_new_tab", - "type": "boolean", - "primaryKey": false, - "notNull": false, - "default": false - } - }, - "indexes": { - "navigation_main_menu_order_idx": { - "name": "navigation_main_menu_order_idx", - "columns": [ - { - "expression": "_order", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "navigation_main_menu_parent_id_idx": { - "name": "navigation_main_menu_parent_id_idx", - "columns": [ - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "navigation_main_menu_page_idx": { - "name": "navigation_main_menu_page_idx", - "columns": [ - { - "expression": "page_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "navigation_main_menu_page_id_pages_id_fk": { - "name": "navigation_main_menu_page_id_pages_id_fk", - "tableFrom": "navigation_main_menu", - "tableTo": "pages", - "columnsFrom": [ - "page_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "set null", - "onUpdate": "no action" - }, - "navigation_main_menu_parent_id_fk": { - "name": "navigation_main_menu_parent_id_fk", - "tableFrom": "navigation_main_menu", - "tableTo": "navigation", - "columnsFrom": [ - "_parent_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.navigation_footer_menu": { - "name": "navigation_footer_menu", - "schema": "", - "columns": { - "_order": { - "name": "_order", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "varchar", - "primaryKey": true, - "notNull": true - }, - "label": { - "name": "label", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "link_type": { - "name": "link_type", - "type": "enum_navigation_footer_menu_link_type", - "typeSchema": "public", - "primaryKey": false, - "notNull": false, - "default": "'page'" - }, - "page_id": { - "name": "page_id", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "url": { - "name": "url", - "type": "varchar", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "navigation_footer_menu_order_idx": { - "name": "navigation_footer_menu_order_idx", - "columns": [ - { - "expression": "_order", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "navigation_footer_menu_parent_id_idx": { - "name": "navigation_footer_menu_parent_id_idx", - "columns": [ - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "navigation_footer_menu_page_idx": { - "name": "navigation_footer_menu_page_idx", - "columns": [ - { - "expression": "page_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "navigation_footer_menu_page_id_pages_id_fk": { - "name": "navigation_footer_menu_page_id_pages_id_fk", - "tableFrom": "navigation_footer_menu", - "tableTo": "pages", - "columnsFrom": [ - "page_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "set null", - "onUpdate": "no action" - }, - "navigation_footer_menu_parent_id_fk": { - "name": "navigation_footer_menu_parent_id_fk", - "tableFrom": "navigation_footer_menu", - "tableTo": "navigation", - "columnsFrom": [ - "_parent_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.navigation": { - "name": "navigation", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "serial", - "primaryKey": true, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": false - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - } - }, - "enums": { - "public.enum_pages_blocks_hero_block_alignment": { - "name": "enum_pages_blocks_hero_block_alignment", - "schema": "public", - "values": [ - "left", - "center", - "right" - ] - }, - "public.enum_pages_blocks_hero_block_cta_style": { - "name": "enum_pages_blocks_hero_block_cta_style", - "schema": "public", - "values": [ - "primary", - "secondary", - "outline" - ] - }, - "public.enum_pages_blocks_text_block_width": { - "name": "enum_pages_blocks_text_block_width", - "schema": "public", - "values": [ - "narrow", - "medium", - "full" - ] - }, - "public.enum_pages_blocks_image_text_block_image_position": { - "name": "enum_pages_blocks_image_text_block_image_position", - "schema": "public", - "values": [ - "left", - "right" - ] - }, - "public.enum_pages_blocks_card_grid_block_columns": { - "name": "enum_pages_blocks_card_grid_block_columns", - "schema": "public", - "values": [ - "2", - "3", - "4" - ] - }, - "public.enum_pages_blocks_quote_block_style": { - "name": "enum_pages_blocks_quote_block_style", - "schema": "public", - "values": [ - "simple", - "highlighted", - "with-image" - ] - }, - "public.enum_pages_blocks_cta_block_buttons_style": { - "name": "enum_pages_blocks_cta_block_buttons_style", - "schema": "public", - "values": [ - "primary", - "secondary", - "outline" - ] - }, - "public.enum_pages_blocks_cta_block_background_color": { - "name": "enum_pages_blocks_cta_block_background_color", - "schema": "public", - "values": [ - "dark", - "light", - "accent" - ] - }, - "public.enum_pages_blocks_divider_block_style": { - "name": "enum_pages_blocks_divider_block_style", - "schema": "public", - "values": [ - "line", - "space", - "dots" - ] - }, - "public.enum_pages_blocks_divider_block_spacing": { - "name": "enum_pages_blocks_divider_block_spacing", - "schema": "public", - "values": [ - "small", - "medium", - "large" - ] - }, - "public.enum_pages_blocks_video_block_aspect_ratio": { - "name": "enum_pages_blocks_video_block_aspect_ratio", - "schema": "public", - "values": [ - "16:9", - "4:3", - "1:1" - ] - }, - "public.enum_pages_status": { - "name": "enum_pages_status", - "schema": "public", - "values": [ - "draft", - "published" - ] - }, - "public.enum_posts_status": { - "name": "enum_posts_status", - "schema": "public", - "values": [ - "draft", - "published" - ] - }, - "public.enum_social_links_platform": { - "name": "enum_social_links_platform", - "schema": "public", - "values": [ - "facebook", - "x", - "instagram", - "youtube", - "linkedin", - "xing" - ] - }, - "public.enum_cookie_configurations_enabled_categories": { - "name": "enum_cookie_configurations_enabled_categories", - "schema": "public", - "values": [ - "necessary", - "functional", - "analytics", - "marketing" - ] - }, - "public.enum_cookie_configurations_styling_position": { - "name": "enum_cookie_configurations_styling_position", - "schema": "public", - "values": [ - "bottom", - "top", - "middle" - ] - }, - "public.enum_cookie_configurations_styling_theme": { - "name": "enum_cookie_configurations_styling_theme", - "schema": "public", - "values": [ - "dark", - "light", - "auto" - ] - }, - "public.enum_cookie_inventory_category": { - "name": "enum_cookie_inventory_category", - "schema": "public", - "values": [ - "necessary", - "functional", - "analytics", - "marketing" - ] - }, - "public.enum_privacy_policy_settings_provider": { - "name": "enum_privacy_policy_settings_provider", - "schema": "public", - "values": [ - "alfright", - "internal" - ] - }, - "public.enum_privacy_policy_settings_alfright_language": { - "name": "enum_privacy_policy_settings_alfright_language", - "schema": "public", - "values": [ - "de-de", - "de-at", - "de-ch", - "en-gb", - "en-us" - ] - }, - "public.enum_forms_confirmation_type": { - "name": "enum_forms_confirmation_type", - "schema": "public", - "values": [ - "message", - "redirect" - ] - }, - "public.enum_redirects_to_type": { - "name": "enum_redirects_to_type", - "schema": "public", - "values": [ - "reference", - "custom" - ] - }, - "public.enum_navigation_main_menu_submenu_link_type": { - "name": "enum_navigation_main_menu_submenu_link_type", - "schema": "public", - "values": [ - "page", - "custom" - ] - }, - "public.enum_navigation_main_menu_type": { - "name": "enum_navigation_main_menu_type", - "schema": "public", - "values": [ - "page", - "custom", - "submenu" - ] - }, - "public.enum_navigation_footer_menu_link_type": { - "name": "enum_navigation_footer_menu_link_type", - "schema": "public", - "values": [ - "page", - "custom" - ] - } - }, - "schemas": {}, - "sequences": {}, - "roles": {}, - "policies": {}, - "views": {}, - "_meta": { - "schemas": {}, - "tables": {}, - "columns": {} - }, - "id": "98b30a0b-a92d-4d99-a679-eee2af436594", - "prevId": "00000000-0000-0000-0000-000000000000" -} \ No newline at end of file diff --git a/src/migrations_backup/20251128_142608.ts b/src/migrations_backup/20251128_142608.ts deleted file mode 100644 index eea21e4..0000000 --- a/src/migrations_backup/20251128_142608.ts +++ /dev/null @@ -1,61 +0,0 @@ -import { MigrateUpArgs, MigrateDownArgs, sql } from '@payloadcms/db-postgres' - -export async function up({ db, payload, req }: MigrateUpArgs): Promise { - await db.execute(sql` - CREATE TYPE "public"."enum_privacy_policy_settings_provider" AS ENUM('alfright', 'internal'); - CREATE TYPE "public"."enum_privacy_policy_settings_alfright_language" AS ENUM('de-de', 'de-at', 'de-ch', 'en-gb', 'en-us'); - CREATE TABLE "privacy_policy_settings" ( - "id" serial PRIMARY KEY NOT NULL, - "tenant_id" integer NOT NULL, - "title" varchar DEFAULT 'Datenschutzerklärung' NOT NULL, - "provider" "enum_privacy_policy_settings_provider" DEFAULT 'alfright' NOT NULL, - "alfright_tenant_id" varchar DEFAULT 'alfright_schutzteam', - "alfright_api_key" varchar, - "alfright_language" "enum_privacy_policy_settings_alfright_language" DEFAULT 'de-de', - "alfright_iframe_height" numeric DEFAULT 4000, - "styling_header_color" varchar DEFAULT '#ca8a04', - "styling_header_font" varchar DEFAULT 'Inter, sans-serif', - "styling_header_size" varchar DEFAULT '24px', - "styling_subheader_size" varchar DEFAULT '18px', - "styling_font_color" varchar DEFAULT '#f3f4f6', - "styling_text_font" varchar DEFAULT 'Inter, sans-serif', - "styling_text_size" varchar DEFAULT '16px', - "styling_link_color" varchar DEFAULT '#ca8a04', - "styling_background_color" varchar DEFAULT '#111827', - "show_cookie_table" boolean DEFAULT true, - "cookie_table_title" varchar DEFAULT 'Übersicht der verwendeten Cookies', - "cookie_table_description" varchar DEFAULT 'Ergänzend zur Datenschutzerklärung finden Sie hier eine detaillierte Übersicht aller auf dieser Website eingesetzten Cookies. Sie können Ihre Cookie-Einstellungen jederzeit über den Link "Cookie-Einstellungen" im Footer anpassen.', - "seo_meta_title" varchar DEFAULT 'Datenschutzerklärung', - "seo_meta_description" varchar DEFAULT 'Informationen zum Datenschutz und zur Verarbeitung Ihrer personenbezogenen Daten.', - "updated_at" timestamp(3) with time zone DEFAULT now() NOT NULL, - "created_at" timestamp(3) with time zone DEFAULT now() NOT NULL - ); - - ALTER TABLE "cookie_configurations" ALTER COLUMN "translations_de_banner_description" SET DEFAULT 'Diese Website verwendet Cookies, um Ihnen die bestmögliche Erfahrung zu bieten.'; - ALTER TABLE "cookie_configurations" ALTER COLUMN "translations_de_category_labels_functional_description" SET DEFAULT 'Diese Cookies ermöglichen erweiterte Funktionen.'; - ALTER TABLE "cookie_configurations" ALTER COLUMN "translations_de_category_labels_analytics_description" SET DEFAULT 'Diese Cookies helfen uns zu verstehen, wie Besucher die Website nutzen.'; - ALTER TABLE "cookie_configurations" ALTER COLUMN "translations_de_category_labels_marketing_description" SET DEFAULT 'Diese Cookies werden für Werbezwecke verwendet.'; - ALTER TABLE "payload_locked_documents_rels" ADD COLUMN "privacy_policy_settings_id" integer; - ALTER TABLE "privacy_policy_settings" ADD CONSTRAINT "privacy_policy_settings_tenant_id_tenants_id_fk" FOREIGN KEY ("tenant_id") REFERENCES "public"."tenants"("id") ON DELETE set null ON UPDATE no action; - CREATE UNIQUE INDEX "privacy_policy_settings_tenant_idx" ON "privacy_policy_settings" USING btree ("tenant_id"); - CREATE INDEX "privacy_policy_settings_updated_at_idx" ON "privacy_policy_settings" USING btree ("updated_at"); - CREATE INDEX "privacy_policy_settings_created_at_idx" ON "privacy_policy_settings" USING btree ("created_at"); - ALTER TABLE "payload_locked_documents_rels" ADD CONSTRAINT "payload_locked_documents_rels_privacy_policy_settings_fk" FOREIGN KEY ("privacy_policy_settings_id") REFERENCES "public"."privacy_policy_settings"("id") ON DELETE cascade ON UPDATE no action; - CREATE INDEX "payload_locked_documents_rels_privacy_policy_settings_id_idx" ON "payload_locked_documents_rels" USING btree ("privacy_policy_settings_id");`) -} - -export async function down({ db, payload, req }: MigrateDownArgs): Promise { - await db.execute(sql` - ALTER TABLE "privacy_policy_settings" DISABLE ROW LEVEL SECURITY; - DROP TABLE "privacy_policy_settings" CASCADE; - ALTER TABLE "payload_locked_documents_rels" DROP CONSTRAINT "payload_locked_documents_rels_privacy_policy_settings_fk"; - - DROP INDEX "payload_locked_documents_rels_privacy_policy_settings_id_idx"; - ALTER TABLE "cookie_configurations" ALTER COLUMN "translations_de_banner_description" SET DEFAULT 'Diese Website verwendet Cookies, um Ihnen die bestmögliche Erfahrung zu bieten. Sie können Ihre Einstellungen jederzeit anpassen.'; - ALTER TABLE "cookie_configurations" ALTER COLUMN "translations_de_category_labels_functional_description" SET DEFAULT 'Diese Cookies ermöglichen erweiterte Funktionen und Personalisierung.'; - ALTER TABLE "cookie_configurations" ALTER COLUMN "translations_de_category_labels_analytics_description" SET DEFAULT 'Diese Cookies helfen uns zu verstehen, wie Besucher mit der Website interagieren.'; - ALTER TABLE "cookie_configurations" ALTER COLUMN "translations_de_category_labels_marketing_description" SET DEFAULT 'Diese Cookies werden verwendet, um Werbung relevanter für Sie zu gestalten.'; - ALTER TABLE "payload_locked_documents_rels" DROP COLUMN "privacy_policy_settings_id"; - DROP TYPE "public"."enum_privacy_policy_settings_provider"; - DROP TYPE "public"."enum_privacy_policy_settings_alfright_language";`) -} diff --git a/src/migrations_backup/20251130_135459.ts b/src/migrations_backup/20251130_135459.ts deleted file mode 100644 index 64fc1bd..0000000 --- a/src/migrations_backup/20251130_135459.ts +++ /dev/null @@ -1,170 +0,0 @@ -import { MigrateUpArgs, MigrateDownArgs, sql } from '@payloadcms/db-postgres' - -export async function up({ db, payload, req }: MigrateUpArgs): Promise { - await db.execute(sql` - -- ENUMs für neue Collections - CREATE TYPE "public"."enum_posts_type" AS ENUM('blog', 'news', 'press', 'announcement'); - CREATE TYPE "public"."enum_newsletter_subscribers_status" AS ENUM('pending', 'confirmed', 'unsubscribed', 'bounced'); - - -- Testimonials Collection - CREATE TABLE IF NOT EXISTS "testimonials" ( - "id" serial PRIMARY KEY NOT NULL, - "tenant_id" integer, - "quote" varchar NOT NULL, - "author" varchar NOT NULL, - "role" varchar, - "company" varchar, - "image_id" integer, - "rating" numeric, - "source" varchar, - "source_url" varchar, - "date" timestamp(3) with time zone, - "is_active" boolean DEFAULT true, - "order" integer DEFAULT 0, - "updated_at" timestamp(3) with time zone DEFAULT now() NOT NULL, - "created_at" timestamp(3) with time zone DEFAULT now() NOT NULL - ); - - CREATE INDEX IF NOT EXISTS "testimonials_tenant_idx" ON "testimonials" USING btree ("tenant_id"); - CREATE INDEX IF NOT EXISTS "testimonials_created_at_idx" ON "testimonials" USING btree ("created_at"); - CREATE INDEX IF NOT EXISTS "testimonials_updated_at_idx" ON "testimonials" USING btree ("updated_at"); - - ALTER TABLE "testimonials" ADD CONSTRAINT "testimonials_tenant_id_tenants_id_fk" FOREIGN KEY ("tenant_id") REFERENCES "public"."tenants"("id") ON DELETE set null ON UPDATE no action; - ALTER TABLE "testimonials" ADD CONSTRAINT "testimonials_image_id_media_id_fk" FOREIGN KEY ("image_id") REFERENCES "public"."media"("id") ON DELETE set null ON UPDATE no action; - - -- Newsletter Subscribers Collection - CREATE TABLE IF NOT EXISTS "newsletter_subscribers" ( - "id" serial PRIMARY KEY NOT NULL, - "tenant_id" integer, - "email" varchar NOT NULL, - "first_name" varchar, - "last_name" varchar, - "status" "enum_newsletter_subscribers_status" DEFAULT 'pending', - "source" varchar, - "subscribed_at" timestamp(3) with time zone, - "confirmed_at" timestamp(3) with time zone, - "unsubscribed_at" timestamp(3) with time zone, - "confirmation_token" varchar, - "ip_address" varchar, - "user_agent" varchar, - "updated_at" timestamp(3) with time zone DEFAULT now() NOT NULL, - "created_at" timestamp(3) with time zone DEFAULT now() NOT NULL - ); - - CREATE INDEX IF NOT EXISTS "newsletter_subscribers_tenant_idx" ON "newsletter_subscribers" USING btree ("tenant_id"); - CREATE INDEX IF NOT EXISTS "newsletter_subscribers_email_idx" ON "newsletter_subscribers" USING btree ("email"); - CREATE INDEX IF NOT EXISTS "newsletter_subscribers_created_at_idx" ON "newsletter_subscribers" USING btree ("created_at"); - - ALTER TABLE "newsletter_subscribers" ADD CONSTRAINT "newsletter_subscribers_tenant_id_tenants_id_fk" FOREIGN KEY ("tenant_id") REFERENCES "public"."tenants"("id") ON DELETE set null ON UPDATE no action; - - -- Newsletter Subscribers Interests (hasMany select) - CREATE TABLE IF NOT EXISTS "newsletter_subscribers_interests" ( - "order" integer NOT NULL, - "parent_id" integer NOT NULL, - "value" varchar, - "id" serial PRIMARY KEY NOT NULL - ); - - CREATE INDEX IF NOT EXISTS "newsletter_subscribers_interests_order_idx" ON "newsletter_subscribers_interests" USING btree ("order"); - CREATE INDEX IF NOT EXISTS "newsletter_subscribers_interests_parent_idx" ON "newsletter_subscribers_interests" USING btree ("parent_id"); - - ALTER TABLE "newsletter_subscribers_interests" ADD CONSTRAINT "newsletter_subscribers_interests_parent_id_fk" FOREIGN KEY ("parent_id") REFERENCES "public"."newsletter_subscribers"("id") ON DELETE cascade ON UPDATE no action; - - -- Pages Rels (für Block-Relationships) - CREATE TABLE IF NOT EXISTS "pages_rels" ( - "id" serial PRIMARY KEY NOT NULL, - "order" integer, - "parent_id" integer NOT NULL, - "path" varchar NOT NULL, - "categories_id" integer, - "testimonials_id" integer - ); - - CREATE INDEX IF NOT EXISTS "pages_rels_order_idx" ON "pages_rels" USING btree ("order"); - CREATE INDEX IF NOT EXISTS "pages_rels_parent_idx" ON "pages_rels" USING btree ("parent_id"); - CREATE INDEX IF NOT EXISTS "pages_rels_path_idx" ON "pages_rels" USING btree ("path"); - - ALTER TABLE "pages_rels" ADD CONSTRAINT "pages_rels_parent_id_pages_id_fk" FOREIGN KEY ("parent_id") REFERENCES "public"."pages"("id") ON DELETE cascade ON UPDATE no action; - ALTER TABLE "pages_rels" ADD CONSTRAINT "pages_rels_categories_id_categories_id_fk" FOREIGN KEY ("categories_id") REFERENCES "public"."categories"("id") ON DELETE cascade ON UPDATE no action; - ALTER TABLE "pages_rels" ADD CONSTRAINT "pages_rels_testimonials_id_testimonials_id_fk" FOREIGN KEY ("testimonials_id") REFERENCES "public"."testimonials"("id") ON DELETE cascade ON UPDATE no action; - - -- Posts Rels (für Category Relationships) - CREATE TABLE IF NOT EXISTS "posts_rels" ( - "id" serial PRIMARY KEY NOT NULL, - "order" integer, - "parent_id" integer NOT NULL, - "path" varchar NOT NULL, - "categories_id" integer - ); - - CREATE INDEX IF NOT EXISTS "posts_rels_order_idx" ON "posts_rels" USING btree ("order"); - CREATE INDEX IF NOT EXISTS "posts_rels_parent_idx" ON "posts_rels" USING btree ("parent_id"); - CREATE INDEX IF NOT EXISTS "posts_rels_path_idx" ON "posts_rels" USING btree ("path"); - - ALTER TABLE "posts_rels" ADD CONSTRAINT "posts_rels_parent_id_posts_id_fk" FOREIGN KEY ("parent_id") REFERENCES "public"."posts"("id") ON DELETE cascade ON UPDATE no action; - ALTER TABLE "posts_rels" ADD CONSTRAINT "posts_rels_categories_id_categories_id_fk" FOREIGN KEY ("categories_id") REFERENCES "public"."categories"("id") ON DELETE cascade ON UPDATE no action; - - -- Füge type-Feld zu posts hinzu (falls nicht vorhanden) - DO $$ - BEGIN - IF NOT EXISTS (SELECT 1 FROM information_schema.columns WHERE table_name = 'posts' AND column_name = 'type') THEN - ALTER TABLE "posts" ADD COLUMN "type" "enum_posts_type" DEFAULT 'blog'; - END IF; - END $$; - - -- Füge isFeatured-Feld zu posts hinzu (falls nicht vorhanden) - DO $$ - BEGIN - IF NOT EXISTS (SELECT 1 FROM information_schema.columns WHERE table_name = 'posts' AND column_name = 'is_featured') THEN - ALTER TABLE "posts" ADD COLUMN "is_featured" boolean DEFAULT false; - END IF; - END $$; - - -- Füge excerpt-Feld zu posts hinzu (falls nicht vorhanden) - DO $$ - BEGIN - IF NOT EXISTS (SELECT 1 FROM information_schema.columns WHERE table_name = 'posts' AND column_name = 'excerpt') THEN - ALTER TABLE "posts" ADD COLUMN "excerpt" varchar; - END IF; - END $$; - - -- Payload Locked Documents Rels erweitern - DO $$ - BEGIN - IF NOT EXISTS (SELECT 1 FROM information_schema.columns WHERE table_name = 'payload_locked_documents_rels' AND column_name = 'testimonials_id') THEN - ALTER TABLE "payload_locked_documents_rels" ADD COLUMN "testimonials_id" integer; - ALTER TABLE "payload_locked_documents_rels" ADD CONSTRAINT "payload_locked_documents_rels_testimonials_fk" FOREIGN KEY ("testimonials_id") REFERENCES "public"."testimonials"("id") ON DELETE cascade ON UPDATE no action; - CREATE INDEX "payload_locked_documents_rels_testimonials_id_idx" ON "payload_locked_documents_rels" USING btree ("testimonials_id"); - END IF; - END $$; - - DO $$ - BEGIN - IF NOT EXISTS (SELECT 1 FROM information_schema.columns WHERE table_name = 'payload_locked_documents_rels' AND column_name = 'newsletter_subscribers_id') THEN - ALTER TABLE "payload_locked_documents_rels" ADD COLUMN "newsletter_subscribers_id" integer; - ALTER TABLE "payload_locked_documents_rels" ADD CONSTRAINT "payload_locked_documents_rels_newsletter_subscribers_fk" FOREIGN KEY ("newsletter_subscribers_id") REFERENCES "public"."newsletter_subscribers"("id") ON DELETE cascade ON UPDATE no action; - CREATE INDEX "payload_locked_documents_rels_newsletter_subscribers_id_idx" ON "payload_locked_documents_rels" USING btree ("newsletter_subscribers_id"); - END IF; - END $$; - `) -} - -export async function down({ db, payload, req }: MigrateDownArgs): Promise { - await db.execute(sql` - DROP TABLE IF EXISTS "pages_rels" CASCADE; - DROP TABLE IF EXISTS "posts_rels" CASCADE; - DROP TABLE IF EXISTS "newsletter_subscribers_interests" CASCADE; - DROP TABLE IF EXISTS "newsletter_subscribers" CASCADE; - DROP TABLE IF EXISTS "testimonials" CASCADE; - - ALTER TABLE "posts" DROP COLUMN IF EXISTS "type"; - ALTER TABLE "posts" DROP COLUMN IF EXISTS "is_featured"; - ALTER TABLE "posts" DROP COLUMN IF EXISTS "excerpt"; - - ALTER TABLE "payload_locked_documents_rels" DROP COLUMN IF EXISTS "testimonials_id"; - ALTER TABLE "payload_locked_documents_rels" DROP COLUMN IF EXISTS "newsletter_subscribers_id"; - - DROP TYPE IF EXISTS "enum_posts_type"; - DROP TYPE IF EXISTS "enum_newsletter_subscribers_status"; - `) -} diff --git a/src/migrations_backup/20251130_143000_media_optimization.ts b/src/migrations_backup/20251130_143000_media_optimization.ts deleted file mode 100644 index 881dc0d..0000000 --- a/src/migrations_backup/20251130_143000_media_optimization.ts +++ /dev/null @@ -1,177 +0,0 @@ -import { MigrateUpArgs, MigrateDownArgs, sql } from '@payloadcms/db-postgres' - -export async function up({ db, payload, req }: MigrateUpArgs): Promise { - await db.execute(sql` - -- Neue Felder für Media Collection - ALTER TABLE "media" ADD COLUMN IF NOT EXISTS "caption" varchar; - ALTER TABLE "media" ADD COLUMN IF NOT EXISTS "credit" varchar; - - -- Image Size Spalten für optimierte Bildvarianten - -- WebP Varianten - ALTER TABLE "media" ADD COLUMN IF NOT EXISTS "sizes_thumbnail_url" varchar; - ALTER TABLE "media" ADD COLUMN IF NOT EXISTS "sizes_thumbnail_width" numeric; - ALTER TABLE "media" ADD COLUMN IF NOT EXISTS "sizes_thumbnail_height" numeric; - ALTER TABLE "media" ADD COLUMN IF NOT EXISTS "sizes_thumbnail_mime_type" varchar; - ALTER TABLE "media" ADD COLUMN IF NOT EXISTS "sizes_thumbnail_filesize" numeric; - ALTER TABLE "media" ADD COLUMN IF NOT EXISTS "sizes_thumbnail_filename" varchar; - - ALTER TABLE "media" ADD COLUMN IF NOT EXISTS "sizes_small_url" varchar; - ALTER TABLE "media" ADD COLUMN IF NOT EXISTS "sizes_small_width" numeric; - ALTER TABLE "media" ADD COLUMN IF NOT EXISTS "sizes_small_height" numeric; - ALTER TABLE "media" ADD COLUMN IF NOT EXISTS "sizes_small_mime_type" varchar; - ALTER TABLE "media" ADD COLUMN IF NOT EXISTS "sizes_small_filesize" numeric; - ALTER TABLE "media" ADD COLUMN IF NOT EXISTS "sizes_small_filename" varchar; - - ALTER TABLE "media" ADD COLUMN IF NOT EXISTS "sizes_medium_url" varchar; - ALTER TABLE "media" ADD COLUMN IF NOT EXISTS "sizes_medium_width" numeric; - ALTER TABLE "media" ADD COLUMN IF NOT EXISTS "sizes_medium_height" numeric; - ALTER TABLE "media" ADD COLUMN IF NOT EXISTS "sizes_medium_mime_type" varchar; - ALTER TABLE "media" ADD COLUMN IF NOT EXISTS "sizes_medium_filesize" numeric; - ALTER TABLE "media" ADD COLUMN IF NOT EXISTS "sizes_medium_filename" varchar; - - ALTER TABLE "media" ADD COLUMN IF NOT EXISTS "sizes_large_url" varchar; - ALTER TABLE "media" ADD COLUMN IF NOT EXISTS "sizes_large_width" numeric; - ALTER TABLE "media" ADD COLUMN IF NOT EXISTS "sizes_large_height" numeric; - ALTER TABLE "media" ADD COLUMN IF NOT EXISTS "sizes_large_mime_type" varchar; - ALTER TABLE "media" ADD COLUMN IF NOT EXISTS "sizes_large_filesize" numeric; - ALTER TABLE "media" ADD COLUMN IF NOT EXISTS "sizes_large_filename" varchar; - - ALTER TABLE "media" ADD COLUMN IF NOT EXISTS "sizes_xlarge_url" varchar; - ALTER TABLE "media" ADD COLUMN IF NOT EXISTS "sizes_xlarge_width" numeric; - ALTER TABLE "media" ADD COLUMN IF NOT EXISTS "sizes_xlarge_height" numeric; - ALTER TABLE "media" ADD COLUMN IF NOT EXISTS "sizes_xlarge_mime_type" varchar; - ALTER TABLE "media" ADD COLUMN IF NOT EXISTS "sizes_xlarge_filesize" numeric; - ALTER TABLE "media" ADD COLUMN IF NOT EXISTS "sizes_xlarge_filename" varchar; - - ALTER TABLE "media" ADD COLUMN IF NOT EXISTS "sizes_2k_url" varchar; - ALTER TABLE "media" ADD COLUMN IF NOT EXISTS "sizes_2k_width" numeric; - ALTER TABLE "media" ADD COLUMN IF NOT EXISTS "sizes_2k_height" numeric; - ALTER TABLE "media" ADD COLUMN IF NOT EXISTS "sizes_2k_mime_type" varchar; - ALTER TABLE "media" ADD COLUMN IF NOT EXISTS "sizes_2k_filesize" numeric; - ALTER TABLE "media" ADD COLUMN IF NOT EXISTS "sizes_2k_filename" varchar; - - ALTER TABLE "media" ADD COLUMN IF NOT EXISTS "sizes_og_url" varchar; - ALTER TABLE "media" ADD COLUMN IF NOT EXISTS "sizes_og_width" numeric; - ALTER TABLE "media" ADD COLUMN IF NOT EXISTS "sizes_og_height" numeric; - ALTER TABLE "media" ADD COLUMN IF NOT EXISTS "sizes_og_mime_type" varchar; - ALTER TABLE "media" ADD COLUMN IF NOT EXISTS "sizes_og_filesize" numeric; - ALTER TABLE "media" ADD COLUMN IF NOT EXISTS "sizes_og_filename" varchar; - - -- AVIF Varianten - ALTER TABLE "media" ADD COLUMN IF NOT EXISTS "sizes_medium_avif_url" varchar; - ALTER TABLE "media" ADD COLUMN IF NOT EXISTS "sizes_medium_avif_width" numeric; - ALTER TABLE "media" ADD COLUMN IF NOT EXISTS "sizes_medium_avif_height" numeric; - ALTER TABLE "media" ADD COLUMN IF NOT EXISTS "sizes_medium_avif_mime_type" varchar; - ALTER TABLE "media" ADD COLUMN IF NOT EXISTS "sizes_medium_avif_filesize" numeric; - ALTER TABLE "media" ADD COLUMN IF NOT EXISTS "sizes_medium_avif_filename" varchar; - - ALTER TABLE "media" ADD COLUMN IF NOT EXISTS "sizes_large_avif_url" varchar; - ALTER TABLE "media" ADD COLUMN IF NOT EXISTS "sizes_large_avif_width" numeric; - ALTER TABLE "media" ADD COLUMN IF NOT EXISTS "sizes_large_avif_height" numeric; - ALTER TABLE "media" ADD COLUMN IF NOT EXISTS "sizes_large_avif_mime_type" varchar; - ALTER TABLE "media" ADD COLUMN IF NOT EXISTS "sizes_large_avif_filesize" numeric; - ALTER TABLE "media" ADD COLUMN IF NOT EXISTS "sizes_large_avif_filename" varchar; - - ALTER TABLE "media" ADD COLUMN IF NOT EXISTS "sizes_xlarge_avif_url" varchar; - ALTER TABLE "media" ADD COLUMN IF NOT EXISTS "sizes_xlarge_avif_width" numeric; - ALTER TABLE "media" ADD COLUMN IF NOT EXISTS "sizes_xlarge_avif_height" numeric; - ALTER TABLE "media" ADD COLUMN IF NOT EXISTS "sizes_xlarge_avif_mime_type" varchar; - ALTER TABLE "media" ADD COLUMN IF NOT EXISTS "sizes_xlarge_avif_filesize" numeric; - ALTER TABLE "media" ADD COLUMN IF NOT EXISTS "sizes_xlarge_avif_filename" varchar; - - -- Tags Tabelle (hasMany text) - CREATE TABLE IF NOT EXISTS "media_tags" ( - "order" integer NOT NULL, - "parent_id" integer NOT NULL, - "value" varchar, - "id" serial PRIMARY KEY NOT NULL - ); - - CREATE INDEX IF NOT EXISTS "media_tags_order_idx" ON "media_tags" USING btree ("order"); - CREATE INDEX IF NOT EXISTS "media_tags_parent_idx" ON "media_tags" USING btree ("parent_id"); - - ALTER TABLE "media_tags" DROP CONSTRAINT IF EXISTS "media_tags_parent_id_fk"; - ALTER TABLE "media_tags" ADD CONSTRAINT "media_tags_parent_id_fk" FOREIGN KEY ("parent_id") REFERENCES "public"."media"("id") ON DELETE cascade ON UPDATE no action; - `) -} - -export async function down({ db, payload, req }: MigrateDownArgs): Promise { - await db.execute(sql` - ALTER TABLE "media" DROP COLUMN IF EXISTS "caption"; - ALTER TABLE "media" DROP COLUMN IF EXISTS "credit"; - - -- WebP Sizes - ALTER TABLE "media" DROP COLUMN IF EXISTS "sizes_thumbnail_url"; - ALTER TABLE "media" DROP COLUMN IF EXISTS "sizes_thumbnail_width"; - ALTER TABLE "media" DROP COLUMN IF EXISTS "sizes_thumbnail_height"; - ALTER TABLE "media" DROP COLUMN IF EXISTS "sizes_thumbnail_mime_type"; - ALTER TABLE "media" DROP COLUMN IF EXISTS "sizes_thumbnail_filesize"; - ALTER TABLE "media" DROP COLUMN IF EXISTS "sizes_thumbnail_filename"; - - ALTER TABLE "media" DROP COLUMN IF EXISTS "sizes_small_url"; - ALTER TABLE "media" DROP COLUMN IF EXISTS "sizes_small_width"; - ALTER TABLE "media" DROP COLUMN IF EXISTS "sizes_small_height"; - ALTER TABLE "media" DROP COLUMN IF EXISTS "sizes_small_mime_type"; - ALTER TABLE "media" DROP COLUMN IF EXISTS "sizes_small_filesize"; - ALTER TABLE "media" DROP COLUMN IF EXISTS "sizes_small_filename"; - - ALTER TABLE "media" DROP COLUMN IF EXISTS "sizes_medium_url"; - ALTER TABLE "media" DROP COLUMN IF EXISTS "sizes_medium_width"; - ALTER TABLE "media" DROP COLUMN IF EXISTS "sizes_medium_height"; - ALTER TABLE "media" DROP COLUMN IF EXISTS "sizes_medium_mime_type"; - ALTER TABLE "media" DROP COLUMN IF EXISTS "sizes_medium_filesize"; - ALTER TABLE "media" DROP COLUMN IF EXISTS "sizes_medium_filename"; - - ALTER TABLE "media" DROP COLUMN IF EXISTS "sizes_large_url"; - ALTER TABLE "media" DROP COLUMN IF EXISTS "sizes_large_width"; - ALTER TABLE "media" DROP COLUMN IF EXISTS "sizes_large_height"; - ALTER TABLE "media" DROP COLUMN IF EXISTS "sizes_large_mime_type"; - ALTER TABLE "media" DROP COLUMN IF EXISTS "sizes_large_filesize"; - ALTER TABLE "media" DROP COLUMN IF EXISTS "sizes_large_filename"; - - ALTER TABLE "media" DROP COLUMN IF EXISTS "sizes_xlarge_url"; - ALTER TABLE "media" DROP COLUMN IF EXISTS "sizes_xlarge_width"; - ALTER TABLE "media" DROP COLUMN IF EXISTS "sizes_xlarge_height"; - ALTER TABLE "media" DROP COLUMN IF EXISTS "sizes_xlarge_mime_type"; - ALTER TABLE "media" DROP COLUMN IF EXISTS "sizes_xlarge_filesize"; - ALTER TABLE "media" DROP COLUMN IF EXISTS "sizes_xlarge_filename"; - - ALTER TABLE "media" DROP COLUMN IF EXISTS "sizes_2k_url"; - ALTER TABLE "media" DROP COLUMN IF EXISTS "sizes_2k_width"; - ALTER TABLE "media" DROP COLUMN IF EXISTS "sizes_2k_height"; - ALTER TABLE "media" DROP COLUMN IF EXISTS "sizes_2k_mime_type"; - ALTER TABLE "media" DROP COLUMN IF EXISTS "sizes_2k_filesize"; - ALTER TABLE "media" DROP COLUMN IF EXISTS "sizes_2k_filename"; - - ALTER TABLE "media" DROP COLUMN IF EXISTS "sizes_og_url"; - ALTER TABLE "media" DROP COLUMN IF EXISTS "sizes_og_width"; - ALTER TABLE "media" DROP COLUMN IF EXISTS "sizes_og_height"; - ALTER TABLE "media" DROP COLUMN IF EXISTS "sizes_og_mime_type"; - ALTER TABLE "media" DROP COLUMN IF EXISTS "sizes_og_filesize"; - ALTER TABLE "media" DROP COLUMN IF EXISTS "sizes_og_filename"; - - -- AVIF Sizes - ALTER TABLE "media" DROP COLUMN IF EXISTS "sizes_medium_avif_url"; - ALTER TABLE "media" DROP COLUMN IF EXISTS "sizes_medium_avif_width"; - ALTER TABLE "media" DROP COLUMN IF EXISTS "sizes_medium_avif_height"; - ALTER TABLE "media" DROP COLUMN IF EXISTS "sizes_medium_avif_mime_type"; - ALTER TABLE "media" DROP COLUMN IF EXISTS "sizes_medium_avif_filesize"; - ALTER TABLE "media" DROP COLUMN IF EXISTS "sizes_medium_avif_filename"; - - ALTER TABLE "media" DROP COLUMN IF EXISTS "sizes_large_avif_url"; - ALTER TABLE "media" DROP COLUMN IF EXISTS "sizes_large_avif_width"; - ALTER TABLE "media" DROP COLUMN IF EXISTS "sizes_large_avif_height"; - ALTER TABLE "media" DROP COLUMN IF EXISTS "sizes_large_avif_mime_type"; - ALTER TABLE "media" DROP COLUMN IF EXISTS "sizes_large_avif_filesize"; - ALTER TABLE "media" DROP COLUMN IF EXISTS "sizes_large_avif_filename"; - - ALTER TABLE "media" DROP COLUMN IF EXISTS "sizes_xlarge_avif_url"; - ALTER TABLE "media" DROP COLUMN IF EXISTS "sizes_xlarge_avif_width"; - ALTER TABLE "media" DROP COLUMN IF EXISTS "sizes_xlarge_avif_height"; - ALTER TABLE "media" DROP COLUMN IF EXISTS "sizes_xlarge_avif_mime_type"; - ALTER TABLE "media" DROP COLUMN IF EXISTS "sizes_xlarge_avif_filesize"; - ALTER TABLE "media" DROP COLUMN IF EXISTS "sizes_xlarge_avif_filename"; - - DROP TABLE IF EXISTS "media_tags" CASCADE; - `) -} diff --git a/src/migrations_backup/20251130_150000_blocks_tables.ts b/src/migrations_backup/20251130_150000_blocks_tables.ts deleted file mode 100644 index 3949f03..0000000 --- a/src/migrations_backup/20251130_150000_blocks_tables.ts +++ /dev/null @@ -1,269 +0,0 @@ -import { MigrateUpArgs, MigrateDownArgs, sql } from '@payloadcms/db-postgres' - -export async function up({ db, payload, req }: MigrateUpArgs): Promise { - await db.execute(sql` - -- Posts List Block Table - CREATE TABLE IF NOT EXISTS "pages_blocks_posts_list_block" ( - "id" serial PRIMARY KEY NOT NULL, - "_parent_id" integer NOT NULL, - "_order" integer NOT NULL, - "_path" varchar NOT NULL, - "title" varchar, - "subtitle" varchar, - "post_type" varchar DEFAULT 'blog', - "layout" varchar DEFAULT 'grid', - "columns" varchar DEFAULT '3', - "limit" integer DEFAULT 6, - "show_featured_only" boolean DEFAULT false, - "show_excerpt" boolean DEFAULT true, - "show_date" boolean DEFAULT true, - "show_author" boolean DEFAULT false, - "show_category" boolean DEFAULT true, - "show_pagination" boolean DEFAULT false, - "show_read_more" boolean DEFAULT true, - "read_more_label" varchar DEFAULT 'Alle Beiträge anzeigen', - "read_more_link" varchar DEFAULT '/blog', - "background_color" varchar DEFAULT 'white', - "block_name" varchar - ); - - CREATE INDEX IF NOT EXISTS "pages_blocks_posts_list_block_parent_idx" ON "pages_blocks_posts_list_block" USING btree ("_parent_id"); - CREATE INDEX IF NOT EXISTS "pages_blocks_posts_list_block_order_idx" ON "pages_blocks_posts_list_block" USING btree ("_order"); - CREATE INDEX IF NOT EXISTS "pages_blocks_posts_list_block_path_idx" ON "pages_blocks_posts_list_block" USING btree ("_path"); - - ALTER TABLE "pages_blocks_posts_list_block" DROP CONSTRAINT IF EXISTS "pages_blocks_posts_list_block_parent_id_fk"; - ALTER TABLE "pages_blocks_posts_list_block" ADD CONSTRAINT "pages_blocks_posts_list_block_parent_id_fk" FOREIGN KEY ("_parent_id") REFERENCES "public"."pages"("id") ON DELETE cascade ON UPDATE no action; - - -- Testimonials Block Table - CREATE TABLE IF NOT EXISTS "pages_blocks_testimonials_block" ( - "id" serial PRIMARY KEY NOT NULL, - "_parent_id" integer NOT NULL, - "_order" integer NOT NULL, - "_path" varchar NOT NULL, - "title" varchar DEFAULT 'Das sagen unsere Kunden', - "subtitle" varchar, - "layout" varchar DEFAULT 'slider', - "columns" varchar DEFAULT '3', - "display_mode" varchar DEFAULT 'all', - "limit" integer DEFAULT 6, - "show_rating" boolean DEFAULT true, - "show_image" boolean DEFAULT true, - "show_company" boolean DEFAULT true, - "show_source" boolean DEFAULT false, - "autoplay" boolean DEFAULT true, - "autoplay_speed" integer DEFAULT 5000, - "background_color" varchar DEFAULT 'light', - "block_name" varchar - ); - - CREATE INDEX IF NOT EXISTS "pages_blocks_testimonials_block_parent_idx" ON "pages_blocks_testimonials_block" USING btree ("_parent_id"); - CREATE INDEX IF NOT EXISTS "pages_blocks_testimonials_block_order_idx" ON "pages_blocks_testimonials_block" USING btree ("_order"); - CREATE INDEX IF NOT EXISTS "pages_blocks_testimonials_block_path_idx" ON "pages_blocks_testimonials_block" USING btree ("_path"); - - ALTER TABLE "pages_blocks_testimonials_block" DROP CONSTRAINT IF EXISTS "pages_blocks_testimonials_block_parent_id_fk"; - ALTER TABLE "pages_blocks_testimonials_block" ADD CONSTRAINT "pages_blocks_testimonials_block_parent_id_fk" FOREIGN KEY ("_parent_id") REFERENCES "public"."pages"("id") ON DELETE cascade ON UPDATE no action; - - -- Newsletter Block Table - CREATE TABLE IF NOT EXISTS "pages_blocks_newsletter_block" ( - "id" serial PRIMARY KEY NOT NULL, - "_parent_id" integer NOT NULL, - "_order" integer NOT NULL, - "_path" varchar NOT NULL, - "title" varchar DEFAULT 'Newsletter abonnieren', - "subtitle" varchar, - "layout" varchar DEFAULT 'inline', - "image_id" integer, - "image_position" varchar DEFAULT 'left', - "collect_name" boolean DEFAULT false, - "show_interests" boolean DEFAULT false, - "button_text" varchar DEFAULT 'Anmelden', - "placeholder_email" varchar DEFAULT 'Ihre E-Mail-Adresse', - "success_message" varchar, - "error_message" varchar, - "privacy_text" varchar, - "privacy_link" varchar DEFAULT '/datenschutz', - "source" varchar DEFAULT 'website', - "background_color" varchar DEFAULT 'accent', - "block_name" varchar - ); - - CREATE INDEX IF NOT EXISTS "pages_blocks_newsletter_block_parent_idx" ON "pages_blocks_newsletter_block" USING btree ("_parent_id"); - CREATE INDEX IF NOT EXISTS "pages_blocks_newsletter_block_order_idx" ON "pages_blocks_newsletter_block" USING btree ("_order"); - CREATE INDEX IF NOT EXISTS "pages_blocks_newsletter_block_path_idx" ON "pages_blocks_newsletter_block" USING btree ("_path"); - - ALTER TABLE "pages_blocks_newsletter_block" DROP CONSTRAINT IF EXISTS "pages_blocks_newsletter_block_parent_id_fk"; - ALTER TABLE "pages_blocks_newsletter_block" ADD CONSTRAINT "pages_blocks_newsletter_block_parent_id_fk" FOREIGN KEY ("_parent_id") REFERENCES "public"."pages"("id") ON DELETE cascade ON UPDATE no action; - ALTER TABLE "pages_blocks_newsletter_block" DROP CONSTRAINT IF EXISTS "pages_blocks_newsletter_block_image_id_fk"; - ALTER TABLE "pages_blocks_newsletter_block" ADD CONSTRAINT "pages_blocks_newsletter_block_image_id_fk" FOREIGN KEY ("image_id") REFERENCES "public"."media"("id") ON DELETE set null ON UPDATE no action; - - -- Newsletter Block Available Interests (hasMany select) - CREATE TABLE IF NOT EXISTS "pages_blocks_newsletter_block_available_interests" ( - "id" serial PRIMARY KEY NOT NULL, - "parent_id" integer NOT NULL, - "order" integer NOT NULL, - "value" varchar - ); - - CREATE INDEX IF NOT EXISTS "pages_blocks_newsletter_block_available_interests_parent_idx" ON "pages_blocks_newsletter_block_available_interests" USING btree ("parent_id"); - CREATE INDEX IF NOT EXISTS "pages_blocks_newsletter_block_available_interests_order_idx" ON "pages_blocks_newsletter_block_available_interests" USING btree ("order"); - - ALTER TABLE "pages_blocks_newsletter_block_available_interests" DROP CONSTRAINT IF EXISTS "pages_blocks_newsletter_block_available_interests_parent_id_fk"; - ALTER TABLE "pages_blocks_newsletter_block_available_interests" ADD CONSTRAINT "pages_blocks_newsletter_block_available_interests_parent_id_fk" FOREIGN KEY ("parent_id") REFERENCES "public"."pages_blocks_newsletter_block"("id") ON DELETE cascade ON UPDATE no action; - - -- Process Steps Block Table - CREATE TABLE IF NOT EXISTS "pages_blocks_process_steps_block" ( - "id" serial PRIMARY KEY NOT NULL, - "_parent_id" integer NOT NULL, - "_order" integer NOT NULL, - "_path" varchar NOT NULL, - "title" varchar DEFAULT 'So funktioniert es', - "subtitle" varchar, - "layout" varchar DEFAULT 'horizontal', - "show_numbers" boolean DEFAULT true, - "show_icons" boolean DEFAULT true, - "cta_show" boolean DEFAULT false, - "cta_label" varchar DEFAULT 'Jetzt starten', - "cta_href" varchar, - "cta_variant" varchar DEFAULT 'default', - "background_color" varchar DEFAULT 'white', - "block_name" varchar - ); - - CREATE INDEX IF NOT EXISTS "pages_blocks_process_steps_block_parent_idx" ON "pages_blocks_process_steps_block" USING btree ("_parent_id"); - CREATE INDEX IF NOT EXISTS "pages_blocks_process_steps_block_order_idx" ON "pages_blocks_process_steps_block" USING btree ("_order"); - CREATE INDEX IF NOT EXISTS "pages_blocks_process_steps_block_path_idx" ON "pages_blocks_process_steps_block" USING btree ("_path"); - - ALTER TABLE "pages_blocks_process_steps_block" DROP CONSTRAINT IF EXISTS "pages_blocks_process_steps_block_parent_id_fk"; - ALTER TABLE "pages_blocks_process_steps_block" ADD CONSTRAINT "pages_blocks_process_steps_block_parent_id_fk" FOREIGN KEY ("_parent_id") REFERENCES "public"."pages"("id") ON DELETE cascade ON UPDATE no action; - - -- Process Steps Block Steps (array) - CREATE TABLE IF NOT EXISTS "pages_blocks_process_steps_block_steps" ( - "id" serial PRIMARY KEY NOT NULL, - "_parent_id" integer NOT NULL, - "_order" integer NOT NULL, - "title" varchar NOT NULL, - "description" varchar, - "icon" varchar, - "image_id" integer - ); - - CREATE INDEX IF NOT EXISTS "pages_blocks_process_steps_block_steps_parent_idx" ON "pages_blocks_process_steps_block_steps" USING btree ("_parent_id"); - CREATE INDEX IF NOT EXISTS "pages_blocks_process_steps_block_steps_order_idx" ON "pages_blocks_process_steps_block_steps" USING btree ("_order"); - - ALTER TABLE "pages_blocks_process_steps_block_steps" DROP CONSTRAINT IF EXISTS "pages_blocks_process_steps_block_steps_parent_id_fk"; - ALTER TABLE "pages_blocks_process_steps_block_steps" ADD CONSTRAINT "pages_blocks_process_steps_block_steps_parent_id_fk" FOREIGN KEY ("_parent_id") REFERENCES "public"."pages_blocks_process_steps_block"("id") ON DELETE cascade ON UPDATE no action; - ALTER TABLE "pages_blocks_process_steps_block_steps" DROP CONSTRAINT IF EXISTS "pages_blocks_process_steps_block_steps_image_id_fk"; - ALTER TABLE "pages_blocks_process_steps_block_steps" ADD CONSTRAINT "pages_blocks_process_steps_block_steps_image_id_fk" FOREIGN KEY ("image_id") REFERENCES "public"."media"("id") ON DELETE set null ON UPDATE no action; - - -- SEO Settings Global - CREATE TABLE IF NOT EXISTS "seo_settings" ( - "id" serial PRIMARY KEY NOT NULL, - "meta_defaults_title_suffix" varchar DEFAULT '| Website', - "meta_defaults_default_description" varchar, - "meta_defaults_default_og_image_id" integer, - "organization_name" varchar, - "organization_legal_name" varchar, - "organization_description" varchar, - "organization_logo_id" integer, - "organization_founding_date" timestamp(3) with time zone, - "contact_email" varchar, - "contact_phone" varchar, - "contact_fax" varchar, - "address_street" varchar, - "address_postal_code" varchar, - "address_city" varchar, - "address_region" varchar, - "address_country" varchar DEFAULT 'Deutschland', - "address_country_code" varchar DEFAULT 'DE', - "geo_latitude" numeric, - "geo_longitude" numeric, - "local_business_enabled" boolean DEFAULT false, - "local_business_type" varchar, - "local_business_price_range" varchar, - "robots_allow_indexing" boolean DEFAULT true, - "verification_google" varchar, - "verification_bing" varchar, - "verification_yandex" varchar, - "updated_at" timestamp(3) with time zone, - "created_at" timestamp(3) with time zone - ); - - ALTER TABLE "seo_settings" DROP CONSTRAINT IF EXISTS "seo_settings_meta_defaults_default_og_image_id_fk"; - ALTER TABLE "seo_settings" ADD CONSTRAINT "seo_settings_meta_defaults_default_og_image_id_fk" FOREIGN KEY ("meta_defaults_default_og_image_id") REFERENCES "public"."media"("id") ON DELETE set null ON UPDATE no action; - ALTER TABLE "seo_settings" DROP CONSTRAINT IF EXISTS "seo_settings_organization_logo_id_fk"; - ALTER TABLE "seo_settings" ADD CONSTRAINT "seo_settings_organization_logo_id_fk" FOREIGN KEY ("organization_logo_id") REFERENCES "public"."media"("id") ON DELETE set null ON UPDATE no action; - - -- SEO Settings Keywords (hasMany text) - CREATE TABLE IF NOT EXISTS "seo_settings_meta_defaults_keywords" ( - "id" serial PRIMARY KEY NOT NULL, - "_parent_id" integer NOT NULL, - "order" integer NOT NULL, - "value" varchar - ); - - CREATE INDEX IF NOT EXISTS "seo_settings_meta_defaults_keywords_parent_idx" ON "seo_settings_meta_defaults_keywords" USING btree ("_parent_id"); - CREATE INDEX IF NOT EXISTS "seo_settings_meta_defaults_keywords_order_idx" ON "seo_settings_meta_defaults_keywords" USING btree ("order"); - - ALTER TABLE "seo_settings_meta_defaults_keywords" DROP CONSTRAINT IF EXISTS "seo_settings_meta_defaults_keywords_parent_id_fk"; - ALTER TABLE "seo_settings_meta_defaults_keywords" ADD CONSTRAINT "seo_settings_meta_defaults_keywords_parent_id_fk" FOREIGN KEY ("_parent_id") REFERENCES "public"."seo_settings"("id") ON DELETE cascade ON UPDATE no action; - - -- SEO Settings Social Profiles (array) - CREATE TABLE IF NOT EXISTS "seo_settings_social_profiles" ( - "id" serial PRIMARY KEY NOT NULL, - "_parent_id" integer NOT NULL, - "_order" integer NOT NULL, - "platform" varchar, - "url" varchar - ); - - CREATE INDEX IF NOT EXISTS "seo_settings_social_profiles_parent_idx" ON "seo_settings_social_profiles" USING btree ("_parent_id"); - CREATE INDEX IF NOT EXISTS "seo_settings_social_profiles_order_idx" ON "seo_settings_social_profiles" USING btree ("_order"); - - ALTER TABLE "seo_settings_social_profiles" DROP CONSTRAINT IF EXISTS "seo_settings_social_profiles_parent_id_fk"; - ALTER TABLE "seo_settings_social_profiles" ADD CONSTRAINT "seo_settings_social_profiles_parent_id_fk" FOREIGN KEY ("_parent_id") REFERENCES "public"."seo_settings"("id") ON DELETE cascade ON UPDATE no action; - - -- SEO Settings Opening Hours (array) - CREATE TABLE IF NOT EXISTS "seo_settings_local_business_opening_hours" ( - "id" serial PRIMARY KEY NOT NULL, - "_parent_id" integer NOT NULL, - "_order" integer NOT NULL, - "specification" varchar - ); - - CREATE INDEX IF NOT EXISTS "seo_settings_local_business_opening_hours_parent_idx" ON "seo_settings_local_business_opening_hours" USING btree ("_parent_id"); - CREATE INDEX IF NOT EXISTS "seo_settings_local_business_opening_hours_order_idx" ON "seo_settings_local_business_opening_hours" USING btree ("_order"); - - ALTER TABLE "seo_settings_local_business_opening_hours" DROP CONSTRAINT IF EXISTS "seo_settings_local_business_opening_hours_parent_id_fk"; - ALTER TABLE "seo_settings_local_business_opening_hours" ADD CONSTRAINT "seo_settings_local_business_opening_hours_parent_id_fk" FOREIGN KEY ("_parent_id") REFERENCES "public"."seo_settings"("id") ON DELETE cascade ON UPDATE no action; - - -- SEO Settings Additional Disallow Paths (hasMany text) - CREATE TABLE IF NOT EXISTS "seo_settings_robots_additional_disallow" ( - "id" serial PRIMARY KEY NOT NULL, - "_parent_id" integer NOT NULL, - "order" integer NOT NULL, - "value" varchar - ); - - CREATE INDEX IF NOT EXISTS "seo_settings_robots_additional_disallow_parent_idx" ON "seo_settings_robots_additional_disallow" USING btree ("_parent_id"); - CREATE INDEX IF NOT EXISTS "seo_settings_robots_additional_disallow_order_idx" ON "seo_settings_robots_additional_disallow" USING btree ("order"); - - ALTER TABLE "seo_settings_robots_additional_disallow" DROP CONSTRAINT IF EXISTS "seo_settings_robots_additional_disallow_parent_id_fk"; - ALTER TABLE "seo_settings_robots_additional_disallow" ADD CONSTRAINT "seo_settings_robots_additional_disallow_parent_id_fk" FOREIGN KEY ("_parent_id") REFERENCES "public"."seo_settings"("id") ON DELETE cascade ON UPDATE no action; - `) -} - -export async function down({ db, payload, req }: MigrateDownArgs): Promise { - await db.execute(sql` - DROP TABLE IF EXISTS "pages_blocks_posts_list_block" CASCADE; - DROP TABLE IF EXISTS "pages_blocks_testimonials_block" CASCADE; - DROP TABLE IF EXISTS "pages_blocks_newsletter_block_available_interests" CASCADE; - DROP TABLE IF EXISTS "pages_blocks_newsletter_block" CASCADE; - DROP TABLE IF EXISTS "pages_blocks_process_steps_block_steps" CASCADE; - DROP TABLE IF EXISTS "pages_blocks_process_steps_block" CASCADE; - DROP TABLE IF EXISTS "seo_settings_meta_defaults_keywords" CASCADE; - DROP TABLE IF EXISTS "seo_settings_social_profiles" CASCADE; - DROP TABLE IF EXISTS "seo_settings_local_business_opening_hours" CASCADE; - DROP TABLE IF EXISTS "seo_settings_robots_additional_disallow" CASCADE; - DROP TABLE IF EXISTS "seo_settings" CASCADE; - `) -} diff --git a/src/migrations_backup/20251130_160000_fix_schema_divergence.ts b/src/migrations_backup/20251130_160000_fix_schema_divergence.ts deleted file mode 100644 index 01311a0..0000000 --- a/src/migrations_backup/20251130_160000_fix_schema_divergence.ts +++ /dev/null @@ -1,50 +0,0 @@ -import { MigrateUpArgs, MigrateDownArgs, sql } from '@payloadcms/db-postgres' - -/** - * Migration zur Behebung der Schema-Divergenz zwischen Code und Datenbank - * - * Hauptänderungen: - * - media_tags → media_texts umbenennen (Payload 3.x Konvention) - * - Spaltenstruktur anpassen (path-Feld hinzufügen) - */ -export async function up({ db, payload, req }: MigrateUpArgs): Promise { - await db.execute(sql` - -- Umbenennen von media_tags zu media_texts - ALTER TABLE IF EXISTS "media_tags" RENAME TO "media_texts"; - - -- Spalte 'path' hinzufügen falls nicht vorhanden (Payload 3.x benötigt diese) - ALTER TABLE "media_texts" ADD COLUMN IF NOT EXISTS "path" varchar NOT NULL DEFAULT 'tags'; - - -- Indices umbenennen - ALTER INDEX IF EXISTS "media_tags_order_idx" RENAME TO "media_texts_order_idx"; - ALTER INDEX IF EXISTS "media_tags_parent_idx" RENAME TO "media_texts_parent_idx"; - - -- Constraint umbenennen - ALTER TABLE "media_texts" DROP CONSTRAINT IF EXISTS "media_tags_parent_id_fk"; - ALTER TABLE "media_texts" ADD CONSTRAINT "media_texts_parent_id_fk" - FOREIGN KEY ("parent_id") REFERENCES "public"."media"("id") ON DELETE cascade ON UPDATE no action; - - -- Path Index hinzufügen - CREATE INDEX IF NOT EXISTS "media_texts_path_idx" ON "media_texts" USING btree ("path"); - `) -} - -export async function down({ db, payload, req }: MigrateDownArgs): Promise { - await db.execute(sql` - -- Zurück umbenennen - ALTER TABLE IF EXISTS "media_texts" RENAME TO "media_tags"; - - -- Spalte entfernen - ALTER TABLE "media_tags" DROP COLUMN IF EXISTS "path"; - - -- Indices zurück umbenennen - ALTER INDEX IF EXISTS "media_texts_order_idx" RENAME TO "media_tags_order_idx"; - ALTER INDEX IF EXISTS "media_texts_parent_idx" RENAME TO "media_tags_parent_idx"; - DROP INDEX IF EXISTS "media_texts_path_idx"; - - -- Constraint zurück - ALTER TABLE "media_tags" DROP CONSTRAINT IF EXISTS "media_texts_parent_id_fk"; - ALTER TABLE "media_tags" ADD CONSTRAINT "media_tags_parent_id_fk" - FOREIGN KEY ("parent_id") REFERENCES "public"."media"("id") ON DELETE cascade ON UPDATE no action; - `) -} diff --git a/src/migrations_backup/20251130_170000_add_search_index.ts b/src/migrations_backup/20251130_170000_add_search_index.ts deleted file mode 100644 index 016b86d..0000000 --- a/src/migrations_backup/20251130_170000_add_search_index.ts +++ /dev/null @@ -1,105 +0,0 @@ -import { MigrateUpArgs, MigrateDownArgs, sql } from '@payloadcms/db-postgres' - -/** - * Migration: Add Full-Text Search Index for Posts - * - * This migration adds: - * 1. A function to extract text from Lexical JSONB content - * 2. A generated column (search_text) that concatenates searchable fields - * 3. GIN indexes for both German and English full-text search - * - * The FTS can be activated by setting USE_FTS=true environment variable. - * Without this flag, the search API uses ILIKE which works without these indexes. - */ - -export async function up({ db }: MigrateUpArgs): Promise { - // 1. Create function to extract text from Lexical JSONB content - await db.execute(sql` - CREATE OR REPLACE FUNCTION extract_lexical_text(content jsonb) - RETURNS text - LANGUAGE sql - IMMUTABLE - PARALLEL SAFE - AS $$ - SELECT COALESCE( - string_agg(node_text, ' '), - '' - ) - FROM ( - SELECT jsonb_path_query( - content, - 'strict $.root.**.text' - )::text AS node_text - ) extracted - WHERE node_text IS NOT NULL - AND node_text != 'null' - $$; - `) - - // 2. Add generated column for full searchable text - // This combines title, excerpt, and extracted content text - await db.execute(sql` - ALTER TABLE posts - ADD COLUMN IF NOT EXISTS search_text text - GENERATED ALWAYS AS ( - COALESCE(title, '') || ' ' || - COALESCE(excerpt, '') || ' ' || - COALESCE(extract_lexical_text(content), '') - ) STORED; - `) - - // 3. Create GIN index for German full-text search - await db.execute(sql` - CREATE INDEX IF NOT EXISTS posts_search_german_idx - ON posts - USING GIN (to_tsvector('pg_catalog.german', search_text)); - `) - - // 4. Create GIN index for English full-text search - await db.execute(sql` - CREATE INDEX IF NOT EXISTS posts_search_english_idx - ON posts - USING GIN (to_tsvector('pg_catalog.english', search_text)); - `) - - // 5. Create btree index on title for faster ILIKE prefix searches - // This is a fallback for when FTS is not used - await db.execute(sql` - CREATE INDEX IF NOT EXISTS posts_title_lower_idx - ON posts (LOWER(title) varchar_pattern_ops); - `) - - // Note: For even better ILIKE performance, pg_trgm extension can be enabled manually: - // CREATE EXTENSION IF NOT EXISTS pg_trgm; - // CREATE INDEX posts_title_trgm_idx ON posts USING GIN (title gin_trgm_ops); -} - -export async function down({ db }: MigrateDownArgs): Promise { - // Remove indexes - await db.execute(sql` - DROP INDEX IF EXISTS posts_title_lower_idx; - `) - - await db.execute(sql` - DROP INDEX IF EXISTS posts_title_trgm_idx; - `) - - await db.execute(sql` - DROP INDEX IF EXISTS posts_search_english_idx; - `) - - await db.execute(sql` - DROP INDEX IF EXISTS posts_search_german_idx; - `) - - // Remove generated column - await db.execute(sql` - ALTER TABLE posts - DROP COLUMN IF EXISTS search_text; - `) - - // Remove function - await db.execute(sql` - DROP FUNCTION IF EXISTS extract_lexical_text(jsonb); - `) -} diff --git a/src/migrations_backup/20251130_211716_add_localization.json b/src/migrations_backup/20251130_211716_add_localization.json deleted file mode 100644 index 8c3b842..0000000 --- a/src/migrations_backup/20251130_211716_add_localization.json +++ /dev/null @@ -1,13009 +0,0 @@ -{ - "version": "7", - "dialect": "postgresql", - "tables": { - "public.users_tenants": { - "name": "users_tenants", - "schema": "", - "columns": { - "_order": { - "name": "_order", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "varchar", - "primaryKey": true, - "notNull": true - }, - "tenant_id": { - "name": "tenant_id", - "type": "integer", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "users_tenants_order_idx": { - "name": "users_tenants_order_idx", - "columns": [ - { - "expression": "_order", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "users_tenants_parent_id_idx": { - "name": "users_tenants_parent_id_idx", - "columns": [ - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "users_tenants_tenant_idx": { - "name": "users_tenants_tenant_idx", - "columns": [ - { - "expression": "tenant_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "users_tenants_tenant_id_tenants_id_fk": { - "name": "users_tenants_tenant_id_tenants_id_fk", - "tableFrom": "users_tenants", - "tableTo": "tenants", - "columnsFrom": [ - "tenant_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "set null", - "onUpdate": "no action" - }, - "users_tenants_parent_id_fk": { - "name": "users_tenants_parent_id_fk", - "tableFrom": "users_tenants", - "tableTo": "users", - "columnsFrom": [ - "_parent_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.users_sessions": { - "name": "users_sessions", - "schema": "", - "columns": { - "_order": { - "name": "_order", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "varchar", - "primaryKey": true, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": false - }, - "expires_at": { - "name": "expires_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "users_sessions_order_idx": { - "name": "users_sessions_order_idx", - "columns": [ - { - "expression": "_order", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "users_sessions_parent_id_idx": { - "name": "users_sessions_parent_id_idx", - "columns": [ - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "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": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.users": { - "name": "users", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "serial", - "primaryKey": true, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "created_at": { - "name": "created_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "email": { - "name": "email", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "reset_password_token": { - "name": "reset_password_token", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "reset_password_expiration": { - "name": "reset_password_expiration", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": false - }, - "salt": { - "name": "salt", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "hash": { - "name": "hash", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "login_attempts": { - "name": "login_attempts", - "type": "numeric", - "primaryKey": false, - "notNull": false, - "default": 0 - }, - "lock_until": { - "name": "lock_until", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "users_updated_at_idx": { - "name": "users_updated_at_idx", - "columns": [ - { - "expression": "updated_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "users_created_at_idx": { - "name": "users_created_at_idx", - "columns": [ - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "users_email_idx": { - "name": "users_email_idx", - "columns": [ - { - "expression": "email", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.media": { - "name": "media", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "serial", - "primaryKey": true, - "notNull": true - }, - "tenant_id": { - "name": "tenant_id", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "alt": { - "name": "alt", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "caption": { - "name": "caption", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "credit": { - "name": "credit", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "created_at": { - "name": "created_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "url": { - "name": "url", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "thumbnail_u_r_l": { - "name": "thumbnail_u_r_l", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "filename": { - "name": "filename", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "mime_type": { - "name": "mime_type", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "filesize": { - "name": "filesize", - "type": "numeric", - "primaryKey": false, - "notNull": false - }, - "width": { - "name": "width", - "type": "numeric", - "primaryKey": false, - "notNull": false - }, - "height": { - "name": "height", - "type": "numeric", - "primaryKey": false, - "notNull": false - }, - "focal_x": { - "name": "focal_x", - "type": "numeric", - "primaryKey": false, - "notNull": false - }, - "focal_y": { - "name": "focal_y", - "type": "numeric", - "primaryKey": false, - "notNull": false - }, - "sizes_thumbnail_url": { - "name": "sizes_thumbnail_url", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "sizes_thumbnail_width": { - "name": "sizes_thumbnail_width", - "type": "numeric", - "primaryKey": false, - "notNull": false - }, - "sizes_thumbnail_height": { - "name": "sizes_thumbnail_height", - "type": "numeric", - "primaryKey": false, - "notNull": false - }, - "sizes_thumbnail_mime_type": { - "name": "sizes_thumbnail_mime_type", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "sizes_thumbnail_filesize": { - "name": "sizes_thumbnail_filesize", - "type": "numeric", - "primaryKey": false, - "notNull": false - }, - "sizes_thumbnail_filename": { - "name": "sizes_thumbnail_filename", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "sizes_small_url": { - "name": "sizes_small_url", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "sizes_small_width": { - "name": "sizes_small_width", - "type": "numeric", - "primaryKey": false, - "notNull": false - }, - "sizes_small_height": { - "name": "sizes_small_height", - "type": "numeric", - "primaryKey": false, - "notNull": false - }, - "sizes_small_mime_type": { - "name": "sizes_small_mime_type", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "sizes_small_filesize": { - "name": "sizes_small_filesize", - "type": "numeric", - "primaryKey": false, - "notNull": false - }, - "sizes_small_filename": { - "name": "sizes_small_filename", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "sizes_medium_url": { - "name": "sizes_medium_url", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "sizes_medium_width": { - "name": "sizes_medium_width", - "type": "numeric", - "primaryKey": false, - "notNull": false - }, - "sizes_medium_height": { - "name": "sizes_medium_height", - "type": "numeric", - "primaryKey": false, - "notNull": false - }, - "sizes_medium_mime_type": { - "name": "sizes_medium_mime_type", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "sizes_medium_filesize": { - "name": "sizes_medium_filesize", - "type": "numeric", - "primaryKey": false, - "notNull": false - }, - "sizes_medium_filename": { - "name": "sizes_medium_filename", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "sizes_large_url": { - "name": "sizes_large_url", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "sizes_large_width": { - "name": "sizes_large_width", - "type": "numeric", - "primaryKey": false, - "notNull": false - }, - "sizes_large_height": { - "name": "sizes_large_height", - "type": "numeric", - "primaryKey": false, - "notNull": false - }, - "sizes_large_mime_type": { - "name": "sizes_large_mime_type", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "sizes_large_filesize": { - "name": "sizes_large_filesize", - "type": "numeric", - "primaryKey": false, - "notNull": false - }, - "sizes_large_filename": { - "name": "sizes_large_filename", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "sizes_xlarge_url": { - "name": "sizes_xlarge_url", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "sizes_xlarge_width": { - "name": "sizes_xlarge_width", - "type": "numeric", - "primaryKey": false, - "notNull": false - }, - "sizes_xlarge_height": { - "name": "sizes_xlarge_height", - "type": "numeric", - "primaryKey": false, - "notNull": false - }, - "sizes_xlarge_mime_type": { - "name": "sizes_xlarge_mime_type", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "sizes_xlarge_filesize": { - "name": "sizes_xlarge_filesize", - "type": "numeric", - "primaryKey": false, - "notNull": false - }, - "sizes_xlarge_filename": { - "name": "sizes_xlarge_filename", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "sizes_2k_url": { - "name": "sizes_2k_url", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "sizes_2k_width": { - "name": "sizes_2k_width", - "type": "numeric", - "primaryKey": false, - "notNull": false - }, - "sizes_2k_height": { - "name": "sizes_2k_height", - "type": "numeric", - "primaryKey": false, - "notNull": false - }, - "sizes_2k_mime_type": { - "name": "sizes_2k_mime_type", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "sizes_2k_filesize": { - "name": "sizes_2k_filesize", - "type": "numeric", - "primaryKey": false, - "notNull": false - }, - "sizes_2k_filename": { - "name": "sizes_2k_filename", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "sizes_og_url": { - "name": "sizes_og_url", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "sizes_og_width": { - "name": "sizes_og_width", - "type": "numeric", - "primaryKey": false, - "notNull": false - }, - "sizes_og_height": { - "name": "sizes_og_height", - "type": "numeric", - "primaryKey": false, - "notNull": false - }, - "sizes_og_mime_type": { - "name": "sizes_og_mime_type", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "sizes_og_filesize": { - "name": "sizes_og_filesize", - "type": "numeric", - "primaryKey": false, - "notNull": false - }, - "sizes_og_filename": { - "name": "sizes_og_filename", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "sizes_medium_avif_url": { - "name": "sizes_medium_avif_url", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "sizes_medium_avif_width": { - "name": "sizes_medium_avif_width", - "type": "numeric", - "primaryKey": false, - "notNull": false - }, - "sizes_medium_avif_height": { - "name": "sizes_medium_avif_height", - "type": "numeric", - "primaryKey": false, - "notNull": false - }, - "sizes_medium_avif_mime_type": { - "name": "sizes_medium_avif_mime_type", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "sizes_medium_avif_filesize": { - "name": "sizes_medium_avif_filesize", - "type": "numeric", - "primaryKey": false, - "notNull": false - }, - "sizes_medium_avif_filename": { - "name": "sizes_medium_avif_filename", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "sizes_large_avif_url": { - "name": "sizes_large_avif_url", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "sizes_large_avif_width": { - "name": "sizes_large_avif_width", - "type": "numeric", - "primaryKey": false, - "notNull": false - }, - "sizes_large_avif_height": { - "name": "sizes_large_avif_height", - "type": "numeric", - "primaryKey": false, - "notNull": false - }, - "sizes_large_avif_mime_type": { - "name": "sizes_large_avif_mime_type", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "sizes_large_avif_filesize": { - "name": "sizes_large_avif_filesize", - "type": "numeric", - "primaryKey": false, - "notNull": false - }, - "sizes_large_avif_filename": { - "name": "sizes_large_avif_filename", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "sizes_xlarge_avif_url": { - "name": "sizes_xlarge_avif_url", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "sizes_xlarge_avif_width": { - "name": "sizes_xlarge_avif_width", - "type": "numeric", - "primaryKey": false, - "notNull": false - }, - "sizes_xlarge_avif_height": { - "name": "sizes_xlarge_avif_height", - "type": "numeric", - "primaryKey": false, - "notNull": false - }, - "sizes_xlarge_avif_mime_type": { - "name": "sizes_xlarge_avif_mime_type", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "sizes_xlarge_avif_filesize": { - "name": "sizes_xlarge_avif_filesize", - "type": "numeric", - "primaryKey": false, - "notNull": false - }, - "sizes_xlarge_avif_filename": { - "name": "sizes_xlarge_avif_filename", - "type": "varchar", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "media_tenant_idx": { - "name": "media_tenant_idx", - "columns": [ - { - "expression": "tenant_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "media_updated_at_idx": { - "name": "media_updated_at_idx", - "columns": [ - { - "expression": "updated_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "media_created_at_idx": { - "name": "media_created_at_idx", - "columns": [ - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "media_filename_idx": { - "name": "media_filename_idx", - "columns": [ - { - "expression": "filename", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "media_sizes_thumbnail_sizes_thumbnail_filename_idx": { - "name": "media_sizes_thumbnail_sizes_thumbnail_filename_idx", - "columns": [ - { - "expression": "sizes_thumbnail_filename", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "media_sizes_small_sizes_small_filename_idx": { - "name": "media_sizes_small_sizes_small_filename_idx", - "columns": [ - { - "expression": "sizes_small_filename", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "media_sizes_medium_sizes_medium_filename_idx": { - "name": "media_sizes_medium_sizes_medium_filename_idx", - "columns": [ - { - "expression": "sizes_medium_filename", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "media_sizes_large_sizes_large_filename_idx": { - "name": "media_sizes_large_sizes_large_filename_idx", - "columns": [ - { - "expression": "sizes_large_filename", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "media_sizes_xlarge_sizes_xlarge_filename_idx": { - "name": "media_sizes_xlarge_sizes_xlarge_filename_idx", - "columns": [ - { - "expression": "sizes_xlarge_filename", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "media_sizes_2k_sizes_2k_filename_idx": { - "name": "media_sizes_2k_sizes_2k_filename_idx", - "columns": [ - { - "expression": "sizes_2k_filename", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "media_sizes_og_sizes_og_filename_idx": { - "name": "media_sizes_og_sizes_og_filename_idx", - "columns": [ - { - "expression": "sizes_og_filename", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "media_sizes_medium_avif_sizes_medium_avif_filename_idx": { - "name": "media_sizes_medium_avif_sizes_medium_avif_filename_idx", - "columns": [ - { - "expression": "sizes_medium_avif_filename", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "media_sizes_large_avif_sizes_large_avif_filename_idx": { - "name": "media_sizes_large_avif_sizes_large_avif_filename_idx", - "columns": [ - { - "expression": "sizes_large_avif_filename", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "media_sizes_xlarge_avif_sizes_xlarge_avif_filename_idx": { - "name": "media_sizes_xlarge_avif_sizes_xlarge_avif_filename_idx", - "columns": [ - { - "expression": "sizes_xlarge_avif_filename", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "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": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.media_texts": { - "name": "media_texts", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "serial", - "primaryKey": true, - "notNull": true - }, - "order": { - "name": "order", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "parent_id": { - "name": "parent_id", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "path": { - "name": "path", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "text": { - "name": "text", - "type": "varchar", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "media_texts_order_parent": { - "name": "media_texts_order_parent", - "columns": [ - { - "expression": "order", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "media_texts_parent_fk": { - "name": "media_texts_parent_fk", - "tableFrom": "media_texts", - "tableTo": "media", - "columnsFrom": [ - "parent_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.tenants_domains": { - "name": "tenants_domains", - "schema": "", - "columns": { - "_order": { - "name": "_order", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "varchar", - "primaryKey": true, - "notNull": true - }, - "domain": { - "name": "domain", - "type": "varchar", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "tenants_domains_order_idx": { - "name": "tenants_domains_order_idx", - "columns": [ - { - "expression": "_order", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "tenants_domains_parent_id_idx": { - "name": "tenants_domains_parent_id_idx", - "columns": [ - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "tenants_domains_parent_id_fk": { - "name": "tenants_domains_parent_id_fk", - "tableFrom": "tenants_domains", - "tableTo": "tenants", - "columnsFrom": [ - "_parent_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.tenants": { - "name": "tenants", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "serial", - "primaryKey": true, - "notNull": true - }, - "name": { - "name": "name", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "slug": { - "name": "slug", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "created_at": { - "name": "created_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - } - }, - "indexes": { - "tenants_slug_idx": { - "name": "tenants_slug_idx", - "columns": [ - { - "expression": "slug", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "tenants_updated_at_idx": { - "name": "tenants_updated_at_idx", - "columns": [ - { - "expression": "updated_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "tenants_created_at_idx": { - "name": "tenants_created_at_idx", - "columns": [ - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.pages_blocks_hero_block": { - "name": "pages_blocks_hero_block", - "schema": "", - "columns": { - "_order": { - "name": "_order", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_path": { - "name": "_path", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "varchar", - "primaryKey": true, - "notNull": true - }, - "background_image_id": { - "name": "background_image_id", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "alignment": { - "name": "alignment", - "type": "enum_pages_blocks_hero_block_alignment", - "typeSchema": "public", - "primaryKey": false, - "notNull": false, - "default": "'center'" - }, - "overlay": { - "name": "overlay", - "type": "boolean", - "primaryKey": false, - "notNull": false, - "default": true - }, - "cta_link": { - "name": "cta_link", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "cta_style": { - "name": "cta_style", - "type": "enum_pages_blocks_hero_block_cta_style", - "typeSchema": "public", - "primaryKey": false, - "notNull": false, - "default": "'primary'" - }, - "block_name": { - "name": "block_name", - "type": "varchar", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "pages_blocks_hero_block_order_idx": { - "name": "pages_blocks_hero_block_order_idx", - "columns": [ - { - "expression": "_order", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "pages_blocks_hero_block_parent_id_idx": { - "name": "pages_blocks_hero_block_parent_id_idx", - "columns": [ - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "pages_blocks_hero_block_path_idx": { - "name": "pages_blocks_hero_block_path_idx", - "columns": [ - { - "expression": "_path", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "pages_blocks_hero_block_background_image_idx": { - "name": "pages_blocks_hero_block_background_image_idx", - "columns": [ - { - "expression": "background_image_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "pages_blocks_hero_block_background_image_id_media_id_fk": { - "name": "pages_blocks_hero_block_background_image_id_media_id_fk", - "tableFrom": "pages_blocks_hero_block", - "tableTo": "media", - "columnsFrom": [ - "background_image_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "set null", - "onUpdate": "no action" - }, - "pages_blocks_hero_block_parent_id_fk": { - "name": "pages_blocks_hero_block_parent_id_fk", - "tableFrom": "pages_blocks_hero_block", - "tableTo": "pages", - "columnsFrom": [ - "_parent_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.pages_blocks_hero_block_locales": { - "name": "pages_blocks_hero_block_locales", - "schema": "", - "columns": { - "headline": { - "name": "headline", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "subline": { - "name": "subline", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "cta_text": { - "name": "cta_text", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "id": { - "name": "id", - "type": "serial", - "primaryKey": true, - "notNull": true - }, - "_locale": { - "name": "_locale", - "type": "_locales", - "typeSchema": "public", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "varchar", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "pages_blocks_hero_block_locales_locale_parent_id_unique": { - "name": "pages_blocks_hero_block_locales_locale_parent_id_unique", - "columns": [ - { - "expression": "_locale", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "pages_blocks_hero_block_locales_parent_id_fk": { - "name": "pages_blocks_hero_block_locales_parent_id_fk", - "tableFrom": "pages_blocks_hero_block_locales", - "tableTo": "pages_blocks_hero_block", - "columnsFrom": [ - "_parent_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.pages_blocks_text_block": { - "name": "pages_blocks_text_block", - "schema": "", - "columns": { - "_order": { - "name": "_order", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_path": { - "name": "_path", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "varchar", - "primaryKey": true, - "notNull": true - }, - "width": { - "name": "width", - "type": "enum_pages_blocks_text_block_width", - "typeSchema": "public", - "primaryKey": false, - "notNull": false, - "default": "'medium'" - }, - "block_name": { - "name": "block_name", - "type": "varchar", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "pages_blocks_text_block_order_idx": { - "name": "pages_blocks_text_block_order_idx", - "columns": [ - { - "expression": "_order", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "pages_blocks_text_block_parent_id_idx": { - "name": "pages_blocks_text_block_parent_id_idx", - "columns": [ - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "pages_blocks_text_block_path_idx": { - "name": "pages_blocks_text_block_path_idx", - "columns": [ - { - "expression": "_path", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "pages_blocks_text_block_parent_id_fk": { - "name": "pages_blocks_text_block_parent_id_fk", - "tableFrom": "pages_blocks_text_block", - "tableTo": "pages", - "columnsFrom": [ - "_parent_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.pages_blocks_text_block_locales": { - "name": "pages_blocks_text_block_locales", - "schema": "", - "columns": { - "content": { - "name": "content", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "serial", - "primaryKey": true, - "notNull": true - }, - "_locale": { - "name": "_locale", - "type": "_locales", - "typeSchema": "public", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "varchar", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "pages_blocks_text_block_locales_locale_parent_id_unique": { - "name": "pages_blocks_text_block_locales_locale_parent_id_unique", - "columns": [ - { - "expression": "_locale", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "pages_blocks_text_block_locales_parent_id_fk": { - "name": "pages_blocks_text_block_locales_parent_id_fk", - "tableFrom": "pages_blocks_text_block_locales", - "tableTo": "pages_blocks_text_block", - "columnsFrom": [ - "_parent_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.pages_blocks_image_text_block": { - "name": "pages_blocks_image_text_block", - "schema": "", - "columns": { - "_order": { - "name": "_order", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_path": { - "name": "_path", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "varchar", - "primaryKey": true, - "notNull": true - }, - "image_id": { - "name": "image_id", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "image_position": { - "name": "image_position", - "type": "enum_pages_blocks_image_text_block_image_position", - "typeSchema": "public", - "primaryKey": false, - "notNull": false, - "default": "'left'" - }, - "cta_link": { - "name": "cta_link", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "block_name": { - "name": "block_name", - "type": "varchar", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "pages_blocks_image_text_block_order_idx": { - "name": "pages_blocks_image_text_block_order_idx", - "columns": [ - { - "expression": "_order", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "pages_blocks_image_text_block_parent_id_idx": { - "name": "pages_blocks_image_text_block_parent_id_idx", - "columns": [ - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "pages_blocks_image_text_block_path_idx": { - "name": "pages_blocks_image_text_block_path_idx", - "columns": [ - { - "expression": "_path", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "pages_blocks_image_text_block_image_idx": { - "name": "pages_blocks_image_text_block_image_idx", - "columns": [ - { - "expression": "image_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "pages_blocks_image_text_block_image_id_media_id_fk": { - "name": "pages_blocks_image_text_block_image_id_media_id_fk", - "tableFrom": "pages_blocks_image_text_block", - "tableTo": "media", - "columnsFrom": [ - "image_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "set null", - "onUpdate": "no action" - }, - "pages_blocks_image_text_block_parent_id_fk": { - "name": "pages_blocks_image_text_block_parent_id_fk", - "tableFrom": "pages_blocks_image_text_block", - "tableTo": "pages", - "columnsFrom": [ - "_parent_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.pages_blocks_image_text_block_locales": { - "name": "pages_blocks_image_text_block_locales", - "schema": "", - "columns": { - "headline": { - "name": "headline", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "content": { - "name": "content", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "cta_text": { - "name": "cta_text", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "id": { - "name": "id", - "type": "serial", - "primaryKey": true, - "notNull": true - }, - "_locale": { - "name": "_locale", - "type": "_locales", - "typeSchema": "public", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "varchar", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "pages_blocks_image_text_block_locales_locale_parent_id_uniqu": { - "name": "pages_blocks_image_text_block_locales_locale_parent_id_uniqu", - "columns": [ - { - "expression": "_locale", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "pages_blocks_image_text_block_locales_parent_id_fk": { - "name": "pages_blocks_image_text_block_locales_parent_id_fk", - "tableFrom": "pages_blocks_image_text_block_locales", - "tableTo": "pages_blocks_image_text_block", - "columnsFrom": [ - "_parent_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.pages_blocks_card_grid_block_cards": { - "name": "pages_blocks_card_grid_block_cards", - "schema": "", - "columns": { - "_order": { - "name": "_order", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "varchar", - "primaryKey": true, - "notNull": true - }, - "image_id": { - "name": "image_id", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "link": { - "name": "link", - "type": "varchar", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "pages_blocks_card_grid_block_cards_order_idx": { - "name": "pages_blocks_card_grid_block_cards_order_idx", - "columns": [ - { - "expression": "_order", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "pages_blocks_card_grid_block_cards_parent_id_idx": { - "name": "pages_blocks_card_grid_block_cards_parent_id_idx", - "columns": [ - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "pages_blocks_card_grid_block_cards_image_idx": { - "name": "pages_blocks_card_grid_block_cards_image_idx", - "columns": [ - { - "expression": "image_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "pages_blocks_card_grid_block_cards_image_id_media_id_fk": { - "name": "pages_blocks_card_grid_block_cards_image_id_media_id_fk", - "tableFrom": "pages_blocks_card_grid_block_cards", - "tableTo": "media", - "columnsFrom": [ - "image_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "set null", - "onUpdate": "no action" - }, - "pages_blocks_card_grid_block_cards_parent_id_fk": { - "name": "pages_blocks_card_grid_block_cards_parent_id_fk", - "tableFrom": "pages_blocks_card_grid_block_cards", - "tableTo": "pages_blocks_card_grid_block", - "columnsFrom": [ - "_parent_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.pages_blocks_card_grid_block_cards_locales": { - "name": "pages_blocks_card_grid_block_cards_locales", - "schema": "", - "columns": { - "title": { - "name": "title", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "description": { - "name": "description", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "link_text": { - "name": "link_text", - "type": "varchar", - "primaryKey": false, - "notNull": false, - "default": "'mehr'" - }, - "id": { - "name": "id", - "type": "serial", - "primaryKey": true, - "notNull": true - }, - "_locale": { - "name": "_locale", - "type": "_locales", - "typeSchema": "public", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "varchar", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "pages_blocks_card_grid_block_cards_locales_locale_parent_id_": { - "name": "pages_blocks_card_grid_block_cards_locales_locale_parent_id_", - "columns": [ - { - "expression": "_locale", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "pages_blocks_card_grid_block_cards_locales_parent_id_fk": { - "name": "pages_blocks_card_grid_block_cards_locales_parent_id_fk", - "tableFrom": "pages_blocks_card_grid_block_cards_locales", - "tableTo": "pages_blocks_card_grid_block_cards", - "columnsFrom": [ - "_parent_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.pages_blocks_card_grid_block": { - "name": "pages_blocks_card_grid_block", - "schema": "", - "columns": { - "_order": { - "name": "_order", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_path": { - "name": "_path", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "varchar", - "primaryKey": true, - "notNull": true - }, - "columns": { - "name": "columns", - "type": "enum_pages_blocks_card_grid_block_columns", - "typeSchema": "public", - "primaryKey": false, - "notNull": false, - "default": "'3'" - }, - "block_name": { - "name": "block_name", - "type": "varchar", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "pages_blocks_card_grid_block_order_idx": { - "name": "pages_blocks_card_grid_block_order_idx", - "columns": [ - { - "expression": "_order", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "pages_blocks_card_grid_block_parent_id_idx": { - "name": "pages_blocks_card_grid_block_parent_id_idx", - "columns": [ - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "pages_blocks_card_grid_block_path_idx": { - "name": "pages_blocks_card_grid_block_path_idx", - "columns": [ - { - "expression": "_path", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "pages_blocks_card_grid_block_parent_id_fk": { - "name": "pages_blocks_card_grid_block_parent_id_fk", - "tableFrom": "pages_blocks_card_grid_block", - "tableTo": "pages", - "columnsFrom": [ - "_parent_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.pages_blocks_card_grid_block_locales": { - "name": "pages_blocks_card_grid_block_locales", - "schema": "", - "columns": { - "headline": { - "name": "headline", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "id": { - "name": "id", - "type": "serial", - "primaryKey": true, - "notNull": true - }, - "_locale": { - "name": "_locale", - "type": "_locales", - "typeSchema": "public", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "varchar", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "pages_blocks_card_grid_block_locales_locale_parent_id_unique": { - "name": "pages_blocks_card_grid_block_locales_locale_parent_id_unique", - "columns": [ - { - "expression": "_locale", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "pages_blocks_card_grid_block_locales_parent_id_fk": { - "name": "pages_blocks_card_grid_block_locales_parent_id_fk", - "tableFrom": "pages_blocks_card_grid_block_locales", - "tableTo": "pages_blocks_card_grid_block", - "columnsFrom": [ - "_parent_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.pages_blocks_quote_block": { - "name": "pages_blocks_quote_block", - "schema": "", - "columns": { - "_order": { - "name": "_order", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_path": { - "name": "_path", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "varchar", - "primaryKey": true, - "notNull": true - }, - "author": { - "name": "author", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "image_id": { - "name": "image_id", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "style": { - "name": "style", - "type": "enum_pages_blocks_quote_block_style", - "typeSchema": "public", - "primaryKey": false, - "notNull": false, - "default": "'simple'" - }, - "block_name": { - "name": "block_name", - "type": "varchar", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "pages_blocks_quote_block_order_idx": { - "name": "pages_blocks_quote_block_order_idx", - "columns": [ - { - "expression": "_order", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "pages_blocks_quote_block_parent_id_idx": { - "name": "pages_blocks_quote_block_parent_id_idx", - "columns": [ - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "pages_blocks_quote_block_path_idx": { - "name": "pages_blocks_quote_block_path_idx", - "columns": [ - { - "expression": "_path", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "pages_blocks_quote_block_image_idx": { - "name": "pages_blocks_quote_block_image_idx", - "columns": [ - { - "expression": "image_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "pages_blocks_quote_block_image_id_media_id_fk": { - "name": "pages_blocks_quote_block_image_id_media_id_fk", - "tableFrom": "pages_blocks_quote_block", - "tableTo": "media", - "columnsFrom": [ - "image_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "set null", - "onUpdate": "no action" - }, - "pages_blocks_quote_block_parent_id_fk": { - "name": "pages_blocks_quote_block_parent_id_fk", - "tableFrom": "pages_blocks_quote_block", - "tableTo": "pages", - "columnsFrom": [ - "_parent_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.pages_blocks_quote_block_locales": { - "name": "pages_blocks_quote_block_locales", - "schema": "", - "columns": { - "quote": { - "name": "quote", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "role": { - "name": "role", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "id": { - "name": "id", - "type": "serial", - "primaryKey": true, - "notNull": true - }, - "_locale": { - "name": "_locale", - "type": "_locales", - "typeSchema": "public", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "varchar", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "pages_blocks_quote_block_locales_locale_parent_id_unique": { - "name": "pages_blocks_quote_block_locales_locale_parent_id_unique", - "columns": [ - { - "expression": "_locale", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "pages_blocks_quote_block_locales_parent_id_fk": { - "name": "pages_blocks_quote_block_locales_parent_id_fk", - "tableFrom": "pages_blocks_quote_block_locales", - "tableTo": "pages_blocks_quote_block", - "columnsFrom": [ - "_parent_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.pages_blocks_cta_block_buttons": { - "name": "pages_blocks_cta_block_buttons", - "schema": "", - "columns": { - "_order": { - "name": "_order", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "varchar", - "primaryKey": true, - "notNull": true - }, - "link": { - "name": "link", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "style": { - "name": "style", - "type": "enum_pages_blocks_cta_block_buttons_style", - "typeSchema": "public", - "primaryKey": false, - "notNull": false, - "default": "'primary'" - } - }, - "indexes": { - "pages_blocks_cta_block_buttons_order_idx": { - "name": "pages_blocks_cta_block_buttons_order_idx", - "columns": [ - { - "expression": "_order", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "pages_blocks_cta_block_buttons_parent_id_idx": { - "name": "pages_blocks_cta_block_buttons_parent_id_idx", - "columns": [ - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "pages_blocks_cta_block_buttons_parent_id_fk": { - "name": "pages_blocks_cta_block_buttons_parent_id_fk", - "tableFrom": "pages_blocks_cta_block_buttons", - "tableTo": "pages_blocks_cta_block", - "columnsFrom": [ - "_parent_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.pages_blocks_cta_block_buttons_locales": { - "name": "pages_blocks_cta_block_buttons_locales", - "schema": "", - "columns": { - "text": { - "name": "text", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "serial", - "primaryKey": true, - "notNull": true - }, - "_locale": { - "name": "_locale", - "type": "_locales", - "typeSchema": "public", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "varchar", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "pages_blocks_cta_block_buttons_locales_locale_parent_id_uniq": { - "name": "pages_blocks_cta_block_buttons_locales_locale_parent_id_uniq", - "columns": [ - { - "expression": "_locale", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "pages_blocks_cta_block_buttons_locales_parent_id_fk": { - "name": "pages_blocks_cta_block_buttons_locales_parent_id_fk", - "tableFrom": "pages_blocks_cta_block_buttons_locales", - "tableTo": "pages_blocks_cta_block_buttons", - "columnsFrom": [ - "_parent_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.pages_blocks_cta_block": { - "name": "pages_blocks_cta_block", - "schema": "", - "columns": { - "_order": { - "name": "_order", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_path": { - "name": "_path", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "varchar", - "primaryKey": true, - "notNull": true - }, - "background_color": { - "name": "background_color", - "type": "enum_pages_blocks_cta_block_background_color", - "typeSchema": "public", - "primaryKey": false, - "notNull": false, - "default": "'dark'" - }, - "block_name": { - "name": "block_name", - "type": "varchar", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "pages_blocks_cta_block_order_idx": { - "name": "pages_blocks_cta_block_order_idx", - "columns": [ - { - "expression": "_order", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "pages_blocks_cta_block_parent_id_idx": { - "name": "pages_blocks_cta_block_parent_id_idx", - "columns": [ - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "pages_blocks_cta_block_path_idx": { - "name": "pages_blocks_cta_block_path_idx", - "columns": [ - { - "expression": "_path", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "pages_blocks_cta_block_parent_id_fk": { - "name": "pages_blocks_cta_block_parent_id_fk", - "tableFrom": "pages_blocks_cta_block", - "tableTo": "pages", - "columnsFrom": [ - "_parent_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.pages_blocks_cta_block_locales": { - "name": "pages_blocks_cta_block_locales", - "schema": "", - "columns": { - "headline": { - "name": "headline", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "description": { - "name": "description", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "id": { - "name": "id", - "type": "serial", - "primaryKey": true, - "notNull": true - }, - "_locale": { - "name": "_locale", - "type": "_locales", - "typeSchema": "public", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "varchar", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "pages_blocks_cta_block_locales_locale_parent_id_unique": { - "name": "pages_blocks_cta_block_locales_locale_parent_id_unique", - "columns": [ - { - "expression": "_locale", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "pages_blocks_cta_block_locales_parent_id_fk": { - "name": "pages_blocks_cta_block_locales_parent_id_fk", - "tableFrom": "pages_blocks_cta_block_locales", - "tableTo": "pages_blocks_cta_block", - "columnsFrom": [ - "_parent_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.pages_blocks_contact_form_block": { - "name": "pages_blocks_contact_form_block", - "schema": "", - "columns": { - "_order": { - "name": "_order", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_path": { - "name": "_path", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "varchar", - "primaryKey": true, - "notNull": true - }, - "recipient_email": { - "name": "recipient_email", - "type": "varchar", - "primaryKey": false, - "notNull": false, - "default": "'info@porwoll.de'" - }, - "show_phone": { - "name": "show_phone", - "type": "boolean", - "primaryKey": false, - "notNull": false, - "default": true - }, - "show_address": { - "name": "show_address", - "type": "boolean", - "primaryKey": false, - "notNull": false, - "default": true - }, - "show_socials": { - "name": "show_socials", - "type": "boolean", - "primaryKey": false, - "notNull": false, - "default": true - }, - "block_name": { - "name": "block_name", - "type": "varchar", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "pages_blocks_contact_form_block_order_idx": { - "name": "pages_blocks_contact_form_block_order_idx", - "columns": [ - { - "expression": "_order", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "pages_blocks_contact_form_block_parent_id_idx": { - "name": "pages_blocks_contact_form_block_parent_id_idx", - "columns": [ - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "pages_blocks_contact_form_block_path_idx": { - "name": "pages_blocks_contact_form_block_path_idx", - "columns": [ - { - "expression": "_path", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "pages_blocks_contact_form_block_parent_id_fk": { - "name": "pages_blocks_contact_form_block_parent_id_fk", - "tableFrom": "pages_blocks_contact_form_block", - "tableTo": "pages", - "columnsFrom": [ - "_parent_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.pages_blocks_contact_form_block_locales": { - "name": "pages_blocks_contact_form_block_locales", - "schema": "", - "columns": { - "headline": { - "name": "headline", - "type": "varchar", - "primaryKey": false, - "notNull": false, - "default": "'Kontakt'" - }, - "description": { - "name": "description", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "id": { - "name": "id", - "type": "serial", - "primaryKey": true, - "notNull": true - }, - "_locale": { - "name": "_locale", - "type": "_locales", - "typeSchema": "public", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "varchar", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "pages_blocks_contact_form_block_locales_locale_parent_id_uni": { - "name": "pages_blocks_contact_form_block_locales_locale_parent_id_uni", - "columns": [ - { - "expression": "_locale", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "pages_blocks_contact_form_block_locales_parent_id_fk": { - "name": "pages_blocks_contact_form_block_locales_parent_id_fk", - "tableFrom": "pages_blocks_contact_form_block_locales", - "tableTo": "pages_blocks_contact_form_block", - "columnsFrom": [ - "_parent_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.pages_blocks_timeline_block_items": { - "name": "pages_blocks_timeline_block_items", - "schema": "", - "columns": { - "_order": { - "name": "_order", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "varchar", - "primaryKey": true, - "notNull": true - }, - "year": { - "name": "year", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "icon": { - "name": "icon", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "image_id": { - "name": "image_id", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "link_href": { - "name": "link_href", - "type": "varchar", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "pages_blocks_timeline_block_items_order_idx": { - "name": "pages_blocks_timeline_block_items_order_idx", - "columns": [ - { - "expression": "_order", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "pages_blocks_timeline_block_items_parent_id_idx": { - "name": "pages_blocks_timeline_block_items_parent_id_idx", - "columns": [ - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "pages_blocks_timeline_block_items_image_idx": { - "name": "pages_blocks_timeline_block_items_image_idx", - "columns": [ - { - "expression": "image_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "pages_blocks_timeline_block_items_image_id_media_id_fk": { - "name": "pages_blocks_timeline_block_items_image_id_media_id_fk", - "tableFrom": "pages_blocks_timeline_block_items", - "tableTo": "media", - "columnsFrom": [ - "image_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "set null", - "onUpdate": "no action" - }, - "pages_blocks_timeline_block_items_parent_id_fk": { - "name": "pages_blocks_timeline_block_items_parent_id_fk", - "tableFrom": "pages_blocks_timeline_block_items", - "tableTo": "pages_blocks_timeline_block", - "columnsFrom": [ - "_parent_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.pages_blocks_timeline_block_items_locales": { - "name": "pages_blocks_timeline_block_items_locales", - "schema": "", - "columns": { - "title": { - "name": "title", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "description": { - "name": "description", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "link_label": { - "name": "link_label", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "id": { - "name": "id", - "type": "serial", - "primaryKey": true, - "notNull": true - }, - "_locale": { - "name": "_locale", - "type": "_locales", - "typeSchema": "public", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "varchar", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "pages_blocks_timeline_block_items_locales_locale_parent_id_u": { - "name": "pages_blocks_timeline_block_items_locales_locale_parent_id_u", - "columns": [ - { - "expression": "_locale", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "pages_blocks_timeline_block_items_locales_parent_id_fk": { - "name": "pages_blocks_timeline_block_items_locales_parent_id_fk", - "tableFrom": "pages_blocks_timeline_block_items_locales", - "tableTo": "pages_blocks_timeline_block_items", - "columnsFrom": [ - "_parent_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.pages_blocks_timeline_block": { - "name": "pages_blocks_timeline_block", - "schema": "", - "columns": { - "_order": { - "name": "_order", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_path": { - "name": "_path", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "varchar", - "primaryKey": true, - "notNull": true - }, - "layout": { - "name": "layout", - "type": "enum_pages_blocks_timeline_block_layout", - "typeSchema": "public", - "primaryKey": false, - "notNull": false, - "default": "'vertical'" - }, - "show_connector": { - "name": "show_connector", - "type": "boolean", - "primaryKey": false, - "notNull": false, - "default": true - }, - "marker_style": { - "name": "marker_style", - "type": "enum_pages_blocks_timeline_block_marker_style", - "typeSchema": "public", - "primaryKey": false, - "notNull": false, - "default": "'dot'" - }, - "background_color": { - "name": "background_color", - "type": "enum_pages_blocks_timeline_block_background_color", - "typeSchema": "public", - "primaryKey": false, - "notNull": false, - "default": "'white'" - }, - "block_name": { - "name": "block_name", - "type": "varchar", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "pages_blocks_timeline_block_order_idx": { - "name": "pages_blocks_timeline_block_order_idx", - "columns": [ - { - "expression": "_order", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "pages_blocks_timeline_block_parent_id_idx": { - "name": "pages_blocks_timeline_block_parent_id_idx", - "columns": [ - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "pages_blocks_timeline_block_path_idx": { - "name": "pages_blocks_timeline_block_path_idx", - "columns": [ - { - "expression": "_path", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "pages_blocks_timeline_block_parent_id_fk": { - "name": "pages_blocks_timeline_block_parent_id_fk", - "tableFrom": "pages_blocks_timeline_block", - "tableTo": "pages", - "columnsFrom": [ - "_parent_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.pages_blocks_timeline_block_locales": { - "name": "pages_blocks_timeline_block_locales", - "schema": "", - "columns": { - "title": { - "name": "title", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "subtitle": { - "name": "subtitle", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "id": { - "name": "id", - "type": "serial", - "primaryKey": true, - "notNull": true - }, - "_locale": { - "name": "_locale", - "type": "_locales", - "typeSchema": "public", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "varchar", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "pages_blocks_timeline_block_locales_locale_parent_id_unique": { - "name": "pages_blocks_timeline_block_locales_locale_parent_id_unique", - "columns": [ - { - "expression": "_locale", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "pages_blocks_timeline_block_locales_parent_id_fk": { - "name": "pages_blocks_timeline_block_locales_parent_id_fk", - "tableFrom": "pages_blocks_timeline_block_locales", - "tableTo": "pages_blocks_timeline_block", - "columnsFrom": [ - "_parent_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.pages_blocks_divider_block": { - "name": "pages_blocks_divider_block", - "schema": "", - "columns": { - "_order": { - "name": "_order", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_path": { - "name": "_path", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "varchar", - "primaryKey": true, - "notNull": true - }, - "style": { - "name": "style", - "type": "enum_pages_blocks_divider_block_style", - "typeSchema": "public", - "primaryKey": false, - "notNull": false, - "default": "'space'" - }, - "spacing": { - "name": "spacing", - "type": "enum_pages_blocks_divider_block_spacing", - "typeSchema": "public", - "primaryKey": false, - "notNull": false, - "default": "'medium'" - }, - "block_name": { - "name": "block_name", - "type": "varchar", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "pages_blocks_divider_block_order_idx": { - "name": "pages_blocks_divider_block_order_idx", - "columns": [ - { - "expression": "_order", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "pages_blocks_divider_block_parent_id_idx": { - "name": "pages_blocks_divider_block_parent_id_idx", - "columns": [ - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "pages_blocks_divider_block_path_idx": { - "name": "pages_blocks_divider_block_path_idx", - "columns": [ - { - "expression": "_path", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "pages_blocks_divider_block_parent_id_fk": { - "name": "pages_blocks_divider_block_parent_id_fk", - "tableFrom": "pages_blocks_divider_block", - "tableTo": "pages", - "columnsFrom": [ - "_parent_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.pages_blocks_video_block": { - "name": "pages_blocks_video_block", - "schema": "", - "columns": { - "_order": { - "name": "_order", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_path": { - "name": "_path", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "varchar", - "primaryKey": true, - "notNull": true - }, - "video_url": { - "name": "video_url", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "aspect_ratio": { - "name": "aspect_ratio", - "type": "enum_pages_blocks_video_block_aspect_ratio", - "typeSchema": "public", - "primaryKey": false, - "notNull": false, - "default": "'16:9'" - }, - "block_name": { - "name": "block_name", - "type": "varchar", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "pages_blocks_video_block_order_idx": { - "name": "pages_blocks_video_block_order_idx", - "columns": [ - { - "expression": "_order", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "pages_blocks_video_block_parent_id_idx": { - "name": "pages_blocks_video_block_parent_id_idx", - "columns": [ - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "pages_blocks_video_block_path_idx": { - "name": "pages_blocks_video_block_path_idx", - "columns": [ - { - "expression": "_path", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "pages_blocks_video_block_parent_id_fk": { - "name": "pages_blocks_video_block_parent_id_fk", - "tableFrom": "pages_blocks_video_block", - "tableTo": "pages", - "columnsFrom": [ - "_parent_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.pages_blocks_video_block_locales": { - "name": "pages_blocks_video_block_locales", - "schema": "", - "columns": { - "caption": { - "name": "caption", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "id": { - "name": "id", - "type": "serial", - "primaryKey": true, - "notNull": true - }, - "_locale": { - "name": "_locale", - "type": "_locales", - "typeSchema": "public", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "varchar", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "pages_blocks_video_block_locales_locale_parent_id_unique": { - "name": "pages_blocks_video_block_locales_locale_parent_id_unique", - "columns": [ - { - "expression": "_locale", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "pages_blocks_video_block_locales_parent_id_fk": { - "name": "pages_blocks_video_block_locales_parent_id_fk", - "tableFrom": "pages_blocks_video_block_locales", - "tableTo": "pages_blocks_video_block", - "columnsFrom": [ - "_parent_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.pages_blocks_posts_list_block": { - "name": "pages_blocks_posts_list_block", - "schema": "", - "columns": { - "_order": { - "name": "_order", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_path": { - "name": "_path", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "varchar", - "primaryKey": true, - "notNull": true - }, - "post_type": { - "name": "post_type", - "type": "enum_pages_blocks_posts_list_block_post_type", - "typeSchema": "public", - "primaryKey": false, - "notNull": true, - "default": "'blog'" - }, - "layout": { - "name": "layout", - "type": "enum_pages_blocks_posts_list_block_layout", - "typeSchema": "public", - "primaryKey": false, - "notNull": false, - "default": "'grid'" - }, - "columns": { - "name": "columns", - "type": "enum_pages_blocks_posts_list_block_columns", - "typeSchema": "public", - "primaryKey": false, - "notNull": false, - "default": "'3'" - }, - "limit": { - "name": "limit", - "type": "numeric", - "primaryKey": false, - "notNull": false, - "default": 6 - }, - "show_featured_only": { - "name": "show_featured_only", - "type": "boolean", - "primaryKey": false, - "notNull": false, - "default": false - }, - "show_excerpt": { - "name": "show_excerpt", - "type": "boolean", - "primaryKey": false, - "notNull": false, - "default": true - }, - "show_date": { - "name": "show_date", - "type": "boolean", - "primaryKey": false, - "notNull": false, - "default": true - }, - "show_author": { - "name": "show_author", - "type": "boolean", - "primaryKey": false, - "notNull": false, - "default": false - }, - "show_category": { - "name": "show_category", - "type": "boolean", - "primaryKey": false, - "notNull": false, - "default": true - }, - "show_pagination": { - "name": "show_pagination", - "type": "boolean", - "primaryKey": false, - "notNull": false, - "default": false - }, - "show_read_more": { - "name": "show_read_more", - "type": "boolean", - "primaryKey": false, - "notNull": false, - "default": true - }, - "read_more_link": { - "name": "read_more_link", - "type": "varchar", - "primaryKey": false, - "notNull": false, - "default": "'/blog'" - }, - "background_color": { - "name": "background_color", - "type": "enum_pages_blocks_posts_list_block_background_color", - "typeSchema": "public", - "primaryKey": false, - "notNull": false, - "default": "'white'" - }, - "block_name": { - "name": "block_name", - "type": "varchar", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "pages_blocks_posts_list_block_order_idx": { - "name": "pages_blocks_posts_list_block_order_idx", - "columns": [ - { - "expression": "_order", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "pages_blocks_posts_list_block_parent_id_idx": { - "name": "pages_blocks_posts_list_block_parent_id_idx", - "columns": [ - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "pages_blocks_posts_list_block_path_idx": { - "name": "pages_blocks_posts_list_block_path_idx", - "columns": [ - { - "expression": "_path", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "pages_blocks_posts_list_block_parent_id_fk": { - "name": "pages_blocks_posts_list_block_parent_id_fk", - "tableFrom": "pages_blocks_posts_list_block", - "tableTo": "pages", - "columnsFrom": [ - "_parent_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.pages_blocks_posts_list_block_locales": { - "name": "pages_blocks_posts_list_block_locales", - "schema": "", - "columns": { - "title": { - "name": "title", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "subtitle": { - "name": "subtitle", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "read_more_label": { - "name": "read_more_label", - "type": "varchar", - "primaryKey": false, - "notNull": false, - "default": "'Alle Beiträge anzeigen'" - }, - "id": { - "name": "id", - "type": "serial", - "primaryKey": true, - "notNull": true - }, - "_locale": { - "name": "_locale", - "type": "_locales", - "typeSchema": "public", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "varchar", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "pages_blocks_posts_list_block_locales_locale_parent_id_uniqu": { - "name": "pages_blocks_posts_list_block_locales_locale_parent_id_uniqu", - "columns": [ - { - "expression": "_locale", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "pages_blocks_posts_list_block_locales_parent_id_fk": { - "name": "pages_blocks_posts_list_block_locales_parent_id_fk", - "tableFrom": "pages_blocks_posts_list_block_locales", - "tableTo": "pages_blocks_posts_list_block", - "columnsFrom": [ - "_parent_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.pages_blocks_testimonials_block": { - "name": "pages_blocks_testimonials_block", - "schema": "", - "columns": { - "_order": { - "name": "_order", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_path": { - "name": "_path", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "varchar", - "primaryKey": true, - "notNull": true - }, - "layout": { - "name": "layout", - "type": "enum_pages_blocks_testimonials_block_layout", - "typeSchema": "public", - "primaryKey": false, - "notNull": false, - "default": "'slider'" - }, - "columns": { - "name": "columns", - "type": "enum_pages_blocks_testimonials_block_columns", - "typeSchema": "public", - "primaryKey": false, - "notNull": false, - "default": "'3'" - }, - "display_mode": { - "name": "display_mode", - "type": "enum_pages_blocks_testimonials_block_display_mode", - "typeSchema": "public", - "primaryKey": false, - "notNull": false, - "default": "'all'" - }, - "limit": { - "name": "limit", - "type": "numeric", - "primaryKey": false, - "notNull": false, - "default": 6 - }, - "show_rating": { - "name": "show_rating", - "type": "boolean", - "primaryKey": false, - "notNull": false, - "default": true - }, - "show_image": { - "name": "show_image", - "type": "boolean", - "primaryKey": false, - "notNull": false, - "default": true - }, - "show_company": { - "name": "show_company", - "type": "boolean", - "primaryKey": false, - "notNull": false, - "default": true - }, - "show_source": { - "name": "show_source", - "type": "boolean", - "primaryKey": false, - "notNull": false, - "default": false - }, - "autoplay": { - "name": "autoplay", - "type": "boolean", - "primaryKey": false, - "notNull": false, - "default": true - }, - "autoplay_speed": { - "name": "autoplay_speed", - "type": "numeric", - "primaryKey": false, - "notNull": false, - "default": 5000 - }, - "background_color": { - "name": "background_color", - "type": "enum_pages_blocks_testimonials_block_background_color", - "typeSchema": "public", - "primaryKey": false, - "notNull": false, - "default": "'light'" - }, - "block_name": { - "name": "block_name", - "type": "varchar", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "pages_blocks_testimonials_block_order_idx": { - "name": "pages_blocks_testimonials_block_order_idx", - "columns": [ - { - "expression": "_order", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "pages_blocks_testimonials_block_parent_id_idx": { - "name": "pages_blocks_testimonials_block_parent_id_idx", - "columns": [ - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "pages_blocks_testimonials_block_path_idx": { - "name": "pages_blocks_testimonials_block_path_idx", - "columns": [ - { - "expression": "_path", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "pages_blocks_testimonials_block_parent_id_fk": { - "name": "pages_blocks_testimonials_block_parent_id_fk", - "tableFrom": "pages_blocks_testimonials_block", - "tableTo": "pages", - "columnsFrom": [ - "_parent_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.pages_blocks_testimonials_block_locales": { - "name": "pages_blocks_testimonials_block_locales", - "schema": "", - "columns": { - "title": { - "name": "title", - "type": "varchar", - "primaryKey": false, - "notNull": false, - "default": "'Das sagen unsere Kunden'" - }, - "subtitle": { - "name": "subtitle", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "id": { - "name": "id", - "type": "serial", - "primaryKey": true, - "notNull": true - }, - "_locale": { - "name": "_locale", - "type": "_locales", - "typeSchema": "public", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "varchar", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "pages_blocks_testimonials_block_locales_locale_parent_id_uni": { - "name": "pages_blocks_testimonials_block_locales_locale_parent_id_uni", - "columns": [ - { - "expression": "_locale", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "pages_blocks_testimonials_block_locales_parent_id_fk": { - "name": "pages_blocks_testimonials_block_locales_parent_id_fk", - "tableFrom": "pages_blocks_testimonials_block_locales", - "tableTo": "pages_blocks_testimonials_block", - "columnsFrom": [ - "_parent_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.pages_blocks_newsletter_block_available_interests": { - "name": "pages_blocks_newsletter_block_available_interests", - "schema": "", - "columns": { - "order": { - "name": "order", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "parent_id": { - "name": "parent_id", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "value": { - "name": "value", - "type": "enum_pages_blocks_newsletter_block_available_interests", - "typeSchema": "public", - "primaryKey": false, - "notNull": false - }, - "id": { - "name": "id", - "type": "serial", - "primaryKey": true, - "notNull": true - } - }, - "indexes": { - "pages_blocks_newsletter_block_available_interests_order_idx": { - "name": "pages_blocks_newsletter_block_available_interests_order_idx", - "columns": [ - { - "expression": "order", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "pages_blocks_newsletter_block_available_interests_parent_idx": { - "name": "pages_blocks_newsletter_block_available_interests_parent_idx", - "columns": [ - { - "expression": "parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "pages_blocks_newsletter_block_available_interests_parent_fk": { - "name": "pages_blocks_newsletter_block_available_interests_parent_fk", - "tableFrom": "pages_blocks_newsletter_block_available_interests", - "tableTo": "pages_blocks_newsletter_block", - "columnsFrom": [ - "parent_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.pages_blocks_newsletter_block": { - "name": "pages_blocks_newsletter_block", - "schema": "", - "columns": { - "_order": { - "name": "_order", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_path": { - "name": "_path", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "varchar", - "primaryKey": true, - "notNull": true - }, - "layout": { - "name": "layout", - "type": "enum_pages_blocks_newsletter_block_layout", - "typeSchema": "public", - "primaryKey": false, - "notNull": false, - "default": "'inline'" - }, - "image_id": { - "name": "image_id", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "image_position": { - "name": "image_position", - "type": "enum_pages_blocks_newsletter_block_image_position", - "typeSchema": "public", - "primaryKey": false, - "notNull": false, - "default": "'left'" - }, - "collect_name": { - "name": "collect_name", - "type": "boolean", - "primaryKey": false, - "notNull": false, - "default": false - }, - "show_interests": { - "name": "show_interests", - "type": "boolean", - "primaryKey": false, - "notNull": false, - "default": false - }, - "privacy_link": { - "name": "privacy_link", - "type": "varchar", - "primaryKey": false, - "notNull": false, - "default": "'/datenschutz'" - }, - "source": { - "name": "source", - "type": "varchar", - "primaryKey": false, - "notNull": false, - "default": "'website'" - }, - "background_color": { - "name": "background_color", - "type": "enum_pages_blocks_newsletter_block_background_color", - "typeSchema": "public", - "primaryKey": false, - "notNull": false, - "default": "'accent'" - }, - "block_name": { - "name": "block_name", - "type": "varchar", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "pages_blocks_newsletter_block_order_idx": { - "name": "pages_blocks_newsletter_block_order_idx", - "columns": [ - { - "expression": "_order", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "pages_blocks_newsletter_block_parent_id_idx": { - "name": "pages_blocks_newsletter_block_parent_id_idx", - "columns": [ - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "pages_blocks_newsletter_block_path_idx": { - "name": "pages_blocks_newsletter_block_path_idx", - "columns": [ - { - "expression": "_path", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "pages_blocks_newsletter_block_image_idx": { - "name": "pages_blocks_newsletter_block_image_idx", - "columns": [ - { - "expression": "image_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "pages_blocks_newsletter_block_image_id_media_id_fk": { - "name": "pages_blocks_newsletter_block_image_id_media_id_fk", - "tableFrom": "pages_blocks_newsletter_block", - "tableTo": "media", - "columnsFrom": [ - "image_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "set null", - "onUpdate": "no action" - }, - "pages_blocks_newsletter_block_parent_id_fk": { - "name": "pages_blocks_newsletter_block_parent_id_fk", - "tableFrom": "pages_blocks_newsletter_block", - "tableTo": "pages", - "columnsFrom": [ - "_parent_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.pages_blocks_newsletter_block_locales": { - "name": "pages_blocks_newsletter_block_locales", - "schema": "", - "columns": { - "title": { - "name": "title", - "type": "varchar", - "primaryKey": false, - "notNull": false, - "default": "'Newsletter abonnieren'" - }, - "subtitle": { - "name": "subtitle", - "type": "varchar", - "primaryKey": false, - "notNull": false, - "default": "'Erhalten Sie regelmäßig Updates und Neuigkeiten direkt in Ihr Postfach.'" - }, - "button_text": { - "name": "button_text", - "type": "varchar", - "primaryKey": false, - "notNull": false, - "default": "'Anmelden'" - }, - "placeholder_email": { - "name": "placeholder_email", - "type": "varchar", - "primaryKey": false, - "notNull": false, - "default": "'Ihre E-Mail-Adresse'" - }, - "success_message": { - "name": "success_message", - "type": "varchar", - "primaryKey": false, - "notNull": false, - "default": "'Vielen Dank! Bitte bestätigen Sie Ihre E-Mail-Adresse über den Link in der Bestätigungsmail.'" - }, - "error_message": { - "name": "error_message", - "type": "varchar", - "primaryKey": false, - "notNull": false, - "default": "'Es ist ein Fehler aufgetreten. Bitte versuchen Sie es später erneut.'" - }, - "privacy_text": { - "name": "privacy_text", - "type": "varchar", - "primaryKey": false, - "notNull": false, - "default": "'Mit der Anmeldung akzeptieren Sie unsere Datenschutzerklärung. Sie können sich jederzeit abmelden.'" - }, - "id": { - "name": "id", - "type": "serial", - "primaryKey": true, - "notNull": true - }, - "_locale": { - "name": "_locale", - "type": "_locales", - "typeSchema": "public", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "varchar", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "pages_blocks_newsletter_block_locales_locale_parent_id_uniqu": { - "name": "pages_blocks_newsletter_block_locales_locale_parent_id_uniqu", - "columns": [ - { - "expression": "_locale", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "pages_blocks_newsletter_block_locales_parent_id_fk": { - "name": "pages_blocks_newsletter_block_locales_parent_id_fk", - "tableFrom": "pages_blocks_newsletter_block_locales", - "tableTo": "pages_blocks_newsletter_block", - "columnsFrom": [ - "_parent_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.pages_blocks_process_steps_block_steps": { - "name": "pages_blocks_process_steps_block_steps", - "schema": "", - "columns": { - "_order": { - "name": "_order", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "varchar", - "primaryKey": true, - "notNull": true - }, - "icon": { - "name": "icon", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "image_id": { - "name": "image_id", - "type": "integer", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "pages_blocks_process_steps_block_steps_order_idx": { - "name": "pages_blocks_process_steps_block_steps_order_idx", - "columns": [ - { - "expression": "_order", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "pages_blocks_process_steps_block_steps_parent_id_idx": { - "name": "pages_blocks_process_steps_block_steps_parent_id_idx", - "columns": [ - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "pages_blocks_process_steps_block_steps_image_idx": { - "name": "pages_blocks_process_steps_block_steps_image_idx", - "columns": [ - { - "expression": "image_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "pages_blocks_process_steps_block_steps_image_id_media_id_fk": { - "name": "pages_blocks_process_steps_block_steps_image_id_media_id_fk", - "tableFrom": "pages_blocks_process_steps_block_steps", - "tableTo": "media", - "columnsFrom": [ - "image_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "set null", - "onUpdate": "no action" - }, - "pages_blocks_process_steps_block_steps_parent_id_fk": { - "name": "pages_blocks_process_steps_block_steps_parent_id_fk", - "tableFrom": "pages_blocks_process_steps_block_steps", - "tableTo": "pages_blocks_process_steps_block", - "columnsFrom": [ - "_parent_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.pages_blocks_process_steps_block_steps_locales": { - "name": "pages_blocks_process_steps_block_steps_locales", - "schema": "", - "columns": { - "title": { - "name": "title", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "description": { - "name": "description", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "id": { - "name": "id", - "type": "serial", - "primaryKey": true, - "notNull": true - }, - "_locale": { - "name": "_locale", - "type": "_locales", - "typeSchema": "public", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "varchar", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "pages_blocks_process_steps_block_steps_locales_locale_parent": { - "name": "pages_blocks_process_steps_block_steps_locales_locale_parent", - "columns": [ - { - "expression": "_locale", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "pages_blocks_process_steps_block_steps_locales_parent_id_fk": { - "name": "pages_blocks_process_steps_block_steps_locales_parent_id_fk", - "tableFrom": "pages_blocks_process_steps_block_steps_locales", - "tableTo": "pages_blocks_process_steps_block_steps", - "columnsFrom": [ - "_parent_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.pages_blocks_process_steps_block": { - "name": "pages_blocks_process_steps_block", - "schema": "", - "columns": { - "_order": { - "name": "_order", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_path": { - "name": "_path", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "varchar", - "primaryKey": true, - "notNull": true - }, - "layout": { - "name": "layout", - "type": "enum_pages_blocks_process_steps_block_layout", - "typeSchema": "public", - "primaryKey": false, - "notNull": false, - "default": "'horizontal'" - }, - "show_numbers": { - "name": "show_numbers", - "type": "boolean", - "primaryKey": false, - "notNull": false, - "default": true - }, - "show_icons": { - "name": "show_icons", - "type": "boolean", - "primaryKey": false, - "notNull": false, - "default": true - }, - "cta_show": { - "name": "cta_show", - "type": "boolean", - "primaryKey": false, - "notNull": false, - "default": false - }, - "cta_href": { - "name": "cta_href", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "cta_variant": { - "name": "cta_variant", - "type": "enum_pages_blocks_process_steps_block_cta_variant", - "typeSchema": "public", - "primaryKey": false, - "notNull": false, - "default": "'default'" - }, - "background_color": { - "name": "background_color", - "type": "enum_pages_blocks_process_steps_block_background_color", - "typeSchema": "public", - "primaryKey": false, - "notNull": false, - "default": "'white'" - }, - "block_name": { - "name": "block_name", - "type": "varchar", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "pages_blocks_process_steps_block_order_idx": { - "name": "pages_blocks_process_steps_block_order_idx", - "columns": [ - { - "expression": "_order", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "pages_blocks_process_steps_block_parent_id_idx": { - "name": "pages_blocks_process_steps_block_parent_id_idx", - "columns": [ - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "pages_blocks_process_steps_block_path_idx": { - "name": "pages_blocks_process_steps_block_path_idx", - "columns": [ - { - "expression": "_path", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "pages_blocks_process_steps_block_parent_id_fk": { - "name": "pages_blocks_process_steps_block_parent_id_fk", - "tableFrom": "pages_blocks_process_steps_block", - "tableTo": "pages", - "columnsFrom": [ - "_parent_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.pages_blocks_process_steps_block_locales": { - "name": "pages_blocks_process_steps_block_locales", - "schema": "", - "columns": { - "title": { - "name": "title", - "type": "varchar", - "primaryKey": false, - "notNull": false, - "default": "'So funktioniert es'" - }, - "subtitle": { - "name": "subtitle", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "cta_label": { - "name": "cta_label", - "type": "varchar", - "primaryKey": false, - "notNull": false, - "default": "'Jetzt starten'" - }, - "id": { - "name": "id", - "type": "serial", - "primaryKey": true, - "notNull": true - }, - "_locale": { - "name": "_locale", - "type": "_locales", - "typeSchema": "public", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "varchar", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "pages_blocks_process_steps_block_locales_locale_parent_id_un": { - "name": "pages_blocks_process_steps_block_locales_locale_parent_id_un", - "columns": [ - { - "expression": "_locale", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "pages_blocks_process_steps_block_locales_parent_id_fk": { - "name": "pages_blocks_process_steps_block_locales_parent_id_fk", - "tableFrom": "pages_blocks_process_steps_block_locales", - "tableTo": "pages_blocks_process_steps_block", - "columnsFrom": [ - "_parent_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.pages": { - "name": "pages", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "serial", - "primaryKey": true, - "notNull": true - }, - "tenant_id": { - "name": "tenant_id", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "hero_image_id": { - "name": "hero_image_id", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "seo_og_image_id": { - "name": "seo_og_image_id", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "status": { - "name": "status", - "type": "enum_pages_status", - "typeSchema": "public", - "primaryKey": false, - "notNull": false, - "default": "'draft'" - }, - "published_at": { - "name": "published_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "created_at": { - "name": "created_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - } - }, - "indexes": { - "pages_tenant_idx": { - "name": "pages_tenant_idx", - "columns": [ - { - "expression": "tenant_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "pages_hero_hero_image_idx": { - "name": "pages_hero_hero_image_idx", - "columns": [ - { - "expression": "hero_image_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "pages_seo_seo_og_image_idx": { - "name": "pages_seo_seo_og_image_idx", - "columns": [ - { - "expression": "seo_og_image_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "pages_updated_at_idx": { - "name": "pages_updated_at_idx", - "columns": [ - { - "expression": "updated_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "pages_created_at_idx": { - "name": "pages_created_at_idx", - "columns": [ - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "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" - }, - "pages_hero_image_id_media_id_fk": { - "name": "pages_hero_image_id_media_id_fk", - "tableFrom": "pages", - "tableTo": "media", - "columnsFrom": [ - "hero_image_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "set null", - "onUpdate": "no action" - }, - "pages_seo_og_image_id_media_id_fk": { - "name": "pages_seo_og_image_id_media_id_fk", - "tableFrom": "pages", - "tableTo": "media", - "columnsFrom": [ - "seo_og_image_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "set null", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.pages_locales": { - "name": "pages_locales", - "schema": "", - "columns": { - "title": { - "name": "title", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "slug": { - "name": "slug", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "hero_headline": { - "name": "hero_headline", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "hero_subline": { - "name": "hero_subline", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "seo_meta_title": { - "name": "seo_meta_title", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "seo_meta_description": { - "name": "seo_meta_description", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "id": { - "name": "id", - "type": "serial", - "primaryKey": true, - "notNull": true - }, - "_locale": { - "name": "_locale", - "type": "_locales", - "typeSchema": "public", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "integer", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "pages_locales_locale_parent_id_unique": { - "name": "pages_locales_locale_parent_id_unique", - "columns": [ - { - "expression": "_locale", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "pages_locales_parent_id_fk": { - "name": "pages_locales_parent_id_fk", - "tableFrom": "pages_locales", - "tableTo": "pages", - "columnsFrom": [ - "_parent_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.pages_rels": { - "name": "pages_rels", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "serial", - "primaryKey": true, - "notNull": true - }, - "order": { - "name": "order", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "parent_id": { - "name": "parent_id", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "path": { - "name": "path", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "categories_id": { - "name": "categories_id", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "testimonials_id": { - "name": "testimonials_id", - "type": "integer", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "pages_rels_order_idx": { - "name": "pages_rels_order_idx", - "columns": [ - { - "expression": "order", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "pages_rels_parent_idx": { - "name": "pages_rels_parent_idx", - "columns": [ - { - "expression": "parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "pages_rels_path_idx": { - "name": "pages_rels_path_idx", - "columns": [ - { - "expression": "path", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "pages_rels_categories_id_idx": { - "name": "pages_rels_categories_id_idx", - "columns": [ - { - "expression": "categories_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "pages_rels_testimonials_id_idx": { - "name": "pages_rels_testimonials_id_idx", - "columns": [ - { - "expression": "testimonials_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "pages_rels_parent_fk": { - "name": "pages_rels_parent_fk", - "tableFrom": "pages_rels", - "tableTo": "pages", - "columnsFrom": [ - "parent_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - }, - "pages_rels_categories_fk": { - "name": "pages_rels_categories_fk", - "tableFrom": "pages_rels", - "tableTo": "categories", - "columnsFrom": [ - "categories_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - }, - "pages_rels_testimonials_fk": { - "name": "pages_rels_testimonials_fk", - "tableFrom": "pages_rels", - "tableTo": "testimonials", - "columnsFrom": [ - "testimonials_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.posts": { - "name": "posts", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "serial", - "primaryKey": true, - "notNull": true - }, - "tenant_id": { - "name": "tenant_id", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "type": { - "name": "type", - "type": "enum_posts_type", - "typeSchema": "public", - "primaryKey": false, - "notNull": true, - "default": "'blog'" - }, - "is_featured": { - "name": "is_featured", - "type": "boolean", - "primaryKey": false, - "notNull": false, - "default": false - }, - "featured_image_id": { - "name": "featured_image_id", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "author": { - "name": "author", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "status": { - "name": "status", - "type": "enum_posts_status", - "typeSchema": "public", - "primaryKey": false, - "notNull": false, - "default": "'draft'" - }, - "published_at": { - "name": "published_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": false - }, - "seo_og_image_id": { - "name": "seo_og_image_id", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "created_at": { - "name": "created_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - } - }, - "indexes": { - "posts_tenant_idx": { - "name": "posts_tenant_idx", - "columns": [ - { - "expression": "tenant_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "posts_featured_image_idx": { - "name": "posts_featured_image_idx", - "columns": [ - { - "expression": "featured_image_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "posts_seo_seo_og_image_idx": { - "name": "posts_seo_seo_og_image_idx", - "columns": [ - { - "expression": "seo_og_image_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "posts_updated_at_idx": { - "name": "posts_updated_at_idx", - "columns": [ - { - "expression": "updated_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "posts_created_at_idx": { - "name": "posts_created_at_idx", - "columns": [ - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "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" - }, - "posts_seo_og_image_id_media_id_fk": { - "name": "posts_seo_og_image_id_media_id_fk", - "tableFrom": "posts", - "tableTo": "media", - "columnsFrom": [ - "seo_og_image_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "set null", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.posts_locales": { - "name": "posts_locales", - "schema": "", - "columns": { - "title": { - "name": "title", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "slug": { - "name": "slug", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "excerpt": { - "name": "excerpt", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "content": { - "name": "content", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "seo_meta_title": { - "name": "seo_meta_title", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "seo_meta_description": { - "name": "seo_meta_description", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "id": { - "name": "id", - "type": "serial", - "primaryKey": true, - "notNull": true - }, - "_locale": { - "name": "_locale", - "type": "_locales", - "typeSchema": "public", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "integer", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "posts_locales_locale_parent_id_unique": { - "name": "posts_locales_locale_parent_id_unique", - "columns": [ - { - "expression": "_locale", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "posts_locales_parent_id_fk": { - "name": "posts_locales_parent_id_fk", - "tableFrom": "posts_locales", - "tableTo": "posts", - "columnsFrom": [ - "_parent_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.posts_rels": { - "name": "posts_rels", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "serial", - "primaryKey": true, - "notNull": true - }, - "order": { - "name": "order", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "parent_id": { - "name": "parent_id", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "path": { - "name": "path", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "categories_id": { - "name": "categories_id", - "type": "integer", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "posts_rels_order_idx": { - "name": "posts_rels_order_idx", - "columns": [ - { - "expression": "order", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "posts_rels_parent_idx": { - "name": "posts_rels_parent_idx", - "columns": [ - { - "expression": "parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "posts_rels_path_idx": { - "name": "posts_rels_path_idx", - "columns": [ - { - "expression": "path", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "posts_rels_categories_id_idx": { - "name": "posts_rels_categories_id_idx", - "columns": [ - { - "expression": "categories_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "posts_rels_parent_fk": { - "name": "posts_rels_parent_fk", - "tableFrom": "posts_rels", - "tableTo": "posts", - "columnsFrom": [ - "parent_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - }, - "posts_rels_categories_fk": { - "name": "posts_rels_categories_fk", - "tableFrom": "posts_rels", - "tableTo": "categories", - "columnsFrom": [ - "categories_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.categories": { - "name": "categories", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "serial", - "primaryKey": true, - "notNull": true - }, - "tenant_id": { - "name": "tenant_id", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "created_at": { - "name": "created_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - } - }, - "indexes": { - "categories_tenant_idx": { - "name": "categories_tenant_idx", - "columns": [ - { - "expression": "tenant_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "categories_updated_at_idx": { - "name": "categories_updated_at_idx", - "columns": [ - { - "expression": "updated_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "categories_created_at_idx": { - "name": "categories_created_at_idx", - "columns": [ - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "categories_tenant_id_tenants_id_fk": { - "name": "categories_tenant_id_tenants_id_fk", - "tableFrom": "categories", - "tableTo": "tenants", - "columnsFrom": [ - "tenant_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "set null", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.categories_locales": { - "name": "categories_locales", - "schema": "", - "columns": { - "name": { - "name": "name", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "slug": { - "name": "slug", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "description": { - "name": "description", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "id": { - "name": "id", - "type": "serial", - "primaryKey": true, - "notNull": true - }, - "_locale": { - "name": "_locale", - "type": "_locales", - "typeSchema": "public", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "integer", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "categories_locales_locale_parent_id_unique": { - "name": "categories_locales_locale_parent_id_unique", - "columns": [ - { - "expression": "_locale", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "categories_locales_parent_id_fk": { - "name": "categories_locales_parent_id_fk", - "tableFrom": "categories_locales", - "tableTo": "categories", - "columnsFrom": [ - "_parent_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.social_links": { - "name": "social_links", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "serial", - "primaryKey": true, - "notNull": true - }, - "tenant_id": { - "name": "tenant_id", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "platform": { - "name": "platform", - "type": "enum_social_links_platform", - "typeSchema": "public", - "primaryKey": false, - "notNull": true - }, - "url": { - "name": "url", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "is_active": { - "name": "is_active", - "type": "boolean", - "primaryKey": false, - "notNull": false, - "default": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "created_at": { - "name": "created_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - } - }, - "indexes": { - "social_links_tenant_idx": { - "name": "social_links_tenant_idx", - "columns": [ - { - "expression": "tenant_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "social_links_updated_at_idx": { - "name": "social_links_updated_at_idx", - "columns": [ - { - "expression": "updated_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "social_links_created_at_idx": { - "name": "social_links_created_at_idx", - "columns": [ - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "social_links_tenant_id_tenants_id_fk": { - "name": "social_links_tenant_id_tenants_id_fk", - "tableFrom": "social_links", - "tableTo": "tenants", - "columnsFrom": [ - "tenant_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "set null", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.testimonials": { - "name": "testimonials", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "serial", - "primaryKey": true, - "notNull": true - }, - "tenant_id": { - "name": "tenant_id", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "author": { - "name": "author", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "company": { - "name": "company", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "image_id": { - "name": "image_id", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "rating": { - "name": "rating", - "type": "numeric", - "primaryKey": false, - "notNull": false - }, - "source": { - "name": "source", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "source_url": { - "name": "source_url", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "date": { - "name": "date", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": false - }, - "is_active": { - "name": "is_active", - "type": "boolean", - "primaryKey": false, - "notNull": false, - "default": true - }, - "order": { - "name": "order", - "type": "numeric", - "primaryKey": false, - "notNull": false, - "default": 0 - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "created_at": { - "name": "created_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - } - }, - "indexes": { - "testimonials_tenant_idx": { - "name": "testimonials_tenant_idx", - "columns": [ - { - "expression": "tenant_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "testimonials_image_idx": { - "name": "testimonials_image_idx", - "columns": [ - { - "expression": "image_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "testimonials_updated_at_idx": { - "name": "testimonials_updated_at_idx", - "columns": [ - { - "expression": "updated_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "testimonials_created_at_idx": { - "name": "testimonials_created_at_idx", - "columns": [ - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "testimonials_tenant_id_tenants_id_fk": { - "name": "testimonials_tenant_id_tenants_id_fk", - "tableFrom": "testimonials", - "tableTo": "tenants", - "columnsFrom": [ - "tenant_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "set null", - "onUpdate": "no action" - }, - "testimonials_image_id_media_id_fk": { - "name": "testimonials_image_id_media_id_fk", - "tableFrom": "testimonials", - "tableTo": "media", - "columnsFrom": [ - "image_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "set null", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.testimonials_locales": { - "name": "testimonials_locales", - "schema": "", - "columns": { - "quote": { - "name": "quote", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "role": { - "name": "role", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "id": { - "name": "id", - "type": "serial", - "primaryKey": true, - "notNull": true - }, - "_locale": { - "name": "_locale", - "type": "_locales", - "typeSchema": "public", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "integer", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "testimonials_locales_locale_parent_id_unique": { - "name": "testimonials_locales_locale_parent_id_unique", - "columns": [ - { - "expression": "_locale", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "testimonials_locales_parent_id_fk": { - "name": "testimonials_locales_parent_id_fk", - "tableFrom": "testimonials_locales", - "tableTo": "testimonials", - "columnsFrom": [ - "_parent_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.newsletter_subscribers_interests": { - "name": "newsletter_subscribers_interests", - "schema": "", - "columns": { - "order": { - "name": "order", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "parent_id": { - "name": "parent_id", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "value": { - "name": "value", - "type": "enum_newsletter_subscribers_interests", - "typeSchema": "public", - "primaryKey": false, - "notNull": false - }, - "id": { - "name": "id", - "type": "serial", - "primaryKey": true, - "notNull": true - } - }, - "indexes": { - "newsletter_subscribers_interests_order_idx": { - "name": "newsletter_subscribers_interests_order_idx", - "columns": [ - { - "expression": "order", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "newsletter_subscribers_interests_parent_idx": { - "name": "newsletter_subscribers_interests_parent_idx", - "columns": [ - { - "expression": "parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "newsletter_subscribers_interests_parent_fk": { - "name": "newsletter_subscribers_interests_parent_fk", - "tableFrom": "newsletter_subscribers_interests", - "tableTo": "newsletter_subscribers", - "columnsFrom": [ - "parent_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.newsletter_subscribers": { - "name": "newsletter_subscribers", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "serial", - "primaryKey": true, - "notNull": true - }, - "tenant_id": { - "name": "tenant_id", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "email": { - "name": "email", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "first_name": { - "name": "first_name", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "last_name": { - "name": "last_name", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "status": { - "name": "status", - "type": "enum_newsletter_subscribers_status", - "typeSchema": "public", - "primaryKey": false, - "notNull": true, - "default": "'pending'" - }, - "source": { - "name": "source", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "subscribed_at": { - "name": "subscribed_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": false - }, - "confirmed_at": { - "name": "confirmed_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": false - }, - "unsubscribed_at": { - "name": "unsubscribed_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": false - }, - "confirmation_token": { - "name": "confirmation_token", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "ip_address": { - "name": "ip_address", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "user_agent": { - "name": "user_agent", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "created_at": { - "name": "created_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - } - }, - "indexes": { - "newsletter_subscribers_tenant_idx": { - "name": "newsletter_subscribers_tenant_idx", - "columns": [ - { - "expression": "tenant_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "newsletter_subscribers_updated_at_idx": { - "name": "newsletter_subscribers_updated_at_idx", - "columns": [ - { - "expression": "updated_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "newsletter_subscribers_created_at_idx": { - "name": "newsletter_subscribers_created_at_idx", - "columns": [ - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "newsletter_subscribers_tenant_id_tenants_id_fk": { - "name": "newsletter_subscribers_tenant_id_tenants_id_fk", - "tableFrom": "newsletter_subscribers", - "tableTo": "tenants", - "columnsFrom": [ - "tenant_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "set null", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.cookie_configurations_enabled_categories": { - "name": "cookie_configurations_enabled_categories", - "schema": "", - "columns": { - "order": { - "name": "order", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "parent_id": { - "name": "parent_id", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "value": { - "name": "value", - "type": "enum_cookie_configurations_enabled_categories", - "typeSchema": "public", - "primaryKey": false, - "notNull": false - }, - "id": { - "name": "id", - "type": "serial", - "primaryKey": true, - "notNull": true - } - }, - "indexes": { - "cookie_configurations_enabled_categories_order_idx": { - "name": "cookie_configurations_enabled_categories_order_idx", - "columns": [ - { - "expression": "order", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "cookie_configurations_enabled_categories_parent_idx": { - "name": "cookie_configurations_enabled_categories_parent_idx", - "columns": [ - { - "expression": "parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "cookie_configurations_enabled_categories_parent_fk": { - "name": "cookie_configurations_enabled_categories_parent_fk", - "tableFrom": "cookie_configurations_enabled_categories", - "tableTo": "cookie_configurations", - "columnsFrom": [ - "parent_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.cookie_configurations": { - "name": "cookie_configurations", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "serial", - "primaryKey": true, - "notNull": true - }, - "tenant_id": { - "name": "tenant_id", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "title": { - "name": "title", - "type": "varchar", - "primaryKey": false, - "notNull": true, - "default": "'Cookie-Einstellungen'" - }, - "revision": { - "name": "revision", - "type": "numeric", - "primaryKey": false, - "notNull": true, - "default": 1 - }, - "translations_de_banner_title": { - "name": "translations_de_banner_title", - "type": "varchar", - "primaryKey": false, - "notNull": false, - "default": "'Wir respektieren Ihre Privatsphäre'" - }, - "translations_de_banner_description": { - "name": "translations_de_banner_description", - "type": "varchar", - "primaryKey": false, - "notNull": false, - "default": "'Diese Website verwendet Cookies, um Ihnen die bestmögliche Erfahrung zu bieten.'" - }, - "translations_de_accept_all_button": { - "name": "translations_de_accept_all_button", - "type": "varchar", - "primaryKey": false, - "notNull": false, - "default": "'Alle akzeptieren'" - }, - "translations_de_accept_necessary_button": { - "name": "translations_de_accept_necessary_button", - "type": "varchar", - "primaryKey": false, - "notNull": false, - "default": "'Nur notwendige'" - }, - "translations_de_settings_button": { - "name": "translations_de_settings_button", - "type": "varchar", - "primaryKey": false, - "notNull": false, - "default": "'Einstellungen'" - }, - "translations_de_save_button": { - "name": "translations_de_save_button", - "type": "varchar", - "primaryKey": false, - "notNull": false, - "default": "'Auswahl speichern'" - }, - "translations_de_privacy_policy_url": { - "name": "translations_de_privacy_policy_url", - "type": "varchar", - "primaryKey": false, - "notNull": false, - "default": "'/datenschutz'" - }, - "translations_de_category_labels_necessary_title": { - "name": "translations_de_category_labels_necessary_title", - "type": "varchar", - "primaryKey": false, - "notNull": false, - "default": "'Notwendig'" - }, - "translations_de_category_labels_necessary_description": { - "name": "translations_de_category_labels_necessary_description", - "type": "varchar", - "primaryKey": false, - "notNull": false, - "default": "'Diese Cookies sind für die Grundfunktionen der Website erforderlich.'" - }, - "translations_de_category_labels_functional_title": { - "name": "translations_de_category_labels_functional_title", - "type": "varchar", - "primaryKey": false, - "notNull": false, - "default": "'Funktional'" - }, - "translations_de_category_labels_functional_description": { - "name": "translations_de_category_labels_functional_description", - "type": "varchar", - "primaryKey": false, - "notNull": false, - "default": "'Diese Cookies ermöglichen erweiterte Funktionen.'" - }, - "translations_de_category_labels_analytics_title": { - "name": "translations_de_category_labels_analytics_title", - "type": "varchar", - "primaryKey": false, - "notNull": false, - "default": "'Statistik'" - }, - "translations_de_category_labels_analytics_description": { - "name": "translations_de_category_labels_analytics_description", - "type": "varchar", - "primaryKey": false, - "notNull": false, - "default": "'Diese Cookies helfen uns zu verstehen, wie Besucher die Website nutzen.'" - }, - "translations_de_category_labels_marketing_title": { - "name": "translations_de_category_labels_marketing_title", - "type": "varchar", - "primaryKey": false, - "notNull": false, - "default": "'Marketing'" - }, - "translations_de_category_labels_marketing_description": { - "name": "translations_de_category_labels_marketing_description", - "type": "varchar", - "primaryKey": false, - "notNull": false, - "default": "'Diese Cookies werden für Werbezwecke verwendet.'" - }, - "styling_position": { - "name": "styling_position", - "type": "enum_cookie_configurations_styling_position", - "typeSchema": "public", - "primaryKey": false, - "notNull": false, - "default": "'bottom'" - }, - "styling_theme": { - "name": "styling_theme", - "type": "enum_cookie_configurations_styling_theme", - "typeSchema": "public", - "primaryKey": false, - "notNull": false, - "default": "'dark'" - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "created_at": { - "name": "created_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - } - }, - "indexes": { - "cookie_configurations_tenant_idx": { - "name": "cookie_configurations_tenant_idx", - "columns": [ - { - "expression": "tenant_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "cookie_configurations_updated_at_idx": { - "name": "cookie_configurations_updated_at_idx", - "columns": [ - { - "expression": "updated_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "cookie_configurations_created_at_idx": { - "name": "cookie_configurations_created_at_idx", - "columns": [ - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "cookie_configurations_tenant_id_tenants_id_fk": { - "name": "cookie_configurations_tenant_id_tenants_id_fk", - "tableFrom": "cookie_configurations", - "tableTo": "tenants", - "columnsFrom": [ - "tenant_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "set null", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.cookie_inventory": { - "name": "cookie_inventory", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "serial", - "primaryKey": true, - "notNull": true - }, - "tenant_id": { - "name": "tenant_id", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "category": { - "name": "category", - "type": "enum_cookie_inventory_category", - "typeSchema": "public", - "primaryKey": false, - "notNull": true - }, - "duration": { - "name": "duration", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "description": { - "name": "description", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "is_active": { - "name": "is_active", - "type": "boolean", - "primaryKey": false, - "notNull": false, - "default": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "created_at": { - "name": "created_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - } - }, - "indexes": { - "cookie_inventory_tenant_idx": { - "name": "cookie_inventory_tenant_idx", - "columns": [ - { - "expression": "tenant_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "cookie_inventory_updated_at_idx": { - "name": "cookie_inventory_updated_at_idx", - "columns": [ - { - "expression": "updated_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "cookie_inventory_created_at_idx": { - "name": "cookie_inventory_created_at_idx", - "columns": [ - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "cookie_inventory_tenant_id_tenants_id_fk": { - "name": "cookie_inventory_tenant_id_tenants_id_fk", - "tableFrom": "cookie_inventory", - "tableTo": "tenants", - "columnsFrom": [ - "tenant_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "set null", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.consent_logs": { - "name": "consent_logs", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "serial", - "primaryKey": true, - "notNull": true - }, - "consent_id": { - "name": "consent_id", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "client_ref": { - "name": "client_ref", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "tenant_id": { - "name": "tenant_id", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "categories": { - "name": "categories", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "revision": { - "name": "revision", - "type": "numeric", - "primaryKey": false, - "notNull": true - }, - "user_agent": { - "name": "user_agent", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "anonymized_ip": { - "name": "anonymized_ip", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "expires_at": { - "name": "expires_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "created_at": { - "name": "created_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - } - }, - "indexes": { - "consent_logs_consent_id_idx": { - "name": "consent_logs_consent_id_idx", - "columns": [ - { - "expression": "consent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "consent_logs_tenant_idx": { - "name": "consent_logs_tenant_idx", - "columns": [ - { - "expression": "tenant_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "consent_logs_updated_at_idx": { - "name": "consent_logs_updated_at_idx", - "columns": [ - { - "expression": "updated_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "consent_logs_created_at_idx": { - "name": "consent_logs_created_at_idx", - "columns": [ - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "consent_logs_tenant_id_tenants_id_fk": { - "name": "consent_logs_tenant_id_tenants_id_fk", - "tableFrom": "consent_logs", - "tableTo": "tenants", - "columnsFrom": [ - "tenant_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "set null", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.privacy_policy_settings": { - "name": "privacy_policy_settings", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "serial", - "primaryKey": true, - "notNull": true - }, - "tenant_id": { - "name": "tenant_id", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "title": { - "name": "title", - "type": "varchar", - "primaryKey": false, - "notNull": true, - "default": "'Datenschutzerklärung'" - }, - "provider": { - "name": "provider", - "type": "enum_privacy_policy_settings_provider", - "typeSchema": "public", - "primaryKey": false, - "notNull": true, - "default": "'alfright'" - }, - "alfright_tenant_id": { - "name": "alfright_tenant_id", - "type": "varchar", - "primaryKey": false, - "notNull": false, - "default": "'alfright_schutzteam'" - }, - "alfright_api_key": { - "name": "alfright_api_key", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "alfright_language": { - "name": "alfright_language", - "type": "enum_privacy_policy_settings_alfright_language", - "typeSchema": "public", - "primaryKey": false, - "notNull": false, - "default": "'de-de'" - }, - "alfright_iframe_height": { - "name": "alfright_iframe_height", - "type": "numeric", - "primaryKey": false, - "notNull": false, - "default": 4000 - }, - "styling_header_color": { - "name": "styling_header_color", - "type": "varchar", - "primaryKey": false, - "notNull": false, - "default": "'#ca8a04'" - }, - "styling_header_font": { - "name": "styling_header_font", - "type": "varchar", - "primaryKey": false, - "notNull": false, - "default": "'Inter, sans-serif'" - }, - "styling_header_size": { - "name": "styling_header_size", - "type": "varchar", - "primaryKey": false, - "notNull": false, - "default": "'24px'" - }, - "styling_subheader_size": { - "name": "styling_subheader_size", - "type": "varchar", - "primaryKey": false, - "notNull": false, - "default": "'18px'" - }, - "styling_font_color": { - "name": "styling_font_color", - "type": "varchar", - "primaryKey": false, - "notNull": false, - "default": "'#f3f4f6'" - }, - "styling_text_font": { - "name": "styling_text_font", - "type": "varchar", - "primaryKey": false, - "notNull": false, - "default": "'Inter, sans-serif'" - }, - "styling_text_size": { - "name": "styling_text_size", - "type": "varchar", - "primaryKey": false, - "notNull": false, - "default": "'16px'" - }, - "styling_link_color": { - "name": "styling_link_color", - "type": "varchar", - "primaryKey": false, - "notNull": false, - "default": "'#ca8a04'" - }, - "styling_background_color": { - "name": "styling_background_color", - "type": "varchar", - "primaryKey": false, - "notNull": false, - "default": "'#111827'" - }, - "show_cookie_table": { - "name": "show_cookie_table", - "type": "boolean", - "primaryKey": false, - "notNull": false, - "default": true - }, - "cookie_table_title": { - "name": "cookie_table_title", - "type": "varchar", - "primaryKey": false, - "notNull": false, - "default": "'Übersicht der verwendeten Cookies'" - }, - "cookie_table_description": { - "name": "cookie_table_description", - "type": "varchar", - "primaryKey": false, - "notNull": false, - "default": "'Ergänzend zur Datenschutzerklärung finden Sie hier eine detaillierte Übersicht aller auf dieser Website eingesetzten Cookies. Sie können Ihre Cookie-Einstellungen jederzeit über den Link \"Cookie-Einstellungen\" im Footer anpassen.'" - }, - "seo_meta_title": { - "name": "seo_meta_title", - "type": "varchar", - "primaryKey": false, - "notNull": false, - "default": "'Datenschutzerklärung'" - }, - "seo_meta_description": { - "name": "seo_meta_description", - "type": "varchar", - "primaryKey": false, - "notNull": false, - "default": "'Informationen zum Datenschutz und zur Verarbeitung Ihrer personenbezogenen Daten.'" - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "created_at": { - "name": "created_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - } - }, - "indexes": { - "privacy_policy_settings_tenant_idx": { - "name": "privacy_policy_settings_tenant_idx", - "columns": [ - { - "expression": "tenant_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "privacy_policy_settings_updated_at_idx": { - "name": "privacy_policy_settings_updated_at_idx", - "columns": [ - { - "expression": "updated_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "privacy_policy_settings_created_at_idx": { - "name": "privacy_policy_settings_created_at_idx", - "columns": [ - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "privacy_policy_settings_tenant_id_tenants_id_fk": { - "name": "privacy_policy_settings_tenant_id_tenants_id_fk", - "tableFrom": "privacy_policy_settings", - "tableTo": "tenants", - "columnsFrom": [ - "tenant_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "set null", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.forms_blocks_checkbox": { - "name": "forms_blocks_checkbox", - "schema": "", - "columns": { - "_order": { - "name": "_order", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_path": { - "name": "_path", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "varchar", - "primaryKey": true, - "notNull": true - }, - "name": { - "name": "name", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "width": { - "name": "width", - "type": "numeric", - "primaryKey": false, - "notNull": false - }, - "required": { - "name": "required", - "type": "boolean", - "primaryKey": false, - "notNull": false - }, - "default_value": { - "name": "default_value", - "type": "boolean", - "primaryKey": false, - "notNull": false - }, - "block_name": { - "name": "block_name", - "type": "varchar", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "forms_blocks_checkbox_order_idx": { - "name": "forms_blocks_checkbox_order_idx", - "columns": [ - { - "expression": "_order", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "forms_blocks_checkbox_parent_id_idx": { - "name": "forms_blocks_checkbox_parent_id_idx", - "columns": [ - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "forms_blocks_checkbox_path_idx": { - "name": "forms_blocks_checkbox_path_idx", - "columns": [ - { - "expression": "_path", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "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": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.forms_blocks_checkbox_locales": { - "name": "forms_blocks_checkbox_locales", - "schema": "", - "columns": { - "label": { - "name": "label", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "id": { - "name": "id", - "type": "serial", - "primaryKey": true, - "notNull": true - }, - "_locale": { - "name": "_locale", - "type": "_locales", - "typeSchema": "public", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "varchar", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "forms_blocks_checkbox_locales_locale_parent_id_unique": { - "name": "forms_blocks_checkbox_locales_locale_parent_id_unique", - "columns": [ - { - "expression": "_locale", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "forms_blocks_checkbox_locales_parent_id_fk": { - "name": "forms_blocks_checkbox_locales_parent_id_fk", - "tableFrom": "forms_blocks_checkbox_locales", - "tableTo": "forms_blocks_checkbox", - "columnsFrom": [ - "_parent_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.forms_blocks_email": { - "name": "forms_blocks_email", - "schema": "", - "columns": { - "_order": { - "name": "_order", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_path": { - "name": "_path", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "varchar", - "primaryKey": true, - "notNull": true - }, - "name": { - "name": "name", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "width": { - "name": "width", - "type": "numeric", - "primaryKey": false, - "notNull": false - }, - "required": { - "name": "required", - "type": "boolean", - "primaryKey": false, - "notNull": false - }, - "block_name": { - "name": "block_name", - "type": "varchar", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "forms_blocks_email_order_idx": { - "name": "forms_blocks_email_order_idx", - "columns": [ - { - "expression": "_order", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "forms_blocks_email_parent_id_idx": { - "name": "forms_blocks_email_parent_id_idx", - "columns": [ - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "forms_blocks_email_path_idx": { - "name": "forms_blocks_email_path_idx", - "columns": [ - { - "expression": "_path", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "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": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.forms_blocks_email_locales": { - "name": "forms_blocks_email_locales", - "schema": "", - "columns": { - "label": { - "name": "label", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "id": { - "name": "id", - "type": "serial", - "primaryKey": true, - "notNull": true - }, - "_locale": { - "name": "_locale", - "type": "_locales", - "typeSchema": "public", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "varchar", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "forms_blocks_email_locales_locale_parent_id_unique": { - "name": "forms_blocks_email_locales_locale_parent_id_unique", - "columns": [ - { - "expression": "_locale", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "forms_blocks_email_locales_parent_id_fk": { - "name": "forms_blocks_email_locales_parent_id_fk", - "tableFrom": "forms_blocks_email_locales", - "tableTo": "forms_blocks_email", - "columnsFrom": [ - "_parent_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.forms_blocks_message": { - "name": "forms_blocks_message", - "schema": "", - "columns": { - "_order": { - "name": "_order", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_path": { - "name": "_path", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "varchar", - "primaryKey": true, - "notNull": true - }, - "block_name": { - "name": "block_name", - "type": "varchar", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "forms_blocks_message_order_idx": { - "name": "forms_blocks_message_order_idx", - "columns": [ - { - "expression": "_order", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "forms_blocks_message_parent_id_idx": { - "name": "forms_blocks_message_parent_id_idx", - "columns": [ - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "forms_blocks_message_path_idx": { - "name": "forms_blocks_message_path_idx", - "columns": [ - { - "expression": "_path", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "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": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.forms_blocks_message_locales": { - "name": "forms_blocks_message_locales", - "schema": "", - "columns": { - "message": { - "name": "message", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "id": { - "name": "id", - "type": "serial", - "primaryKey": true, - "notNull": true - }, - "_locale": { - "name": "_locale", - "type": "_locales", - "typeSchema": "public", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "varchar", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "forms_blocks_message_locales_locale_parent_id_unique": { - "name": "forms_blocks_message_locales_locale_parent_id_unique", - "columns": [ - { - "expression": "_locale", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "forms_blocks_message_locales_parent_id_fk": { - "name": "forms_blocks_message_locales_parent_id_fk", - "tableFrom": "forms_blocks_message_locales", - "tableTo": "forms_blocks_message", - "columnsFrom": [ - "_parent_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.forms_blocks_number": { - "name": "forms_blocks_number", - "schema": "", - "columns": { - "_order": { - "name": "_order", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_path": { - "name": "_path", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "varchar", - "primaryKey": true, - "notNull": true - }, - "name": { - "name": "name", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "width": { - "name": "width", - "type": "numeric", - "primaryKey": false, - "notNull": false - }, - "default_value": { - "name": "default_value", - "type": "numeric", - "primaryKey": false, - "notNull": false - }, - "required": { - "name": "required", - "type": "boolean", - "primaryKey": false, - "notNull": false - }, - "block_name": { - "name": "block_name", - "type": "varchar", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "forms_blocks_number_order_idx": { - "name": "forms_blocks_number_order_idx", - "columns": [ - { - "expression": "_order", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "forms_blocks_number_parent_id_idx": { - "name": "forms_blocks_number_parent_id_idx", - "columns": [ - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "forms_blocks_number_path_idx": { - "name": "forms_blocks_number_path_idx", - "columns": [ - { - "expression": "_path", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "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": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.forms_blocks_number_locales": { - "name": "forms_blocks_number_locales", - "schema": "", - "columns": { - "label": { - "name": "label", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "id": { - "name": "id", - "type": "serial", - "primaryKey": true, - "notNull": true - }, - "_locale": { - "name": "_locale", - "type": "_locales", - "typeSchema": "public", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "varchar", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "forms_blocks_number_locales_locale_parent_id_unique": { - "name": "forms_blocks_number_locales_locale_parent_id_unique", - "columns": [ - { - "expression": "_locale", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "forms_blocks_number_locales_parent_id_fk": { - "name": "forms_blocks_number_locales_parent_id_fk", - "tableFrom": "forms_blocks_number_locales", - "tableTo": "forms_blocks_number", - "columnsFrom": [ - "_parent_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.forms_blocks_select_options": { - "name": "forms_blocks_select_options", - "schema": "", - "columns": { - "_order": { - "name": "_order", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "varchar", - "primaryKey": true, - "notNull": true - }, - "value": { - "name": "value", - "type": "varchar", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "forms_blocks_select_options_order_idx": { - "name": "forms_blocks_select_options_order_idx", - "columns": [ - { - "expression": "_order", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "forms_blocks_select_options_parent_id_idx": { - "name": "forms_blocks_select_options_parent_id_idx", - "columns": [ - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "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": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.forms_blocks_select_options_locales": { - "name": "forms_blocks_select_options_locales", - "schema": "", - "columns": { - "label": { - "name": "label", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "serial", - "primaryKey": true, - "notNull": true - }, - "_locale": { - "name": "_locale", - "type": "_locales", - "typeSchema": "public", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "varchar", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "forms_blocks_select_options_locales_locale_parent_id_unique": { - "name": "forms_blocks_select_options_locales_locale_parent_id_unique", - "columns": [ - { - "expression": "_locale", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "forms_blocks_select_options_locales_parent_id_fk": { - "name": "forms_blocks_select_options_locales_parent_id_fk", - "tableFrom": "forms_blocks_select_options_locales", - "tableTo": "forms_blocks_select_options", - "columnsFrom": [ - "_parent_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.forms_blocks_select": { - "name": "forms_blocks_select", - "schema": "", - "columns": { - "_order": { - "name": "_order", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_path": { - "name": "_path", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "varchar", - "primaryKey": true, - "notNull": true - }, - "name": { - "name": "name", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "width": { - "name": "width", - "type": "numeric", - "primaryKey": false, - "notNull": false - }, - "placeholder": { - "name": "placeholder", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "required": { - "name": "required", - "type": "boolean", - "primaryKey": false, - "notNull": false - }, - "block_name": { - "name": "block_name", - "type": "varchar", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "forms_blocks_select_order_idx": { - "name": "forms_blocks_select_order_idx", - "columns": [ - { - "expression": "_order", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "forms_blocks_select_parent_id_idx": { - "name": "forms_blocks_select_parent_id_idx", - "columns": [ - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "forms_blocks_select_path_idx": { - "name": "forms_blocks_select_path_idx", - "columns": [ - { - "expression": "_path", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "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": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.forms_blocks_select_locales": { - "name": "forms_blocks_select_locales", - "schema": "", - "columns": { - "label": { - "name": "label", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "default_value": { - "name": "default_value", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "id": { - "name": "id", - "type": "serial", - "primaryKey": true, - "notNull": true - }, - "_locale": { - "name": "_locale", - "type": "_locales", - "typeSchema": "public", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "varchar", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "forms_blocks_select_locales_locale_parent_id_unique": { - "name": "forms_blocks_select_locales_locale_parent_id_unique", - "columns": [ - { - "expression": "_locale", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "forms_blocks_select_locales_parent_id_fk": { - "name": "forms_blocks_select_locales_parent_id_fk", - "tableFrom": "forms_blocks_select_locales", - "tableTo": "forms_blocks_select", - "columnsFrom": [ - "_parent_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.forms_blocks_text": { - "name": "forms_blocks_text", - "schema": "", - "columns": { - "_order": { - "name": "_order", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_path": { - "name": "_path", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "varchar", - "primaryKey": true, - "notNull": true - }, - "name": { - "name": "name", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "width": { - "name": "width", - "type": "numeric", - "primaryKey": false, - "notNull": false - }, - "required": { - "name": "required", - "type": "boolean", - "primaryKey": false, - "notNull": false - }, - "block_name": { - "name": "block_name", - "type": "varchar", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "forms_blocks_text_order_idx": { - "name": "forms_blocks_text_order_idx", - "columns": [ - { - "expression": "_order", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "forms_blocks_text_parent_id_idx": { - "name": "forms_blocks_text_parent_id_idx", - "columns": [ - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "forms_blocks_text_path_idx": { - "name": "forms_blocks_text_path_idx", - "columns": [ - { - "expression": "_path", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "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": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.forms_blocks_text_locales": { - "name": "forms_blocks_text_locales", - "schema": "", - "columns": { - "label": { - "name": "label", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "default_value": { - "name": "default_value", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "id": { - "name": "id", - "type": "serial", - "primaryKey": true, - "notNull": true - }, - "_locale": { - "name": "_locale", - "type": "_locales", - "typeSchema": "public", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "varchar", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "forms_blocks_text_locales_locale_parent_id_unique": { - "name": "forms_blocks_text_locales_locale_parent_id_unique", - "columns": [ - { - "expression": "_locale", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "forms_blocks_text_locales_parent_id_fk": { - "name": "forms_blocks_text_locales_parent_id_fk", - "tableFrom": "forms_blocks_text_locales", - "tableTo": "forms_blocks_text", - "columnsFrom": [ - "_parent_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.forms_blocks_textarea": { - "name": "forms_blocks_textarea", - "schema": "", - "columns": { - "_order": { - "name": "_order", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_path": { - "name": "_path", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "varchar", - "primaryKey": true, - "notNull": true - }, - "name": { - "name": "name", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "width": { - "name": "width", - "type": "numeric", - "primaryKey": false, - "notNull": false - }, - "required": { - "name": "required", - "type": "boolean", - "primaryKey": false, - "notNull": false - }, - "block_name": { - "name": "block_name", - "type": "varchar", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "forms_blocks_textarea_order_idx": { - "name": "forms_blocks_textarea_order_idx", - "columns": [ - { - "expression": "_order", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "forms_blocks_textarea_parent_id_idx": { - "name": "forms_blocks_textarea_parent_id_idx", - "columns": [ - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "forms_blocks_textarea_path_idx": { - "name": "forms_blocks_textarea_path_idx", - "columns": [ - { - "expression": "_path", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "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": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.forms_blocks_textarea_locales": { - "name": "forms_blocks_textarea_locales", - "schema": "", - "columns": { - "label": { - "name": "label", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "default_value": { - "name": "default_value", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "id": { - "name": "id", - "type": "serial", - "primaryKey": true, - "notNull": true - }, - "_locale": { - "name": "_locale", - "type": "_locales", - "typeSchema": "public", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "varchar", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "forms_blocks_textarea_locales_locale_parent_id_unique": { - "name": "forms_blocks_textarea_locales_locale_parent_id_unique", - "columns": [ - { - "expression": "_locale", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "forms_blocks_textarea_locales_parent_id_fk": { - "name": "forms_blocks_textarea_locales_parent_id_fk", - "tableFrom": "forms_blocks_textarea_locales", - "tableTo": "forms_blocks_textarea", - "columnsFrom": [ - "_parent_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.forms_emails": { - "name": "forms_emails", - "schema": "", - "columns": { - "_order": { - "name": "_order", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "varchar", - "primaryKey": true, - "notNull": true - }, - "email_to": { - "name": "email_to", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "cc": { - "name": "cc", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "bcc": { - "name": "bcc", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "reply_to": { - "name": "reply_to", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "email_from": { - "name": "email_from", - "type": "varchar", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "forms_emails_order_idx": { - "name": "forms_emails_order_idx", - "columns": [ - { - "expression": "_order", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "forms_emails_parent_id_idx": { - "name": "forms_emails_parent_id_idx", - "columns": [ - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "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": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.forms_emails_locales": { - "name": "forms_emails_locales", - "schema": "", - "columns": { - "subject": { - "name": "subject", - "type": "varchar", - "primaryKey": false, - "notNull": true, - "default": "'You''ve received a new message.'" - }, - "message": { - "name": "message", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "id": { - "name": "id", - "type": "serial", - "primaryKey": true, - "notNull": true - }, - "_locale": { - "name": "_locale", - "type": "_locales", - "typeSchema": "public", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "varchar", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "forms_emails_locales_locale_parent_id_unique": { - "name": "forms_emails_locales_locale_parent_id_unique", - "columns": [ - { - "expression": "_locale", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "forms_emails_locales_parent_id_fk": { - "name": "forms_emails_locales_parent_id_fk", - "tableFrom": "forms_emails_locales", - "tableTo": "forms_emails", - "columnsFrom": [ - "_parent_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.forms": { - "name": "forms", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "serial", - "primaryKey": true, - "notNull": true - }, - "title": { - "name": "title", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "confirmation_type": { - "name": "confirmation_type", - "type": "enum_forms_confirmation_type", - "typeSchema": "public", - "primaryKey": false, - "notNull": false, - "default": "'message'" - }, - "redirect_url": { - "name": "redirect_url", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "created_at": { - "name": "created_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - } - }, - "indexes": { - "forms_updated_at_idx": { - "name": "forms_updated_at_idx", - "columns": [ - { - "expression": "updated_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "forms_created_at_idx": { - "name": "forms_created_at_idx", - "columns": [ - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.forms_locales": { - "name": "forms_locales", - "schema": "", - "columns": { - "submit_button_label": { - "name": "submit_button_label", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "confirmation_message": { - "name": "confirmation_message", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "id": { - "name": "id", - "type": "serial", - "primaryKey": true, - "notNull": true - }, - "_locale": { - "name": "_locale", - "type": "_locales", - "typeSchema": "public", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "integer", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "forms_locales_locale_parent_id_unique": { - "name": "forms_locales_locale_parent_id_unique", - "columns": [ - { - "expression": "_locale", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "forms_locales_parent_id_fk": { - "name": "forms_locales_parent_id_fk", - "tableFrom": "forms_locales", - "tableTo": "forms", - "columnsFrom": [ - "_parent_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.form_submissions_submission_data": { - "name": "form_submissions_submission_data", - "schema": "", - "columns": { - "_order": { - "name": "_order", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "varchar", - "primaryKey": true, - "notNull": true - }, - "field": { - "name": "field", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "value": { - "name": "value", - "type": "varchar", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "form_submissions_submission_data_order_idx": { - "name": "form_submissions_submission_data_order_idx", - "columns": [ - { - "expression": "_order", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "form_submissions_submission_data_parent_id_idx": { - "name": "form_submissions_submission_data_parent_id_idx", - "columns": [ - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "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": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.form_submissions": { - "name": "form_submissions", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "serial", - "primaryKey": true, - "notNull": true - }, - "form_id": { - "name": "form_id", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "created_at": { - "name": "created_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - } - }, - "indexes": { - "form_submissions_form_idx": { - "name": "form_submissions_form_idx", - "columns": [ - { - "expression": "form_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "form_submissions_updated_at_idx": { - "name": "form_submissions_updated_at_idx", - "columns": [ - { - "expression": "updated_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "form_submissions_created_at_idx": { - "name": "form_submissions_created_at_idx", - "columns": [ - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "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" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.redirects": { - "name": "redirects", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "serial", - "primaryKey": true, - "notNull": true - }, - "from": { - "name": "from", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "to_type": { - "name": "to_type", - "type": "enum_redirects_to_type", - "typeSchema": "public", - "primaryKey": false, - "notNull": false, - "default": "'reference'" - }, - "to_url": { - "name": "to_url", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "created_at": { - "name": "created_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - } - }, - "indexes": { - "redirects_from_idx": { - "name": "redirects_from_idx", - "columns": [ - { - "expression": "from", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "redirects_updated_at_idx": { - "name": "redirects_updated_at_idx", - "columns": [ - { - "expression": "updated_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "redirects_created_at_idx": { - "name": "redirects_created_at_idx", - "columns": [ - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.payload_kv": { - "name": "payload_kv", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "serial", - "primaryKey": true, - "notNull": true - }, - "key": { - "name": "key", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "data": { - "name": "data", - "type": "jsonb", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "payload_kv_key_idx": { - "name": "payload_kv_key_idx", - "columns": [ - { - "expression": "key", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.payload_locked_documents": { - "name": "payload_locked_documents", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "serial", - "primaryKey": true, - "notNull": true - }, - "global_slug": { - "name": "global_slug", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "created_at": { - "name": "created_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - } - }, - "indexes": { - "payload_locked_documents_global_slug_idx": { - "name": "payload_locked_documents_global_slug_idx", - "columns": [ - { - "expression": "global_slug", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "payload_locked_documents_updated_at_idx": { - "name": "payload_locked_documents_updated_at_idx", - "columns": [ - { - "expression": "updated_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "payload_locked_documents_created_at_idx": { - "name": "payload_locked_documents_created_at_idx", - "columns": [ - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.payload_locked_documents_rels": { - "name": "payload_locked_documents_rels", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "serial", - "primaryKey": true, - "notNull": true - }, - "order": { - "name": "order", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "parent_id": { - "name": "parent_id", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "path": { - "name": "path", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "users_id": { - "name": "users_id", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "media_id": { - "name": "media_id", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "tenants_id": { - "name": "tenants_id", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "pages_id": { - "name": "pages_id", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "posts_id": { - "name": "posts_id", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "categories_id": { - "name": "categories_id", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "social_links_id": { - "name": "social_links_id", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "testimonials_id": { - "name": "testimonials_id", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "newsletter_subscribers_id": { - "name": "newsletter_subscribers_id", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "cookie_configurations_id": { - "name": "cookie_configurations_id", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "cookie_inventory_id": { - "name": "cookie_inventory_id", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "consent_logs_id": { - "name": "consent_logs_id", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "privacy_policy_settings_id": { - "name": "privacy_policy_settings_id", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "forms_id": { - "name": "forms_id", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "form_submissions_id": { - "name": "form_submissions_id", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "redirects_id": { - "name": "redirects_id", - "type": "integer", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "payload_locked_documents_rels_order_idx": { - "name": "payload_locked_documents_rels_order_idx", - "columns": [ - { - "expression": "order", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "payload_locked_documents_rels_parent_idx": { - "name": "payload_locked_documents_rels_parent_idx", - "columns": [ - { - "expression": "parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "payload_locked_documents_rels_path_idx": { - "name": "payload_locked_documents_rels_path_idx", - "columns": [ - { - "expression": "path", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "payload_locked_documents_rels_users_id_idx": { - "name": "payload_locked_documents_rels_users_id_idx", - "columns": [ - { - "expression": "users_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "payload_locked_documents_rels_media_id_idx": { - "name": "payload_locked_documents_rels_media_id_idx", - "columns": [ - { - "expression": "media_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "payload_locked_documents_rels_tenants_id_idx": { - "name": "payload_locked_documents_rels_tenants_id_idx", - "columns": [ - { - "expression": "tenants_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "payload_locked_documents_rels_pages_id_idx": { - "name": "payload_locked_documents_rels_pages_id_idx", - "columns": [ - { - "expression": "pages_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "payload_locked_documents_rels_posts_id_idx": { - "name": "payload_locked_documents_rels_posts_id_idx", - "columns": [ - { - "expression": "posts_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "payload_locked_documents_rels_categories_id_idx": { - "name": "payload_locked_documents_rels_categories_id_idx", - "columns": [ - { - "expression": "categories_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "payload_locked_documents_rels_social_links_id_idx": { - "name": "payload_locked_documents_rels_social_links_id_idx", - "columns": [ - { - "expression": "social_links_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "payload_locked_documents_rels_testimonials_id_idx": { - "name": "payload_locked_documents_rels_testimonials_id_idx", - "columns": [ - { - "expression": "testimonials_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "payload_locked_documents_rels_newsletter_subscribers_id_idx": { - "name": "payload_locked_documents_rels_newsletter_subscribers_id_idx", - "columns": [ - { - "expression": "newsletter_subscribers_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "payload_locked_documents_rels_cookie_configurations_id_idx": { - "name": "payload_locked_documents_rels_cookie_configurations_id_idx", - "columns": [ - { - "expression": "cookie_configurations_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "payload_locked_documents_rels_cookie_inventory_id_idx": { - "name": "payload_locked_documents_rels_cookie_inventory_id_idx", - "columns": [ - { - "expression": "cookie_inventory_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "payload_locked_documents_rels_consent_logs_id_idx": { - "name": "payload_locked_documents_rels_consent_logs_id_idx", - "columns": [ - { - "expression": "consent_logs_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "payload_locked_documents_rels_privacy_policy_settings_id_idx": { - "name": "payload_locked_documents_rels_privacy_policy_settings_id_idx", - "columns": [ - { - "expression": "privacy_policy_settings_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "payload_locked_documents_rels_forms_id_idx": { - "name": "payload_locked_documents_rels_forms_id_idx", - "columns": [ - { - "expression": "forms_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "payload_locked_documents_rels_form_submissions_id_idx": { - "name": "payload_locked_documents_rels_form_submissions_id_idx", - "columns": [ - { - "expression": "form_submissions_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "payload_locked_documents_rels_redirects_id_idx": { - "name": "payload_locked_documents_rels_redirects_id_idx", - "columns": [ - { - "expression": "redirects_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "payload_locked_documents_rels_parent_fk": { - "name": "payload_locked_documents_rels_parent_fk", - "tableFrom": "payload_locked_documents_rels", - "tableTo": "payload_locked_documents", - "columnsFrom": [ - "parent_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - }, - "payload_locked_documents_rels_users_fk": { - "name": "payload_locked_documents_rels_users_fk", - "tableFrom": "payload_locked_documents_rels", - "tableTo": "users", - "columnsFrom": [ - "users_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - }, - "payload_locked_documents_rels_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_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_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_categories_fk": { - "name": "payload_locked_documents_rels_categories_fk", - "tableFrom": "payload_locked_documents_rels", - "tableTo": "categories", - "columnsFrom": [ - "categories_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - }, - "payload_locked_documents_rels_social_links_fk": { - "name": "payload_locked_documents_rels_social_links_fk", - "tableFrom": "payload_locked_documents_rels", - "tableTo": "social_links", - "columnsFrom": [ - "social_links_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - }, - "payload_locked_documents_rels_testimonials_fk": { - "name": "payload_locked_documents_rels_testimonials_fk", - "tableFrom": "payload_locked_documents_rels", - "tableTo": "testimonials", - "columnsFrom": [ - "testimonials_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - }, - "payload_locked_documents_rels_newsletter_subscribers_fk": { - "name": "payload_locked_documents_rels_newsletter_subscribers_fk", - "tableFrom": "payload_locked_documents_rels", - "tableTo": "newsletter_subscribers", - "columnsFrom": [ - "newsletter_subscribers_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - }, - "payload_locked_documents_rels_cookie_configurations_fk": { - "name": "payload_locked_documents_rels_cookie_configurations_fk", - "tableFrom": "payload_locked_documents_rels", - "tableTo": "cookie_configurations", - "columnsFrom": [ - "cookie_configurations_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - }, - "payload_locked_documents_rels_cookie_inventory_fk": { - "name": "payload_locked_documents_rels_cookie_inventory_fk", - "tableFrom": "payload_locked_documents_rels", - "tableTo": "cookie_inventory", - "columnsFrom": [ - "cookie_inventory_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - }, - "payload_locked_documents_rels_consent_logs_fk": { - "name": "payload_locked_documents_rels_consent_logs_fk", - "tableFrom": "payload_locked_documents_rels", - "tableTo": "consent_logs", - "columnsFrom": [ - "consent_logs_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - }, - "payload_locked_documents_rels_privacy_policy_settings_fk": { - "name": "payload_locked_documents_rels_privacy_policy_settings_fk", - "tableFrom": "payload_locked_documents_rels", - "tableTo": "privacy_policy_settings", - "columnsFrom": [ - "privacy_policy_settings_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" - }, - "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" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.payload_preferences": { - "name": "payload_preferences", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "serial", - "primaryKey": true, - "notNull": true - }, - "key": { - "name": "key", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "value": { - "name": "value", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "created_at": { - "name": "created_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - } - }, - "indexes": { - "payload_preferences_key_idx": { - "name": "payload_preferences_key_idx", - "columns": [ - { - "expression": "key", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "payload_preferences_updated_at_idx": { - "name": "payload_preferences_updated_at_idx", - "columns": [ - { - "expression": "updated_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "payload_preferences_created_at_idx": { - "name": "payload_preferences_created_at_idx", - "columns": [ - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.payload_preferences_rels": { - "name": "payload_preferences_rels", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "serial", - "primaryKey": true, - "notNull": true - }, - "order": { - "name": "order", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "parent_id": { - "name": "parent_id", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "path": { - "name": "path", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "users_id": { - "name": "users_id", - "type": "integer", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "payload_preferences_rels_order_idx": { - "name": "payload_preferences_rels_order_idx", - "columns": [ - { - "expression": "order", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "payload_preferences_rels_parent_idx": { - "name": "payload_preferences_rels_parent_idx", - "columns": [ - { - "expression": "parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "payload_preferences_rels_path_idx": { - "name": "payload_preferences_rels_path_idx", - "columns": [ - { - "expression": "path", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "payload_preferences_rels_users_id_idx": { - "name": "payload_preferences_rels_users_id_idx", - "columns": [ - { - "expression": "users_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "payload_preferences_rels_parent_fk": { - "name": "payload_preferences_rels_parent_fk", - "tableFrom": "payload_preferences_rels", - "tableTo": "payload_preferences", - "columnsFrom": [ - "parent_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - }, - "payload_preferences_rels_users_fk": { - "name": "payload_preferences_rels_users_fk", - "tableFrom": "payload_preferences_rels", - "tableTo": "users", - "columnsFrom": [ - "users_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.payload_migrations": { - "name": "payload_migrations", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "serial", - "primaryKey": true, - "notNull": true - }, - "name": { - "name": "name", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "batch": { - "name": "batch", - "type": "numeric", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "created_at": { - "name": "created_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - } - }, - "indexes": { - "payload_migrations_updated_at_idx": { - "name": "payload_migrations_updated_at_idx", - "columns": [ - { - "expression": "updated_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "payload_migrations_created_at_idx": { - "name": "payload_migrations_created_at_idx", - "columns": [ - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.site_settings": { - "name": "site_settings", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "serial", - "primaryKey": true, - "notNull": true - }, - "logo_id": { - "name": "logo_id", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "favicon_id": { - "name": "favicon_id", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "contact_email": { - "name": "contact_email", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "contact_phone": { - "name": "contact_phone", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "contact_address": { - "name": "contact_address", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "footer_show_social_links": { - "name": "footer_show_social_links", - "type": "boolean", - "primaryKey": false, - "notNull": false, - "default": true - }, - "seo_default_og_image_id": { - "name": "seo_default_og_image_id", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "site_settings_logo_idx": { - "name": "site_settings_logo_idx", - "columns": [ - { - "expression": "logo_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "site_settings_favicon_idx": { - "name": "site_settings_favicon_idx", - "columns": [ - { - "expression": "favicon_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "site_settings_seo_seo_default_og_image_idx": { - "name": "site_settings_seo_seo_default_og_image_idx", - "columns": [ - { - "expression": "seo_default_og_image_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "site_settings_logo_id_media_id_fk": { - "name": "site_settings_logo_id_media_id_fk", - "tableFrom": "site_settings", - "tableTo": "media", - "columnsFrom": [ - "logo_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "set null", - "onUpdate": "no action" - }, - "site_settings_favicon_id_media_id_fk": { - "name": "site_settings_favicon_id_media_id_fk", - "tableFrom": "site_settings", - "tableTo": "media", - "columnsFrom": [ - "favicon_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "set null", - "onUpdate": "no action" - }, - "site_settings_seo_default_og_image_id_media_id_fk": { - "name": "site_settings_seo_default_og_image_id_media_id_fk", - "tableFrom": "site_settings", - "tableTo": "media", - "columnsFrom": [ - "seo_default_og_image_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "set null", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.site_settings_locales": { - "name": "site_settings_locales", - "schema": "", - "columns": { - "site_name": { - "name": "site_name", - "type": "varchar", - "primaryKey": false, - "notNull": false, - "default": "'porwoll.de'" - }, - "site_tagline": { - "name": "site_tagline", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "footer_copyright_text": { - "name": "footer_copyright_text", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "seo_default_meta_title": { - "name": "seo_default_meta_title", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "seo_default_meta_description": { - "name": "seo_default_meta_description", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "id": { - "name": "id", - "type": "serial", - "primaryKey": true, - "notNull": true - }, - "_locale": { - "name": "_locale", - "type": "_locales", - "typeSchema": "public", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "integer", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "site_settings_locales_locale_parent_id_unique": { - "name": "site_settings_locales_locale_parent_id_unique", - "columns": [ - { - "expression": "_locale", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "site_settings_locales_parent_id_fk": { - "name": "site_settings_locales_parent_id_fk", - "tableFrom": "site_settings_locales", - "tableTo": "site_settings", - "columnsFrom": [ - "_parent_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.navigation_main_menu_submenu": { - "name": "navigation_main_menu_submenu", - "schema": "", - "columns": { - "_order": { - "name": "_order", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "varchar", - "primaryKey": true, - "notNull": true - }, - "link_type": { - "name": "link_type", - "type": "enum_navigation_main_menu_submenu_link_type", - "typeSchema": "public", - "primaryKey": false, - "notNull": false, - "default": "'page'" - }, - "page_id": { - "name": "page_id", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "url": { - "name": "url", - "type": "varchar", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "navigation_main_menu_submenu_order_idx": { - "name": "navigation_main_menu_submenu_order_idx", - "columns": [ - { - "expression": "_order", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "navigation_main_menu_submenu_parent_id_idx": { - "name": "navigation_main_menu_submenu_parent_id_idx", - "columns": [ - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "navigation_main_menu_submenu_page_idx": { - "name": "navigation_main_menu_submenu_page_idx", - "columns": [ - { - "expression": "page_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "navigation_main_menu_submenu_page_id_pages_id_fk": { - "name": "navigation_main_menu_submenu_page_id_pages_id_fk", - "tableFrom": "navigation_main_menu_submenu", - "tableTo": "pages", - "columnsFrom": [ - "page_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "set null", - "onUpdate": "no action" - }, - "navigation_main_menu_submenu_parent_id_fk": { - "name": "navigation_main_menu_submenu_parent_id_fk", - "tableFrom": "navigation_main_menu_submenu", - "tableTo": "navigation_main_menu", - "columnsFrom": [ - "_parent_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.navigation_main_menu_submenu_locales": { - "name": "navigation_main_menu_submenu_locales", - "schema": "", - "columns": { - "label": { - "name": "label", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "id": { - "name": "id", - "type": "serial", - "primaryKey": true, - "notNull": true - }, - "_locale": { - "name": "_locale", - "type": "_locales", - "typeSchema": "public", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "varchar", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "navigation_main_menu_submenu_locales_locale_parent_id_unique": { - "name": "navigation_main_menu_submenu_locales_locale_parent_id_unique", - "columns": [ - { - "expression": "_locale", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "navigation_main_menu_submenu_locales_parent_id_fk": { - "name": "navigation_main_menu_submenu_locales_parent_id_fk", - "tableFrom": "navigation_main_menu_submenu_locales", - "tableTo": "navigation_main_menu_submenu", - "columnsFrom": [ - "_parent_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.navigation_main_menu": { - "name": "navigation_main_menu", - "schema": "", - "columns": { - "_order": { - "name": "_order", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "varchar", - "primaryKey": true, - "notNull": true - }, - "type": { - "name": "type", - "type": "enum_navigation_main_menu_type", - "typeSchema": "public", - "primaryKey": false, - "notNull": false, - "default": "'page'" - }, - "page_id": { - "name": "page_id", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "url": { - "name": "url", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "open_in_new_tab": { - "name": "open_in_new_tab", - "type": "boolean", - "primaryKey": false, - "notNull": false, - "default": false - } - }, - "indexes": { - "navigation_main_menu_order_idx": { - "name": "navigation_main_menu_order_idx", - "columns": [ - { - "expression": "_order", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "navigation_main_menu_parent_id_idx": { - "name": "navigation_main_menu_parent_id_idx", - "columns": [ - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "navigation_main_menu_page_idx": { - "name": "navigation_main_menu_page_idx", - "columns": [ - { - "expression": "page_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "navigation_main_menu_page_id_pages_id_fk": { - "name": "navigation_main_menu_page_id_pages_id_fk", - "tableFrom": "navigation_main_menu", - "tableTo": "pages", - "columnsFrom": [ - "page_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "set null", - "onUpdate": "no action" - }, - "navigation_main_menu_parent_id_fk": { - "name": "navigation_main_menu_parent_id_fk", - "tableFrom": "navigation_main_menu", - "tableTo": "navigation", - "columnsFrom": [ - "_parent_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.navigation_main_menu_locales": { - "name": "navigation_main_menu_locales", - "schema": "", - "columns": { - "label": { - "name": "label", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "serial", - "primaryKey": true, - "notNull": true - }, - "_locale": { - "name": "_locale", - "type": "_locales", - "typeSchema": "public", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "varchar", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "navigation_main_menu_locales_locale_parent_id_unique": { - "name": "navigation_main_menu_locales_locale_parent_id_unique", - "columns": [ - { - "expression": "_locale", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "navigation_main_menu_locales_parent_id_fk": { - "name": "navigation_main_menu_locales_parent_id_fk", - "tableFrom": "navigation_main_menu_locales", - "tableTo": "navigation_main_menu", - "columnsFrom": [ - "_parent_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.navigation_footer_menu": { - "name": "navigation_footer_menu", - "schema": "", - "columns": { - "_order": { - "name": "_order", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "varchar", - "primaryKey": true, - "notNull": true - }, - "link_type": { - "name": "link_type", - "type": "enum_navigation_footer_menu_link_type", - "typeSchema": "public", - "primaryKey": false, - "notNull": false, - "default": "'page'" - }, - "page_id": { - "name": "page_id", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "url": { - "name": "url", - "type": "varchar", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "navigation_footer_menu_order_idx": { - "name": "navigation_footer_menu_order_idx", - "columns": [ - { - "expression": "_order", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "navigation_footer_menu_parent_id_idx": { - "name": "navigation_footer_menu_parent_id_idx", - "columns": [ - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "navigation_footer_menu_page_idx": { - "name": "navigation_footer_menu_page_idx", - "columns": [ - { - "expression": "page_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "navigation_footer_menu_page_id_pages_id_fk": { - "name": "navigation_footer_menu_page_id_pages_id_fk", - "tableFrom": "navigation_footer_menu", - "tableTo": "pages", - "columnsFrom": [ - "page_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "set null", - "onUpdate": "no action" - }, - "navigation_footer_menu_parent_id_fk": { - "name": "navigation_footer_menu_parent_id_fk", - "tableFrom": "navigation_footer_menu", - "tableTo": "navigation", - "columnsFrom": [ - "_parent_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.navigation_footer_menu_locales": { - "name": "navigation_footer_menu_locales", - "schema": "", - "columns": { - "label": { - "name": "label", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "serial", - "primaryKey": true, - "notNull": true - }, - "_locale": { - "name": "_locale", - "type": "_locales", - "typeSchema": "public", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "varchar", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "navigation_footer_menu_locales_locale_parent_id_unique": { - "name": "navigation_footer_menu_locales_locale_parent_id_unique", - "columns": [ - { - "expression": "_locale", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "navigation_footer_menu_locales_parent_id_fk": { - "name": "navigation_footer_menu_locales_parent_id_fk", - "tableFrom": "navigation_footer_menu_locales", - "tableTo": "navigation_footer_menu", - "columnsFrom": [ - "_parent_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.navigation": { - "name": "navigation", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "serial", - "primaryKey": true, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": false - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.seo_settings_social_profiles": { - "name": "seo_settings_social_profiles", - "schema": "", - "columns": { - "_order": { - "name": "_order", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "varchar", - "primaryKey": true, - "notNull": true - }, - "platform": { - "name": "platform", - "type": "enum_seo_settings_social_profiles_platform", - "typeSchema": "public", - "primaryKey": false, - "notNull": false - }, - "url": { - "name": "url", - "type": "varchar", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "seo_settings_social_profiles_order_idx": { - "name": "seo_settings_social_profiles_order_idx", - "columns": [ - { - "expression": "_order", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "seo_settings_social_profiles_parent_id_idx": { - "name": "seo_settings_social_profiles_parent_id_idx", - "columns": [ - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "seo_settings_social_profiles_parent_id_fk": { - "name": "seo_settings_social_profiles_parent_id_fk", - "tableFrom": "seo_settings_social_profiles", - "tableTo": "seo_settings", - "columnsFrom": [ - "_parent_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.seo_settings_local_business_opening_hours": { - "name": "seo_settings_local_business_opening_hours", - "schema": "", - "columns": { - "_order": { - "name": "_order", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "varchar", - "primaryKey": true, - "notNull": true - }, - "specification": { - "name": "specification", - "type": "varchar", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "seo_settings_local_business_opening_hours_order_idx": { - "name": "seo_settings_local_business_opening_hours_order_idx", - "columns": [ - { - "expression": "_order", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "seo_settings_local_business_opening_hours_parent_id_idx": { - "name": "seo_settings_local_business_opening_hours_parent_id_idx", - "columns": [ - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "seo_settings_local_business_opening_hours_parent_id_fk": { - "name": "seo_settings_local_business_opening_hours_parent_id_fk", - "tableFrom": "seo_settings_local_business_opening_hours", - "tableTo": "seo_settings", - "columnsFrom": [ - "_parent_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.seo_settings": { - "name": "seo_settings", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "serial", - "primaryKey": true, - "notNull": true - }, - "meta_defaults_default_og_image_id": { - "name": "meta_defaults_default_og_image_id", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "organization_name": { - "name": "organization_name", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "organization_legal_name": { - "name": "organization_legal_name", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "organization_logo_id": { - "name": "organization_logo_id", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "organization_founding_date": { - "name": "organization_founding_date", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": false - }, - "contact_email": { - "name": "contact_email", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "contact_phone": { - "name": "contact_phone", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "contact_fax": { - "name": "contact_fax", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "address_street": { - "name": "address_street", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "address_postal_code": { - "name": "address_postal_code", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "address_city": { - "name": "address_city", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "address_region": { - "name": "address_region", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "address_country": { - "name": "address_country", - "type": "varchar", - "primaryKey": false, - "notNull": false, - "default": "'Deutschland'" - }, - "address_country_code": { - "name": "address_country_code", - "type": "varchar", - "primaryKey": false, - "notNull": false, - "default": "'DE'" - }, - "geo_latitude": { - "name": "geo_latitude", - "type": "numeric", - "primaryKey": false, - "notNull": false - }, - "geo_longitude": { - "name": "geo_longitude", - "type": "numeric", - "primaryKey": false, - "notNull": false - }, - "local_business_enabled": { - "name": "local_business_enabled", - "type": "boolean", - "primaryKey": false, - "notNull": false, - "default": false - }, - "local_business_type": { - "name": "local_business_type", - "type": "enum_seo_settings_local_business_type", - "typeSchema": "public", - "primaryKey": false, - "notNull": false - }, - "local_business_price_range": { - "name": "local_business_price_range", - "type": "enum_seo_settings_local_business_price_range", - "typeSchema": "public", - "primaryKey": false, - "notNull": false - }, - "robots_allow_indexing": { - "name": "robots_allow_indexing", - "type": "boolean", - "primaryKey": false, - "notNull": false, - "default": true - }, - "verification_google": { - "name": "verification_google", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "verification_bing": { - "name": "verification_bing", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "verification_yandex": { - "name": "verification_yandex", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "seo_settings_meta_defaults_meta_defaults_default_og_imag_idx": { - "name": "seo_settings_meta_defaults_meta_defaults_default_og_imag_idx", - "columns": [ - { - "expression": "meta_defaults_default_og_image_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "seo_settings_organization_organization_logo_idx": { - "name": "seo_settings_organization_organization_logo_idx", - "columns": [ - { - "expression": "organization_logo_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "seo_settings_meta_defaults_default_og_image_id_media_id_fk": { - "name": "seo_settings_meta_defaults_default_og_image_id_media_id_fk", - "tableFrom": "seo_settings", - "tableTo": "media", - "columnsFrom": [ - "meta_defaults_default_og_image_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "set null", - "onUpdate": "no action" - }, - "seo_settings_organization_logo_id_media_id_fk": { - "name": "seo_settings_organization_logo_id_media_id_fk", - "tableFrom": "seo_settings", - "tableTo": "media", - "columnsFrom": [ - "organization_logo_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "set null", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.seo_settings_locales": { - "name": "seo_settings_locales", - "schema": "", - "columns": { - "meta_defaults_title_suffix": { - "name": "meta_defaults_title_suffix", - "type": "varchar", - "primaryKey": false, - "notNull": false, - "default": "'| Website'" - }, - "meta_defaults_default_description": { - "name": "meta_defaults_default_description", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "organization_description": { - "name": "organization_description", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "id": { - "name": "id", - "type": "serial", - "primaryKey": true, - "notNull": true - }, - "_locale": { - "name": "_locale", - "type": "_locales", - "typeSchema": "public", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "integer", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "seo_settings_locales_locale_parent_id_unique": { - "name": "seo_settings_locales_locale_parent_id_unique", - "columns": [ - { - "expression": "_locale", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "seo_settings_locales_parent_id_fk": { - "name": "seo_settings_locales_parent_id_fk", - "tableFrom": "seo_settings_locales", - "tableTo": "seo_settings", - "columnsFrom": [ - "_parent_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.seo_settings_texts": { - "name": "seo_settings_texts", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "serial", - "primaryKey": true, - "notNull": true - }, - "order": { - "name": "order", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "parent_id": { - "name": "parent_id", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "path": { - "name": "path", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "text": { - "name": "text", - "type": "varchar", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "seo_settings_texts_order_parent": { - "name": "seo_settings_texts_order_parent", - "columns": [ - { - "expression": "order", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "seo_settings_texts_parent_fk": { - "name": "seo_settings_texts_parent_fk", - "tableFrom": "seo_settings_texts", - "tableTo": "seo_settings", - "columnsFrom": [ - "parent_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - } - }, - "enums": { - "public._locales": { - "name": "_locales", - "schema": "public", - "values": [ - "de", - "en" - ] - }, - "public.enum_pages_blocks_hero_block_alignment": { - "name": "enum_pages_blocks_hero_block_alignment", - "schema": "public", - "values": [ - "left", - "center", - "right" - ] - }, - "public.enum_pages_blocks_hero_block_cta_style": { - "name": "enum_pages_blocks_hero_block_cta_style", - "schema": "public", - "values": [ - "primary", - "secondary", - "outline" - ] - }, - "public.enum_pages_blocks_text_block_width": { - "name": "enum_pages_blocks_text_block_width", - "schema": "public", - "values": [ - "narrow", - "medium", - "full" - ] - }, - "public.enum_pages_blocks_image_text_block_image_position": { - "name": "enum_pages_blocks_image_text_block_image_position", - "schema": "public", - "values": [ - "left", - "right" - ] - }, - "public.enum_pages_blocks_card_grid_block_columns": { - "name": "enum_pages_blocks_card_grid_block_columns", - "schema": "public", - "values": [ - "2", - "3", - "4" - ] - }, - "public.enum_pages_blocks_quote_block_style": { - "name": "enum_pages_blocks_quote_block_style", - "schema": "public", - "values": [ - "simple", - "highlighted", - "with-image" - ] - }, - "public.enum_pages_blocks_cta_block_buttons_style": { - "name": "enum_pages_blocks_cta_block_buttons_style", - "schema": "public", - "values": [ - "primary", - "secondary", - "outline" - ] - }, - "public.enum_pages_blocks_cta_block_background_color": { - "name": "enum_pages_blocks_cta_block_background_color", - "schema": "public", - "values": [ - "dark", - "light", - "accent" - ] - }, - "public.enum_pages_blocks_timeline_block_layout": { - "name": "enum_pages_blocks_timeline_block_layout", - "schema": "public", - "values": [ - "vertical", - "alternating", - "horizontal" - ] - }, - "public.enum_pages_blocks_timeline_block_marker_style": { - "name": "enum_pages_blocks_timeline_block_marker_style", - "schema": "public", - "values": [ - "dot", - "number", - "icon", - "date" - ] - }, - "public.enum_pages_blocks_timeline_block_background_color": { - "name": "enum_pages_blocks_timeline_block_background_color", - "schema": "public", - "values": [ - "white", - "light", - "dark" - ] - }, - "public.enum_pages_blocks_divider_block_style": { - "name": "enum_pages_blocks_divider_block_style", - "schema": "public", - "values": [ - "line", - "space", - "dots" - ] - }, - "public.enum_pages_blocks_divider_block_spacing": { - "name": "enum_pages_blocks_divider_block_spacing", - "schema": "public", - "values": [ - "small", - "medium", - "large" - ] - }, - "public.enum_pages_blocks_video_block_aspect_ratio": { - "name": "enum_pages_blocks_video_block_aspect_ratio", - "schema": "public", - "values": [ - "16:9", - "4:3", - "1:1" - ] - }, - "public.enum_pages_blocks_posts_list_block_post_type": { - "name": "enum_pages_blocks_posts_list_block_post_type", - "schema": "public", - "values": [ - "blog", - "news", - "press", - "announcement", - "all" - ] - }, - "public.enum_pages_blocks_posts_list_block_layout": { - "name": "enum_pages_blocks_posts_list_block_layout", - "schema": "public", - "values": [ - "grid", - "list", - "featured", - "compact", - "masonry" - ] - }, - "public.enum_pages_blocks_posts_list_block_columns": { - "name": "enum_pages_blocks_posts_list_block_columns", - "schema": "public", - "values": [ - "2", - "3", - "4" - ] - }, - "public.enum_pages_blocks_posts_list_block_background_color": { - "name": "enum_pages_blocks_posts_list_block_background_color", - "schema": "public", - "values": [ - "white", - "light", - "dark" - ] - }, - "public.enum_pages_blocks_testimonials_block_layout": { - "name": "enum_pages_blocks_testimonials_block_layout", - "schema": "public", - "values": [ - "slider", - "grid", - "single", - "masonry", - "list" - ] - }, - "public.enum_pages_blocks_testimonials_block_columns": { - "name": "enum_pages_blocks_testimonials_block_columns", - "schema": "public", - "values": [ - "2", - "3", - "4" - ] - }, - "public.enum_pages_blocks_testimonials_block_display_mode": { - "name": "enum_pages_blocks_testimonials_block_display_mode", - "schema": "public", - "values": [ - "all", - "selected" - ] - }, - "public.enum_pages_blocks_testimonials_block_background_color": { - "name": "enum_pages_blocks_testimonials_block_background_color", - "schema": "public", - "values": [ - "white", - "light", - "dark", - "accent" - ] - }, - "public.enum_pages_blocks_newsletter_block_available_interests": { - "name": "enum_pages_blocks_newsletter_block_available_interests", - "schema": "public", - "values": [ - "general", - "blog", - "products", - "offers", - "events" - ] - }, - "public.enum_pages_blocks_newsletter_block_layout": { - "name": "enum_pages_blocks_newsletter_block_layout", - "schema": "public", - "values": [ - "inline", - "stacked", - "with-image", - "minimal", - "card" - ] - }, - "public.enum_pages_blocks_newsletter_block_image_position": { - "name": "enum_pages_blocks_newsletter_block_image_position", - "schema": "public", - "values": [ - "left", - "right" - ] - }, - "public.enum_pages_blocks_newsletter_block_background_color": { - "name": "enum_pages_blocks_newsletter_block_background_color", - "schema": "public", - "values": [ - "white", - "light", - "dark", - "accent" - ] - }, - "public.enum_pages_blocks_process_steps_block_layout": { - "name": "enum_pages_blocks_process_steps_block_layout", - "schema": "public", - "values": [ - "horizontal", - "vertical", - "alternating", - "connected", - "timeline" - ] - }, - "public.enum_pages_blocks_process_steps_block_cta_variant": { - "name": "enum_pages_blocks_process_steps_block_cta_variant", - "schema": "public", - "values": [ - "default", - "ghost", - "light" - ] - }, - "public.enum_pages_blocks_process_steps_block_background_color": { - "name": "enum_pages_blocks_process_steps_block_background_color", - "schema": "public", - "values": [ - "white", - "light", - "dark" - ] - }, - "public.enum_pages_status": { - "name": "enum_pages_status", - "schema": "public", - "values": [ - "draft", - "published" - ] - }, - "public.enum_posts_type": { - "name": "enum_posts_type", - "schema": "public", - "values": [ - "blog", - "news", - "press", - "announcement" - ] - }, - "public.enum_posts_status": { - "name": "enum_posts_status", - "schema": "public", - "values": [ - "draft", - "published", - "archived" - ] - }, - "public.enum_social_links_platform": { - "name": "enum_social_links_platform", - "schema": "public", - "values": [ - "facebook", - "x", - "instagram", - "youtube", - "linkedin", - "xing" - ] - }, - "public.enum_newsletter_subscribers_interests": { - "name": "enum_newsletter_subscribers_interests", - "schema": "public", - "values": [ - "general", - "blog", - "products", - "offers", - "events" - ] - }, - "public.enum_newsletter_subscribers_status": { - "name": "enum_newsletter_subscribers_status", - "schema": "public", - "values": [ - "pending", - "confirmed", - "unsubscribed", - "bounced" - ] - }, - "public.enum_cookie_configurations_enabled_categories": { - "name": "enum_cookie_configurations_enabled_categories", - "schema": "public", - "values": [ - "necessary", - "functional", - "analytics", - "marketing" - ] - }, - "public.enum_cookie_configurations_styling_position": { - "name": "enum_cookie_configurations_styling_position", - "schema": "public", - "values": [ - "bottom", - "top", - "middle" - ] - }, - "public.enum_cookie_configurations_styling_theme": { - "name": "enum_cookie_configurations_styling_theme", - "schema": "public", - "values": [ - "dark", - "light", - "auto" - ] - }, - "public.enum_cookie_inventory_category": { - "name": "enum_cookie_inventory_category", - "schema": "public", - "values": [ - "necessary", - "functional", - "analytics", - "marketing" - ] - }, - "public.enum_privacy_policy_settings_provider": { - "name": "enum_privacy_policy_settings_provider", - "schema": "public", - "values": [ - "alfright", - "internal" - ] - }, - "public.enum_privacy_policy_settings_alfright_language": { - "name": "enum_privacy_policy_settings_alfright_language", - "schema": "public", - "values": [ - "de-de", - "de-at", - "de-ch", - "en-gb", - "en-us" - ] - }, - "public.enum_forms_confirmation_type": { - "name": "enum_forms_confirmation_type", - "schema": "public", - "values": [ - "message", - "redirect" - ] - }, - "public.enum_redirects_to_type": { - "name": "enum_redirects_to_type", - "schema": "public", - "values": [ - "reference", - "custom" - ] - }, - "public.enum_navigation_main_menu_submenu_link_type": { - "name": "enum_navigation_main_menu_submenu_link_type", - "schema": "public", - "values": [ - "page", - "custom" - ] - }, - "public.enum_navigation_main_menu_type": { - "name": "enum_navigation_main_menu_type", - "schema": "public", - "values": [ - "page", - "custom", - "submenu" - ] - }, - "public.enum_navigation_footer_menu_link_type": { - "name": "enum_navigation_footer_menu_link_type", - "schema": "public", - "values": [ - "page", - "custom" - ] - }, - "public.enum_seo_settings_social_profiles_platform": { - "name": "enum_seo_settings_social_profiles_platform", - "schema": "public", - "values": [ - "facebook", - "instagram", - "twitter", - "linkedin", - "youtube", - "tiktok", - "pinterest", - "xing", - "other" - ] - }, - "public.enum_seo_settings_local_business_type": { - "name": "enum_seo_settings_local_business_type", - "schema": "public", - "values": [ - "LocalBusiness", - "Physician", - "Dentist", - "Attorney", - "Restaurant", - "Hotel", - "Store", - "HealthClub", - "HairSalon", - "AutoRepair", - "RealEstateAgent", - "FinancialService", - "ProfessionalService", - "MedicalBusiness" - ] - }, - "public.enum_seo_settings_local_business_price_range": { - "name": "enum_seo_settings_local_business_price_range", - "schema": "public", - "values": [ - "€", - "€€", - "€€€", - "€€€€" - ] - } - }, - "schemas": {}, - "sequences": {}, - "roles": {}, - "policies": {}, - "views": {}, - "_meta": { - "schemas": {}, - "tables": {}, - "columns": {} - }, - "id": "62d6e4f3-a6c5-4334-9eb3-8d523cfcb376", - "prevId": "00000000-0000-0000-0000-000000000000" -} \ No newline at end of file diff --git a/src/migrations_backup/20251130_212102_add_localization.json b/src/migrations_backup/20251130_212102_add_localization.json deleted file mode 100644 index 2baa847..0000000 --- a/src/migrations_backup/20251130_212102_add_localization.json +++ /dev/null @@ -1,13009 +0,0 @@ -{ - "version": "7", - "dialect": "postgresql", - "tables": { - "public.users_tenants": { - "name": "users_tenants", - "schema": "", - "columns": { - "_order": { - "name": "_order", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "varchar", - "primaryKey": true, - "notNull": true - }, - "tenant_id": { - "name": "tenant_id", - "type": "integer", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "users_tenants_order_idx": { - "name": "users_tenants_order_idx", - "columns": [ - { - "expression": "_order", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "users_tenants_parent_id_idx": { - "name": "users_tenants_parent_id_idx", - "columns": [ - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "users_tenants_tenant_idx": { - "name": "users_tenants_tenant_idx", - "columns": [ - { - "expression": "tenant_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "users_tenants_tenant_id_tenants_id_fk": { - "name": "users_tenants_tenant_id_tenants_id_fk", - "tableFrom": "users_tenants", - "tableTo": "tenants", - "columnsFrom": [ - "tenant_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "set null", - "onUpdate": "no action" - }, - "users_tenants_parent_id_fk": { - "name": "users_tenants_parent_id_fk", - "tableFrom": "users_tenants", - "tableTo": "users", - "columnsFrom": [ - "_parent_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.users_sessions": { - "name": "users_sessions", - "schema": "", - "columns": { - "_order": { - "name": "_order", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "varchar", - "primaryKey": true, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": false - }, - "expires_at": { - "name": "expires_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "users_sessions_order_idx": { - "name": "users_sessions_order_idx", - "columns": [ - { - "expression": "_order", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "users_sessions_parent_id_idx": { - "name": "users_sessions_parent_id_idx", - "columns": [ - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "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": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.users": { - "name": "users", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "serial", - "primaryKey": true, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "created_at": { - "name": "created_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "email": { - "name": "email", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "reset_password_token": { - "name": "reset_password_token", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "reset_password_expiration": { - "name": "reset_password_expiration", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": false - }, - "salt": { - "name": "salt", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "hash": { - "name": "hash", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "login_attempts": { - "name": "login_attempts", - "type": "numeric", - "primaryKey": false, - "notNull": false, - "default": 0 - }, - "lock_until": { - "name": "lock_until", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "users_updated_at_idx": { - "name": "users_updated_at_idx", - "columns": [ - { - "expression": "updated_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "users_created_at_idx": { - "name": "users_created_at_idx", - "columns": [ - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "users_email_idx": { - "name": "users_email_idx", - "columns": [ - { - "expression": "email", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.media": { - "name": "media", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "serial", - "primaryKey": true, - "notNull": true - }, - "tenant_id": { - "name": "tenant_id", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "alt": { - "name": "alt", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "caption": { - "name": "caption", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "credit": { - "name": "credit", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "created_at": { - "name": "created_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "url": { - "name": "url", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "thumbnail_u_r_l": { - "name": "thumbnail_u_r_l", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "filename": { - "name": "filename", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "mime_type": { - "name": "mime_type", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "filesize": { - "name": "filesize", - "type": "numeric", - "primaryKey": false, - "notNull": false - }, - "width": { - "name": "width", - "type": "numeric", - "primaryKey": false, - "notNull": false - }, - "height": { - "name": "height", - "type": "numeric", - "primaryKey": false, - "notNull": false - }, - "focal_x": { - "name": "focal_x", - "type": "numeric", - "primaryKey": false, - "notNull": false - }, - "focal_y": { - "name": "focal_y", - "type": "numeric", - "primaryKey": false, - "notNull": false - }, - "sizes_thumbnail_url": { - "name": "sizes_thumbnail_url", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "sizes_thumbnail_width": { - "name": "sizes_thumbnail_width", - "type": "numeric", - "primaryKey": false, - "notNull": false - }, - "sizes_thumbnail_height": { - "name": "sizes_thumbnail_height", - "type": "numeric", - "primaryKey": false, - "notNull": false - }, - "sizes_thumbnail_mime_type": { - "name": "sizes_thumbnail_mime_type", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "sizes_thumbnail_filesize": { - "name": "sizes_thumbnail_filesize", - "type": "numeric", - "primaryKey": false, - "notNull": false - }, - "sizes_thumbnail_filename": { - "name": "sizes_thumbnail_filename", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "sizes_small_url": { - "name": "sizes_small_url", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "sizes_small_width": { - "name": "sizes_small_width", - "type": "numeric", - "primaryKey": false, - "notNull": false - }, - "sizes_small_height": { - "name": "sizes_small_height", - "type": "numeric", - "primaryKey": false, - "notNull": false - }, - "sizes_small_mime_type": { - "name": "sizes_small_mime_type", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "sizes_small_filesize": { - "name": "sizes_small_filesize", - "type": "numeric", - "primaryKey": false, - "notNull": false - }, - "sizes_small_filename": { - "name": "sizes_small_filename", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "sizes_medium_url": { - "name": "sizes_medium_url", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "sizes_medium_width": { - "name": "sizes_medium_width", - "type": "numeric", - "primaryKey": false, - "notNull": false - }, - "sizes_medium_height": { - "name": "sizes_medium_height", - "type": "numeric", - "primaryKey": false, - "notNull": false - }, - "sizes_medium_mime_type": { - "name": "sizes_medium_mime_type", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "sizes_medium_filesize": { - "name": "sizes_medium_filesize", - "type": "numeric", - "primaryKey": false, - "notNull": false - }, - "sizes_medium_filename": { - "name": "sizes_medium_filename", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "sizes_large_url": { - "name": "sizes_large_url", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "sizes_large_width": { - "name": "sizes_large_width", - "type": "numeric", - "primaryKey": false, - "notNull": false - }, - "sizes_large_height": { - "name": "sizes_large_height", - "type": "numeric", - "primaryKey": false, - "notNull": false - }, - "sizes_large_mime_type": { - "name": "sizes_large_mime_type", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "sizes_large_filesize": { - "name": "sizes_large_filesize", - "type": "numeric", - "primaryKey": false, - "notNull": false - }, - "sizes_large_filename": { - "name": "sizes_large_filename", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "sizes_xlarge_url": { - "name": "sizes_xlarge_url", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "sizes_xlarge_width": { - "name": "sizes_xlarge_width", - "type": "numeric", - "primaryKey": false, - "notNull": false - }, - "sizes_xlarge_height": { - "name": "sizes_xlarge_height", - "type": "numeric", - "primaryKey": false, - "notNull": false - }, - "sizes_xlarge_mime_type": { - "name": "sizes_xlarge_mime_type", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "sizes_xlarge_filesize": { - "name": "sizes_xlarge_filesize", - "type": "numeric", - "primaryKey": false, - "notNull": false - }, - "sizes_xlarge_filename": { - "name": "sizes_xlarge_filename", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "sizes_2k_url": { - "name": "sizes_2k_url", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "sizes_2k_width": { - "name": "sizes_2k_width", - "type": "numeric", - "primaryKey": false, - "notNull": false - }, - "sizes_2k_height": { - "name": "sizes_2k_height", - "type": "numeric", - "primaryKey": false, - "notNull": false - }, - "sizes_2k_mime_type": { - "name": "sizes_2k_mime_type", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "sizes_2k_filesize": { - "name": "sizes_2k_filesize", - "type": "numeric", - "primaryKey": false, - "notNull": false - }, - "sizes_2k_filename": { - "name": "sizes_2k_filename", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "sizes_og_url": { - "name": "sizes_og_url", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "sizes_og_width": { - "name": "sizes_og_width", - "type": "numeric", - "primaryKey": false, - "notNull": false - }, - "sizes_og_height": { - "name": "sizes_og_height", - "type": "numeric", - "primaryKey": false, - "notNull": false - }, - "sizes_og_mime_type": { - "name": "sizes_og_mime_type", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "sizes_og_filesize": { - "name": "sizes_og_filesize", - "type": "numeric", - "primaryKey": false, - "notNull": false - }, - "sizes_og_filename": { - "name": "sizes_og_filename", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "sizes_medium_avif_url": { - "name": "sizes_medium_avif_url", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "sizes_medium_avif_width": { - "name": "sizes_medium_avif_width", - "type": "numeric", - "primaryKey": false, - "notNull": false - }, - "sizes_medium_avif_height": { - "name": "sizes_medium_avif_height", - "type": "numeric", - "primaryKey": false, - "notNull": false - }, - "sizes_medium_avif_mime_type": { - "name": "sizes_medium_avif_mime_type", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "sizes_medium_avif_filesize": { - "name": "sizes_medium_avif_filesize", - "type": "numeric", - "primaryKey": false, - "notNull": false - }, - "sizes_medium_avif_filename": { - "name": "sizes_medium_avif_filename", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "sizes_large_avif_url": { - "name": "sizes_large_avif_url", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "sizes_large_avif_width": { - "name": "sizes_large_avif_width", - "type": "numeric", - "primaryKey": false, - "notNull": false - }, - "sizes_large_avif_height": { - "name": "sizes_large_avif_height", - "type": "numeric", - "primaryKey": false, - "notNull": false - }, - "sizes_large_avif_mime_type": { - "name": "sizes_large_avif_mime_type", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "sizes_large_avif_filesize": { - "name": "sizes_large_avif_filesize", - "type": "numeric", - "primaryKey": false, - "notNull": false - }, - "sizes_large_avif_filename": { - "name": "sizes_large_avif_filename", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "sizes_xlarge_avif_url": { - "name": "sizes_xlarge_avif_url", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "sizes_xlarge_avif_width": { - "name": "sizes_xlarge_avif_width", - "type": "numeric", - "primaryKey": false, - "notNull": false - }, - "sizes_xlarge_avif_height": { - "name": "sizes_xlarge_avif_height", - "type": "numeric", - "primaryKey": false, - "notNull": false - }, - "sizes_xlarge_avif_mime_type": { - "name": "sizes_xlarge_avif_mime_type", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "sizes_xlarge_avif_filesize": { - "name": "sizes_xlarge_avif_filesize", - "type": "numeric", - "primaryKey": false, - "notNull": false - }, - "sizes_xlarge_avif_filename": { - "name": "sizes_xlarge_avif_filename", - "type": "varchar", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "media_tenant_idx": { - "name": "media_tenant_idx", - "columns": [ - { - "expression": "tenant_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "media_updated_at_idx": { - "name": "media_updated_at_idx", - "columns": [ - { - "expression": "updated_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "media_created_at_idx": { - "name": "media_created_at_idx", - "columns": [ - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "media_filename_idx": { - "name": "media_filename_idx", - "columns": [ - { - "expression": "filename", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "media_sizes_thumbnail_sizes_thumbnail_filename_idx": { - "name": "media_sizes_thumbnail_sizes_thumbnail_filename_idx", - "columns": [ - { - "expression": "sizes_thumbnail_filename", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "media_sizes_small_sizes_small_filename_idx": { - "name": "media_sizes_small_sizes_small_filename_idx", - "columns": [ - { - "expression": "sizes_small_filename", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "media_sizes_medium_sizes_medium_filename_idx": { - "name": "media_sizes_medium_sizes_medium_filename_idx", - "columns": [ - { - "expression": "sizes_medium_filename", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "media_sizes_large_sizes_large_filename_idx": { - "name": "media_sizes_large_sizes_large_filename_idx", - "columns": [ - { - "expression": "sizes_large_filename", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "media_sizes_xlarge_sizes_xlarge_filename_idx": { - "name": "media_sizes_xlarge_sizes_xlarge_filename_idx", - "columns": [ - { - "expression": "sizes_xlarge_filename", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "media_sizes_2k_sizes_2k_filename_idx": { - "name": "media_sizes_2k_sizes_2k_filename_idx", - "columns": [ - { - "expression": "sizes_2k_filename", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "media_sizes_og_sizes_og_filename_idx": { - "name": "media_sizes_og_sizes_og_filename_idx", - "columns": [ - { - "expression": "sizes_og_filename", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "media_sizes_medium_avif_sizes_medium_avif_filename_idx": { - "name": "media_sizes_medium_avif_sizes_medium_avif_filename_idx", - "columns": [ - { - "expression": "sizes_medium_avif_filename", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "media_sizes_large_avif_sizes_large_avif_filename_idx": { - "name": "media_sizes_large_avif_sizes_large_avif_filename_idx", - "columns": [ - { - "expression": "sizes_large_avif_filename", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "media_sizes_xlarge_avif_sizes_xlarge_avif_filename_idx": { - "name": "media_sizes_xlarge_avif_sizes_xlarge_avif_filename_idx", - "columns": [ - { - "expression": "sizes_xlarge_avif_filename", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "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": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.media_texts": { - "name": "media_texts", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "serial", - "primaryKey": true, - "notNull": true - }, - "order": { - "name": "order", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "parent_id": { - "name": "parent_id", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "path": { - "name": "path", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "text": { - "name": "text", - "type": "varchar", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "media_texts_order_parent": { - "name": "media_texts_order_parent", - "columns": [ - { - "expression": "order", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "media_texts_parent_fk": { - "name": "media_texts_parent_fk", - "tableFrom": "media_texts", - "tableTo": "media", - "columnsFrom": [ - "parent_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.tenants_domains": { - "name": "tenants_domains", - "schema": "", - "columns": { - "_order": { - "name": "_order", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "varchar", - "primaryKey": true, - "notNull": true - }, - "domain": { - "name": "domain", - "type": "varchar", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "tenants_domains_order_idx": { - "name": "tenants_domains_order_idx", - "columns": [ - { - "expression": "_order", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "tenants_domains_parent_id_idx": { - "name": "tenants_domains_parent_id_idx", - "columns": [ - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "tenants_domains_parent_id_fk": { - "name": "tenants_domains_parent_id_fk", - "tableFrom": "tenants_domains", - "tableTo": "tenants", - "columnsFrom": [ - "_parent_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.tenants": { - "name": "tenants", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "serial", - "primaryKey": true, - "notNull": true - }, - "name": { - "name": "name", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "slug": { - "name": "slug", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "created_at": { - "name": "created_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - } - }, - "indexes": { - "tenants_slug_idx": { - "name": "tenants_slug_idx", - "columns": [ - { - "expression": "slug", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "tenants_updated_at_idx": { - "name": "tenants_updated_at_idx", - "columns": [ - { - "expression": "updated_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "tenants_created_at_idx": { - "name": "tenants_created_at_idx", - "columns": [ - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.pages_blocks_hero_block": { - "name": "pages_blocks_hero_block", - "schema": "", - "columns": { - "_order": { - "name": "_order", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_path": { - "name": "_path", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "varchar", - "primaryKey": true, - "notNull": true - }, - "background_image_id": { - "name": "background_image_id", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "alignment": { - "name": "alignment", - "type": "enum_pages_blocks_hero_block_alignment", - "typeSchema": "public", - "primaryKey": false, - "notNull": false, - "default": "'center'" - }, - "overlay": { - "name": "overlay", - "type": "boolean", - "primaryKey": false, - "notNull": false, - "default": true - }, - "cta_link": { - "name": "cta_link", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "cta_style": { - "name": "cta_style", - "type": "enum_pages_blocks_hero_block_cta_style", - "typeSchema": "public", - "primaryKey": false, - "notNull": false, - "default": "'primary'" - }, - "block_name": { - "name": "block_name", - "type": "varchar", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "pages_blocks_hero_block_order_idx": { - "name": "pages_blocks_hero_block_order_idx", - "columns": [ - { - "expression": "_order", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "pages_blocks_hero_block_parent_id_idx": { - "name": "pages_blocks_hero_block_parent_id_idx", - "columns": [ - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "pages_blocks_hero_block_path_idx": { - "name": "pages_blocks_hero_block_path_idx", - "columns": [ - { - "expression": "_path", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "pages_blocks_hero_block_background_image_idx": { - "name": "pages_blocks_hero_block_background_image_idx", - "columns": [ - { - "expression": "background_image_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "pages_blocks_hero_block_background_image_id_media_id_fk": { - "name": "pages_blocks_hero_block_background_image_id_media_id_fk", - "tableFrom": "pages_blocks_hero_block", - "tableTo": "media", - "columnsFrom": [ - "background_image_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "set null", - "onUpdate": "no action" - }, - "pages_blocks_hero_block_parent_id_fk": { - "name": "pages_blocks_hero_block_parent_id_fk", - "tableFrom": "pages_blocks_hero_block", - "tableTo": "pages", - "columnsFrom": [ - "_parent_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.pages_blocks_hero_block_locales": { - "name": "pages_blocks_hero_block_locales", - "schema": "", - "columns": { - "headline": { - "name": "headline", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "subline": { - "name": "subline", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "cta_text": { - "name": "cta_text", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "id": { - "name": "id", - "type": "serial", - "primaryKey": true, - "notNull": true - }, - "_locale": { - "name": "_locale", - "type": "_locales", - "typeSchema": "public", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "varchar", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "pages_blocks_hero_block_locales_locale_parent_id_unique": { - "name": "pages_blocks_hero_block_locales_locale_parent_id_unique", - "columns": [ - { - "expression": "_locale", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "pages_blocks_hero_block_locales_parent_id_fk": { - "name": "pages_blocks_hero_block_locales_parent_id_fk", - "tableFrom": "pages_blocks_hero_block_locales", - "tableTo": "pages_blocks_hero_block", - "columnsFrom": [ - "_parent_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.pages_blocks_text_block": { - "name": "pages_blocks_text_block", - "schema": "", - "columns": { - "_order": { - "name": "_order", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_path": { - "name": "_path", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "varchar", - "primaryKey": true, - "notNull": true - }, - "width": { - "name": "width", - "type": "enum_pages_blocks_text_block_width", - "typeSchema": "public", - "primaryKey": false, - "notNull": false, - "default": "'medium'" - }, - "block_name": { - "name": "block_name", - "type": "varchar", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "pages_blocks_text_block_order_idx": { - "name": "pages_blocks_text_block_order_idx", - "columns": [ - { - "expression": "_order", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "pages_blocks_text_block_parent_id_idx": { - "name": "pages_blocks_text_block_parent_id_idx", - "columns": [ - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "pages_blocks_text_block_path_idx": { - "name": "pages_blocks_text_block_path_idx", - "columns": [ - { - "expression": "_path", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "pages_blocks_text_block_parent_id_fk": { - "name": "pages_blocks_text_block_parent_id_fk", - "tableFrom": "pages_blocks_text_block", - "tableTo": "pages", - "columnsFrom": [ - "_parent_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.pages_blocks_text_block_locales": { - "name": "pages_blocks_text_block_locales", - "schema": "", - "columns": { - "content": { - "name": "content", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "serial", - "primaryKey": true, - "notNull": true - }, - "_locale": { - "name": "_locale", - "type": "_locales", - "typeSchema": "public", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "varchar", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "pages_blocks_text_block_locales_locale_parent_id_unique": { - "name": "pages_blocks_text_block_locales_locale_parent_id_unique", - "columns": [ - { - "expression": "_locale", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "pages_blocks_text_block_locales_parent_id_fk": { - "name": "pages_blocks_text_block_locales_parent_id_fk", - "tableFrom": "pages_blocks_text_block_locales", - "tableTo": "pages_blocks_text_block", - "columnsFrom": [ - "_parent_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.pages_blocks_image_text_block": { - "name": "pages_blocks_image_text_block", - "schema": "", - "columns": { - "_order": { - "name": "_order", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_path": { - "name": "_path", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "varchar", - "primaryKey": true, - "notNull": true - }, - "image_id": { - "name": "image_id", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "image_position": { - "name": "image_position", - "type": "enum_pages_blocks_image_text_block_image_position", - "typeSchema": "public", - "primaryKey": false, - "notNull": false, - "default": "'left'" - }, - "cta_link": { - "name": "cta_link", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "block_name": { - "name": "block_name", - "type": "varchar", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "pages_blocks_image_text_block_order_idx": { - "name": "pages_blocks_image_text_block_order_idx", - "columns": [ - { - "expression": "_order", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "pages_blocks_image_text_block_parent_id_idx": { - "name": "pages_blocks_image_text_block_parent_id_idx", - "columns": [ - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "pages_blocks_image_text_block_path_idx": { - "name": "pages_blocks_image_text_block_path_idx", - "columns": [ - { - "expression": "_path", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "pages_blocks_image_text_block_image_idx": { - "name": "pages_blocks_image_text_block_image_idx", - "columns": [ - { - "expression": "image_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "pages_blocks_image_text_block_image_id_media_id_fk": { - "name": "pages_blocks_image_text_block_image_id_media_id_fk", - "tableFrom": "pages_blocks_image_text_block", - "tableTo": "media", - "columnsFrom": [ - "image_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "set null", - "onUpdate": "no action" - }, - "pages_blocks_image_text_block_parent_id_fk": { - "name": "pages_blocks_image_text_block_parent_id_fk", - "tableFrom": "pages_blocks_image_text_block", - "tableTo": "pages", - "columnsFrom": [ - "_parent_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.pages_blocks_image_text_block_locales": { - "name": "pages_blocks_image_text_block_locales", - "schema": "", - "columns": { - "headline": { - "name": "headline", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "content": { - "name": "content", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "cta_text": { - "name": "cta_text", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "id": { - "name": "id", - "type": "serial", - "primaryKey": true, - "notNull": true - }, - "_locale": { - "name": "_locale", - "type": "_locales", - "typeSchema": "public", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "varchar", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "pages_blocks_image_text_block_locales_locale_parent_id_uniqu": { - "name": "pages_blocks_image_text_block_locales_locale_parent_id_uniqu", - "columns": [ - { - "expression": "_locale", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "pages_blocks_image_text_block_locales_parent_id_fk": { - "name": "pages_blocks_image_text_block_locales_parent_id_fk", - "tableFrom": "pages_blocks_image_text_block_locales", - "tableTo": "pages_blocks_image_text_block", - "columnsFrom": [ - "_parent_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.pages_blocks_card_grid_block_cards": { - "name": "pages_blocks_card_grid_block_cards", - "schema": "", - "columns": { - "_order": { - "name": "_order", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "varchar", - "primaryKey": true, - "notNull": true - }, - "image_id": { - "name": "image_id", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "link": { - "name": "link", - "type": "varchar", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "pages_blocks_card_grid_block_cards_order_idx": { - "name": "pages_blocks_card_grid_block_cards_order_idx", - "columns": [ - { - "expression": "_order", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "pages_blocks_card_grid_block_cards_parent_id_idx": { - "name": "pages_blocks_card_grid_block_cards_parent_id_idx", - "columns": [ - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "pages_blocks_card_grid_block_cards_image_idx": { - "name": "pages_blocks_card_grid_block_cards_image_idx", - "columns": [ - { - "expression": "image_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "pages_blocks_card_grid_block_cards_image_id_media_id_fk": { - "name": "pages_blocks_card_grid_block_cards_image_id_media_id_fk", - "tableFrom": "pages_blocks_card_grid_block_cards", - "tableTo": "media", - "columnsFrom": [ - "image_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "set null", - "onUpdate": "no action" - }, - "pages_blocks_card_grid_block_cards_parent_id_fk": { - "name": "pages_blocks_card_grid_block_cards_parent_id_fk", - "tableFrom": "pages_blocks_card_grid_block_cards", - "tableTo": "pages_blocks_card_grid_block", - "columnsFrom": [ - "_parent_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.pages_blocks_card_grid_block_cards_locales": { - "name": "pages_blocks_card_grid_block_cards_locales", - "schema": "", - "columns": { - "title": { - "name": "title", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "description": { - "name": "description", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "link_text": { - "name": "link_text", - "type": "varchar", - "primaryKey": false, - "notNull": false, - "default": "'mehr'" - }, - "id": { - "name": "id", - "type": "serial", - "primaryKey": true, - "notNull": true - }, - "_locale": { - "name": "_locale", - "type": "_locales", - "typeSchema": "public", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "varchar", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "pages_blocks_card_grid_block_cards_locales_locale_parent_id_": { - "name": "pages_blocks_card_grid_block_cards_locales_locale_parent_id_", - "columns": [ - { - "expression": "_locale", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "pages_blocks_card_grid_block_cards_locales_parent_id_fk": { - "name": "pages_blocks_card_grid_block_cards_locales_parent_id_fk", - "tableFrom": "pages_blocks_card_grid_block_cards_locales", - "tableTo": "pages_blocks_card_grid_block_cards", - "columnsFrom": [ - "_parent_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.pages_blocks_card_grid_block": { - "name": "pages_blocks_card_grid_block", - "schema": "", - "columns": { - "_order": { - "name": "_order", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_path": { - "name": "_path", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "varchar", - "primaryKey": true, - "notNull": true - }, - "columns": { - "name": "columns", - "type": "enum_pages_blocks_card_grid_block_columns", - "typeSchema": "public", - "primaryKey": false, - "notNull": false, - "default": "'3'" - }, - "block_name": { - "name": "block_name", - "type": "varchar", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "pages_blocks_card_grid_block_order_idx": { - "name": "pages_blocks_card_grid_block_order_idx", - "columns": [ - { - "expression": "_order", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "pages_blocks_card_grid_block_parent_id_idx": { - "name": "pages_blocks_card_grid_block_parent_id_idx", - "columns": [ - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "pages_blocks_card_grid_block_path_idx": { - "name": "pages_blocks_card_grid_block_path_idx", - "columns": [ - { - "expression": "_path", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "pages_blocks_card_grid_block_parent_id_fk": { - "name": "pages_blocks_card_grid_block_parent_id_fk", - "tableFrom": "pages_blocks_card_grid_block", - "tableTo": "pages", - "columnsFrom": [ - "_parent_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.pages_blocks_card_grid_block_locales": { - "name": "pages_blocks_card_grid_block_locales", - "schema": "", - "columns": { - "headline": { - "name": "headline", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "id": { - "name": "id", - "type": "serial", - "primaryKey": true, - "notNull": true - }, - "_locale": { - "name": "_locale", - "type": "_locales", - "typeSchema": "public", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "varchar", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "pages_blocks_card_grid_block_locales_locale_parent_id_unique": { - "name": "pages_blocks_card_grid_block_locales_locale_parent_id_unique", - "columns": [ - { - "expression": "_locale", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "pages_blocks_card_grid_block_locales_parent_id_fk": { - "name": "pages_blocks_card_grid_block_locales_parent_id_fk", - "tableFrom": "pages_blocks_card_grid_block_locales", - "tableTo": "pages_blocks_card_grid_block", - "columnsFrom": [ - "_parent_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.pages_blocks_quote_block": { - "name": "pages_blocks_quote_block", - "schema": "", - "columns": { - "_order": { - "name": "_order", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_path": { - "name": "_path", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "varchar", - "primaryKey": true, - "notNull": true - }, - "author": { - "name": "author", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "image_id": { - "name": "image_id", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "style": { - "name": "style", - "type": "enum_pages_blocks_quote_block_style", - "typeSchema": "public", - "primaryKey": false, - "notNull": false, - "default": "'simple'" - }, - "block_name": { - "name": "block_name", - "type": "varchar", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "pages_blocks_quote_block_order_idx": { - "name": "pages_blocks_quote_block_order_idx", - "columns": [ - { - "expression": "_order", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "pages_blocks_quote_block_parent_id_idx": { - "name": "pages_blocks_quote_block_parent_id_idx", - "columns": [ - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "pages_blocks_quote_block_path_idx": { - "name": "pages_blocks_quote_block_path_idx", - "columns": [ - { - "expression": "_path", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "pages_blocks_quote_block_image_idx": { - "name": "pages_blocks_quote_block_image_idx", - "columns": [ - { - "expression": "image_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "pages_blocks_quote_block_image_id_media_id_fk": { - "name": "pages_blocks_quote_block_image_id_media_id_fk", - "tableFrom": "pages_blocks_quote_block", - "tableTo": "media", - "columnsFrom": [ - "image_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "set null", - "onUpdate": "no action" - }, - "pages_blocks_quote_block_parent_id_fk": { - "name": "pages_blocks_quote_block_parent_id_fk", - "tableFrom": "pages_blocks_quote_block", - "tableTo": "pages", - "columnsFrom": [ - "_parent_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.pages_blocks_quote_block_locales": { - "name": "pages_blocks_quote_block_locales", - "schema": "", - "columns": { - "quote": { - "name": "quote", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "role": { - "name": "role", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "id": { - "name": "id", - "type": "serial", - "primaryKey": true, - "notNull": true - }, - "_locale": { - "name": "_locale", - "type": "_locales", - "typeSchema": "public", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "varchar", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "pages_blocks_quote_block_locales_locale_parent_id_unique": { - "name": "pages_blocks_quote_block_locales_locale_parent_id_unique", - "columns": [ - { - "expression": "_locale", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "pages_blocks_quote_block_locales_parent_id_fk": { - "name": "pages_blocks_quote_block_locales_parent_id_fk", - "tableFrom": "pages_blocks_quote_block_locales", - "tableTo": "pages_blocks_quote_block", - "columnsFrom": [ - "_parent_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.pages_blocks_cta_block_buttons": { - "name": "pages_blocks_cta_block_buttons", - "schema": "", - "columns": { - "_order": { - "name": "_order", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "varchar", - "primaryKey": true, - "notNull": true - }, - "link": { - "name": "link", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "style": { - "name": "style", - "type": "enum_pages_blocks_cta_block_buttons_style", - "typeSchema": "public", - "primaryKey": false, - "notNull": false, - "default": "'primary'" - } - }, - "indexes": { - "pages_blocks_cta_block_buttons_order_idx": { - "name": "pages_blocks_cta_block_buttons_order_idx", - "columns": [ - { - "expression": "_order", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "pages_blocks_cta_block_buttons_parent_id_idx": { - "name": "pages_blocks_cta_block_buttons_parent_id_idx", - "columns": [ - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "pages_blocks_cta_block_buttons_parent_id_fk": { - "name": "pages_blocks_cta_block_buttons_parent_id_fk", - "tableFrom": "pages_blocks_cta_block_buttons", - "tableTo": "pages_blocks_cta_block", - "columnsFrom": [ - "_parent_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.pages_blocks_cta_block_buttons_locales": { - "name": "pages_blocks_cta_block_buttons_locales", - "schema": "", - "columns": { - "text": { - "name": "text", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "serial", - "primaryKey": true, - "notNull": true - }, - "_locale": { - "name": "_locale", - "type": "_locales", - "typeSchema": "public", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "varchar", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "pages_blocks_cta_block_buttons_locales_locale_parent_id_uniq": { - "name": "pages_blocks_cta_block_buttons_locales_locale_parent_id_uniq", - "columns": [ - { - "expression": "_locale", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "pages_blocks_cta_block_buttons_locales_parent_id_fk": { - "name": "pages_blocks_cta_block_buttons_locales_parent_id_fk", - "tableFrom": "pages_blocks_cta_block_buttons_locales", - "tableTo": "pages_blocks_cta_block_buttons", - "columnsFrom": [ - "_parent_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.pages_blocks_cta_block": { - "name": "pages_blocks_cta_block", - "schema": "", - "columns": { - "_order": { - "name": "_order", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_path": { - "name": "_path", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "varchar", - "primaryKey": true, - "notNull": true - }, - "background_color": { - "name": "background_color", - "type": "enum_pages_blocks_cta_block_background_color", - "typeSchema": "public", - "primaryKey": false, - "notNull": false, - "default": "'dark'" - }, - "block_name": { - "name": "block_name", - "type": "varchar", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "pages_blocks_cta_block_order_idx": { - "name": "pages_blocks_cta_block_order_idx", - "columns": [ - { - "expression": "_order", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "pages_blocks_cta_block_parent_id_idx": { - "name": "pages_blocks_cta_block_parent_id_idx", - "columns": [ - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "pages_blocks_cta_block_path_idx": { - "name": "pages_blocks_cta_block_path_idx", - "columns": [ - { - "expression": "_path", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "pages_blocks_cta_block_parent_id_fk": { - "name": "pages_blocks_cta_block_parent_id_fk", - "tableFrom": "pages_blocks_cta_block", - "tableTo": "pages", - "columnsFrom": [ - "_parent_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.pages_blocks_cta_block_locales": { - "name": "pages_blocks_cta_block_locales", - "schema": "", - "columns": { - "headline": { - "name": "headline", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "description": { - "name": "description", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "id": { - "name": "id", - "type": "serial", - "primaryKey": true, - "notNull": true - }, - "_locale": { - "name": "_locale", - "type": "_locales", - "typeSchema": "public", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "varchar", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "pages_blocks_cta_block_locales_locale_parent_id_unique": { - "name": "pages_blocks_cta_block_locales_locale_parent_id_unique", - "columns": [ - { - "expression": "_locale", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "pages_blocks_cta_block_locales_parent_id_fk": { - "name": "pages_blocks_cta_block_locales_parent_id_fk", - "tableFrom": "pages_blocks_cta_block_locales", - "tableTo": "pages_blocks_cta_block", - "columnsFrom": [ - "_parent_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.pages_blocks_contact_form_block": { - "name": "pages_blocks_contact_form_block", - "schema": "", - "columns": { - "_order": { - "name": "_order", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_path": { - "name": "_path", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "varchar", - "primaryKey": true, - "notNull": true - }, - "recipient_email": { - "name": "recipient_email", - "type": "varchar", - "primaryKey": false, - "notNull": false, - "default": "'info@porwoll.de'" - }, - "show_phone": { - "name": "show_phone", - "type": "boolean", - "primaryKey": false, - "notNull": false, - "default": true - }, - "show_address": { - "name": "show_address", - "type": "boolean", - "primaryKey": false, - "notNull": false, - "default": true - }, - "show_socials": { - "name": "show_socials", - "type": "boolean", - "primaryKey": false, - "notNull": false, - "default": true - }, - "block_name": { - "name": "block_name", - "type": "varchar", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "pages_blocks_contact_form_block_order_idx": { - "name": "pages_blocks_contact_form_block_order_idx", - "columns": [ - { - "expression": "_order", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "pages_blocks_contact_form_block_parent_id_idx": { - "name": "pages_blocks_contact_form_block_parent_id_idx", - "columns": [ - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "pages_blocks_contact_form_block_path_idx": { - "name": "pages_blocks_contact_form_block_path_idx", - "columns": [ - { - "expression": "_path", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "pages_blocks_contact_form_block_parent_id_fk": { - "name": "pages_blocks_contact_form_block_parent_id_fk", - "tableFrom": "pages_blocks_contact_form_block", - "tableTo": "pages", - "columnsFrom": [ - "_parent_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.pages_blocks_contact_form_block_locales": { - "name": "pages_blocks_contact_form_block_locales", - "schema": "", - "columns": { - "headline": { - "name": "headline", - "type": "varchar", - "primaryKey": false, - "notNull": false, - "default": "'Kontakt'" - }, - "description": { - "name": "description", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "id": { - "name": "id", - "type": "serial", - "primaryKey": true, - "notNull": true - }, - "_locale": { - "name": "_locale", - "type": "_locales", - "typeSchema": "public", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "varchar", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "pages_blocks_contact_form_block_locales_locale_parent_id_uni": { - "name": "pages_blocks_contact_form_block_locales_locale_parent_id_uni", - "columns": [ - { - "expression": "_locale", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "pages_blocks_contact_form_block_locales_parent_id_fk": { - "name": "pages_blocks_contact_form_block_locales_parent_id_fk", - "tableFrom": "pages_blocks_contact_form_block_locales", - "tableTo": "pages_blocks_contact_form_block", - "columnsFrom": [ - "_parent_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.pages_blocks_timeline_block_items": { - "name": "pages_blocks_timeline_block_items", - "schema": "", - "columns": { - "_order": { - "name": "_order", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "varchar", - "primaryKey": true, - "notNull": true - }, - "year": { - "name": "year", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "icon": { - "name": "icon", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "image_id": { - "name": "image_id", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "link_href": { - "name": "link_href", - "type": "varchar", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "pages_blocks_timeline_block_items_order_idx": { - "name": "pages_blocks_timeline_block_items_order_idx", - "columns": [ - { - "expression": "_order", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "pages_blocks_timeline_block_items_parent_id_idx": { - "name": "pages_blocks_timeline_block_items_parent_id_idx", - "columns": [ - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "pages_blocks_timeline_block_items_image_idx": { - "name": "pages_blocks_timeline_block_items_image_idx", - "columns": [ - { - "expression": "image_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "pages_blocks_timeline_block_items_image_id_media_id_fk": { - "name": "pages_blocks_timeline_block_items_image_id_media_id_fk", - "tableFrom": "pages_blocks_timeline_block_items", - "tableTo": "media", - "columnsFrom": [ - "image_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "set null", - "onUpdate": "no action" - }, - "pages_blocks_timeline_block_items_parent_id_fk": { - "name": "pages_blocks_timeline_block_items_parent_id_fk", - "tableFrom": "pages_blocks_timeline_block_items", - "tableTo": "pages_blocks_timeline_block", - "columnsFrom": [ - "_parent_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.pages_blocks_timeline_block_items_locales": { - "name": "pages_blocks_timeline_block_items_locales", - "schema": "", - "columns": { - "title": { - "name": "title", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "description": { - "name": "description", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "link_label": { - "name": "link_label", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "id": { - "name": "id", - "type": "serial", - "primaryKey": true, - "notNull": true - }, - "_locale": { - "name": "_locale", - "type": "_locales", - "typeSchema": "public", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "varchar", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "pages_blocks_timeline_block_items_locales_locale_parent_id_u": { - "name": "pages_blocks_timeline_block_items_locales_locale_parent_id_u", - "columns": [ - { - "expression": "_locale", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "pages_blocks_timeline_block_items_locales_parent_id_fk": { - "name": "pages_blocks_timeline_block_items_locales_parent_id_fk", - "tableFrom": "pages_blocks_timeline_block_items_locales", - "tableTo": "pages_blocks_timeline_block_items", - "columnsFrom": [ - "_parent_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.pages_blocks_timeline_block": { - "name": "pages_blocks_timeline_block", - "schema": "", - "columns": { - "_order": { - "name": "_order", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_path": { - "name": "_path", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "varchar", - "primaryKey": true, - "notNull": true - }, - "layout": { - "name": "layout", - "type": "enum_pages_blocks_timeline_block_layout", - "typeSchema": "public", - "primaryKey": false, - "notNull": false, - "default": "'vertical'" - }, - "show_connector": { - "name": "show_connector", - "type": "boolean", - "primaryKey": false, - "notNull": false, - "default": true - }, - "marker_style": { - "name": "marker_style", - "type": "enum_pages_blocks_timeline_block_marker_style", - "typeSchema": "public", - "primaryKey": false, - "notNull": false, - "default": "'dot'" - }, - "background_color": { - "name": "background_color", - "type": "enum_pages_blocks_timeline_block_background_color", - "typeSchema": "public", - "primaryKey": false, - "notNull": false, - "default": "'white'" - }, - "block_name": { - "name": "block_name", - "type": "varchar", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "pages_blocks_timeline_block_order_idx": { - "name": "pages_blocks_timeline_block_order_idx", - "columns": [ - { - "expression": "_order", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "pages_blocks_timeline_block_parent_id_idx": { - "name": "pages_blocks_timeline_block_parent_id_idx", - "columns": [ - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "pages_blocks_timeline_block_path_idx": { - "name": "pages_blocks_timeline_block_path_idx", - "columns": [ - { - "expression": "_path", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "pages_blocks_timeline_block_parent_id_fk": { - "name": "pages_blocks_timeline_block_parent_id_fk", - "tableFrom": "pages_blocks_timeline_block", - "tableTo": "pages", - "columnsFrom": [ - "_parent_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.pages_blocks_timeline_block_locales": { - "name": "pages_blocks_timeline_block_locales", - "schema": "", - "columns": { - "title": { - "name": "title", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "subtitle": { - "name": "subtitle", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "id": { - "name": "id", - "type": "serial", - "primaryKey": true, - "notNull": true - }, - "_locale": { - "name": "_locale", - "type": "_locales", - "typeSchema": "public", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "varchar", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "pages_blocks_timeline_block_locales_locale_parent_id_unique": { - "name": "pages_blocks_timeline_block_locales_locale_parent_id_unique", - "columns": [ - { - "expression": "_locale", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "pages_blocks_timeline_block_locales_parent_id_fk": { - "name": "pages_blocks_timeline_block_locales_parent_id_fk", - "tableFrom": "pages_blocks_timeline_block_locales", - "tableTo": "pages_blocks_timeline_block", - "columnsFrom": [ - "_parent_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.pages_blocks_divider_block": { - "name": "pages_blocks_divider_block", - "schema": "", - "columns": { - "_order": { - "name": "_order", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_path": { - "name": "_path", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "varchar", - "primaryKey": true, - "notNull": true - }, - "style": { - "name": "style", - "type": "enum_pages_blocks_divider_block_style", - "typeSchema": "public", - "primaryKey": false, - "notNull": false, - "default": "'space'" - }, - "spacing": { - "name": "spacing", - "type": "enum_pages_blocks_divider_block_spacing", - "typeSchema": "public", - "primaryKey": false, - "notNull": false, - "default": "'medium'" - }, - "block_name": { - "name": "block_name", - "type": "varchar", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "pages_blocks_divider_block_order_idx": { - "name": "pages_blocks_divider_block_order_idx", - "columns": [ - { - "expression": "_order", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "pages_blocks_divider_block_parent_id_idx": { - "name": "pages_blocks_divider_block_parent_id_idx", - "columns": [ - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "pages_blocks_divider_block_path_idx": { - "name": "pages_blocks_divider_block_path_idx", - "columns": [ - { - "expression": "_path", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "pages_blocks_divider_block_parent_id_fk": { - "name": "pages_blocks_divider_block_parent_id_fk", - "tableFrom": "pages_blocks_divider_block", - "tableTo": "pages", - "columnsFrom": [ - "_parent_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.pages_blocks_video_block": { - "name": "pages_blocks_video_block", - "schema": "", - "columns": { - "_order": { - "name": "_order", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_path": { - "name": "_path", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "varchar", - "primaryKey": true, - "notNull": true - }, - "video_url": { - "name": "video_url", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "aspect_ratio": { - "name": "aspect_ratio", - "type": "enum_pages_blocks_video_block_aspect_ratio", - "typeSchema": "public", - "primaryKey": false, - "notNull": false, - "default": "'16:9'" - }, - "block_name": { - "name": "block_name", - "type": "varchar", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "pages_blocks_video_block_order_idx": { - "name": "pages_blocks_video_block_order_idx", - "columns": [ - { - "expression": "_order", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "pages_blocks_video_block_parent_id_idx": { - "name": "pages_blocks_video_block_parent_id_idx", - "columns": [ - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "pages_blocks_video_block_path_idx": { - "name": "pages_blocks_video_block_path_idx", - "columns": [ - { - "expression": "_path", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "pages_blocks_video_block_parent_id_fk": { - "name": "pages_blocks_video_block_parent_id_fk", - "tableFrom": "pages_blocks_video_block", - "tableTo": "pages", - "columnsFrom": [ - "_parent_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.pages_blocks_video_block_locales": { - "name": "pages_blocks_video_block_locales", - "schema": "", - "columns": { - "caption": { - "name": "caption", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "id": { - "name": "id", - "type": "serial", - "primaryKey": true, - "notNull": true - }, - "_locale": { - "name": "_locale", - "type": "_locales", - "typeSchema": "public", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "varchar", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "pages_blocks_video_block_locales_locale_parent_id_unique": { - "name": "pages_blocks_video_block_locales_locale_parent_id_unique", - "columns": [ - { - "expression": "_locale", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "pages_blocks_video_block_locales_parent_id_fk": { - "name": "pages_blocks_video_block_locales_parent_id_fk", - "tableFrom": "pages_blocks_video_block_locales", - "tableTo": "pages_blocks_video_block", - "columnsFrom": [ - "_parent_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.pages_blocks_posts_list_block": { - "name": "pages_blocks_posts_list_block", - "schema": "", - "columns": { - "_order": { - "name": "_order", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_path": { - "name": "_path", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "varchar", - "primaryKey": true, - "notNull": true - }, - "post_type": { - "name": "post_type", - "type": "enum_pages_blocks_posts_list_block_post_type", - "typeSchema": "public", - "primaryKey": false, - "notNull": true, - "default": "'blog'" - }, - "layout": { - "name": "layout", - "type": "enum_pages_blocks_posts_list_block_layout", - "typeSchema": "public", - "primaryKey": false, - "notNull": false, - "default": "'grid'" - }, - "columns": { - "name": "columns", - "type": "enum_pages_blocks_posts_list_block_columns", - "typeSchema": "public", - "primaryKey": false, - "notNull": false, - "default": "'3'" - }, - "limit": { - "name": "limit", - "type": "numeric", - "primaryKey": false, - "notNull": false, - "default": 6 - }, - "show_featured_only": { - "name": "show_featured_only", - "type": "boolean", - "primaryKey": false, - "notNull": false, - "default": false - }, - "show_excerpt": { - "name": "show_excerpt", - "type": "boolean", - "primaryKey": false, - "notNull": false, - "default": true - }, - "show_date": { - "name": "show_date", - "type": "boolean", - "primaryKey": false, - "notNull": false, - "default": true - }, - "show_author": { - "name": "show_author", - "type": "boolean", - "primaryKey": false, - "notNull": false, - "default": false - }, - "show_category": { - "name": "show_category", - "type": "boolean", - "primaryKey": false, - "notNull": false, - "default": true - }, - "show_pagination": { - "name": "show_pagination", - "type": "boolean", - "primaryKey": false, - "notNull": false, - "default": false - }, - "show_read_more": { - "name": "show_read_more", - "type": "boolean", - "primaryKey": false, - "notNull": false, - "default": true - }, - "read_more_link": { - "name": "read_more_link", - "type": "varchar", - "primaryKey": false, - "notNull": false, - "default": "'/blog'" - }, - "background_color": { - "name": "background_color", - "type": "enum_pages_blocks_posts_list_block_background_color", - "typeSchema": "public", - "primaryKey": false, - "notNull": false, - "default": "'white'" - }, - "block_name": { - "name": "block_name", - "type": "varchar", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "pages_blocks_posts_list_block_order_idx": { - "name": "pages_blocks_posts_list_block_order_idx", - "columns": [ - { - "expression": "_order", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "pages_blocks_posts_list_block_parent_id_idx": { - "name": "pages_blocks_posts_list_block_parent_id_idx", - "columns": [ - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "pages_blocks_posts_list_block_path_idx": { - "name": "pages_blocks_posts_list_block_path_idx", - "columns": [ - { - "expression": "_path", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "pages_blocks_posts_list_block_parent_id_fk": { - "name": "pages_blocks_posts_list_block_parent_id_fk", - "tableFrom": "pages_blocks_posts_list_block", - "tableTo": "pages", - "columnsFrom": [ - "_parent_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.pages_blocks_posts_list_block_locales": { - "name": "pages_blocks_posts_list_block_locales", - "schema": "", - "columns": { - "title": { - "name": "title", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "subtitle": { - "name": "subtitle", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "read_more_label": { - "name": "read_more_label", - "type": "varchar", - "primaryKey": false, - "notNull": false, - "default": "'Alle Beiträge anzeigen'" - }, - "id": { - "name": "id", - "type": "serial", - "primaryKey": true, - "notNull": true - }, - "_locale": { - "name": "_locale", - "type": "_locales", - "typeSchema": "public", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "varchar", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "pages_blocks_posts_list_block_locales_locale_parent_id_uniqu": { - "name": "pages_blocks_posts_list_block_locales_locale_parent_id_uniqu", - "columns": [ - { - "expression": "_locale", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "pages_blocks_posts_list_block_locales_parent_id_fk": { - "name": "pages_blocks_posts_list_block_locales_parent_id_fk", - "tableFrom": "pages_blocks_posts_list_block_locales", - "tableTo": "pages_blocks_posts_list_block", - "columnsFrom": [ - "_parent_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.pages_blocks_testimonials_block": { - "name": "pages_blocks_testimonials_block", - "schema": "", - "columns": { - "_order": { - "name": "_order", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_path": { - "name": "_path", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "varchar", - "primaryKey": true, - "notNull": true - }, - "layout": { - "name": "layout", - "type": "enum_pages_blocks_testimonials_block_layout", - "typeSchema": "public", - "primaryKey": false, - "notNull": false, - "default": "'slider'" - }, - "columns": { - "name": "columns", - "type": "enum_pages_blocks_testimonials_block_columns", - "typeSchema": "public", - "primaryKey": false, - "notNull": false, - "default": "'3'" - }, - "display_mode": { - "name": "display_mode", - "type": "enum_pages_blocks_testimonials_block_display_mode", - "typeSchema": "public", - "primaryKey": false, - "notNull": false, - "default": "'all'" - }, - "limit": { - "name": "limit", - "type": "numeric", - "primaryKey": false, - "notNull": false, - "default": 6 - }, - "show_rating": { - "name": "show_rating", - "type": "boolean", - "primaryKey": false, - "notNull": false, - "default": true - }, - "show_image": { - "name": "show_image", - "type": "boolean", - "primaryKey": false, - "notNull": false, - "default": true - }, - "show_company": { - "name": "show_company", - "type": "boolean", - "primaryKey": false, - "notNull": false, - "default": true - }, - "show_source": { - "name": "show_source", - "type": "boolean", - "primaryKey": false, - "notNull": false, - "default": false - }, - "autoplay": { - "name": "autoplay", - "type": "boolean", - "primaryKey": false, - "notNull": false, - "default": true - }, - "autoplay_speed": { - "name": "autoplay_speed", - "type": "numeric", - "primaryKey": false, - "notNull": false, - "default": 5000 - }, - "background_color": { - "name": "background_color", - "type": "enum_pages_blocks_testimonials_block_background_color", - "typeSchema": "public", - "primaryKey": false, - "notNull": false, - "default": "'light'" - }, - "block_name": { - "name": "block_name", - "type": "varchar", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "pages_blocks_testimonials_block_order_idx": { - "name": "pages_blocks_testimonials_block_order_idx", - "columns": [ - { - "expression": "_order", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "pages_blocks_testimonials_block_parent_id_idx": { - "name": "pages_blocks_testimonials_block_parent_id_idx", - "columns": [ - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "pages_blocks_testimonials_block_path_idx": { - "name": "pages_blocks_testimonials_block_path_idx", - "columns": [ - { - "expression": "_path", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "pages_blocks_testimonials_block_parent_id_fk": { - "name": "pages_blocks_testimonials_block_parent_id_fk", - "tableFrom": "pages_blocks_testimonials_block", - "tableTo": "pages", - "columnsFrom": [ - "_parent_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.pages_blocks_testimonials_block_locales": { - "name": "pages_blocks_testimonials_block_locales", - "schema": "", - "columns": { - "title": { - "name": "title", - "type": "varchar", - "primaryKey": false, - "notNull": false, - "default": "'Das sagen unsere Kunden'" - }, - "subtitle": { - "name": "subtitle", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "id": { - "name": "id", - "type": "serial", - "primaryKey": true, - "notNull": true - }, - "_locale": { - "name": "_locale", - "type": "_locales", - "typeSchema": "public", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "varchar", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "pages_blocks_testimonials_block_locales_locale_parent_id_uni": { - "name": "pages_blocks_testimonials_block_locales_locale_parent_id_uni", - "columns": [ - { - "expression": "_locale", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "pages_blocks_testimonials_block_locales_parent_id_fk": { - "name": "pages_blocks_testimonials_block_locales_parent_id_fk", - "tableFrom": "pages_blocks_testimonials_block_locales", - "tableTo": "pages_blocks_testimonials_block", - "columnsFrom": [ - "_parent_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.pages_blocks_newsletter_block_available_interests": { - "name": "pages_blocks_newsletter_block_available_interests", - "schema": "", - "columns": { - "order": { - "name": "order", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "parent_id": { - "name": "parent_id", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "value": { - "name": "value", - "type": "enum_pages_blocks_newsletter_block_available_interests", - "typeSchema": "public", - "primaryKey": false, - "notNull": false - }, - "id": { - "name": "id", - "type": "serial", - "primaryKey": true, - "notNull": true - } - }, - "indexes": { - "pages_blocks_newsletter_block_available_interests_order_idx": { - "name": "pages_blocks_newsletter_block_available_interests_order_idx", - "columns": [ - { - "expression": "order", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "pages_blocks_newsletter_block_available_interests_parent_idx": { - "name": "pages_blocks_newsletter_block_available_interests_parent_idx", - "columns": [ - { - "expression": "parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "pages_blocks_newsletter_block_available_interests_parent_fk": { - "name": "pages_blocks_newsletter_block_available_interests_parent_fk", - "tableFrom": "pages_blocks_newsletter_block_available_interests", - "tableTo": "pages_blocks_newsletter_block", - "columnsFrom": [ - "parent_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.pages_blocks_newsletter_block": { - "name": "pages_blocks_newsletter_block", - "schema": "", - "columns": { - "_order": { - "name": "_order", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_path": { - "name": "_path", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "varchar", - "primaryKey": true, - "notNull": true - }, - "layout": { - "name": "layout", - "type": "enum_pages_blocks_newsletter_block_layout", - "typeSchema": "public", - "primaryKey": false, - "notNull": false, - "default": "'inline'" - }, - "image_id": { - "name": "image_id", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "image_position": { - "name": "image_position", - "type": "enum_pages_blocks_newsletter_block_image_position", - "typeSchema": "public", - "primaryKey": false, - "notNull": false, - "default": "'left'" - }, - "collect_name": { - "name": "collect_name", - "type": "boolean", - "primaryKey": false, - "notNull": false, - "default": false - }, - "show_interests": { - "name": "show_interests", - "type": "boolean", - "primaryKey": false, - "notNull": false, - "default": false - }, - "privacy_link": { - "name": "privacy_link", - "type": "varchar", - "primaryKey": false, - "notNull": false, - "default": "'/datenschutz'" - }, - "source": { - "name": "source", - "type": "varchar", - "primaryKey": false, - "notNull": false, - "default": "'website'" - }, - "background_color": { - "name": "background_color", - "type": "enum_pages_blocks_newsletter_block_background_color", - "typeSchema": "public", - "primaryKey": false, - "notNull": false, - "default": "'accent'" - }, - "block_name": { - "name": "block_name", - "type": "varchar", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "pages_blocks_newsletter_block_order_idx": { - "name": "pages_blocks_newsletter_block_order_idx", - "columns": [ - { - "expression": "_order", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "pages_blocks_newsletter_block_parent_id_idx": { - "name": "pages_blocks_newsletter_block_parent_id_idx", - "columns": [ - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "pages_blocks_newsletter_block_path_idx": { - "name": "pages_blocks_newsletter_block_path_idx", - "columns": [ - { - "expression": "_path", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "pages_blocks_newsletter_block_image_idx": { - "name": "pages_blocks_newsletter_block_image_idx", - "columns": [ - { - "expression": "image_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "pages_blocks_newsletter_block_image_id_media_id_fk": { - "name": "pages_blocks_newsletter_block_image_id_media_id_fk", - "tableFrom": "pages_blocks_newsletter_block", - "tableTo": "media", - "columnsFrom": [ - "image_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "set null", - "onUpdate": "no action" - }, - "pages_blocks_newsletter_block_parent_id_fk": { - "name": "pages_blocks_newsletter_block_parent_id_fk", - "tableFrom": "pages_blocks_newsletter_block", - "tableTo": "pages", - "columnsFrom": [ - "_parent_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.pages_blocks_newsletter_block_locales": { - "name": "pages_blocks_newsletter_block_locales", - "schema": "", - "columns": { - "title": { - "name": "title", - "type": "varchar", - "primaryKey": false, - "notNull": false, - "default": "'Newsletter abonnieren'" - }, - "subtitle": { - "name": "subtitle", - "type": "varchar", - "primaryKey": false, - "notNull": false, - "default": "'Erhalten Sie regelmäßig Updates und Neuigkeiten direkt in Ihr Postfach.'" - }, - "button_text": { - "name": "button_text", - "type": "varchar", - "primaryKey": false, - "notNull": false, - "default": "'Anmelden'" - }, - "placeholder_email": { - "name": "placeholder_email", - "type": "varchar", - "primaryKey": false, - "notNull": false, - "default": "'Ihre E-Mail-Adresse'" - }, - "success_message": { - "name": "success_message", - "type": "varchar", - "primaryKey": false, - "notNull": false, - "default": "'Vielen Dank! Bitte bestätigen Sie Ihre E-Mail-Adresse über den Link in der Bestätigungsmail.'" - }, - "error_message": { - "name": "error_message", - "type": "varchar", - "primaryKey": false, - "notNull": false, - "default": "'Es ist ein Fehler aufgetreten. Bitte versuchen Sie es später erneut.'" - }, - "privacy_text": { - "name": "privacy_text", - "type": "varchar", - "primaryKey": false, - "notNull": false, - "default": "'Mit der Anmeldung akzeptieren Sie unsere Datenschutzerklärung. Sie können sich jederzeit abmelden.'" - }, - "id": { - "name": "id", - "type": "serial", - "primaryKey": true, - "notNull": true - }, - "_locale": { - "name": "_locale", - "type": "_locales", - "typeSchema": "public", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "varchar", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "pages_blocks_newsletter_block_locales_locale_parent_id_uniqu": { - "name": "pages_blocks_newsletter_block_locales_locale_parent_id_uniqu", - "columns": [ - { - "expression": "_locale", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "pages_blocks_newsletter_block_locales_parent_id_fk": { - "name": "pages_blocks_newsletter_block_locales_parent_id_fk", - "tableFrom": "pages_blocks_newsletter_block_locales", - "tableTo": "pages_blocks_newsletter_block", - "columnsFrom": [ - "_parent_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.pages_blocks_process_steps_block_steps": { - "name": "pages_blocks_process_steps_block_steps", - "schema": "", - "columns": { - "_order": { - "name": "_order", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "varchar", - "primaryKey": true, - "notNull": true - }, - "icon": { - "name": "icon", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "image_id": { - "name": "image_id", - "type": "integer", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "pages_blocks_process_steps_block_steps_order_idx": { - "name": "pages_blocks_process_steps_block_steps_order_idx", - "columns": [ - { - "expression": "_order", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "pages_blocks_process_steps_block_steps_parent_id_idx": { - "name": "pages_blocks_process_steps_block_steps_parent_id_idx", - "columns": [ - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "pages_blocks_process_steps_block_steps_image_idx": { - "name": "pages_blocks_process_steps_block_steps_image_idx", - "columns": [ - { - "expression": "image_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "pages_blocks_process_steps_block_steps_image_id_media_id_fk": { - "name": "pages_blocks_process_steps_block_steps_image_id_media_id_fk", - "tableFrom": "pages_blocks_process_steps_block_steps", - "tableTo": "media", - "columnsFrom": [ - "image_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "set null", - "onUpdate": "no action" - }, - "pages_blocks_process_steps_block_steps_parent_id_fk": { - "name": "pages_blocks_process_steps_block_steps_parent_id_fk", - "tableFrom": "pages_blocks_process_steps_block_steps", - "tableTo": "pages_blocks_process_steps_block", - "columnsFrom": [ - "_parent_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.pages_blocks_process_steps_block_steps_locales": { - "name": "pages_blocks_process_steps_block_steps_locales", - "schema": "", - "columns": { - "title": { - "name": "title", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "description": { - "name": "description", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "id": { - "name": "id", - "type": "serial", - "primaryKey": true, - "notNull": true - }, - "_locale": { - "name": "_locale", - "type": "_locales", - "typeSchema": "public", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "varchar", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "pages_blocks_process_steps_block_steps_locales_locale_parent": { - "name": "pages_blocks_process_steps_block_steps_locales_locale_parent", - "columns": [ - { - "expression": "_locale", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "pages_blocks_process_steps_block_steps_locales_parent_id_fk": { - "name": "pages_blocks_process_steps_block_steps_locales_parent_id_fk", - "tableFrom": "pages_blocks_process_steps_block_steps_locales", - "tableTo": "pages_blocks_process_steps_block_steps", - "columnsFrom": [ - "_parent_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.pages_blocks_process_steps_block": { - "name": "pages_blocks_process_steps_block", - "schema": "", - "columns": { - "_order": { - "name": "_order", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_path": { - "name": "_path", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "varchar", - "primaryKey": true, - "notNull": true - }, - "layout": { - "name": "layout", - "type": "enum_pages_blocks_process_steps_block_layout", - "typeSchema": "public", - "primaryKey": false, - "notNull": false, - "default": "'horizontal'" - }, - "show_numbers": { - "name": "show_numbers", - "type": "boolean", - "primaryKey": false, - "notNull": false, - "default": true - }, - "show_icons": { - "name": "show_icons", - "type": "boolean", - "primaryKey": false, - "notNull": false, - "default": true - }, - "cta_show": { - "name": "cta_show", - "type": "boolean", - "primaryKey": false, - "notNull": false, - "default": false - }, - "cta_href": { - "name": "cta_href", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "cta_variant": { - "name": "cta_variant", - "type": "enum_pages_blocks_process_steps_block_cta_variant", - "typeSchema": "public", - "primaryKey": false, - "notNull": false, - "default": "'default'" - }, - "background_color": { - "name": "background_color", - "type": "enum_pages_blocks_process_steps_block_background_color", - "typeSchema": "public", - "primaryKey": false, - "notNull": false, - "default": "'white'" - }, - "block_name": { - "name": "block_name", - "type": "varchar", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "pages_blocks_process_steps_block_order_idx": { - "name": "pages_blocks_process_steps_block_order_idx", - "columns": [ - { - "expression": "_order", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "pages_blocks_process_steps_block_parent_id_idx": { - "name": "pages_blocks_process_steps_block_parent_id_idx", - "columns": [ - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "pages_blocks_process_steps_block_path_idx": { - "name": "pages_blocks_process_steps_block_path_idx", - "columns": [ - { - "expression": "_path", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "pages_blocks_process_steps_block_parent_id_fk": { - "name": "pages_blocks_process_steps_block_parent_id_fk", - "tableFrom": "pages_blocks_process_steps_block", - "tableTo": "pages", - "columnsFrom": [ - "_parent_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.pages_blocks_process_steps_block_locales": { - "name": "pages_blocks_process_steps_block_locales", - "schema": "", - "columns": { - "title": { - "name": "title", - "type": "varchar", - "primaryKey": false, - "notNull": false, - "default": "'So funktioniert es'" - }, - "subtitle": { - "name": "subtitle", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "cta_label": { - "name": "cta_label", - "type": "varchar", - "primaryKey": false, - "notNull": false, - "default": "'Jetzt starten'" - }, - "id": { - "name": "id", - "type": "serial", - "primaryKey": true, - "notNull": true - }, - "_locale": { - "name": "_locale", - "type": "_locales", - "typeSchema": "public", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "varchar", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "pages_blocks_process_steps_block_locales_locale_parent_id_un": { - "name": "pages_blocks_process_steps_block_locales_locale_parent_id_un", - "columns": [ - { - "expression": "_locale", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "pages_blocks_process_steps_block_locales_parent_id_fk": { - "name": "pages_blocks_process_steps_block_locales_parent_id_fk", - "tableFrom": "pages_blocks_process_steps_block_locales", - "tableTo": "pages_blocks_process_steps_block", - "columnsFrom": [ - "_parent_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.pages": { - "name": "pages", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "serial", - "primaryKey": true, - "notNull": true - }, - "tenant_id": { - "name": "tenant_id", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "hero_image_id": { - "name": "hero_image_id", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "seo_og_image_id": { - "name": "seo_og_image_id", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "status": { - "name": "status", - "type": "enum_pages_status", - "typeSchema": "public", - "primaryKey": false, - "notNull": false, - "default": "'draft'" - }, - "published_at": { - "name": "published_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "created_at": { - "name": "created_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - } - }, - "indexes": { - "pages_tenant_idx": { - "name": "pages_tenant_idx", - "columns": [ - { - "expression": "tenant_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "pages_hero_hero_image_idx": { - "name": "pages_hero_hero_image_idx", - "columns": [ - { - "expression": "hero_image_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "pages_seo_seo_og_image_idx": { - "name": "pages_seo_seo_og_image_idx", - "columns": [ - { - "expression": "seo_og_image_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "pages_updated_at_idx": { - "name": "pages_updated_at_idx", - "columns": [ - { - "expression": "updated_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "pages_created_at_idx": { - "name": "pages_created_at_idx", - "columns": [ - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "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" - }, - "pages_hero_image_id_media_id_fk": { - "name": "pages_hero_image_id_media_id_fk", - "tableFrom": "pages", - "tableTo": "media", - "columnsFrom": [ - "hero_image_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "set null", - "onUpdate": "no action" - }, - "pages_seo_og_image_id_media_id_fk": { - "name": "pages_seo_og_image_id_media_id_fk", - "tableFrom": "pages", - "tableTo": "media", - "columnsFrom": [ - "seo_og_image_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "set null", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.pages_locales": { - "name": "pages_locales", - "schema": "", - "columns": { - "title": { - "name": "title", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "slug": { - "name": "slug", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "hero_headline": { - "name": "hero_headline", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "hero_subline": { - "name": "hero_subline", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "seo_meta_title": { - "name": "seo_meta_title", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "seo_meta_description": { - "name": "seo_meta_description", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "id": { - "name": "id", - "type": "serial", - "primaryKey": true, - "notNull": true - }, - "_locale": { - "name": "_locale", - "type": "_locales", - "typeSchema": "public", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "integer", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "pages_locales_locale_parent_id_unique": { - "name": "pages_locales_locale_parent_id_unique", - "columns": [ - { - "expression": "_locale", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "pages_locales_parent_id_fk": { - "name": "pages_locales_parent_id_fk", - "tableFrom": "pages_locales", - "tableTo": "pages", - "columnsFrom": [ - "_parent_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.pages_rels": { - "name": "pages_rels", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "serial", - "primaryKey": true, - "notNull": true - }, - "order": { - "name": "order", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "parent_id": { - "name": "parent_id", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "path": { - "name": "path", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "categories_id": { - "name": "categories_id", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "testimonials_id": { - "name": "testimonials_id", - "type": "integer", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "pages_rels_order_idx": { - "name": "pages_rels_order_idx", - "columns": [ - { - "expression": "order", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "pages_rels_parent_idx": { - "name": "pages_rels_parent_idx", - "columns": [ - { - "expression": "parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "pages_rels_path_idx": { - "name": "pages_rels_path_idx", - "columns": [ - { - "expression": "path", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "pages_rels_categories_id_idx": { - "name": "pages_rels_categories_id_idx", - "columns": [ - { - "expression": "categories_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "pages_rels_testimonials_id_idx": { - "name": "pages_rels_testimonials_id_idx", - "columns": [ - { - "expression": "testimonials_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "pages_rels_parent_fk": { - "name": "pages_rels_parent_fk", - "tableFrom": "pages_rels", - "tableTo": "pages", - "columnsFrom": [ - "parent_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - }, - "pages_rels_categories_fk": { - "name": "pages_rels_categories_fk", - "tableFrom": "pages_rels", - "tableTo": "categories", - "columnsFrom": [ - "categories_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - }, - "pages_rels_testimonials_fk": { - "name": "pages_rels_testimonials_fk", - "tableFrom": "pages_rels", - "tableTo": "testimonials", - "columnsFrom": [ - "testimonials_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.posts": { - "name": "posts", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "serial", - "primaryKey": true, - "notNull": true - }, - "tenant_id": { - "name": "tenant_id", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "type": { - "name": "type", - "type": "enum_posts_type", - "typeSchema": "public", - "primaryKey": false, - "notNull": true, - "default": "'blog'" - }, - "is_featured": { - "name": "is_featured", - "type": "boolean", - "primaryKey": false, - "notNull": false, - "default": false - }, - "featured_image_id": { - "name": "featured_image_id", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "author": { - "name": "author", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "status": { - "name": "status", - "type": "enum_posts_status", - "typeSchema": "public", - "primaryKey": false, - "notNull": false, - "default": "'draft'" - }, - "published_at": { - "name": "published_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": false - }, - "seo_og_image_id": { - "name": "seo_og_image_id", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "created_at": { - "name": "created_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - } - }, - "indexes": { - "posts_tenant_idx": { - "name": "posts_tenant_idx", - "columns": [ - { - "expression": "tenant_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "posts_featured_image_idx": { - "name": "posts_featured_image_idx", - "columns": [ - { - "expression": "featured_image_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "posts_seo_seo_og_image_idx": { - "name": "posts_seo_seo_og_image_idx", - "columns": [ - { - "expression": "seo_og_image_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "posts_updated_at_idx": { - "name": "posts_updated_at_idx", - "columns": [ - { - "expression": "updated_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "posts_created_at_idx": { - "name": "posts_created_at_idx", - "columns": [ - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "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" - }, - "posts_seo_og_image_id_media_id_fk": { - "name": "posts_seo_og_image_id_media_id_fk", - "tableFrom": "posts", - "tableTo": "media", - "columnsFrom": [ - "seo_og_image_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "set null", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.posts_locales": { - "name": "posts_locales", - "schema": "", - "columns": { - "title": { - "name": "title", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "slug": { - "name": "slug", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "excerpt": { - "name": "excerpt", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "content": { - "name": "content", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "seo_meta_title": { - "name": "seo_meta_title", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "seo_meta_description": { - "name": "seo_meta_description", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "id": { - "name": "id", - "type": "serial", - "primaryKey": true, - "notNull": true - }, - "_locale": { - "name": "_locale", - "type": "_locales", - "typeSchema": "public", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "integer", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "posts_locales_locale_parent_id_unique": { - "name": "posts_locales_locale_parent_id_unique", - "columns": [ - { - "expression": "_locale", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "posts_locales_parent_id_fk": { - "name": "posts_locales_parent_id_fk", - "tableFrom": "posts_locales", - "tableTo": "posts", - "columnsFrom": [ - "_parent_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.posts_rels": { - "name": "posts_rels", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "serial", - "primaryKey": true, - "notNull": true - }, - "order": { - "name": "order", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "parent_id": { - "name": "parent_id", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "path": { - "name": "path", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "categories_id": { - "name": "categories_id", - "type": "integer", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "posts_rels_order_idx": { - "name": "posts_rels_order_idx", - "columns": [ - { - "expression": "order", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "posts_rels_parent_idx": { - "name": "posts_rels_parent_idx", - "columns": [ - { - "expression": "parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "posts_rels_path_idx": { - "name": "posts_rels_path_idx", - "columns": [ - { - "expression": "path", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "posts_rels_categories_id_idx": { - "name": "posts_rels_categories_id_idx", - "columns": [ - { - "expression": "categories_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "posts_rels_parent_fk": { - "name": "posts_rels_parent_fk", - "tableFrom": "posts_rels", - "tableTo": "posts", - "columnsFrom": [ - "parent_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - }, - "posts_rels_categories_fk": { - "name": "posts_rels_categories_fk", - "tableFrom": "posts_rels", - "tableTo": "categories", - "columnsFrom": [ - "categories_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.categories": { - "name": "categories", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "serial", - "primaryKey": true, - "notNull": true - }, - "tenant_id": { - "name": "tenant_id", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "created_at": { - "name": "created_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - } - }, - "indexes": { - "categories_tenant_idx": { - "name": "categories_tenant_idx", - "columns": [ - { - "expression": "tenant_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "categories_updated_at_idx": { - "name": "categories_updated_at_idx", - "columns": [ - { - "expression": "updated_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "categories_created_at_idx": { - "name": "categories_created_at_idx", - "columns": [ - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "categories_tenant_id_tenants_id_fk": { - "name": "categories_tenant_id_tenants_id_fk", - "tableFrom": "categories", - "tableTo": "tenants", - "columnsFrom": [ - "tenant_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "set null", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.categories_locales": { - "name": "categories_locales", - "schema": "", - "columns": { - "name": { - "name": "name", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "slug": { - "name": "slug", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "description": { - "name": "description", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "id": { - "name": "id", - "type": "serial", - "primaryKey": true, - "notNull": true - }, - "_locale": { - "name": "_locale", - "type": "_locales", - "typeSchema": "public", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "integer", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "categories_locales_locale_parent_id_unique": { - "name": "categories_locales_locale_parent_id_unique", - "columns": [ - { - "expression": "_locale", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "categories_locales_parent_id_fk": { - "name": "categories_locales_parent_id_fk", - "tableFrom": "categories_locales", - "tableTo": "categories", - "columnsFrom": [ - "_parent_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.social_links": { - "name": "social_links", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "serial", - "primaryKey": true, - "notNull": true - }, - "tenant_id": { - "name": "tenant_id", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "platform": { - "name": "platform", - "type": "enum_social_links_platform", - "typeSchema": "public", - "primaryKey": false, - "notNull": true - }, - "url": { - "name": "url", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "is_active": { - "name": "is_active", - "type": "boolean", - "primaryKey": false, - "notNull": false, - "default": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "created_at": { - "name": "created_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - } - }, - "indexes": { - "social_links_tenant_idx": { - "name": "social_links_tenant_idx", - "columns": [ - { - "expression": "tenant_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "social_links_updated_at_idx": { - "name": "social_links_updated_at_idx", - "columns": [ - { - "expression": "updated_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "social_links_created_at_idx": { - "name": "social_links_created_at_idx", - "columns": [ - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "social_links_tenant_id_tenants_id_fk": { - "name": "social_links_tenant_id_tenants_id_fk", - "tableFrom": "social_links", - "tableTo": "tenants", - "columnsFrom": [ - "tenant_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "set null", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.testimonials": { - "name": "testimonials", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "serial", - "primaryKey": true, - "notNull": true - }, - "tenant_id": { - "name": "tenant_id", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "author": { - "name": "author", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "company": { - "name": "company", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "image_id": { - "name": "image_id", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "rating": { - "name": "rating", - "type": "numeric", - "primaryKey": false, - "notNull": false - }, - "source": { - "name": "source", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "source_url": { - "name": "source_url", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "date": { - "name": "date", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": false - }, - "is_active": { - "name": "is_active", - "type": "boolean", - "primaryKey": false, - "notNull": false, - "default": true - }, - "order": { - "name": "order", - "type": "numeric", - "primaryKey": false, - "notNull": false, - "default": 0 - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "created_at": { - "name": "created_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - } - }, - "indexes": { - "testimonials_tenant_idx": { - "name": "testimonials_tenant_idx", - "columns": [ - { - "expression": "tenant_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "testimonials_image_idx": { - "name": "testimonials_image_idx", - "columns": [ - { - "expression": "image_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "testimonials_updated_at_idx": { - "name": "testimonials_updated_at_idx", - "columns": [ - { - "expression": "updated_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "testimonials_created_at_idx": { - "name": "testimonials_created_at_idx", - "columns": [ - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "testimonials_tenant_id_tenants_id_fk": { - "name": "testimonials_tenant_id_tenants_id_fk", - "tableFrom": "testimonials", - "tableTo": "tenants", - "columnsFrom": [ - "tenant_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "set null", - "onUpdate": "no action" - }, - "testimonials_image_id_media_id_fk": { - "name": "testimonials_image_id_media_id_fk", - "tableFrom": "testimonials", - "tableTo": "media", - "columnsFrom": [ - "image_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "set null", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.testimonials_locales": { - "name": "testimonials_locales", - "schema": "", - "columns": { - "quote": { - "name": "quote", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "role": { - "name": "role", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "id": { - "name": "id", - "type": "serial", - "primaryKey": true, - "notNull": true - }, - "_locale": { - "name": "_locale", - "type": "_locales", - "typeSchema": "public", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "integer", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "testimonials_locales_locale_parent_id_unique": { - "name": "testimonials_locales_locale_parent_id_unique", - "columns": [ - { - "expression": "_locale", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "testimonials_locales_parent_id_fk": { - "name": "testimonials_locales_parent_id_fk", - "tableFrom": "testimonials_locales", - "tableTo": "testimonials", - "columnsFrom": [ - "_parent_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.newsletter_subscribers_interests": { - "name": "newsletter_subscribers_interests", - "schema": "", - "columns": { - "order": { - "name": "order", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "parent_id": { - "name": "parent_id", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "value": { - "name": "value", - "type": "enum_newsletter_subscribers_interests", - "typeSchema": "public", - "primaryKey": false, - "notNull": false - }, - "id": { - "name": "id", - "type": "serial", - "primaryKey": true, - "notNull": true - } - }, - "indexes": { - "newsletter_subscribers_interests_order_idx": { - "name": "newsletter_subscribers_interests_order_idx", - "columns": [ - { - "expression": "order", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "newsletter_subscribers_interests_parent_idx": { - "name": "newsletter_subscribers_interests_parent_idx", - "columns": [ - { - "expression": "parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "newsletter_subscribers_interests_parent_fk": { - "name": "newsletter_subscribers_interests_parent_fk", - "tableFrom": "newsletter_subscribers_interests", - "tableTo": "newsletter_subscribers", - "columnsFrom": [ - "parent_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.newsletter_subscribers": { - "name": "newsletter_subscribers", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "serial", - "primaryKey": true, - "notNull": true - }, - "tenant_id": { - "name": "tenant_id", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "email": { - "name": "email", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "first_name": { - "name": "first_name", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "last_name": { - "name": "last_name", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "status": { - "name": "status", - "type": "enum_newsletter_subscribers_status", - "typeSchema": "public", - "primaryKey": false, - "notNull": true, - "default": "'pending'" - }, - "source": { - "name": "source", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "subscribed_at": { - "name": "subscribed_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": false - }, - "confirmed_at": { - "name": "confirmed_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": false - }, - "unsubscribed_at": { - "name": "unsubscribed_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": false - }, - "confirmation_token": { - "name": "confirmation_token", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "ip_address": { - "name": "ip_address", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "user_agent": { - "name": "user_agent", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "created_at": { - "name": "created_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - } - }, - "indexes": { - "newsletter_subscribers_tenant_idx": { - "name": "newsletter_subscribers_tenant_idx", - "columns": [ - { - "expression": "tenant_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "newsletter_subscribers_updated_at_idx": { - "name": "newsletter_subscribers_updated_at_idx", - "columns": [ - { - "expression": "updated_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "newsletter_subscribers_created_at_idx": { - "name": "newsletter_subscribers_created_at_idx", - "columns": [ - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "newsletter_subscribers_tenant_id_tenants_id_fk": { - "name": "newsletter_subscribers_tenant_id_tenants_id_fk", - "tableFrom": "newsletter_subscribers", - "tableTo": "tenants", - "columnsFrom": [ - "tenant_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "set null", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.cookie_configurations_enabled_categories": { - "name": "cookie_configurations_enabled_categories", - "schema": "", - "columns": { - "order": { - "name": "order", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "parent_id": { - "name": "parent_id", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "value": { - "name": "value", - "type": "enum_cookie_configurations_enabled_categories", - "typeSchema": "public", - "primaryKey": false, - "notNull": false - }, - "id": { - "name": "id", - "type": "serial", - "primaryKey": true, - "notNull": true - } - }, - "indexes": { - "cookie_configurations_enabled_categories_order_idx": { - "name": "cookie_configurations_enabled_categories_order_idx", - "columns": [ - { - "expression": "order", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "cookie_configurations_enabled_categories_parent_idx": { - "name": "cookie_configurations_enabled_categories_parent_idx", - "columns": [ - { - "expression": "parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "cookie_configurations_enabled_categories_parent_fk": { - "name": "cookie_configurations_enabled_categories_parent_fk", - "tableFrom": "cookie_configurations_enabled_categories", - "tableTo": "cookie_configurations", - "columnsFrom": [ - "parent_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.cookie_configurations": { - "name": "cookie_configurations", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "serial", - "primaryKey": true, - "notNull": true - }, - "tenant_id": { - "name": "tenant_id", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "title": { - "name": "title", - "type": "varchar", - "primaryKey": false, - "notNull": true, - "default": "'Cookie-Einstellungen'" - }, - "revision": { - "name": "revision", - "type": "numeric", - "primaryKey": false, - "notNull": true, - "default": 1 - }, - "translations_de_banner_title": { - "name": "translations_de_banner_title", - "type": "varchar", - "primaryKey": false, - "notNull": false, - "default": "'Wir respektieren Ihre Privatsphäre'" - }, - "translations_de_banner_description": { - "name": "translations_de_banner_description", - "type": "varchar", - "primaryKey": false, - "notNull": false, - "default": "'Diese Website verwendet Cookies, um Ihnen die bestmögliche Erfahrung zu bieten.'" - }, - "translations_de_accept_all_button": { - "name": "translations_de_accept_all_button", - "type": "varchar", - "primaryKey": false, - "notNull": false, - "default": "'Alle akzeptieren'" - }, - "translations_de_accept_necessary_button": { - "name": "translations_de_accept_necessary_button", - "type": "varchar", - "primaryKey": false, - "notNull": false, - "default": "'Nur notwendige'" - }, - "translations_de_settings_button": { - "name": "translations_de_settings_button", - "type": "varchar", - "primaryKey": false, - "notNull": false, - "default": "'Einstellungen'" - }, - "translations_de_save_button": { - "name": "translations_de_save_button", - "type": "varchar", - "primaryKey": false, - "notNull": false, - "default": "'Auswahl speichern'" - }, - "translations_de_privacy_policy_url": { - "name": "translations_de_privacy_policy_url", - "type": "varchar", - "primaryKey": false, - "notNull": false, - "default": "'/datenschutz'" - }, - "translations_de_category_labels_necessary_title": { - "name": "translations_de_category_labels_necessary_title", - "type": "varchar", - "primaryKey": false, - "notNull": false, - "default": "'Notwendig'" - }, - "translations_de_category_labels_necessary_description": { - "name": "translations_de_category_labels_necessary_description", - "type": "varchar", - "primaryKey": false, - "notNull": false, - "default": "'Diese Cookies sind für die Grundfunktionen der Website erforderlich.'" - }, - "translations_de_category_labels_functional_title": { - "name": "translations_de_category_labels_functional_title", - "type": "varchar", - "primaryKey": false, - "notNull": false, - "default": "'Funktional'" - }, - "translations_de_category_labels_functional_description": { - "name": "translations_de_category_labels_functional_description", - "type": "varchar", - "primaryKey": false, - "notNull": false, - "default": "'Diese Cookies ermöglichen erweiterte Funktionen.'" - }, - "translations_de_category_labels_analytics_title": { - "name": "translations_de_category_labels_analytics_title", - "type": "varchar", - "primaryKey": false, - "notNull": false, - "default": "'Statistik'" - }, - "translations_de_category_labels_analytics_description": { - "name": "translations_de_category_labels_analytics_description", - "type": "varchar", - "primaryKey": false, - "notNull": false, - "default": "'Diese Cookies helfen uns zu verstehen, wie Besucher die Website nutzen.'" - }, - "translations_de_category_labels_marketing_title": { - "name": "translations_de_category_labels_marketing_title", - "type": "varchar", - "primaryKey": false, - "notNull": false, - "default": "'Marketing'" - }, - "translations_de_category_labels_marketing_description": { - "name": "translations_de_category_labels_marketing_description", - "type": "varchar", - "primaryKey": false, - "notNull": false, - "default": "'Diese Cookies werden für Werbezwecke verwendet.'" - }, - "styling_position": { - "name": "styling_position", - "type": "enum_cookie_configurations_styling_position", - "typeSchema": "public", - "primaryKey": false, - "notNull": false, - "default": "'bottom'" - }, - "styling_theme": { - "name": "styling_theme", - "type": "enum_cookie_configurations_styling_theme", - "typeSchema": "public", - "primaryKey": false, - "notNull": false, - "default": "'dark'" - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "created_at": { - "name": "created_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - } - }, - "indexes": { - "cookie_configurations_tenant_idx": { - "name": "cookie_configurations_tenant_idx", - "columns": [ - { - "expression": "tenant_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "cookie_configurations_updated_at_idx": { - "name": "cookie_configurations_updated_at_idx", - "columns": [ - { - "expression": "updated_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "cookie_configurations_created_at_idx": { - "name": "cookie_configurations_created_at_idx", - "columns": [ - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "cookie_configurations_tenant_id_tenants_id_fk": { - "name": "cookie_configurations_tenant_id_tenants_id_fk", - "tableFrom": "cookie_configurations", - "tableTo": "tenants", - "columnsFrom": [ - "tenant_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "set null", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.cookie_inventory": { - "name": "cookie_inventory", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "serial", - "primaryKey": true, - "notNull": true - }, - "tenant_id": { - "name": "tenant_id", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "category": { - "name": "category", - "type": "enum_cookie_inventory_category", - "typeSchema": "public", - "primaryKey": false, - "notNull": true - }, - "duration": { - "name": "duration", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "description": { - "name": "description", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "is_active": { - "name": "is_active", - "type": "boolean", - "primaryKey": false, - "notNull": false, - "default": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "created_at": { - "name": "created_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - } - }, - "indexes": { - "cookie_inventory_tenant_idx": { - "name": "cookie_inventory_tenant_idx", - "columns": [ - { - "expression": "tenant_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "cookie_inventory_updated_at_idx": { - "name": "cookie_inventory_updated_at_idx", - "columns": [ - { - "expression": "updated_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "cookie_inventory_created_at_idx": { - "name": "cookie_inventory_created_at_idx", - "columns": [ - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "cookie_inventory_tenant_id_tenants_id_fk": { - "name": "cookie_inventory_tenant_id_tenants_id_fk", - "tableFrom": "cookie_inventory", - "tableTo": "tenants", - "columnsFrom": [ - "tenant_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "set null", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.consent_logs": { - "name": "consent_logs", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "serial", - "primaryKey": true, - "notNull": true - }, - "consent_id": { - "name": "consent_id", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "client_ref": { - "name": "client_ref", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "tenant_id": { - "name": "tenant_id", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "categories": { - "name": "categories", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "revision": { - "name": "revision", - "type": "numeric", - "primaryKey": false, - "notNull": true - }, - "user_agent": { - "name": "user_agent", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "anonymized_ip": { - "name": "anonymized_ip", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "expires_at": { - "name": "expires_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "created_at": { - "name": "created_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - } - }, - "indexes": { - "consent_logs_consent_id_idx": { - "name": "consent_logs_consent_id_idx", - "columns": [ - { - "expression": "consent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "consent_logs_tenant_idx": { - "name": "consent_logs_tenant_idx", - "columns": [ - { - "expression": "tenant_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "consent_logs_updated_at_idx": { - "name": "consent_logs_updated_at_idx", - "columns": [ - { - "expression": "updated_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "consent_logs_created_at_idx": { - "name": "consent_logs_created_at_idx", - "columns": [ - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "consent_logs_tenant_id_tenants_id_fk": { - "name": "consent_logs_tenant_id_tenants_id_fk", - "tableFrom": "consent_logs", - "tableTo": "tenants", - "columnsFrom": [ - "tenant_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "set null", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.privacy_policy_settings": { - "name": "privacy_policy_settings", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "serial", - "primaryKey": true, - "notNull": true - }, - "tenant_id": { - "name": "tenant_id", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "title": { - "name": "title", - "type": "varchar", - "primaryKey": false, - "notNull": true, - "default": "'Datenschutzerklärung'" - }, - "provider": { - "name": "provider", - "type": "enum_privacy_policy_settings_provider", - "typeSchema": "public", - "primaryKey": false, - "notNull": true, - "default": "'alfright'" - }, - "alfright_tenant_id": { - "name": "alfright_tenant_id", - "type": "varchar", - "primaryKey": false, - "notNull": false, - "default": "'alfright_schutzteam'" - }, - "alfright_api_key": { - "name": "alfright_api_key", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "alfright_language": { - "name": "alfright_language", - "type": "enum_privacy_policy_settings_alfright_language", - "typeSchema": "public", - "primaryKey": false, - "notNull": false, - "default": "'de-de'" - }, - "alfright_iframe_height": { - "name": "alfright_iframe_height", - "type": "numeric", - "primaryKey": false, - "notNull": false, - "default": 4000 - }, - "styling_header_color": { - "name": "styling_header_color", - "type": "varchar", - "primaryKey": false, - "notNull": false, - "default": "'#ca8a04'" - }, - "styling_header_font": { - "name": "styling_header_font", - "type": "varchar", - "primaryKey": false, - "notNull": false, - "default": "'Inter, sans-serif'" - }, - "styling_header_size": { - "name": "styling_header_size", - "type": "varchar", - "primaryKey": false, - "notNull": false, - "default": "'24px'" - }, - "styling_subheader_size": { - "name": "styling_subheader_size", - "type": "varchar", - "primaryKey": false, - "notNull": false, - "default": "'18px'" - }, - "styling_font_color": { - "name": "styling_font_color", - "type": "varchar", - "primaryKey": false, - "notNull": false, - "default": "'#f3f4f6'" - }, - "styling_text_font": { - "name": "styling_text_font", - "type": "varchar", - "primaryKey": false, - "notNull": false, - "default": "'Inter, sans-serif'" - }, - "styling_text_size": { - "name": "styling_text_size", - "type": "varchar", - "primaryKey": false, - "notNull": false, - "default": "'16px'" - }, - "styling_link_color": { - "name": "styling_link_color", - "type": "varchar", - "primaryKey": false, - "notNull": false, - "default": "'#ca8a04'" - }, - "styling_background_color": { - "name": "styling_background_color", - "type": "varchar", - "primaryKey": false, - "notNull": false, - "default": "'#111827'" - }, - "show_cookie_table": { - "name": "show_cookie_table", - "type": "boolean", - "primaryKey": false, - "notNull": false, - "default": true - }, - "cookie_table_title": { - "name": "cookie_table_title", - "type": "varchar", - "primaryKey": false, - "notNull": false, - "default": "'Übersicht der verwendeten Cookies'" - }, - "cookie_table_description": { - "name": "cookie_table_description", - "type": "varchar", - "primaryKey": false, - "notNull": false, - "default": "'Ergänzend zur Datenschutzerklärung finden Sie hier eine detaillierte Übersicht aller auf dieser Website eingesetzten Cookies. Sie können Ihre Cookie-Einstellungen jederzeit über den Link \"Cookie-Einstellungen\" im Footer anpassen.'" - }, - "seo_meta_title": { - "name": "seo_meta_title", - "type": "varchar", - "primaryKey": false, - "notNull": false, - "default": "'Datenschutzerklärung'" - }, - "seo_meta_description": { - "name": "seo_meta_description", - "type": "varchar", - "primaryKey": false, - "notNull": false, - "default": "'Informationen zum Datenschutz und zur Verarbeitung Ihrer personenbezogenen Daten.'" - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "created_at": { - "name": "created_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - } - }, - "indexes": { - "privacy_policy_settings_tenant_idx": { - "name": "privacy_policy_settings_tenant_idx", - "columns": [ - { - "expression": "tenant_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "privacy_policy_settings_updated_at_idx": { - "name": "privacy_policy_settings_updated_at_idx", - "columns": [ - { - "expression": "updated_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "privacy_policy_settings_created_at_idx": { - "name": "privacy_policy_settings_created_at_idx", - "columns": [ - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "privacy_policy_settings_tenant_id_tenants_id_fk": { - "name": "privacy_policy_settings_tenant_id_tenants_id_fk", - "tableFrom": "privacy_policy_settings", - "tableTo": "tenants", - "columnsFrom": [ - "tenant_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "set null", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.forms_blocks_checkbox": { - "name": "forms_blocks_checkbox", - "schema": "", - "columns": { - "_order": { - "name": "_order", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_path": { - "name": "_path", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "varchar", - "primaryKey": true, - "notNull": true - }, - "name": { - "name": "name", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "width": { - "name": "width", - "type": "numeric", - "primaryKey": false, - "notNull": false - }, - "required": { - "name": "required", - "type": "boolean", - "primaryKey": false, - "notNull": false - }, - "default_value": { - "name": "default_value", - "type": "boolean", - "primaryKey": false, - "notNull": false - }, - "block_name": { - "name": "block_name", - "type": "varchar", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "forms_blocks_checkbox_order_idx": { - "name": "forms_blocks_checkbox_order_idx", - "columns": [ - { - "expression": "_order", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "forms_blocks_checkbox_parent_id_idx": { - "name": "forms_blocks_checkbox_parent_id_idx", - "columns": [ - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "forms_blocks_checkbox_path_idx": { - "name": "forms_blocks_checkbox_path_idx", - "columns": [ - { - "expression": "_path", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "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": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.forms_blocks_checkbox_locales": { - "name": "forms_blocks_checkbox_locales", - "schema": "", - "columns": { - "label": { - "name": "label", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "id": { - "name": "id", - "type": "serial", - "primaryKey": true, - "notNull": true - }, - "_locale": { - "name": "_locale", - "type": "_locales", - "typeSchema": "public", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "varchar", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "forms_blocks_checkbox_locales_locale_parent_id_unique": { - "name": "forms_blocks_checkbox_locales_locale_parent_id_unique", - "columns": [ - { - "expression": "_locale", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "forms_blocks_checkbox_locales_parent_id_fk": { - "name": "forms_blocks_checkbox_locales_parent_id_fk", - "tableFrom": "forms_blocks_checkbox_locales", - "tableTo": "forms_blocks_checkbox", - "columnsFrom": [ - "_parent_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.forms_blocks_email": { - "name": "forms_blocks_email", - "schema": "", - "columns": { - "_order": { - "name": "_order", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_path": { - "name": "_path", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "varchar", - "primaryKey": true, - "notNull": true - }, - "name": { - "name": "name", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "width": { - "name": "width", - "type": "numeric", - "primaryKey": false, - "notNull": false - }, - "required": { - "name": "required", - "type": "boolean", - "primaryKey": false, - "notNull": false - }, - "block_name": { - "name": "block_name", - "type": "varchar", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "forms_blocks_email_order_idx": { - "name": "forms_blocks_email_order_idx", - "columns": [ - { - "expression": "_order", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "forms_blocks_email_parent_id_idx": { - "name": "forms_blocks_email_parent_id_idx", - "columns": [ - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "forms_blocks_email_path_idx": { - "name": "forms_blocks_email_path_idx", - "columns": [ - { - "expression": "_path", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "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": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.forms_blocks_email_locales": { - "name": "forms_blocks_email_locales", - "schema": "", - "columns": { - "label": { - "name": "label", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "id": { - "name": "id", - "type": "serial", - "primaryKey": true, - "notNull": true - }, - "_locale": { - "name": "_locale", - "type": "_locales", - "typeSchema": "public", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "varchar", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "forms_blocks_email_locales_locale_parent_id_unique": { - "name": "forms_blocks_email_locales_locale_parent_id_unique", - "columns": [ - { - "expression": "_locale", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "forms_blocks_email_locales_parent_id_fk": { - "name": "forms_blocks_email_locales_parent_id_fk", - "tableFrom": "forms_blocks_email_locales", - "tableTo": "forms_blocks_email", - "columnsFrom": [ - "_parent_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.forms_blocks_message": { - "name": "forms_blocks_message", - "schema": "", - "columns": { - "_order": { - "name": "_order", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_path": { - "name": "_path", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "varchar", - "primaryKey": true, - "notNull": true - }, - "block_name": { - "name": "block_name", - "type": "varchar", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "forms_blocks_message_order_idx": { - "name": "forms_blocks_message_order_idx", - "columns": [ - { - "expression": "_order", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "forms_blocks_message_parent_id_idx": { - "name": "forms_blocks_message_parent_id_idx", - "columns": [ - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "forms_blocks_message_path_idx": { - "name": "forms_blocks_message_path_idx", - "columns": [ - { - "expression": "_path", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "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": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.forms_blocks_message_locales": { - "name": "forms_blocks_message_locales", - "schema": "", - "columns": { - "message": { - "name": "message", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "id": { - "name": "id", - "type": "serial", - "primaryKey": true, - "notNull": true - }, - "_locale": { - "name": "_locale", - "type": "_locales", - "typeSchema": "public", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "varchar", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "forms_blocks_message_locales_locale_parent_id_unique": { - "name": "forms_blocks_message_locales_locale_parent_id_unique", - "columns": [ - { - "expression": "_locale", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "forms_blocks_message_locales_parent_id_fk": { - "name": "forms_blocks_message_locales_parent_id_fk", - "tableFrom": "forms_blocks_message_locales", - "tableTo": "forms_blocks_message", - "columnsFrom": [ - "_parent_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.forms_blocks_number": { - "name": "forms_blocks_number", - "schema": "", - "columns": { - "_order": { - "name": "_order", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_path": { - "name": "_path", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "varchar", - "primaryKey": true, - "notNull": true - }, - "name": { - "name": "name", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "width": { - "name": "width", - "type": "numeric", - "primaryKey": false, - "notNull": false - }, - "default_value": { - "name": "default_value", - "type": "numeric", - "primaryKey": false, - "notNull": false - }, - "required": { - "name": "required", - "type": "boolean", - "primaryKey": false, - "notNull": false - }, - "block_name": { - "name": "block_name", - "type": "varchar", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "forms_blocks_number_order_idx": { - "name": "forms_blocks_number_order_idx", - "columns": [ - { - "expression": "_order", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "forms_blocks_number_parent_id_idx": { - "name": "forms_blocks_number_parent_id_idx", - "columns": [ - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "forms_blocks_number_path_idx": { - "name": "forms_blocks_number_path_idx", - "columns": [ - { - "expression": "_path", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "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": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.forms_blocks_number_locales": { - "name": "forms_blocks_number_locales", - "schema": "", - "columns": { - "label": { - "name": "label", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "id": { - "name": "id", - "type": "serial", - "primaryKey": true, - "notNull": true - }, - "_locale": { - "name": "_locale", - "type": "_locales", - "typeSchema": "public", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "varchar", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "forms_blocks_number_locales_locale_parent_id_unique": { - "name": "forms_blocks_number_locales_locale_parent_id_unique", - "columns": [ - { - "expression": "_locale", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "forms_blocks_number_locales_parent_id_fk": { - "name": "forms_blocks_number_locales_parent_id_fk", - "tableFrom": "forms_blocks_number_locales", - "tableTo": "forms_blocks_number", - "columnsFrom": [ - "_parent_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.forms_blocks_select_options": { - "name": "forms_blocks_select_options", - "schema": "", - "columns": { - "_order": { - "name": "_order", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "varchar", - "primaryKey": true, - "notNull": true - }, - "value": { - "name": "value", - "type": "varchar", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "forms_blocks_select_options_order_idx": { - "name": "forms_blocks_select_options_order_idx", - "columns": [ - { - "expression": "_order", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "forms_blocks_select_options_parent_id_idx": { - "name": "forms_blocks_select_options_parent_id_idx", - "columns": [ - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "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": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.forms_blocks_select_options_locales": { - "name": "forms_blocks_select_options_locales", - "schema": "", - "columns": { - "label": { - "name": "label", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "serial", - "primaryKey": true, - "notNull": true - }, - "_locale": { - "name": "_locale", - "type": "_locales", - "typeSchema": "public", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "varchar", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "forms_blocks_select_options_locales_locale_parent_id_unique": { - "name": "forms_blocks_select_options_locales_locale_parent_id_unique", - "columns": [ - { - "expression": "_locale", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "forms_blocks_select_options_locales_parent_id_fk": { - "name": "forms_blocks_select_options_locales_parent_id_fk", - "tableFrom": "forms_blocks_select_options_locales", - "tableTo": "forms_blocks_select_options", - "columnsFrom": [ - "_parent_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.forms_blocks_select": { - "name": "forms_blocks_select", - "schema": "", - "columns": { - "_order": { - "name": "_order", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_path": { - "name": "_path", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "varchar", - "primaryKey": true, - "notNull": true - }, - "name": { - "name": "name", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "width": { - "name": "width", - "type": "numeric", - "primaryKey": false, - "notNull": false - }, - "placeholder": { - "name": "placeholder", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "required": { - "name": "required", - "type": "boolean", - "primaryKey": false, - "notNull": false - }, - "block_name": { - "name": "block_name", - "type": "varchar", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "forms_blocks_select_order_idx": { - "name": "forms_blocks_select_order_idx", - "columns": [ - { - "expression": "_order", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "forms_blocks_select_parent_id_idx": { - "name": "forms_blocks_select_parent_id_idx", - "columns": [ - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "forms_blocks_select_path_idx": { - "name": "forms_blocks_select_path_idx", - "columns": [ - { - "expression": "_path", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "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": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.forms_blocks_select_locales": { - "name": "forms_blocks_select_locales", - "schema": "", - "columns": { - "label": { - "name": "label", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "default_value": { - "name": "default_value", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "id": { - "name": "id", - "type": "serial", - "primaryKey": true, - "notNull": true - }, - "_locale": { - "name": "_locale", - "type": "_locales", - "typeSchema": "public", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "varchar", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "forms_blocks_select_locales_locale_parent_id_unique": { - "name": "forms_blocks_select_locales_locale_parent_id_unique", - "columns": [ - { - "expression": "_locale", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "forms_blocks_select_locales_parent_id_fk": { - "name": "forms_blocks_select_locales_parent_id_fk", - "tableFrom": "forms_blocks_select_locales", - "tableTo": "forms_blocks_select", - "columnsFrom": [ - "_parent_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.forms_blocks_text": { - "name": "forms_blocks_text", - "schema": "", - "columns": { - "_order": { - "name": "_order", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_path": { - "name": "_path", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "varchar", - "primaryKey": true, - "notNull": true - }, - "name": { - "name": "name", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "width": { - "name": "width", - "type": "numeric", - "primaryKey": false, - "notNull": false - }, - "required": { - "name": "required", - "type": "boolean", - "primaryKey": false, - "notNull": false - }, - "block_name": { - "name": "block_name", - "type": "varchar", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "forms_blocks_text_order_idx": { - "name": "forms_blocks_text_order_idx", - "columns": [ - { - "expression": "_order", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "forms_blocks_text_parent_id_idx": { - "name": "forms_blocks_text_parent_id_idx", - "columns": [ - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "forms_blocks_text_path_idx": { - "name": "forms_blocks_text_path_idx", - "columns": [ - { - "expression": "_path", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "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": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.forms_blocks_text_locales": { - "name": "forms_blocks_text_locales", - "schema": "", - "columns": { - "label": { - "name": "label", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "default_value": { - "name": "default_value", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "id": { - "name": "id", - "type": "serial", - "primaryKey": true, - "notNull": true - }, - "_locale": { - "name": "_locale", - "type": "_locales", - "typeSchema": "public", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "varchar", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "forms_blocks_text_locales_locale_parent_id_unique": { - "name": "forms_blocks_text_locales_locale_parent_id_unique", - "columns": [ - { - "expression": "_locale", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "forms_blocks_text_locales_parent_id_fk": { - "name": "forms_blocks_text_locales_parent_id_fk", - "tableFrom": "forms_blocks_text_locales", - "tableTo": "forms_blocks_text", - "columnsFrom": [ - "_parent_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.forms_blocks_textarea": { - "name": "forms_blocks_textarea", - "schema": "", - "columns": { - "_order": { - "name": "_order", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_path": { - "name": "_path", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "varchar", - "primaryKey": true, - "notNull": true - }, - "name": { - "name": "name", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "width": { - "name": "width", - "type": "numeric", - "primaryKey": false, - "notNull": false - }, - "required": { - "name": "required", - "type": "boolean", - "primaryKey": false, - "notNull": false - }, - "block_name": { - "name": "block_name", - "type": "varchar", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "forms_blocks_textarea_order_idx": { - "name": "forms_blocks_textarea_order_idx", - "columns": [ - { - "expression": "_order", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "forms_blocks_textarea_parent_id_idx": { - "name": "forms_blocks_textarea_parent_id_idx", - "columns": [ - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "forms_blocks_textarea_path_idx": { - "name": "forms_blocks_textarea_path_idx", - "columns": [ - { - "expression": "_path", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "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": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.forms_blocks_textarea_locales": { - "name": "forms_blocks_textarea_locales", - "schema": "", - "columns": { - "label": { - "name": "label", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "default_value": { - "name": "default_value", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "id": { - "name": "id", - "type": "serial", - "primaryKey": true, - "notNull": true - }, - "_locale": { - "name": "_locale", - "type": "_locales", - "typeSchema": "public", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "varchar", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "forms_blocks_textarea_locales_locale_parent_id_unique": { - "name": "forms_blocks_textarea_locales_locale_parent_id_unique", - "columns": [ - { - "expression": "_locale", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "forms_blocks_textarea_locales_parent_id_fk": { - "name": "forms_blocks_textarea_locales_parent_id_fk", - "tableFrom": "forms_blocks_textarea_locales", - "tableTo": "forms_blocks_textarea", - "columnsFrom": [ - "_parent_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.forms_emails": { - "name": "forms_emails", - "schema": "", - "columns": { - "_order": { - "name": "_order", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "varchar", - "primaryKey": true, - "notNull": true - }, - "email_to": { - "name": "email_to", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "cc": { - "name": "cc", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "bcc": { - "name": "bcc", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "reply_to": { - "name": "reply_to", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "email_from": { - "name": "email_from", - "type": "varchar", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "forms_emails_order_idx": { - "name": "forms_emails_order_idx", - "columns": [ - { - "expression": "_order", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "forms_emails_parent_id_idx": { - "name": "forms_emails_parent_id_idx", - "columns": [ - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "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": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.forms_emails_locales": { - "name": "forms_emails_locales", - "schema": "", - "columns": { - "subject": { - "name": "subject", - "type": "varchar", - "primaryKey": false, - "notNull": true, - "default": "'You''ve received a new message.'" - }, - "message": { - "name": "message", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "id": { - "name": "id", - "type": "serial", - "primaryKey": true, - "notNull": true - }, - "_locale": { - "name": "_locale", - "type": "_locales", - "typeSchema": "public", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "varchar", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "forms_emails_locales_locale_parent_id_unique": { - "name": "forms_emails_locales_locale_parent_id_unique", - "columns": [ - { - "expression": "_locale", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "forms_emails_locales_parent_id_fk": { - "name": "forms_emails_locales_parent_id_fk", - "tableFrom": "forms_emails_locales", - "tableTo": "forms_emails", - "columnsFrom": [ - "_parent_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.forms": { - "name": "forms", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "serial", - "primaryKey": true, - "notNull": true - }, - "title": { - "name": "title", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "confirmation_type": { - "name": "confirmation_type", - "type": "enum_forms_confirmation_type", - "typeSchema": "public", - "primaryKey": false, - "notNull": false, - "default": "'message'" - }, - "redirect_url": { - "name": "redirect_url", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "created_at": { - "name": "created_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - } - }, - "indexes": { - "forms_updated_at_idx": { - "name": "forms_updated_at_idx", - "columns": [ - { - "expression": "updated_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "forms_created_at_idx": { - "name": "forms_created_at_idx", - "columns": [ - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.forms_locales": { - "name": "forms_locales", - "schema": "", - "columns": { - "submit_button_label": { - "name": "submit_button_label", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "confirmation_message": { - "name": "confirmation_message", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "id": { - "name": "id", - "type": "serial", - "primaryKey": true, - "notNull": true - }, - "_locale": { - "name": "_locale", - "type": "_locales", - "typeSchema": "public", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "integer", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "forms_locales_locale_parent_id_unique": { - "name": "forms_locales_locale_parent_id_unique", - "columns": [ - { - "expression": "_locale", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "forms_locales_parent_id_fk": { - "name": "forms_locales_parent_id_fk", - "tableFrom": "forms_locales", - "tableTo": "forms", - "columnsFrom": [ - "_parent_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.form_submissions_submission_data": { - "name": "form_submissions_submission_data", - "schema": "", - "columns": { - "_order": { - "name": "_order", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "varchar", - "primaryKey": true, - "notNull": true - }, - "field": { - "name": "field", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "value": { - "name": "value", - "type": "varchar", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "form_submissions_submission_data_order_idx": { - "name": "form_submissions_submission_data_order_idx", - "columns": [ - { - "expression": "_order", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "form_submissions_submission_data_parent_id_idx": { - "name": "form_submissions_submission_data_parent_id_idx", - "columns": [ - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "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": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.form_submissions": { - "name": "form_submissions", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "serial", - "primaryKey": true, - "notNull": true - }, - "form_id": { - "name": "form_id", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "created_at": { - "name": "created_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - } - }, - "indexes": { - "form_submissions_form_idx": { - "name": "form_submissions_form_idx", - "columns": [ - { - "expression": "form_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "form_submissions_updated_at_idx": { - "name": "form_submissions_updated_at_idx", - "columns": [ - { - "expression": "updated_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "form_submissions_created_at_idx": { - "name": "form_submissions_created_at_idx", - "columns": [ - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "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" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.redirects": { - "name": "redirects", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "serial", - "primaryKey": true, - "notNull": true - }, - "from": { - "name": "from", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "to_type": { - "name": "to_type", - "type": "enum_redirects_to_type", - "typeSchema": "public", - "primaryKey": false, - "notNull": false, - "default": "'reference'" - }, - "to_url": { - "name": "to_url", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "created_at": { - "name": "created_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - } - }, - "indexes": { - "redirects_from_idx": { - "name": "redirects_from_idx", - "columns": [ - { - "expression": "from", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "redirects_updated_at_idx": { - "name": "redirects_updated_at_idx", - "columns": [ - { - "expression": "updated_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "redirects_created_at_idx": { - "name": "redirects_created_at_idx", - "columns": [ - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.payload_kv": { - "name": "payload_kv", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "serial", - "primaryKey": true, - "notNull": true - }, - "key": { - "name": "key", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "data": { - "name": "data", - "type": "jsonb", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "payload_kv_key_idx": { - "name": "payload_kv_key_idx", - "columns": [ - { - "expression": "key", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.payload_locked_documents": { - "name": "payload_locked_documents", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "serial", - "primaryKey": true, - "notNull": true - }, - "global_slug": { - "name": "global_slug", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "created_at": { - "name": "created_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - } - }, - "indexes": { - "payload_locked_documents_global_slug_idx": { - "name": "payload_locked_documents_global_slug_idx", - "columns": [ - { - "expression": "global_slug", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "payload_locked_documents_updated_at_idx": { - "name": "payload_locked_documents_updated_at_idx", - "columns": [ - { - "expression": "updated_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "payload_locked_documents_created_at_idx": { - "name": "payload_locked_documents_created_at_idx", - "columns": [ - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.payload_locked_documents_rels": { - "name": "payload_locked_documents_rels", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "serial", - "primaryKey": true, - "notNull": true - }, - "order": { - "name": "order", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "parent_id": { - "name": "parent_id", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "path": { - "name": "path", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "users_id": { - "name": "users_id", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "media_id": { - "name": "media_id", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "tenants_id": { - "name": "tenants_id", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "pages_id": { - "name": "pages_id", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "posts_id": { - "name": "posts_id", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "categories_id": { - "name": "categories_id", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "social_links_id": { - "name": "social_links_id", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "testimonials_id": { - "name": "testimonials_id", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "newsletter_subscribers_id": { - "name": "newsletter_subscribers_id", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "cookie_configurations_id": { - "name": "cookie_configurations_id", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "cookie_inventory_id": { - "name": "cookie_inventory_id", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "consent_logs_id": { - "name": "consent_logs_id", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "privacy_policy_settings_id": { - "name": "privacy_policy_settings_id", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "forms_id": { - "name": "forms_id", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "form_submissions_id": { - "name": "form_submissions_id", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "redirects_id": { - "name": "redirects_id", - "type": "integer", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "payload_locked_documents_rels_order_idx": { - "name": "payload_locked_documents_rels_order_idx", - "columns": [ - { - "expression": "order", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "payload_locked_documents_rels_parent_idx": { - "name": "payload_locked_documents_rels_parent_idx", - "columns": [ - { - "expression": "parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "payload_locked_documents_rels_path_idx": { - "name": "payload_locked_documents_rels_path_idx", - "columns": [ - { - "expression": "path", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "payload_locked_documents_rels_users_id_idx": { - "name": "payload_locked_documents_rels_users_id_idx", - "columns": [ - { - "expression": "users_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "payload_locked_documents_rels_media_id_idx": { - "name": "payload_locked_documents_rels_media_id_idx", - "columns": [ - { - "expression": "media_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "payload_locked_documents_rels_tenants_id_idx": { - "name": "payload_locked_documents_rels_tenants_id_idx", - "columns": [ - { - "expression": "tenants_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "payload_locked_documents_rels_pages_id_idx": { - "name": "payload_locked_documents_rels_pages_id_idx", - "columns": [ - { - "expression": "pages_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "payload_locked_documents_rels_posts_id_idx": { - "name": "payload_locked_documents_rels_posts_id_idx", - "columns": [ - { - "expression": "posts_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "payload_locked_documents_rels_categories_id_idx": { - "name": "payload_locked_documents_rels_categories_id_idx", - "columns": [ - { - "expression": "categories_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "payload_locked_documents_rels_social_links_id_idx": { - "name": "payload_locked_documents_rels_social_links_id_idx", - "columns": [ - { - "expression": "social_links_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "payload_locked_documents_rels_testimonials_id_idx": { - "name": "payload_locked_documents_rels_testimonials_id_idx", - "columns": [ - { - "expression": "testimonials_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "payload_locked_documents_rels_newsletter_subscribers_id_idx": { - "name": "payload_locked_documents_rels_newsletter_subscribers_id_idx", - "columns": [ - { - "expression": "newsletter_subscribers_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "payload_locked_documents_rels_cookie_configurations_id_idx": { - "name": "payload_locked_documents_rels_cookie_configurations_id_idx", - "columns": [ - { - "expression": "cookie_configurations_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "payload_locked_documents_rels_cookie_inventory_id_idx": { - "name": "payload_locked_documents_rels_cookie_inventory_id_idx", - "columns": [ - { - "expression": "cookie_inventory_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "payload_locked_documents_rels_consent_logs_id_idx": { - "name": "payload_locked_documents_rels_consent_logs_id_idx", - "columns": [ - { - "expression": "consent_logs_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "payload_locked_documents_rels_privacy_policy_settings_id_idx": { - "name": "payload_locked_documents_rels_privacy_policy_settings_id_idx", - "columns": [ - { - "expression": "privacy_policy_settings_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "payload_locked_documents_rels_forms_id_idx": { - "name": "payload_locked_documents_rels_forms_id_idx", - "columns": [ - { - "expression": "forms_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "payload_locked_documents_rels_form_submissions_id_idx": { - "name": "payload_locked_documents_rels_form_submissions_id_idx", - "columns": [ - { - "expression": "form_submissions_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "payload_locked_documents_rels_redirects_id_idx": { - "name": "payload_locked_documents_rels_redirects_id_idx", - "columns": [ - { - "expression": "redirects_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "payload_locked_documents_rels_parent_fk": { - "name": "payload_locked_documents_rels_parent_fk", - "tableFrom": "payload_locked_documents_rels", - "tableTo": "payload_locked_documents", - "columnsFrom": [ - "parent_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - }, - "payload_locked_documents_rels_users_fk": { - "name": "payload_locked_documents_rels_users_fk", - "tableFrom": "payload_locked_documents_rels", - "tableTo": "users", - "columnsFrom": [ - "users_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - }, - "payload_locked_documents_rels_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_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_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_categories_fk": { - "name": "payload_locked_documents_rels_categories_fk", - "tableFrom": "payload_locked_documents_rels", - "tableTo": "categories", - "columnsFrom": [ - "categories_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - }, - "payload_locked_documents_rels_social_links_fk": { - "name": "payload_locked_documents_rels_social_links_fk", - "tableFrom": "payload_locked_documents_rels", - "tableTo": "social_links", - "columnsFrom": [ - "social_links_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - }, - "payload_locked_documents_rels_testimonials_fk": { - "name": "payload_locked_documents_rels_testimonials_fk", - "tableFrom": "payload_locked_documents_rels", - "tableTo": "testimonials", - "columnsFrom": [ - "testimonials_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - }, - "payload_locked_documents_rels_newsletter_subscribers_fk": { - "name": "payload_locked_documents_rels_newsletter_subscribers_fk", - "tableFrom": "payload_locked_documents_rels", - "tableTo": "newsletter_subscribers", - "columnsFrom": [ - "newsletter_subscribers_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - }, - "payload_locked_documents_rels_cookie_configurations_fk": { - "name": "payload_locked_documents_rels_cookie_configurations_fk", - "tableFrom": "payload_locked_documents_rels", - "tableTo": "cookie_configurations", - "columnsFrom": [ - "cookie_configurations_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - }, - "payload_locked_documents_rels_cookie_inventory_fk": { - "name": "payload_locked_documents_rels_cookie_inventory_fk", - "tableFrom": "payload_locked_documents_rels", - "tableTo": "cookie_inventory", - "columnsFrom": [ - "cookie_inventory_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - }, - "payload_locked_documents_rels_consent_logs_fk": { - "name": "payload_locked_documents_rels_consent_logs_fk", - "tableFrom": "payload_locked_documents_rels", - "tableTo": "consent_logs", - "columnsFrom": [ - "consent_logs_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - }, - "payload_locked_documents_rels_privacy_policy_settings_fk": { - "name": "payload_locked_documents_rels_privacy_policy_settings_fk", - "tableFrom": "payload_locked_documents_rels", - "tableTo": "privacy_policy_settings", - "columnsFrom": [ - "privacy_policy_settings_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" - }, - "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" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.payload_preferences": { - "name": "payload_preferences", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "serial", - "primaryKey": true, - "notNull": true - }, - "key": { - "name": "key", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "value": { - "name": "value", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "created_at": { - "name": "created_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - } - }, - "indexes": { - "payload_preferences_key_idx": { - "name": "payload_preferences_key_idx", - "columns": [ - { - "expression": "key", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "payload_preferences_updated_at_idx": { - "name": "payload_preferences_updated_at_idx", - "columns": [ - { - "expression": "updated_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "payload_preferences_created_at_idx": { - "name": "payload_preferences_created_at_idx", - "columns": [ - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.payload_preferences_rels": { - "name": "payload_preferences_rels", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "serial", - "primaryKey": true, - "notNull": true - }, - "order": { - "name": "order", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "parent_id": { - "name": "parent_id", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "path": { - "name": "path", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "users_id": { - "name": "users_id", - "type": "integer", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "payload_preferences_rels_order_idx": { - "name": "payload_preferences_rels_order_idx", - "columns": [ - { - "expression": "order", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "payload_preferences_rels_parent_idx": { - "name": "payload_preferences_rels_parent_idx", - "columns": [ - { - "expression": "parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "payload_preferences_rels_path_idx": { - "name": "payload_preferences_rels_path_idx", - "columns": [ - { - "expression": "path", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "payload_preferences_rels_users_id_idx": { - "name": "payload_preferences_rels_users_id_idx", - "columns": [ - { - "expression": "users_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "payload_preferences_rels_parent_fk": { - "name": "payload_preferences_rels_parent_fk", - "tableFrom": "payload_preferences_rels", - "tableTo": "payload_preferences", - "columnsFrom": [ - "parent_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - }, - "payload_preferences_rels_users_fk": { - "name": "payload_preferences_rels_users_fk", - "tableFrom": "payload_preferences_rels", - "tableTo": "users", - "columnsFrom": [ - "users_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.payload_migrations": { - "name": "payload_migrations", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "serial", - "primaryKey": true, - "notNull": true - }, - "name": { - "name": "name", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "batch": { - "name": "batch", - "type": "numeric", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "created_at": { - "name": "created_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - } - }, - "indexes": { - "payload_migrations_updated_at_idx": { - "name": "payload_migrations_updated_at_idx", - "columns": [ - { - "expression": "updated_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "payload_migrations_created_at_idx": { - "name": "payload_migrations_created_at_idx", - "columns": [ - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.site_settings": { - "name": "site_settings", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "serial", - "primaryKey": true, - "notNull": true - }, - "logo_id": { - "name": "logo_id", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "favicon_id": { - "name": "favicon_id", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "contact_email": { - "name": "contact_email", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "contact_phone": { - "name": "contact_phone", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "contact_address": { - "name": "contact_address", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "footer_show_social_links": { - "name": "footer_show_social_links", - "type": "boolean", - "primaryKey": false, - "notNull": false, - "default": true - }, - "seo_default_og_image_id": { - "name": "seo_default_og_image_id", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "site_settings_logo_idx": { - "name": "site_settings_logo_idx", - "columns": [ - { - "expression": "logo_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "site_settings_favicon_idx": { - "name": "site_settings_favicon_idx", - "columns": [ - { - "expression": "favicon_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "site_settings_seo_seo_default_og_image_idx": { - "name": "site_settings_seo_seo_default_og_image_idx", - "columns": [ - { - "expression": "seo_default_og_image_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "site_settings_logo_id_media_id_fk": { - "name": "site_settings_logo_id_media_id_fk", - "tableFrom": "site_settings", - "tableTo": "media", - "columnsFrom": [ - "logo_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "set null", - "onUpdate": "no action" - }, - "site_settings_favicon_id_media_id_fk": { - "name": "site_settings_favicon_id_media_id_fk", - "tableFrom": "site_settings", - "tableTo": "media", - "columnsFrom": [ - "favicon_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "set null", - "onUpdate": "no action" - }, - "site_settings_seo_default_og_image_id_media_id_fk": { - "name": "site_settings_seo_default_og_image_id_media_id_fk", - "tableFrom": "site_settings", - "tableTo": "media", - "columnsFrom": [ - "seo_default_og_image_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "set null", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.site_settings_locales": { - "name": "site_settings_locales", - "schema": "", - "columns": { - "site_name": { - "name": "site_name", - "type": "varchar", - "primaryKey": false, - "notNull": false, - "default": "'porwoll.de'" - }, - "site_tagline": { - "name": "site_tagline", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "footer_copyright_text": { - "name": "footer_copyright_text", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "seo_default_meta_title": { - "name": "seo_default_meta_title", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "seo_default_meta_description": { - "name": "seo_default_meta_description", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "id": { - "name": "id", - "type": "serial", - "primaryKey": true, - "notNull": true - }, - "_locale": { - "name": "_locale", - "type": "_locales", - "typeSchema": "public", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "integer", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "site_settings_locales_locale_parent_id_unique": { - "name": "site_settings_locales_locale_parent_id_unique", - "columns": [ - { - "expression": "_locale", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "site_settings_locales_parent_id_fk": { - "name": "site_settings_locales_parent_id_fk", - "tableFrom": "site_settings_locales", - "tableTo": "site_settings", - "columnsFrom": [ - "_parent_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.navigation_main_menu_submenu": { - "name": "navigation_main_menu_submenu", - "schema": "", - "columns": { - "_order": { - "name": "_order", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "varchar", - "primaryKey": true, - "notNull": true - }, - "link_type": { - "name": "link_type", - "type": "enum_navigation_main_menu_submenu_link_type", - "typeSchema": "public", - "primaryKey": false, - "notNull": false, - "default": "'page'" - }, - "page_id": { - "name": "page_id", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "url": { - "name": "url", - "type": "varchar", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "navigation_main_menu_submenu_order_idx": { - "name": "navigation_main_menu_submenu_order_idx", - "columns": [ - { - "expression": "_order", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "navigation_main_menu_submenu_parent_id_idx": { - "name": "navigation_main_menu_submenu_parent_id_idx", - "columns": [ - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "navigation_main_menu_submenu_page_idx": { - "name": "navigation_main_menu_submenu_page_idx", - "columns": [ - { - "expression": "page_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "navigation_main_menu_submenu_page_id_pages_id_fk": { - "name": "navigation_main_menu_submenu_page_id_pages_id_fk", - "tableFrom": "navigation_main_menu_submenu", - "tableTo": "pages", - "columnsFrom": [ - "page_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "set null", - "onUpdate": "no action" - }, - "navigation_main_menu_submenu_parent_id_fk": { - "name": "navigation_main_menu_submenu_parent_id_fk", - "tableFrom": "navigation_main_menu_submenu", - "tableTo": "navigation_main_menu", - "columnsFrom": [ - "_parent_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.navigation_main_menu_submenu_locales": { - "name": "navigation_main_menu_submenu_locales", - "schema": "", - "columns": { - "label": { - "name": "label", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "id": { - "name": "id", - "type": "serial", - "primaryKey": true, - "notNull": true - }, - "_locale": { - "name": "_locale", - "type": "_locales", - "typeSchema": "public", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "varchar", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "navigation_main_menu_submenu_locales_locale_parent_id_unique": { - "name": "navigation_main_menu_submenu_locales_locale_parent_id_unique", - "columns": [ - { - "expression": "_locale", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "navigation_main_menu_submenu_locales_parent_id_fk": { - "name": "navigation_main_menu_submenu_locales_parent_id_fk", - "tableFrom": "navigation_main_menu_submenu_locales", - "tableTo": "navigation_main_menu_submenu", - "columnsFrom": [ - "_parent_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.navigation_main_menu": { - "name": "navigation_main_menu", - "schema": "", - "columns": { - "_order": { - "name": "_order", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "varchar", - "primaryKey": true, - "notNull": true - }, - "type": { - "name": "type", - "type": "enum_navigation_main_menu_type", - "typeSchema": "public", - "primaryKey": false, - "notNull": false, - "default": "'page'" - }, - "page_id": { - "name": "page_id", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "url": { - "name": "url", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "open_in_new_tab": { - "name": "open_in_new_tab", - "type": "boolean", - "primaryKey": false, - "notNull": false, - "default": false - } - }, - "indexes": { - "navigation_main_menu_order_idx": { - "name": "navigation_main_menu_order_idx", - "columns": [ - { - "expression": "_order", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "navigation_main_menu_parent_id_idx": { - "name": "navigation_main_menu_parent_id_idx", - "columns": [ - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "navigation_main_menu_page_idx": { - "name": "navigation_main_menu_page_idx", - "columns": [ - { - "expression": "page_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "navigation_main_menu_page_id_pages_id_fk": { - "name": "navigation_main_menu_page_id_pages_id_fk", - "tableFrom": "navigation_main_menu", - "tableTo": "pages", - "columnsFrom": [ - "page_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "set null", - "onUpdate": "no action" - }, - "navigation_main_menu_parent_id_fk": { - "name": "navigation_main_menu_parent_id_fk", - "tableFrom": "navigation_main_menu", - "tableTo": "navigation", - "columnsFrom": [ - "_parent_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.navigation_main_menu_locales": { - "name": "navigation_main_menu_locales", - "schema": "", - "columns": { - "label": { - "name": "label", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "serial", - "primaryKey": true, - "notNull": true - }, - "_locale": { - "name": "_locale", - "type": "_locales", - "typeSchema": "public", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "varchar", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "navigation_main_menu_locales_locale_parent_id_unique": { - "name": "navigation_main_menu_locales_locale_parent_id_unique", - "columns": [ - { - "expression": "_locale", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "navigation_main_menu_locales_parent_id_fk": { - "name": "navigation_main_menu_locales_parent_id_fk", - "tableFrom": "navigation_main_menu_locales", - "tableTo": "navigation_main_menu", - "columnsFrom": [ - "_parent_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.navigation_footer_menu": { - "name": "navigation_footer_menu", - "schema": "", - "columns": { - "_order": { - "name": "_order", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "varchar", - "primaryKey": true, - "notNull": true - }, - "link_type": { - "name": "link_type", - "type": "enum_navigation_footer_menu_link_type", - "typeSchema": "public", - "primaryKey": false, - "notNull": false, - "default": "'page'" - }, - "page_id": { - "name": "page_id", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "url": { - "name": "url", - "type": "varchar", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "navigation_footer_menu_order_idx": { - "name": "navigation_footer_menu_order_idx", - "columns": [ - { - "expression": "_order", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "navigation_footer_menu_parent_id_idx": { - "name": "navigation_footer_menu_parent_id_idx", - "columns": [ - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "navigation_footer_menu_page_idx": { - "name": "navigation_footer_menu_page_idx", - "columns": [ - { - "expression": "page_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "navigation_footer_menu_page_id_pages_id_fk": { - "name": "navigation_footer_menu_page_id_pages_id_fk", - "tableFrom": "navigation_footer_menu", - "tableTo": "pages", - "columnsFrom": [ - "page_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "set null", - "onUpdate": "no action" - }, - "navigation_footer_menu_parent_id_fk": { - "name": "navigation_footer_menu_parent_id_fk", - "tableFrom": "navigation_footer_menu", - "tableTo": "navigation", - "columnsFrom": [ - "_parent_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.navigation_footer_menu_locales": { - "name": "navigation_footer_menu_locales", - "schema": "", - "columns": { - "label": { - "name": "label", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "serial", - "primaryKey": true, - "notNull": true - }, - "_locale": { - "name": "_locale", - "type": "_locales", - "typeSchema": "public", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "varchar", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "navigation_footer_menu_locales_locale_parent_id_unique": { - "name": "navigation_footer_menu_locales_locale_parent_id_unique", - "columns": [ - { - "expression": "_locale", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "navigation_footer_menu_locales_parent_id_fk": { - "name": "navigation_footer_menu_locales_parent_id_fk", - "tableFrom": "navigation_footer_menu_locales", - "tableTo": "navigation_footer_menu", - "columnsFrom": [ - "_parent_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.navigation": { - "name": "navigation", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "serial", - "primaryKey": true, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": false - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.seo_settings_social_profiles": { - "name": "seo_settings_social_profiles", - "schema": "", - "columns": { - "_order": { - "name": "_order", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "varchar", - "primaryKey": true, - "notNull": true - }, - "platform": { - "name": "platform", - "type": "enum_seo_settings_social_profiles_platform", - "typeSchema": "public", - "primaryKey": false, - "notNull": false - }, - "url": { - "name": "url", - "type": "varchar", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "seo_settings_social_profiles_order_idx": { - "name": "seo_settings_social_profiles_order_idx", - "columns": [ - { - "expression": "_order", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "seo_settings_social_profiles_parent_id_idx": { - "name": "seo_settings_social_profiles_parent_id_idx", - "columns": [ - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "seo_settings_social_profiles_parent_id_fk": { - "name": "seo_settings_social_profiles_parent_id_fk", - "tableFrom": "seo_settings_social_profiles", - "tableTo": "seo_settings", - "columnsFrom": [ - "_parent_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.seo_settings_local_business_opening_hours": { - "name": "seo_settings_local_business_opening_hours", - "schema": "", - "columns": { - "_order": { - "name": "_order", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "varchar", - "primaryKey": true, - "notNull": true - }, - "specification": { - "name": "specification", - "type": "varchar", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "seo_settings_local_business_opening_hours_order_idx": { - "name": "seo_settings_local_business_opening_hours_order_idx", - "columns": [ - { - "expression": "_order", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "seo_settings_local_business_opening_hours_parent_id_idx": { - "name": "seo_settings_local_business_opening_hours_parent_id_idx", - "columns": [ - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "seo_settings_local_business_opening_hours_parent_id_fk": { - "name": "seo_settings_local_business_opening_hours_parent_id_fk", - "tableFrom": "seo_settings_local_business_opening_hours", - "tableTo": "seo_settings", - "columnsFrom": [ - "_parent_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.seo_settings": { - "name": "seo_settings", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "serial", - "primaryKey": true, - "notNull": true - }, - "meta_defaults_default_og_image_id": { - "name": "meta_defaults_default_og_image_id", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "organization_name": { - "name": "organization_name", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "organization_legal_name": { - "name": "organization_legal_name", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "organization_logo_id": { - "name": "organization_logo_id", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "organization_founding_date": { - "name": "organization_founding_date", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": false - }, - "contact_email": { - "name": "contact_email", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "contact_phone": { - "name": "contact_phone", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "contact_fax": { - "name": "contact_fax", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "address_street": { - "name": "address_street", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "address_postal_code": { - "name": "address_postal_code", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "address_city": { - "name": "address_city", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "address_region": { - "name": "address_region", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "address_country": { - "name": "address_country", - "type": "varchar", - "primaryKey": false, - "notNull": false, - "default": "'Deutschland'" - }, - "address_country_code": { - "name": "address_country_code", - "type": "varchar", - "primaryKey": false, - "notNull": false, - "default": "'DE'" - }, - "geo_latitude": { - "name": "geo_latitude", - "type": "numeric", - "primaryKey": false, - "notNull": false - }, - "geo_longitude": { - "name": "geo_longitude", - "type": "numeric", - "primaryKey": false, - "notNull": false - }, - "local_business_enabled": { - "name": "local_business_enabled", - "type": "boolean", - "primaryKey": false, - "notNull": false, - "default": false - }, - "local_business_type": { - "name": "local_business_type", - "type": "enum_seo_settings_local_business_type", - "typeSchema": "public", - "primaryKey": false, - "notNull": false - }, - "local_business_price_range": { - "name": "local_business_price_range", - "type": "enum_seo_settings_local_business_price_range", - "typeSchema": "public", - "primaryKey": false, - "notNull": false - }, - "robots_allow_indexing": { - "name": "robots_allow_indexing", - "type": "boolean", - "primaryKey": false, - "notNull": false, - "default": true - }, - "verification_google": { - "name": "verification_google", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "verification_bing": { - "name": "verification_bing", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "verification_yandex": { - "name": "verification_yandex", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "seo_settings_meta_defaults_meta_defaults_default_og_imag_idx": { - "name": "seo_settings_meta_defaults_meta_defaults_default_og_imag_idx", - "columns": [ - { - "expression": "meta_defaults_default_og_image_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "seo_settings_organization_organization_logo_idx": { - "name": "seo_settings_organization_organization_logo_idx", - "columns": [ - { - "expression": "organization_logo_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "seo_settings_meta_defaults_default_og_image_id_media_id_fk": { - "name": "seo_settings_meta_defaults_default_og_image_id_media_id_fk", - "tableFrom": "seo_settings", - "tableTo": "media", - "columnsFrom": [ - "meta_defaults_default_og_image_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "set null", - "onUpdate": "no action" - }, - "seo_settings_organization_logo_id_media_id_fk": { - "name": "seo_settings_organization_logo_id_media_id_fk", - "tableFrom": "seo_settings", - "tableTo": "media", - "columnsFrom": [ - "organization_logo_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "set null", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.seo_settings_locales": { - "name": "seo_settings_locales", - "schema": "", - "columns": { - "meta_defaults_title_suffix": { - "name": "meta_defaults_title_suffix", - "type": "varchar", - "primaryKey": false, - "notNull": false, - "default": "'| Website'" - }, - "meta_defaults_default_description": { - "name": "meta_defaults_default_description", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "organization_description": { - "name": "organization_description", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "id": { - "name": "id", - "type": "serial", - "primaryKey": true, - "notNull": true - }, - "_locale": { - "name": "_locale", - "type": "_locales", - "typeSchema": "public", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "integer", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "seo_settings_locales_locale_parent_id_unique": { - "name": "seo_settings_locales_locale_parent_id_unique", - "columns": [ - { - "expression": "_locale", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "seo_settings_locales_parent_id_fk": { - "name": "seo_settings_locales_parent_id_fk", - "tableFrom": "seo_settings_locales", - "tableTo": "seo_settings", - "columnsFrom": [ - "_parent_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.seo_settings_texts": { - "name": "seo_settings_texts", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "serial", - "primaryKey": true, - "notNull": true - }, - "order": { - "name": "order", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "parent_id": { - "name": "parent_id", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "path": { - "name": "path", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "text": { - "name": "text", - "type": "varchar", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "seo_settings_texts_order_parent": { - "name": "seo_settings_texts_order_parent", - "columns": [ - { - "expression": "order", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "seo_settings_texts_parent_fk": { - "name": "seo_settings_texts_parent_fk", - "tableFrom": "seo_settings_texts", - "tableTo": "seo_settings", - "columnsFrom": [ - "parent_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - } - }, - "enums": { - "public._locales": { - "name": "_locales", - "schema": "public", - "values": [ - "de", - "en" - ] - }, - "public.enum_pages_blocks_hero_block_alignment": { - "name": "enum_pages_blocks_hero_block_alignment", - "schema": "public", - "values": [ - "left", - "center", - "right" - ] - }, - "public.enum_pages_blocks_hero_block_cta_style": { - "name": "enum_pages_blocks_hero_block_cta_style", - "schema": "public", - "values": [ - "primary", - "secondary", - "outline" - ] - }, - "public.enum_pages_blocks_text_block_width": { - "name": "enum_pages_blocks_text_block_width", - "schema": "public", - "values": [ - "narrow", - "medium", - "full" - ] - }, - "public.enum_pages_blocks_image_text_block_image_position": { - "name": "enum_pages_blocks_image_text_block_image_position", - "schema": "public", - "values": [ - "left", - "right" - ] - }, - "public.enum_pages_blocks_card_grid_block_columns": { - "name": "enum_pages_blocks_card_grid_block_columns", - "schema": "public", - "values": [ - "2", - "3", - "4" - ] - }, - "public.enum_pages_blocks_quote_block_style": { - "name": "enum_pages_blocks_quote_block_style", - "schema": "public", - "values": [ - "simple", - "highlighted", - "with-image" - ] - }, - "public.enum_pages_blocks_cta_block_buttons_style": { - "name": "enum_pages_blocks_cta_block_buttons_style", - "schema": "public", - "values": [ - "primary", - "secondary", - "outline" - ] - }, - "public.enum_pages_blocks_cta_block_background_color": { - "name": "enum_pages_blocks_cta_block_background_color", - "schema": "public", - "values": [ - "dark", - "light", - "accent" - ] - }, - "public.enum_pages_blocks_timeline_block_layout": { - "name": "enum_pages_blocks_timeline_block_layout", - "schema": "public", - "values": [ - "vertical", - "alternating", - "horizontal" - ] - }, - "public.enum_pages_blocks_timeline_block_marker_style": { - "name": "enum_pages_blocks_timeline_block_marker_style", - "schema": "public", - "values": [ - "dot", - "number", - "icon", - "date" - ] - }, - "public.enum_pages_blocks_timeline_block_background_color": { - "name": "enum_pages_blocks_timeline_block_background_color", - "schema": "public", - "values": [ - "white", - "light", - "dark" - ] - }, - "public.enum_pages_blocks_divider_block_style": { - "name": "enum_pages_blocks_divider_block_style", - "schema": "public", - "values": [ - "line", - "space", - "dots" - ] - }, - "public.enum_pages_blocks_divider_block_spacing": { - "name": "enum_pages_blocks_divider_block_spacing", - "schema": "public", - "values": [ - "small", - "medium", - "large" - ] - }, - "public.enum_pages_blocks_video_block_aspect_ratio": { - "name": "enum_pages_blocks_video_block_aspect_ratio", - "schema": "public", - "values": [ - "16:9", - "4:3", - "1:1" - ] - }, - "public.enum_pages_blocks_posts_list_block_post_type": { - "name": "enum_pages_blocks_posts_list_block_post_type", - "schema": "public", - "values": [ - "blog", - "news", - "press", - "announcement", - "all" - ] - }, - "public.enum_pages_blocks_posts_list_block_layout": { - "name": "enum_pages_blocks_posts_list_block_layout", - "schema": "public", - "values": [ - "grid", - "list", - "featured", - "compact", - "masonry" - ] - }, - "public.enum_pages_blocks_posts_list_block_columns": { - "name": "enum_pages_blocks_posts_list_block_columns", - "schema": "public", - "values": [ - "2", - "3", - "4" - ] - }, - "public.enum_pages_blocks_posts_list_block_background_color": { - "name": "enum_pages_blocks_posts_list_block_background_color", - "schema": "public", - "values": [ - "white", - "light", - "dark" - ] - }, - "public.enum_pages_blocks_testimonials_block_layout": { - "name": "enum_pages_blocks_testimonials_block_layout", - "schema": "public", - "values": [ - "slider", - "grid", - "single", - "masonry", - "list" - ] - }, - "public.enum_pages_blocks_testimonials_block_columns": { - "name": "enum_pages_blocks_testimonials_block_columns", - "schema": "public", - "values": [ - "2", - "3", - "4" - ] - }, - "public.enum_pages_blocks_testimonials_block_display_mode": { - "name": "enum_pages_blocks_testimonials_block_display_mode", - "schema": "public", - "values": [ - "all", - "selected" - ] - }, - "public.enum_pages_blocks_testimonials_block_background_color": { - "name": "enum_pages_blocks_testimonials_block_background_color", - "schema": "public", - "values": [ - "white", - "light", - "dark", - "accent" - ] - }, - "public.enum_pages_blocks_newsletter_block_available_interests": { - "name": "enum_pages_blocks_newsletter_block_available_interests", - "schema": "public", - "values": [ - "general", - "blog", - "products", - "offers", - "events" - ] - }, - "public.enum_pages_blocks_newsletter_block_layout": { - "name": "enum_pages_blocks_newsletter_block_layout", - "schema": "public", - "values": [ - "inline", - "stacked", - "with-image", - "minimal", - "card" - ] - }, - "public.enum_pages_blocks_newsletter_block_image_position": { - "name": "enum_pages_blocks_newsletter_block_image_position", - "schema": "public", - "values": [ - "left", - "right" - ] - }, - "public.enum_pages_blocks_newsletter_block_background_color": { - "name": "enum_pages_blocks_newsletter_block_background_color", - "schema": "public", - "values": [ - "white", - "light", - "dark", - "accent" - ] - }, - "public.enum_pages_blocks_process_steps_block_layout": { - "name": "enum_pages_blocks_process_steps_block_layout", - "schema": "public", - "values": [ - "horizontal", - "vertical", - "alternating", - "connected", - "timeline" - ] - }, - "public.enum_pages_blocks_process_steps_block_cta_variant": { - "name": "enum_pages_blocks_process_steps_block_cta_variant", - "schema": "public", - "values": [ - "default", - "ghost", - "light" - ] - }, - "public.enum_pages_blocks_process_steps_block_background_color": { - "name": "enum_pages_blocks_process_steps_block_background_color", - "schema": "public", - "values": [ - "white", - "light", - "dark" - ] - }, - "public.enum_pages_status": { - "name": "enum_pages_status", - "schema": "public", - "values": [ - "draft", - "published" - ] - }, - "public.enum_posts_type": { - "name": "enum_posts_type", - "schema": "public", - "values": [ - "blog", - "news", - "press", - "announcement" - ] - }, - "public.enum_posts_status": { - "name": "enum_posts_status", - "schema": "public", - "values": [ - "draft", - "published", - "archived" - ] - }, - "public.enum_social_links_platform": { - "name": "enum_social_links_platform", - "schema": "public", - "values": [ - "facebook", - "x", - "instagram", - "youtube", - "linkedin", - "xing" - ] - }, - "public.enum_newsletter_subscribers_interests": { - "name": "enum_newsletter_subscribers_interests", - "schema": "public", - "values": [ - "general", - "blog", - "products", - "offers", - "events" - ] - }, - "public.enum_newsletter_subscribers_status": { - "name": "enum_newsletter_subscribers_status", - "schema": "public", - "values": [ - "pending", - "confirmed", - "unsubscribed", - "bounced" - ] - }, - "public.enum_cookie_configurations_enabled_categories": { - "name": "enum_cookie_configurations_enabled_categories", - "schema": "public", - "values": [ - "necessary", - "functional", - "analytics", - "marketing" - ] - }, - "public.enum_cookie_configurations_styling_position": { - "name": "enum_cookie_configurations_styling_position", - "schema": "public", - "values": [ - "bottom", - "top", - "middle" - ] - }, - "public.enum_cookie_configurations_styling_theme": { - "name": "enum_cookie_configurations_styling_theme", - "schema": "public", - "values": [ - "dark", - "light", - "auto" - ] - }, - "public.enum_cookie_inventory_category": { - "name": "enum_cookie_inventory_category", - "schema": "public", - "values": [ - "necessary", - "functional", - "analytics", - "marketing" - ] - }, - "public.enum_privacy_policy_settings_provider": { - "name": "enum_privacy_policy_settings_provider", - "schema": "public", - "values": [ - "alfright", - "internal" - ] - }, - "public.enum_privacy_policy_settings_alfright_language": { - "name": "enum_privacy_policy_settings_alfright_language", - "schema": "public", - "values": [ - "de-de", - "de-at", - "de-ch", - "en-gb", - "en-us" - ] - }, - "public.enum_forms_confirmation_type": { - "name": "enum_forms_confirmation_type", - "schema": "public", - "values": [ - "message", - "redirect" - ] - }, - "public.enum_redirects_to_type": { - "name": "enum_redirects_to_type", - "schema": "public", - "values": [ - "reference", - "custom" - ] - }, - "public.enum_navigation_main_menu_submenu_link_type": { - "name": "enum_navigation_main_menu_submenu_link_type", - "schema": "public", - "values": [ - "page", - "custom" - ] - }, - "public.enum_navigation_main_menu_type": { - "name": "enum_navigation_main_menu_type", - "schema": "public", - "values": [ - "page", - "custom", - "submenu" - ] - }, - "public.enum_navigation_footer_menu_link_type": { - "name": "enum_navigation_footer_menu_link_type", - "schema": "public", - "values": [ - "page", - "custom" - ] - }, - "public.enum_seo_settings_social_profiles_platform": { - "name": "enum_seo_settings_social_profiles_platform", - "schema": "public", - "values": [ - "facebook", - "instagram", - "twitter", - "linkedin", - "youtube", - "tiktok", - "pinterest", - "xing", - "other" - ] - }, - "public.enum_seo_settings_local_business_type": { - "name": "enum_seo_settings_local_business_type", - "schema": "public", - "values": [ - "LocalBusiness", - "Physician", - "Dentist", - "Attorney", - "Restaurant", - "Hotel", - "Store", - "HealthClub", - "HairSalon", - "AutoRepair", - "RealEstateAgent", - "FinancialService", - "ProfessionalService", - "MedicalBusiness" - ] - }, - "public.enum_seo_settings_local_business_price_range": { - "name": "enum_seo_settings_local_business_price_range", - "schema": "public", - "values": [ - "€", - "€€", - "€€€", - "€€€€" - ] - } - }, - "schemas": {}, - "sequences": {}, - "roles": {}, - "policies": {}, - "views": {}, - "_meta": { - "schemas": {}, - "tables": {}, - "columns": {} - }, - "id": "13bd44c9-cc56-404c-aa5d-eaac784e8934", - "prevId": "00000000-0000-0000-0000-000000000000" -} \ No newline at end of file diff --git a/src/migrations_backup/20251130_213429_add_localization.json b/src/migrations_backup/20251130_213429_add_localization.json deleted file mode 100644 index 0a715d9..0000000 --- a/src/migrations_backup/20251130_213429_add_localization.json +++ /dev/null @@ -1,13009 +0,0 @@ -{ - "version": "7", - "dialect": "postgresql", - "tables": { - "public.users_tenants": { - "name": "users_tenants", - "schema": "", - "columns": { - "_order": { - "name": "_order", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "varchar", - "primaryKey": true, - "notNull": true - }, - "tenant_id": { - "name": "tenant_id", - "type": "integer", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "users_tenants_order_idx": { - "name": "users_tenants_order_idx", - "columns": [ - { - "expression": "_order", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "users_tenants_parent_id_idx": { - "name": "users_tenants_parent_id_idx", - "columns": [ - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "users_tenants_tenant_idx": { - "name": "users_tenants_tenant_idx", - "columns": [ - { - "expression": "tenant_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "users_tenants_tenant_id_tenants_id_fk": { - "name": "users_tenants_tenant_id_tenants_id_fk", - "tableFrom": "users_tenants", - "tableTo": "tenants", - "columnsFrom": [ - "tenant_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "set null", - "onUpdate": "no action" - }, - "users_tenants_parent_id_fk": { - "name": "users_tenants_parent_id_fk", - "tableFrom": "users_tenants", - "tableTo": "users", - "columnsFrom": [ - "_parent_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.users_sessions": { - "name": "users_sessions", - "schema": "", - "columns": { - "_order": { - "name": "_order", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "varchar", - "primaryKey": true, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": false - }, - "expires_at": { - "name": "expires_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "users_sessions_order_idx": { - "name": "users_sessions_order_idx", - "columns": [ - { - "expression": "_order", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "users_sessions_parent_id_idx": { - "name": "users_sessions_parent_id_idx", - "columns": [ - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "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": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.users": { - "name": "users", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "serial", - "primaryKey": true, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "created_at": { - "name": "created_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "email": { - "name": "email", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "reset_password_token": { - "name": "reset_password_token", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "reset_password_expiration": { - "name": "reset_password_expiration", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": false - }, - "salt": { - "name": "salt", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "hash": { - "name": "hash", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "login_attempts": { - "name": "login_attempts", - "type": "numeric", - "primaryKey": false, - "notNull": false, - "default": 0 - }, - "lock_until": { - "name": "lock_until", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "users_updated_at_idx": { - "name": "users_updated_at_idx", - "columns": [ - { - "expression": "updated_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "users_created_at_idx": { - "name": "users_created_at_idx", - "columns": [ - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "users_email_idx": { - "name": "users_email_idx", - "columns": [ - { - "expression": "email", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.media": { - "name": "media", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "serial", - "primaryKey": true, - "notNull": true - }, - "tenant_id": { - "name": "tenant_id", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "alt": { - "name": "alt", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "caption": { - "name": "caption", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "credit": { - "name": "credit", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "created_at": { - "name": "created_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "url": { - "name": "url", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "thumbnail_u_r_l": { - "name": "thumbnail_u_r_l", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "filename": { - "name": "filename", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "mime_type": { - "name": "mime_type", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "filesize": { - "name": "filesize", - "type": "numeric", - "primaryKey": false, - "notNull": false - }, - "width": { - "name": "width", - "type": "numeric", - "primaryKey": false, - "notNull": false - }, - "height": { - "name": "height", - "type": "numeric", - "primaryKey": false, - "notNull": false - }, - "focal_x": { - "name": "focal_x", - "type": "numeric", - "primaryKey": false, - "notNull": false - }, - "focal_y": { - "name": "focal_y", - "type": "numeric", - "primaryKey": false, - "notNull": false - }, - "sizes_thumbnail_url": { - "name": "sizes_thumbnail_url", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "sizes_thumbnail_width": { - "name": "sizes_thumbnail_width", - "type": "numeric", - "primaryKey": false, - "notNull": false - }, - "sizes_thumbnail_height": { - "name": "sizes_thumbnail_height", - "type": "numeric", - "primaryKey": false, - "notNull": false - }, - "sizes_thumbnail_mime_type": { - "name": "sizes_thumbnail_mime_type", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "sizes_thumbnail_filesize": { - "name": "sizes_thumbnail_filesize", - "type": "numeric", - "primaryKey": false, - "notNull": false - }, - "sizes_thumbnail_filename": { - "name": "sizes_thumbnail_filename", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "sizes_small_url": { - "name": "sizes_small_url", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "sizes_small_width": { - "name": "sizes_small_width", - "type": "numeric", - "primaryKey": false, - "notNull": false - }, - "sizes_small_height": { - "name": "sizes_small_height", - "type": "numeric", - "primaryKey": false, - "notNull": false - }, - "sizes_small_mime_type": { - "name": "sizes_small_mime_type", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "sizes_small_filesize": { - "name": "sizes_small_filesize", - "type": "numeric", - "primaryKey": false, - "notNull": false - }, - "sizes_small_filename": { - "name": "sizes_small_filename", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "sizes_medium_url": { - "name": "sizes_medium_url", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "sizes_medium_width": { - "name": "sizes_medium_width", - "type": "numeric", - "primaryKey": false, - "notNull": false - }, - "sizes_medium_height": { - "name": "sizes_medium_height", - "type": "numeric", - "primaryKey": false, - "notNull": false - }, - "sizes_medium_mime_type": { - "name": "sizes_medium_mime_type", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "sizes_medium_filesize": { - "name": "sizes_medium_filesize", - "type": "numeric", - "primaryKey": false, - "notNull": false - }, - "sizes_medium_filename": { - "name": "sizes_medium_filename", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "sizes_large_url": { - "name": "sizes_large_url", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "sizes_large_width": { - "name": "sizes_large_width", - "type": "numeric", - "primaryKey": false, - "notNull": false - }, - "sizes_large_height": { - "name": "sizes_large_height", - "type": "numeric", - "primaryKey": false, - "notNull": false - }, - "sizes_large_mime_type": { - "name": "sizes_large_mime_type", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "sizes_large_filesize": { - "name": "sizes_large_filesize", - "type": "numeric", - "primaryKey": false, - "notNull": false - }, - "sizes_large_filename": { - "name": "sizes_large_filename", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "sizes_xlarge_url": { - "name": "sizes_xlarge_url", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "sizes_xlarge_width": { - "name": "sizes_xlarge_width", - "type": "numeric", - "primaryKey": false, - "notNull": false - }, - "sizes_xlarge_height": { - "name": "sizes_xlarge_height", - "type": "numeric", - "primaryKey": false, - "notNull": false - }, - "sizes_xlarge_mime_type": { - "name": "sizes_xlarge_mime_type", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "sizes_xlarge_filesize": { - "name": "sizes_xlarge_filesize", - "type": "numeric", - "primaryKey": false, - "notNull": false - }, - "sizes_xlarge_filename": { - "name": "sizes_xlarge_filename", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "sizes_2k_url": { - "name": "sizes_2k_url", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "sizes_2k_width": { - "name": "sizes_2k_width", - "type": "numeric", - "primaryKey": false, - "notNull": false - }, - "sizes_2k_height": { - "name": "sizes_2k_height", - "type": "numeric", - "primaryKey": false, - "notNull": false - }, - "sizes_2k_mime_type": { - "name": "sizes_2k_mime_type", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "sizes_2k_filesize": { - "name": "sizes_2k_filesize", - "type": "numeric", - "primaryKey": false, - "notNull": false - }, - "sizes_2k_filename": { - "name": "sizes_2k_filename", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "sizes_og_url": { - "name": "sizes_og_url", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "sizes_og_width": { - "name": "sizes_og_width", - "type": "numeric", - "primaryKey": false, - "notNull": false - }, - "sizes_og_height": { - "name": "sizes_og_height", - "type": "numeric", - "primaryKey": false, - "notNull": false - }, - "sizes_og_mime_type": { - "name": "sizes_og_mime_type", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "sizes_og_filesize": { - "name": "sizes_og_filesize", - "type": "numeric", - "primaryKey": false, - "notNull": false - }, - "sizes_og_filename": { - "name": "sizes_og_filename", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "sizes_medium_avif_url": { - "name": "sizes_medium_avif_url", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "sizes_medium_avif_width": { - "name": "sizes_medium_avif_width", - "type": "numeric", - "primaryKey": false, - "notNull": false - }, - "sizes_medium_avif_height": { - "name": "sizes_medium_avif_height", - "type": "numeric", - "primaryKey": false, - "notNull": false - }, - "sizes_medium_avif_mime_type": { - "name": "sizes_medium_avif_mime_type", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "sizes_medium_avif_filesize": { - "name": "sizes_medium_avif_filesize", - "type": "numeric", - "primaryKey": false, - "notNull": false - }, - "sizes_medium_avif_filename": { - "name": "sizes_medium_avif_filename", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "sizes_large_avif_url": { - "name": "sizes_large_avif_url", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "sizes_large_avif_width": { - "name": "sizes_large_avif_width", - "type": "numeric", - "primaryKey": false, - "notNull": false - }, - "sizes_large_avif_height": { - "name": "sizes_large_avif_height", - "type": "numeric", - "primaryKey": false, - "notNull": false - }, - "sizes_large_avif_mime_type": { - "name": "sizes_large_avif_mime_type", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "sizes_large_avif_filesize": { - "name": "sizes_large_avif_filesize", - "type": "numeric", - "primaryKey": false, - "notNull": false - }, - "sizes_large_avif_filename": { - "name": "sizes_large_avif_filename", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "sizes_xlarge_avif_url": { - "name": "sizes_xlarge_avif_url", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "sizes_xlarge_avif_width": { - "name": "sizes_xlarge_avif_width", - "type": "numeric", - "primaryKey": false, - "notNull": false - }, - "sizes_xlarge_avif_height": { - "name": "sizes_xlarge_avif_height", - "type": "numeric", - "primaryKey": false, - "notNull": false - }, - "sizes_xlarge_avif_mime_type": { - "name": "sizes_xlarge_avif_mime_type", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "sizes_xlarge_avif_filesize": { - "name": "sizes_xlarge_avif_filesize", - "type": "numeric", - "primaryKey": false, - "notNull": false - }, - "sizes_xlarge_avif_filename": { - "name": "sizes_xlarge_avif_filename", - "type": "varchar", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "media_tenant_idx": { - "name": "media_tenant_idx", - "columns": [ - { - "expression": "tenant_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "media_updated_at_idx": { - "name": "media_updated_at_idx", - "columns": [ - { - "expression": "updated_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "media_created_at_idx": { - "name": "media_created_at_idx", - "columns": [ - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "media_filename_idx": { - "name": "media_filename_idx", - "columns": [ - { - "expression": "filename", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "media_sizes_thumbnail_sizes_thumbnail_filename_idx": { - "name": "media_sizes_thumbnail_sizes_thumbnail_filename_idx", - "columns": [ - { - "expression": "sizes_thumbnail_filename", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "media_sizes_small_sizes_small_filename_idx": { - "name": "media_sizes_small_sizes_small_filename_idx", - "columns": [ - { - "expression": "sizes_small_filename", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "media_sizes_medium_sizes_medium_filename_idx": { - "name": "media_sizes_medium_sizes_medium_filename_idx", - "columns": [ - { - "expression": "sizes_medium_filename", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "media_sizes_large_sizes_large_filename_idx": { - "name": "media_sizes_large_sizes_large_filename_idx", - "columns": [ - { - "expression": "sizes_large_filename", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "media_sizes_xlarge_sizes_xlarge_filename_idx": { - "name": "media_sizes_xlarge_sizes_xlarge_filename_idx", - "columns": [ - { - "expression": "sizes_xlarge_filename", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "media_sizes_2k_sizes_2k_filename_idx": { - "name": "media_sizes_2k_sizes_2k_filename_idx", - "columns": [ - { - "expression": "sizes_2k_filename", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "media_sizes_og_sizes_og_filename_idx": { - "name": "media_sizes_og_sizes_og_filename_idx", - "columns": [ - { - "expression": "sizes_og_filename", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "media_sizes_medium_avif_sizes_medium_avif_filename_idx": { - "name": "media_sizes_medium_avif_sizes_medium_avif_filename_idx", - "columns": [ - { - "expression": "sizes_medium_avif_filename", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "media_sizes_large_avif_sizes_large_avif_filename_idx": { - "name": "media_sizes_large_avif_sizes_large_avif_filename_idx", - "columns": [ - { - "expression": "sizes_large_avif_filename", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "media_sizes_xlarge_avif_sizes_xlarge_avif_filename_idx": { - "name": "media_sizes_xlarge_avif_sizes_xlarge_avif_filename_idx", - "columns": [ - { - "expression": "sizes_xlarge_avif_filename", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "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": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.media_texts": { - "name": "media_texts", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "serial", - "primaryKey": true, - "notNull": true - }, - "order": { - "name": "order", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "parent_id": { - "name": "parent_id", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "path": { - "name": "path", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "text": { - "name": "text", - "type": "varchar", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "media_texts_order_parent": { - "name": "media_texts_order_parent", - "columns": [ - { - "expression": "order", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "media_texts_parent_fk": { - "name": "media_texts_parent_fk", - "tableFrom": "media_texts", - "tableTo": "media", - "columnsFrom": [ - "parent_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.tenants_domains": { - "name": "tenants_domains", - "schema": "", - "columns": { - "_order": { - "name": "_order", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "varchar", - "primaryKey": true, - "notNull": true - }, - "domain": { - "name": "domain", - "type": "varchar", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "tenants_domains_order_idx": { - "name": "tenants_domains_order_idx", - "columns": [ - { - "expression": "_order", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "tenants_domains_parent_id_idx": { - "name": "tenants_domains_parent_id_idx", - "columns": [ - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "tenants_domains_parent_id_fk": { - "name": "tenants_domains_parent_id_fk", - "tableFrom": "tenants_domains", - "tableTo": "tenants", - "columnsFrom": [ - "_parent_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.tenants": { - "name": "tenants", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "serial", - "primaryKey": true, - "notNull": true - }, - "name": { - "name": "name", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "slug": { - "name": "slug", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "created_at": { - "name": "created_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - } - }, - "indexes": { - "tenants_slug_idx": { - "name": "tenants_slug_idx", - "columns": [ - { - "expression": "slug", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "tenants_updated_at_idx": { - "name": "tenants_updated_at_idx", - "columns": [ - { - "expression": "updated_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "tenants_created_at_idx": { - "name": "tenants_created_at_idx", - "columns": [ - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.pages_blocks_hero_block": { - "name": "pages_blocks_hero_block", - "schema": "", - "columns": { - "_order": { - "name": "_order", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_path": { - "name": "_path", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "varchar", - "primaryKey": true, - "notNull": true - }, - "background_image_id": { - "name": "background_image_id", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "alignment": { - "name": "alignment", - "type": "enum_pages_blocks_hero_block_alignment", - "typeSchema": "public", - "primaryKey": false, - "notNull": false, - "default": "'center'" - }, - "overlay": { - "name": "overlay", - "type": "boolean", - "primaryKey": false, - "notNull": false, - "default": true - }, - "cta_link": { - "name": "cta_link", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "cta_style": { - "name": "cta_style", - "type": "enum_pages_blocks_hero_block_cta_style", - "typeSchema": "public", - "primaryKey": false, - "notNull": false, - "default": "'primary'" - }, - "block_name": { - "name": "block_name", - "type": "varchar", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "pages_blocks_hero_block_order_idx": { - "name": "pages_blocks_hero_block_order_idx", - "columns": [ - { - "expression": "_order", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "pages_blocks_hero_block_parent_id_idx": { - "name": "pages_blocks_hero_block_parent_id_idx", - "columns": [ - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "pages_blocks_hero_block_path_idx": { - "name": "pages_blocks_hero_block_path_idx", - "columns": [ - { - "expression": "_path", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "pages_blocks_hero_block_background_image_idx": { - "name": "pages_blocks_hero_block_background_image_idx", - "columns": [ - { - "expression": "background_image_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "pages_blocks_hero_block_background_image_id_media_id_fk": { - "name": "pages_blocks_hero_block_background_image_id_media_id_fk", - "tableFrom": "pages_blocks_hero_block", - "tableTo": "media", - "columnsFrom": [ - "background_image_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "set null", - "onUpdate": "no action" - }, - "pages_blocks_hero_block_parent_id_fk": { - "name": "pages_blocks_hero_block_parent_id_fk", - "tableFrom": "pages_blocks_hero_block", - "tableTo": "pages", - "columnsFrom": [ - "_parent_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.pages_blocks_hero_block_locales": { - "name": "pages_blocks_hero_block_locales", - "schema": "", - "columns": { - "headline": { - "name": "headline", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "subline": { - "name": "subline", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "cta_text": { - "name": "cta_text", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "id": { - "name": "id", - "type": "serial", - "primaryKey": true, - "notNull": true - }, - "_locale": { - "name": "_locale", - "type": "_locales", - "typeSchema": "public", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "varchar", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "pages_blocks_hero_block_locales_locale_parent_id_unique": { - "name": "pages_blocks_hero_block_locales_locale_parent_id_unique", - "columns": [ - { - "expression": "_locale", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "pages_blocks_hero_block_locales_parent_id_fk": { - "name": "pages_blocks_hero_block_locales_parent_id_fk", - "tableFrom": "pages_blocks_hero_block_locales", - "tableTo": "pages_blocks_hero_block", - "columnsFrom": [ - "_parent_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.pages_blocks_text_block": { - "name": "pages_blocks_text_block", - "schema": "", - "columns": { - "_order": { - "name": "_order", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_path": { - "name": "_path", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "varchar", - "primaryKey": true, - "notNull": true - }, - "width": { - "name": "width", - "type": "enum_pages_blocks_text_block_width", - "typeSchema": "public", - "primaryKey": false, - "notNull": false, - "default": "'medium'" - }, - "block_name": { - "name": "block_name", - "type": "varchar", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "pages_blocks_text_block_order_idx": { - "name": "pages_blocks_text_block_order_idx", - "columns": [ - { - "expression": "_order", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "pages_blocks_text_block_parent_id_idx": { - "name": "pages_blocks_text_block_parent_id_idx", - "columns": [ - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "pages_blocks_text_block_path_idx": { - "name": "pages_blocks_text_block_path_idx", - "columns": [ - { - "expression": "_path", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "pages_blocks_text_block_parent_id_fk": { - "name": "pages_blocks_text_block_parent_id_fk", - "tableFrom": "pages_blocks_text_block", - "tableTo": "pages", - "columnsFrom": [ - "_parent_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.pages_blocks_text_block_locales": { - "name": "pages_blocks_text_block_locales", - "schema": "", - "columns": { - "content": { - "name": "content", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "serial", - "primaryKey": true, - "notNull": true - }, - "_locale": { - "name": "_locale", - "type": "_locales", - "typeSchema": "public", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "varchar", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "pages_blocks_text_block_locales_locale_parent_id_unique": { - "name": "pages_blocks_text_block_locales_locale_parent_id_unique", - "columns": [ - { - "expression": "_locale", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "pages_blocks_text_block_locales_parent_id_fk": { - "name": "pages_blocks_text_block_locales_parent_id_fk", - "tableFrom": "pages_blocks_text_block_locales", - "tableTo": "pages_blocks_text_block", - "columnsFrom": [ - "_parent_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.pages_blocks_image_text_block": { - "name": "pages_blocks_image_text_block", - "schema": "", - "columns": { - "_order": { - "name": "_order", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_path": { - "name": "_path", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "varchar", - "primaryKey": true, - "notNull": true - }, - "image_id": { - "name": "image_id", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "image_position": { - "name": "image_position", - "type": "enum_pages_blocks_image_text_block_image_position", - "typeSchema": "public", - "primaryKey": false, - "notNull": false, - "default": "'left'" - }, - "cta_link": { - "name": "cta_link", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "block_name": { - "name": "block_name", - "type": "varchar", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "pages_blocks_image_text_block_order_idx": { - "name": "pages_blocks_image_text_block_order_idx", - "columns": [ - { - "expression": "_order", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "pages_blocks_image_text_block_parent_id_idx": { - "name": "pages_blocks_image_text_block_parent_id_idx", - "columns": [ - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "pages_blocks_image_text_block_path_idx": { - "name": "pages_blocks_image_text_block_path_idx", - "columns": [ - { - "expression": "_path", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "pages_blocks_image_text_block_image_idx": { - "name": "pages_blocks_image_text_block_image_idx", - "columns": [ - { - "expression": "image_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "pages_blocks_image_text_block_image_id_media_id_fk": { - "name": "pages_blocks_image_text_block_image_id_media_id_fk", - "tableFrom": "pages_blocks_image_text_block", - "tableTo": "media", - "columnsFrom": [ - "image_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "set null", - "onUpdate": "no action" - }, - "pages_blocks_image_text_block_parent_id_fk": { - "name": "pages_blocks_image_text_block_parent_id_fk", - "tableFrom": "pages_blocks_image_text_block", - "tableTo": "pages", - "columnsFrom": [ - "_parent_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.pages_blocks_image_text_block_locales": { - "name": "pages_blocks_image_text_block_locales", - "schema": "", - "columns": { - "headline": { - "name": "headline", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "content": { - "name": "content", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "cta_text": { - "name": "cta_text", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "id": { - "name": "id", - "type": "serial", - "primaryKey": true, - "notNull": true - }, - "_locale": { - "name": "_locale", - "type": "_locales", - "typeSchema": "public", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "varchar", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "pages_blocks_image_text_block_locales_locale_parent_id_uniqu": { - "name": "pages_blocks_image_text_block_locales_locale_parent_id_uniqu", - "columns": [ - { - "expression": "_locale", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "pages_blocks_image_text_block_locales_parent_id_fk": { - "name": "pages_blocks_image_text_block_locales_parent_id_fk", - "tableFrom": "pages_blocks_image_text_block_locales", - "tableTo": "pages_blocks_image_text_block", - "columnsFrom": [ - "_parent_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.pages_blocks_card_grid_block_cards": { - "name": "pages_blocks_card_grid_block_cards", - "schema": "", - "columns": { - "_order": { - "name": "_order", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "varchar", - "primaryKey": true, - "notNull": true - }, - "image_id": { - "name": "image_id", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "link": { - "name": "link", - "type": "varchar", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "pages_blocks_card_grid_block_cards_order_idx": { - "name": "pages_blocks_card_grid_block_cards_order_idx", - "columns": [ - { - "expression": "_order", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "pages_blocks_card_grid_block_cards_parent_id_idx": { - "name": "pages_blocks_card_grid_block_cards_parent_id_idx", - "columns": [ - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "pages_blocks_card_grid_block_cards_image_idx": { - "name": "pages_blocks_card_grid_block_cards_image_idx", - "columns": [ - { - "expression": "image_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "pages_blocks_card_grid_block_cards_image_id_media_id_fk": { - "name": "pages_blocks_card_grid_block_cards_image_id_media_id_fk", - "tableFrom": "pages_blocks_card_grid_block_cards", - "tableTo": "media", - "columnsFrom": [ - "image_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "set null", - "onUpdate": "no action" - }, - "pages_blocks_card_grid_block_cards_parent_id_fk": { - "name": "pages_blocks_card_grid_block_cards_parent_id_fk", - "tableFrom": "pages_blocks_card_grid_block_cards", - "tableTo": "pages_blocks_card_grid_block", - "columnsFrom": [ - "_parent_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.pages_blocks_card_grid_block_cards_locales": { - "name": "pages_blocks_card_grid_block_cards_locales", - "schema": "", - "columns": { - "title": { - "name": "title", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "description": { - "name": "description", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "link_text": { - "name": "link_text", - "type": "varchar", - "primaryKey": false, - "notNull": false, - "default": "'mehr'" - }, - "id": { - "name": "id", - "type": "serial", - "primaryKey": true, - "notNull": true - }, - "_locale": { - "name": "_locale", - "type": "_locales", - "typeSchema": "public", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "varchar", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "pages_blocks_card_grid_block_cards_locales_locale_parent_id_": { - "name": "pages_blocks_card_grid_block_cards_locales_locale_parent_id_", - "columns": [ - { - "expression": "_locale", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "pages_blocks_card_grid_block_cards_locales_parent_id_fk": { - "name": "pages_blocks_card_grid_block_cards_locales_parent_id_fk", - "tableFrom": "pages_blocks_card_grid_block_cards_locales", - "tableTo": "pages_blocks_card_grid_block_cards", - "columnsFrom": [ - "_parent_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.pages_blocks_card_grid_block": { - "name": "pages_blocks_card_grid_block", - "schema": "", - "columns": { - "_order": { - "name": "_order", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_path": { - "name": "_path", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "varchar", - "primaryKey": true, - "notNull": true - }, - "columns": { - "name": "columns", - "type": "enum_pages_blocks_card_grid_block_columns", - "typeSchema": "public", - "primaryKey": false, - "notNull": false, - "default": "'3'" - }, - "block_name": { - "name": "block_name", - "type": "varchar", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "pages_blocks_card_grid_block_order_idx": { - "name": "pages_blocks_card_grid_block_order_idx", - "columns": [ - { - "expression": "_order", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "pages_blocks_card_grid_block_parent_id_idx": { - "name": "pages_blocks_card_grid_block_parent_id_idx", - "columns": [ - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "pages_blocks_card_grid_block_path_idx": { - "name": "pages_blocks_card_grid_block_path_idx", - "columns": [ - { - "expression": "_path", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "pages_blocks_card_grid_block_parent_id_fk": { - "name": "pages_blocks_card_grid_block_parent_id_fk", - "tableFrom": "pages_blocks_card_grid_block", - "tableTo": "pages", - "columnsFrom": [ - "_parent_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.pages_blocks_card_grid_block_locales": { - "name": "pages_blocks_card_grid_block_locales", - "schema": "", - "columns": { - "headline": { - "name": "headline", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "id": { - "name": "id", - "type": "serial", - "primaryKey": true, - "notNull": true - }, - "_locale": { - "name": "_locale", - "type": "_locales", - "typeSchema": "public", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "varchar", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "pages_blocks_card_grid_block_locales_locale_parent_id_unique": { - "name": "pages_blocks_card_grid_block_locales_locale_parent_id_unique", - "columns": [ - { - "expression": "_locale", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "pages_blocks_card_grid_block_locales_parent_id_fk": { - "name": "pages_blocks_card_grid_block_locales_parent_id_fk", - "tableFrom": "pages_blocks_card_grid_block_locales", - "tableTo": "pages_blocks_card_grid_block", - "columnsFrom": [ - "_parent_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.pages_blocks_quote_block": { - "name": "pages_blocks_quote_block", - "schema": "", - "columns": { - "_order": { - "name": "_order", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_path": { - "name": "_path", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "varchar", - "primaryKey": true, - "notNull": true - }, - "author": { - "name": "author", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "image_id": { - "name": "image_id", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "style": { - "name": "style", - "type": "enum_pages_blocks_quote_block_style", - "typeSchema": "public", - "primaryKey": false, - "notNull": false, - "default": "'simple'" - }, - "block_name": { - "name": "block_name", - "type": "varchar", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "pages_blocks_quote_block_order_idx": { - "name": "pages_blocks_quote_block_order_idx", - "columns": [ - { - "expression": "_order", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "pages_blocks_quote_block_parent_id_idx": { - "name": "pages_blocks_quote_block_parent_id_idx", - "columns": [ - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "pages_blocks_quote_block_path_idx": { - "name": "pages_blocks_quote_block_path_idx", - "columns": [ - { - "expression": "_path", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "pages_blocks_quote_block_image_idx": { - "name": "pages_blocks_quote_block_image_idx", - "columns": [ - { - "expression": "image_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "pages_blocks_quote_block_image_id_media_id_fk": { - "name": "pages_blocks_quote_block_image_id_media_id_fk", - "tableFrom": "pages_blocks_quote_block", - "tableTo": "media", - "columnsFrom": [ - "image_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "set null", - "onUpdate": "no action" - }, - "pages_blocks_quote_block_parent_id_fk": { - "name": "pages_blocks_quote_block_parent_id_fk", - "tableFrom": "pages_blocks_quote_block", - "tableTo": "pages", - "columnsFrom": [ - "_parent_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.pages_blocks_quote_block_locales": { - "name": "pages_blocks_quote_block_locales", - "schema": "", - "columns": { - "quote": { - "name": "quote", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "role": { - "name": "role", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "id": { - "name": "id", - "type": "serial", - "primaryKey": true, - "notNull": true - }, - "_locale": { - "name": "_locale", - "type": "_locales", - "typeSchema": "public", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "varchar", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "pages_blocks_quote_block_locales_locale_parent_id_unique": { - "name": "pages_blocks_quote_block_locales_locale_parent_id_unique", - "columns": [ - { - "expression": "_locale", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "pages_blocks_quote_block_locales_parent_id_fk": { - "name": "pages_blocks_quote_block_locales_parent_id_fk", - "tableFrom": "pages_blocks_quote_block_locales", - "tableTo": "pages_blocks_quote_block", - "columnsFrom": [ - "_parent_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.pages_blocks_cta_block_buttons": { - "name": "pages_blocks_cta_block_buttons", - "schema": "", - "columns": { - "_order": { - "name": "_order", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "varchar", - "primaryKey": true, - "notNull": true - }, - "link": { - "name": "link", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "style": { - "name": "style", - "type": "enum_pages_blocks_cta_block_buttons_style", - "typeSchema": "public", - "primaryKey": false, - "notNull": false, - "default": "'primary'" - } - }, - "indexes": { - "pages_blocks_cta_block_buttons_order_idx": { - "name": "pages_blocks_cta_block_buttons_order_idx", - "columns": [ - { - "expression": "_order", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "pages_blocks_cta_block_buttons_parent_id_idx": { - "name": "pages_blocks_cta_block_buttons_parent_id_idx", - "columns": [ - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "pages_blocks_cta_block_buttons_parent_id_fk": { - "name": "pages_blocks_cta_block_buttons_parent_id_fk", - "tableFrom": "pages_blocks_cta_block_buttons", - "tableTo": "pages_blocks_cta_block", - "columnsFrom": [ - "_parent_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.pages_blocks_cta_block_buttons_locales": { - "name": "pages_blocks_cta_block_buttons_locales", - "schema": "", - "columns": { - "text": { - "name": "text", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "serial", - "primaryKey": true, - "notNull": true - }, - "_locale": { - "name": "_locale", - "type": "_locales", - "typeSchema": "public", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "varchar", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "pages_blocks_cta_block_buttons_locales_locale_parent_id_uniq": { - "name": "pages_blocks_cta_block_buttons_locales_locale_parent_id_uniq", - "columns": [ - { - "expression": "_locale", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "pages_blocks_cta_block_buttons_locales_parent_id_fk": { - "name": "pages_blocks_cta_block_buttons_locales_parent_id_fk", - "tableFrom": "pages_blocks_cta_block_buttons_locales", - "tableTo": "pages_blocks_cta_block_buttons", - "columnsFrom": [ - "_parent_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.pages_blocks_cta_block": { - "name": "pages_blocks_cta_block", - "schema": "", - "columns": { - "_order": { - "name": "_order", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_path": { - "name": "_path", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "varchar", - "primaryKey": true, - "notNull": true - }, - "background_color": { - "name": "background_color", - "type": "enum_pages_blocks_cta_block_background_color", - "typeSchema": "public", - "primaryKey": false, - "notNull": false, - "default": "'dark'" - }, - "block_name": { - "name": "block_name", - "type": "varchar", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "pages_blocks_cta_block_order_idx": { - "name": "pages_blocks_cta_block_order_idx", - "columns": [ - { - "expression": "_order", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "pages_blocks_cta_block_parent_id_idx": { - "name": "pages_blocks_cta_block_parent_id_idx", - "columns": [ - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "pages_blocks_cta_block_path_idx": { - "name": "pages_blocks_cta_block_path_idx", - "columns": [ - { - "expression": "_path", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "pages_blocks_cta_block_parent_id_fk": { - "name": "pages_blocks_cta_block_parent_id_fk", - "tableFrom": "pages_blocks_cta_block", - "tableTo": "pages", - "columnsFrom": [ - "_parent_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.pages_blocks_cta_block_locales": { - "name": "pages_blocks_cta_block_locales", - "schema": "", - "columns": { - "headline": { - "name": "headline", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "description": { - "name": "description", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "id": { - "name": "id", - "type": "serial", - "primaryKey": true, - "notNull": true - }, - "_locale": { - "name": "_locale", - "type": "_locales", - "typeSchema": "public", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "varchar", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "pages_blocks_cta_block_locales_locale_parent_id_unique": { - "name": "pages_blocks_cta_block_locales_locale_parent_id_unique", - "columns": [ - { - "expression": "_locale", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "pages_blocks_cta_block_locales_parent_id_fk": { - "name": "pages_blocks_cta_block_locales_parent_id_fk", - "tableFrom": "pages_blocks_cta_block_locales", - "tableTo": "pages_blocks_cta_block", - "columnsFrom": [ - "_parent_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.pages_blocks_contact_form_block": { - "name": "pages_blocks_contact_form_block", - "schema": "", - "columns": { - "_order": { - "name": "_order", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_path": { - "name": "_path", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "varchar", - "primaryKey": true, - "notNull": true - }, - "recipient_email": { - "name": "recipient_email", - "type": "varchar", - "primaryKey": false, - "notNull": false, - "default": "'info@porwoll.de'" - }, - "show_phone": { - "name": "show_phone", - "type": "boolean", - "primaryKey": false, - "notNull": false, - "default": true - }, - "show_address": { - "name": "show_address", - "type": "boolean", - "primaryKey": false, - "notNull": false, - "default": true - }, - "show_socials": { - "name": "show_socials", - "type": "boolean", - "primaryKey": false, - "notNull": false, - "default": true - }, - "block_name": { - "name": "block_name", - "type": "varchar", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "pages_blocks_contact_form_block_order_idx": { - "name": "pages_blocks_contact_form_block_order_idx", - "columns": [ - { - "expression": "_order", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "pages_blocks_contact_form_block_parent_id_idx": { - "name": "pages_blocks_contact_form_block_parent_id_idx", - "columns": [ - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "pages_blocks_contact_form_block_path_idx": { - "name": "pages_blocks_contact_form_block_path_idx", - "columns": [ - { - "expression": "_path", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "pages_blocks_contact_form_block_parent_id_fk": { - "name": "pages_blocks_contact_form_block_parent_id_fk", - "tableFrom": "pages_blocks_contact_form_block", - "tableTo": "pages", - "columnsFrom": [ - "_parent_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.pages_blocks_contact_form_block_locales": { - "name": "pages_blocks_contact_form_block_locales", - "schema": "", - "columns": { - "headline": { - "name": "headline", - "type": "varchar", - "primaryKey": false, - "notNull": false, - "default": "'Kontakt'" - }, - "description": { - "name": "description", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "id": { - "name": "id", - "type": "serial", - "primaryKey": true, - "notNull": true - }, - "_locale": { - "name": "_locale", - "type": "_locales", - "typeSchema": "public", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "varchar", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "pages_blocks_contact_form_block_locales_locale_parent_id_uni": { - "name": "pages_blocks_contact_form_block_locales_locale_parent_id_uni", - "columns": [ - { - "expression": "_locale", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "pages_blocks_contact_form_block_locales_parent_id_fk": { - "name": "pages_blocks_contact_form_block_locales_parent_id_fk", - "tableFrom": "pages_blocks_contact_form_block_locales", - "tableTo": "pages_blocks_contact_form_block", - "columnsFrom": [ - "_parent_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.pages_blocks_timeline_block_items": { - "name": "pages_blocks_timeline_block_items", - "schema": "", - "columns": { - "_order": { - "name": "_order", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "varchar", - "primaryKey": true, - "notNull": true - }, - "year": { - "name": "year", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "icon": { - "name": "icon", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "image_id": { - "name": "image_id", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "link_href": { - "name": "link_href", - "type": "varchar", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "pages_blocks_timeline_block_items_order_idx": { - "name": "pages_blocks_timeline_block_items_order_idx", - "columns": [ - { - "expression": "_order", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "pages_blocks_timeline_block_items_parent_id_idx": { - "name": "pages_blocks_timeline_block_items_parent_id_idx", - "columns": [ - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "pages_blocks_timeline_block_items_image_idx": { - "name": "pages_blocks_timeline_block_items_image_idx", - "columns": [ - { - "expression": "image_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "pages_blocks_timeline_block_items_image_id_media_id_fk": { - "name": "pages_blocks_timeline_block_items_image_id_media_id_fk", - "tableFrom": "pages_blocks_timeline_block_items", - "tableTo": "media", - "columnsFrom": [ - "image_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "set null", - "onUpdate": "no action" - }, - "pages_blocks_timeline_block_items_parent_id_fk": { - "name": "pages_blocks_timeline_block_items_parent_id_fk", - "tableFrom": "pages_blocks_timeline_block_items", - "tableTo": "pages_blocks_timeline_block", - "columnsFrom": [ - "_parent_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.pages_blocks_timeline_block_items_locales": { - "name": "pages_blocks_timeline_block_items_locales", - "schema": "", - "columns": { - "title": { - "name": "title", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "description": { - "name": "description", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "link_label": { - "name": "link_label", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "id": { - "name": "id", - "type": "serial", - "primaryKey": true, - "notNull": true - }, - "_locale": { - "name": "_locale", - "type": "_locales", - "typeSchema": "public", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "varchar", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "pages_blocks_timeline_block_items_locales_locale_parent_id_u": { - "name": "pages_blocks_timeline_block_items_locales_locale_parent_id_u", - "columns": [ - { - "expression": "_locale", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "pages_blocks_timeline_block_items_locales_parent_id_fk": { - "name": "pages_blocks_timeline_block_items_locales_parent_id_fk", - "tableFrom": "pages_blocks_timeline_block_items_locales", - "tableTo": "pages_blocks_timeline_block_items", - "columnsFrom": [ - "_parent_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.pages_blocks_timeline_block": { - "name": "pages_blocks_timeline_block", - "schema": "", - "columns": { - "_order": { - "name": "_order", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_path": { - "name": "_path", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "varchar", - "primaryKey": true, - "notNull": true - }, - "layout": { - "name": "layout", - "type": "enum_pages_blocks_timeline_block_layout", - "typeSchema": "public", - "primaryKey": false, - "notNull": false, - "default": "'vertical'" - }, - "show_connector": { - "name": "show_connector", - "type": "boolean", - "primaryKey": false, - "notNull": false, - "default": true - }, - "marker_style": { - "name": "marker_style", - "type": "enum_pages_blocks_timeline_block_marker_style", - "typeSchema": "public", - "primaryKey": false, - "notNull": false, - "default": "'dot'" - }, - "background_color": { - "name": "background_color", - "type": "enum_pages_blocks_timeline_block_background_color", - "typeSchema": "public", - "primaryKey": false, - "notNull": false, - "default": "'white'" - }, - "block_name": { - "name": "block_name", - "type": "varchar", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "pages_blocks_timeline_block_order_idx": { - "name": "pages_blocks_timeline_block_order_idx", - "columns": [ - { - "expression": "_order", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "pages_blocks_timeline_block_parent_id_idx": { - "name": "pages_blocks_timeline_block_parent_id_idx", - "columns": [ - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "pages_blocks_timeline_block_path_idx": { - "name": "pages_blocks_timeline_block_path_idx", - "columns": [ - { - "expression": "_path", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "pages_blocks_timeline_block_parent_id_fk": { - "name": "pages_blocks_timeline_block_parent_id_fk", - "tableFrom": "pages_blocks_timeline_block", - "tableTo": "pages", - "columnsFrom": [ - "_parent_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.pages_blocks_timeline_block_locales": { - "name": "pages_blocks_timeline_block_locales", - "schema": "", - "columns": { - "title": { - "name": "title", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "subtitle": { - "name": "subtitle", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "id": { - "name": "id", - "type": "serial", - "primaryKey": true, - "notNull": true - }, - "_locale": { - "name": "_locale", - "type": "_locales", - "typeSchema": "public", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "varchar", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "pages_blocks_timeline_block_locales_locale_parent_id_unique": { - "name": "pages_blocks_timeline_block_locales_locale_parent_id_unique", - "columns": [ - { - "expression": "_locale", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "pages_blocks_timeline_block_locales_parent_id_fk": { - "name": "pages_blocks_timeline_block_locales_parent_id_fk", - "tableFrom": "pages_blocks_timeline_block_locales", - "tableTo": "pages_blocks_timeline_block", - "columnsFrom": [ - "_parent_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.pages_blocks_divider_block": { - "name": "pages_blocks_divider_block", - "schema": "", - "columns": { - "_order": { - "name": "_order", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_path": { - "name": "_path", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "varchar", - "primaryKey": true, - "notNull": true - }, - "style": { - "name": "style", - "type": "enum_pages_blocks_divider_block_style", - "typeSchema": "public", - "primaryKey": false, - "notNull": false, - "default": "'space'" - }, - "spacing": { - "name": "spacing", - "type": "enum_pages_blocks_divider_block_spacing", - "typeSchema": "public", - "primaryKey": false, - "notNull": false, - "default": "'medium'" - }, - "block_name": { - "name": "block_name", - "type": "varchar", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "pages_blocks_divider_block_order_idx": { - "name": "pages_blocks_divider_block_order_idx", - "columns": [ - { - "expression": "_order", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "pages_blocks_divider_block_parent_id_idx": { - "name": "pages_blocks_divider_block_parent_id_idx", - "columns": [ - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "pages_blocks_divider_block_path_idx": { - "name": "pages_blocks_divider_block_path_idx", - "columns": [ - { - "expression": "_path", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "pages_blocks_divider_block_parent_id_fk": { - "name": "pages_blocks_divider_block_parent_id_fk", - "tableFrom": "pages_blocks_divider_block", - "tableTo": "pages", - "columnsFrom": [ - "_parent_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.pages_blocks_video_block": { - "name": "pages_blocks_video_block", - "schema": "", - "columns": { - "_order": { - "name": "_order", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_path": { - "name": "_path", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "varchar", - "primaryKey": true, - "notNull": true - }, - "video_url": { - "name": "video_url", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "aspect_ratio": { - "name": "aspect_ratio", - "type": "enum_pages_blocks_video_block_aspect_ratio", - "typeSchema": "public", - "primaryKey": false, - "notNull": false, - "default": "'16:9'" - }, - "block_name": { - "name": "block_name", - "type": "varchar", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "pages_blocks_video_block_order_idx": { - "name": "pages_blocks_video_block_order_idx", - "columns": [ - { - "expression": "_order", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "pages_blocks_video_block_parent_id_idx": { - "name": "pages_blocks_video_block_parent_id_idx", - "columns": [ - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "pages_blocks_video_block_path_idx": { - "name": "pages_blocks_video_block_path_idx", - "columns": [ - { - "expression": "_path", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "pages_blocks_video_block_parent_id_fk": { - "name": "pages_blocks_video_block_parent_id_fk", - "tableFrom": "pages_blocks_video_block", - "tableTo": "pages", - "columnsFrom": [ - "_parent_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.pages_blocks_video_block_locales": { - "name": "pages_blocks_video_block_locales", - "schema": "", - "columns": { - "caption": { - "name": "caption", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "id": { - "name": "id", - "type": "serial", - "primaryKey": true, - "notNull": true - }, - "_locale": { - "name": "_locale", - "type": "_locales", - "typeSchema": "public", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "varchar", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "pages_blocks_video_block_locales_locale_parent_id_unique": { - "name": "pages_blocks_video_block_locales_locale_parent_id_unique", - "columns": [ - { - "expression": "_locale", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "pages_blocks_video_block_locales_parent_id_fk": { - "name": "pages_blocks_video_block_locales_parent_id_fk", - "tableFrom": "pages_blocks_video_block_locales", - "tableTo": "pages_blocks_video_block", - "columnsFrom": [ - "_parent_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.pages_blocks_posts_list_block": { - "name": "pages_blocks_posts_list_block", - "schema": "", - "columns": { - "_order": { - "name": "_order", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_path": { - "name": "_path", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "varchar", - "primaryKey": true, - "notNull": true - }, - "post_type": { - "name": "post_type", - "type": "enum_pages_blocks_posts_list_block_post_type", - "typeSchema": "public", - "primaryKey": false, - "notNull": true, - "default": "'blog'" - }, - "layout": { - "name": "layout", - "type": "enum_pages_blocks_posts_list_block_layout", - "typeSchema": "public", - "primaryKey": false, - "notNull": false, - "default": "'grid'" - }, - "columns": { - "name": "columns", - "type": "enum_pages_blocks_posts_list_block_columns", - "typeSchema": "public", - "primaryKey": false, - "notNull": false, - "default": "'3'" - }, - "limit": { - "name": "limit", - "type": "numeric", - "primaryKey": false, - "notNull": false, - "default": 6 - }, - "show_featured_only": { - "name": "show_featured_only", - "type": "boolean", - "primaryKey": false, - "notNull": false, - "default": false - }, - "show_excerpt": { - "name": "show_excerpt", - "type": "boolean", - "primaryKey": false, - "notNull": false, - "default": true - }, - "show_date": { - "name": "show_date", - "type": "boolean", - "primaryKey": false, - "notNull": false, - "default": true - }, - "show_author": { - "name": "show_author", - "type": "boolean", - "primaryKey": false, - "notNull": false, - "default": false - }, - "show_category": { - "name": "show_category", - "type": "boolean", - "primaryKey": false, - "notNull": false, - "default": true - }, - "show_pagination": { - "name": "show_pagination", - "type": "boolean", - "primaryKey": false, - "notNull": false, - "default": false - }, - "show_read_more": { - "name": "show_read_more", - "type": "boolean", - "primaryKey": false, - "notNull": false, - "default": true - }, - "read_more_link": { - "name": "read_more_link", - "type": "varchar", - "primaryKey": false, - "notNull": false, - "default": "'/blog'" - }, - "background_color": { - "name": "background_color", - "type": "enum_pages_blocks_posts_list_block_background_color", - "typeSchema": "public", - "primaryKey": false, - "notNull": false, - "default": "'white'" - }, - "block_name": { - "name": "block_name", - "type": "varchar", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "pages_blocks_posts_list_block_order_idx": { - "name": "pages_blocks_posts_list_block_order_idx", - "columns": [ - { - "expression": "_order", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "pages_blocks_posts_list_block_parent_id_idx": { - "name": "pages_blocks_posts_list_block_parent_id_idx", - "columns": [ - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "pages_blocks_posts_list_block_path_idx": { - "name": "pages_blocks_posts_list_block_path_idx", - "columns": [ - { - "expression": "_path", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "pages_blocks_posts_list_block_parent_id_fk": { - "name": "pages_blocks_posts_list_block_parent_id_fk", - "tableFrom": "pages_blocks_posts_list_block", - "tableTo": "pages", - "columnsFrom": [ - "_parent_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.pages_blocks_posts_list_block_locales": { - "name": "pages_blocks_posts_list_block_locales", - "schema": "", - "columns": { - "title": { - "name": "title", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "subtitle": { - "name": "subtitle", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "read_more_label": { - "name": "read_more_label", - "type": "varchar", - "primaryKey": false, - "notNull": false, - "default": "'Alle Beiträge anzeigen'" - }, - "id": { - "name": "id", - "type": "serial", - "primaryKey": true, - "notNull": true - }, - "_locale": { - "name": "_locale", - "type": "_locales", - "typeSchema": "public", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "varchar", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "pages_blocks_posts_list_block_locales_locale_parent_id_uniqu": { - "name": "pages_blocks_posts_list_block_locales_locale_parent_id_uniqu", - "columns": [ - { - "expression": "_locale", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "pages_blocks_posts_list_block_locales_parent_id_fk": { - "name": "pages_blocks_posts_list_block_locales_parent_id_fk", - "tableFrom": "pages_blocks_posts_list_block_locales", - "tableTo": "pages_blocks_posts_list_block", - "columnsFrom": [ - "_parent_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.pages_blocks_testimonials_block": { - "name": "pages_blocks_testimonials_block", - "schema": "", - "columns": { - "_order": { - "name": "_order", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_path": { - "name": "_path", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "varchar", - "primaryKey": true, - "notNull": true - }, - "layout": { - "name": "layout", - "type": "enum_pages_blocks_testimonials_block_layout", - "typeSchema": "public", - "primaryKey": false, - "notNull": false, - "default": "'slider'" - }, - "columns": { - "name": "columns", - "type": "enum_pages_blocks_testimonials_block_columns", - "typeSchema": "public", - "primaryKey": false, - "notNull": false, - "default": "'3'" - }, - "display_mode": { - "name": "display_mode", - "type": "enum_pages_blocks_testimonials_block_display_mode", - "typeSchema": "public", - "primaryKey": false, - "notNull": false, - "default": "'all'" - }, - "limit": { - "name": "limit", - "type": "numeric", - "primaryKey": false, - "notNull": false, - "default": 6 - }, - "show_rating": { - "name": "show_rating", - "type": "boolean", - "primaryKey": false, - "notNull": false, - "default": true - }, - "show_image": { - "name": "show_image", - "type": "boolean", - "primaryKey": false, - "notNull": false, - "default": true - }, - "show_company": { - "name": "show_company", - "type": "boolean", - "primaryKey": false, - "notNull": false, - "default": true - }, - "show_source": { - "name": "show_source", - "type": "boolean", - "primaryKey": false, - "notNull": false, - "default": false - }, - "autoplay": { - "name": "autoplay", - "type": "boolean", - "primaryKey": false, - "notNull": false, - "default": true - }, - "autoplay_speed": { - "name": "autoplay_speed", - "type": "numeric", - "primaryKey": false, - "notNull": false, - "default": 5000 - }, - "background_color": { - "name": "background_color", - "type": "enum_pages_blocks_testimonials_block_background_color", - "typeSchema": "public", - "primaryKey": false, - "notNull": false, - "default": "'light'" - }, - "block_name": { - "name": "block_name", - "type": "varchar", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "pages_blocks_testimonials_block_order_idx": { - "name": "pages_blocks_testimonials_block_order_idx", - "columns": [ - { - "expression": "_order", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "pages_blocks_testimonials_block_parent_id_idx": { - "name": "pages_blocks_testimonials_block_parent_id_idx", - "columns": [ - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "pages_blocks_testimonials_block_path_idx": { - "name": "pages_blocks_testimonials_block_path_idx", - "columns": [ - { - "expression": "_path", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "pages_blocks_testimonials_block_parent_id_fk": { - "name": "pages_blocks_testimonials_block_parent_id_fk", - "tableFrom": "pages_blocks_testimonials_block", - "tableTo": "pages", - "columnsFrom": [ - "_parent_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.pages_blocks_testimonials_block_locales": { - "name": "pages_blocks_testimonials_block_locales", - "schema": "", - "columns": { - "title": { - "name": "title", - "type": "varchar", - "primaryKey": false, - "notNull": false, - "default": "'Das sagen unsere Kunden'" - }, - "subtitle": { - "name": "subtitle", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "id": { - "name": "id", - "type": "serial", - "primaryKey": true, - "notNull": true - }, - "_locale": { - "name": "_locale", - "type": "_locales", - "typeSchema": "public", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "varchar", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "pages_blocks_testimonials_block_locales_locale_parent_id_uni": { - "name": "pages_blocks_testimonials_block_locales_locale_parent_id_uni", - "columns": [ - { - "expression": "_locale", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "pages_blocks_testimonials_block_locales_parent_id_fk": { - "name": "pages_blocks_testimonials_block_locales_parent_id_fk", - "tableFrom": "pages_blocks_testimonials_block_locales", - "tableTo": "pages_blocks_testimonials_block", - "columnsFrom": [ - "_parent_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.pages_blocks_newsletter_block_available_interests": { - "name": "pages_blocks_newsletter_block_available_interests", - "schema": "", - "columns": { - "order": { - "name": "order", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "parent_id": { - "name": "parent_id", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "value": { - "name": "value", - "type": "enum_pages_blocks_newsletter_block_available_interests", - "typeSchema": "public", - "primaryKey": false, - "notNull": false - }, - "id": { - "name": "id", - "type": "serial", - "primaryKey": true, - "notNull": true - } - }, - "indexes": { - "pages_blocks_newsletter_block_available_interests_order_idx": { - "name": "pages_blocks_newsletter_block_available_interests_order_idx", - "columns": [ - { - "expression": "order", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "pages_blocks_newsletter_block_available_interests_parent_idx": { - "name": "pages_blocks_newsletter_block_available_interests_parent_idx", - "columns": [ - { - "expression": "parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "pages_blocks_newsletter_block_available_interests_parent_fk": { - "name": "pages_blocks_newsletter_block_available_interests_parent_fk", - "tableFrom": "pages_blocks_newsletter_block_available_interests", - "tableTo": "pages_blocks_newsletter_block", - "columnsFrom": [ - "parent_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.pages_blocks_newsletter_block": { - "name": "pages_blocks_newsletter_block", - "schema": "", - "columns": { - "_order": { - "name": "_order", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_path": { - "name": "_path", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "varchar", - "primaryKey": true, - "notNull": true - }, - "layout": { - "name": "layout", - "type": "enum_pages_blocks_newsletter_block_layout", - "typeSchema": "public", - "primaryKey": false, - "notNull": false, - "default": "'inline'" - }, - "image_id": { - "name": "image_id", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "image_position": { - "name": "image_position", - "type": "enum_pages_blocks_newsletter_block_image_position", - "typeSchema": "public", - "primaryKey": false, - "notNull": false, - "default": "'left'" - }, - "collect_name": { - "name": "collect_name", - "type": "boolean", - "primaryKey": false, - "notNull": false, - "default": false - }, - "show_interests": { - "name": "show_interests", - "type": "boolean", - "primaryKey": false, - "notNull": false, - "default": false - }, - "privacy_link": { - "name": "privacy_link", - "type": "varchar", - "primaryKey": false, - "notNull": false, - "default": "'/datenschutz'" - }, - "source": { - "name": "source", - "type": "varchar", - "primaryKey": false, - "notNull": false, - "default": "'website'" - }, - "background_color": { - "name": "background_color", - "type": "enum_pages_blocks_newsletter_block_background_color", - "typeSchema": "public", - "primaryKey": false, - "notNull": false, - "default": "'accent'" - }, - "block_name": { - "name": "block_name", - "type": "varchar", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "pages_blocks_newsletter_block_order_idx": { - "name": "pages_blocks_newsletter_block_order_idx", - "columns": [ - { - "expression": "_order", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "pages_blocks_newsletter_block_parent_id_idx": { - "name": "pages_blocks_newsletter_block_parent_id_idx", - "columns": [ - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "pages_blocks_newsletter_block_path_idx": { - "name": "pages_blocks_newsletter_block_path_idx", - "columns": [ - { - "expression": "_path", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "pages_blocks_newsletter_block_image_idx": { - "name": "pages_blocks_newsletter_block_image_idx", - "columns": [ - { - "expression": "image_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "pages_blocks_newsletter_block_image_id_media_id_fk": { - "name": "pages_blocks_newsletter_block_image_id_media_id_fk", - "tableFrom": "pages_blocks_newsletter_block", - "tableTo": "media", - "columnsFrom": [ - "image_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "set null", - "onUpdate": "no action" - }, - "pages_blocks_newsletter_block_parent_id_fk": { - "name": "pages_blocks_newsletter_block_parent_id_fk", - "tableFrom": "pages_blocks_newsletter_block", - "tableTo": "pages", - "columnsFrom": [ - "_parent_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.pages_blocks_newsletter_block_locales": { - "name": "pages_blocks_newsletter_block_locales", - "schema": "", - "columns": { - "title": { - "name": "title", - "type": "varchar", - "primaryKey": false, - "notNull": false, - "default": "'Newsletter abonnieren'" - }, - "subtitle": { - "name": "subtitle", - "type": "varchar", - "primaryKey": false, - "notNull": false, - "default": "'Erhalten Sie regelmäßig Updates und Neuigkeiten direkt in Ihr Postfach.'" - }, - "button_text": { - "name": "button_text", - "type": "varchar", - "primaryKey": false, - "notNull": false, - "default": "'Anmelden'" - }, - "placeholder_email": { - "name": "placeholder_email", - "type": "varchar", - "primaryKey": false, - "notNull": false, - "default": "'Ihre E-Mail-Adresse'" - }, - "success_message": { - "name": "success_message", - "type": "varchar", - "primaryKey": false, - "notNull": false, - "default": "'Vielen Dank! Bitte bestätigen Sie Ihre E-Mail-Adresse über den Link in der Bestätigungsmail.'" - }, - "error_message": { - "name": "error_message", - "type": "varchar", - "primaryKey": false, - "notNull": false, - "default": "'Es ist ein Fehler aufgetreten. Bitte versuchen Sie es später erneut.'" - }, - "privacy_text": { - "name": "privacy_text", - "type": "varchar", - "primaryKey": false, - "notNull": false, - "default": "'Mit der Anmeldung akzeptieren Sie unsere Datenschutzerklärung. Sie können sich jederzeit abmelden.'" - }, - "id": { - "name": "id", - "type": "serial", - "primaryKey": true, - "notNull": true - }, - "_locale": { - "name": "_locale", - "type": "_locales", - "typeSchema": "public", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "varchar", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "pages_blocks_newsletter_block_locales_locale_parent_id_uniqu": { - "name": "pages_blocks_newsletter_block_locales_locale_parent_id_uniqu", - "columns": [ - { - "expression": "_locale", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "pages_blocks_newsletter_block_locales_parent_id_fk": { - "name": "pages_blocks_newsletter_block_locales_parent_id_fk", - "tableFrom": "pages_blocks_newsletter_block_locales", - "tableTo": "pages_blocks_newsletter_block", - "columnsFrom": [ - "_parent_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.pages_blocks_process_steps_block_steps": { - "name": "pages_blocks_process_steps_block_steps", - "schema": "", - "columns": { - "_order": { - "name": "_order", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "varchar", - "primaryKey": true, - "notNull": true - }, - "icon": { - "name": "icon", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "image_id": { - "name": "image_id", - "type": "integer", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "pages_blocks_process_steps_block_steps_order_idx": { - "name": "pages_blocks_process_steps_block_steps_order_idx", - "columns": [ - { - "expression": "_order", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "pages_blocks_process_steps_block_steps_parent_id_idx": { - "name": "pages_blocks_process_steps_block_steps_parent_id_idx", - "columns": [ - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "pages_blocks_process_steps_block_steps_image_idx": { - "name": "pages_blocks_process_steps_block_steps_image_idx", - "columns": [ - { - "expression": "image_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "pages_blocks_process_steps_block_steps_image_id_media_id_fk": { - "name": "pages_blocks_process_steps_block_steps_image_id_media_id_fk", - "tableFrom": "pages_blocks_process_steps_block_steps", - "tableTo": "media", - "columnsFrom": [ - "image_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "set null", - "onUpdate": "no action" - }, - "pages_blocks_process_steps_block_steps_parent_id_fk": { - "name": "pages_blocks_process_steps_block_steps_parent_id_fk", - "tableFrom": "pages_blocks_process_steps_block_steps", - "tableTo": "pages_blocks_process_steps_block", - "columnsFrom": [ - "_parent_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.pages_blocks_process_steps_block_steps_locales": { - "name": "pages_blocks_process_steps_block_steps_locales", - "schema": "", - "columns": { - "title": { - "name": "title", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "description": { - "name": "description", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "id": { - "name": "id", - "type": "serial", - "primaryKey": true, - "notNull": true - }, - "_locale": { - "name": "_locale", - "type": "_locales", - "typeSchema": "public", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "varchar", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "pages_blocks_process_steps_block_steps_locales_locale_parent": { - "name": "pages_blocks_process_steps_block_steps_locales_locale_parent", - "columns": [ - { - "expression": "_locale", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "pages_blocks_process_steps_block_steps_locales_parent_id_fk": { - "name": "pages_blocks_process_steps_block_steps_locales_parent_id_fk", - "tableFrom": "pages_blocks_process_steps_block_steps_locales", - "tableTo": "pages_blocks_process_steps_block_steps", - "columnsFrom": [ - "_parent_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.pages_blocks_process_steps_block": { - "name": "pages_blocks_process_steps_block", - "schema": "", - "columns": { - "_order": { - "name": "_order", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_path": { - "name": "_path", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "varchar", - "primaryKey": true, - "notNull": true - }, - "layout": { - "name": "layout", - "type": "enum_pages_blocks_process_steps_block_layout", - "typeSchema": "public", - "primaryKey": false, - "notNull": false, - "default": "'horizontal'" - }, - "show_numbers": { - "name": "show_numbers", - "type": "boolean", - "primaryKey": false, - "notNull": false, - "default": true - }, - "show_icons": { - "name": "show_icons", - "type": "boolean", - "primaryKey": false, - "notNull": false, - "default": true - }, - "cta_show": { - "name": "cta_show", - "type": "boolean", - "primaryKey": false, - "notNull": false, - "default": false - }, - "cta_href": { - "name": "cta_href", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "cta_variant": { - "name": "cta_variant", - "type": "enum_pages_blocks_process_steps_block_cta_variant", - "typeSchema": "public", - "primaryKey": false, - "notNull": false, - "default": "'default'" - }, - "background_color": { - "name": "background_color", - "type": "enum_pages_blocks_process_steps_block_background_color", - "typeSchema": "public", - "primaryKey": false, - "notNull": false, - "default": "'white'" - }, - "block_name": { - "name": "block_name", - "type": "varchar", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "pages_blocks_process_steps_block_order_idx": { - "name": "pages_blocks_process_steps_block_order_idx", - "columns": [ - { - "expression": "_order", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "pages_blocks_process_steps_block_parent_id_idx": { - "name": "pages_blocks_process_steps_block_parent_id_idx", - "columns": [ - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "pages_blocks_process_steps_block_path_idx": { - "name": "pages_blocks_process_steps_block_path_idx", - "columns": [ - { - "expression": "_path", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "pages_blocks_process_steps_block_parent_id_fk": { - "name": "pages_blocks_process_steps_block_parent_id_fk", - "tableFrom": "pages_blocks_process_steps_block", - "tableTo": "pages", - "columnsFrom": [ - "_parent_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.pages_blocks_process_steps_block_locales": { - "name": "pages_blocks_process_steps_block_locales", - "schema": "", - "columns": { - "title": { - "name": "title", - "type": "varchar", - "primaryKey": false, - "notNull": false, - "default": "'So funktioniert es'" - }, - "subtitle": { - "name": "subtitle", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "cta_label": { - "name": "cta_label", - "type": "varchar", - "primaryKey": false, - "notNull": false, - "default": "'Jetzt starten'" - }, - "id": { - "name": "id", - "type": "serial", - "primaryKey": true, - "notNull": true - }, - "_locale": { - "name": "_locale", - "type": "_locales", - "typeSchema": "public", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "varchar", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "pages_blocks_process_steps_block_locales_locale_parent_id_un": { - "name": "pages_blocks_process_steps_block_locales_locale_parent_id_un", - "columns": [ - { - "expression": "_locale", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "pages_blocks_process_steps_block_locales_parent_id_fk": { - "name": "pages_blocks_process_steps_block_locales_parent_id_fk", - "tableFrom": "pages_blocks_process_steps_block_locales", - "tableTo": "pages_blocks_process_steps_block", - "columnsFrom": [ - "_parent_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.pages": { - "name": "pages", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "serial", - "primaryKey": true, - "notNull": true - }, - "tenant_id": { - "name": "tenant_id", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "hero_image_id": { - "name": "hero_image_id", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "seo_og_image_id": { - "name": "seo_og_image_id", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "status": { - "name": "status", - "type": "enum_pages_status", - "typeSchema": "public", - "primaryKey": false, - "notNull": false, - "default": "'draft'" - }, - "published_at": { - "name": "published_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "created_at": { - "name": "created_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - } - }, - "indexes": { - "pages_tenant_idx": { - "name": "pages_tenant_idx", - "columns": [ - { - "expression": "tenant_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "pages_hero_hero_image_idx": { - "name": "pages_hero_hero_image_idx", - "columns": [ - { - "expression": "hero_image_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "pages_seo_seo_og_image_idx": { - "name": "pages_seo_seo_og_image_idx", - "columns": [ - { - "expression": "seo_og_image_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "pages_updated_at_idx": { - "name": "pages_updated_at_idx", - "columns": [ - { - "expression": "updated_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "pages_created_at_idx": { - "name": "pages_created_at_idx", - "columns": [ - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "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" - }, - "pages_hero_image_id_media_id_fk": { - "name": "pages_hero_image_id_media_id_fk", - "tableFrom": "pages", - "tableTo": "media", - "columnsFrom": [ - "hero_image_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "set null", - "onUpdate": "no action" - }, - "pages_seo_og_image_id_media_id_fk": { - "name": "pages_seo_og_image_id_media_id_fk", - "tableFrom": "pages", - "tableTo": "media", - "columnsFrom": [ - "seo_og_image_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "set null", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.pages_locales": { - "name": "pages_locales", - "schema": "", - "columns": { - "title": { - "name": "title", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "slug": { - "name": "slug", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "hero_headline": { - "name": "hero_headline", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "hero_subline": { - "name": "hero_subline", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "seo_meta_title": { - "name": "seo_meta_title", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "seo_meta_description": { - "name": "seo_meta_description", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "id": { - "name": "id", - "type": "serial", - "primaryKey": true, - "notNull": true - }, - "_locale": { - "name": "_locale", - "type": "_locales", - "typeSchema": "public", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "integer", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "pages_locales_locale_parent_id_unique": { - "name": "pages_locales_locale_parent_id_unique", - "columns": [ - { - "expression": "_locale", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "pages_locales_parent_id_fk": { - "name": "pages_locales_parent_id_fk", - "tableFrom": "pages_locales", - "tableTo": "pages", - "columnsFrom": [ - "_parent_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.pages_rels": { - "name": "pages_rels", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "serial", - "primaryKey": true, - "notNull": true - }, - "order": { - "name": "order", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "parent_id": { - "name": "parent_id", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "path": { - "name": "path", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "categories_id": { - "name": "categories_id", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "testimonials_id": { - "name": "testimonials_id", - "type": "integer", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "pages_rels_order_idx": { - "name": "pages_rels_order_idx", - "columns": [ - { - "expression": "order", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "pages_rels_parent_idx": { - "name": "pages_rels_parent_idx", - "columns": [ - { - "expression": "parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "pages_rels_path_idx": { - "name": "pages_rels_path_idx", - "columns": [ - { - "expression": "path", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "pages_rels_categories_id_idx": { - "name": "pages_rels_categories_id_idx", - "columns": [ - { - "expression": "categories_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "pages_rels_testimonials_id_idx": { - "name": "pages_rels_testimonials_id_idx", - "columns": [ - { - "expression": "testimonials_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "pages_rels_parent_fk": { - "name": "pages_rels_parent_fk", - "tableFrom": "pages_rels", - "tableTo": "pages", - "columnsFrom": [ - "parent_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - }, - "pages_rels_categories_fk": { - "name": "pages_rels_categories_fk", - "tableFrom": "pages_rels", - "tableTo": "categories", - "columnsFrom": [ - "categories_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - }, - "pages_rels_testimonials_fk": { - "name": "pages_rels_testimonials_fk", - "tableFrom": "pages_rels", - "tableTo": "testimonials", - "columnsFrom": [ - "testimonials_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.posts": { - "name": "posts", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "serial", - "primaryKey": true, - "notNull": true - }, - "tenant_id": { - "name": "tenant_id", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "type": { - "name": "type", - "type": "enum_posts_type", - "typeSchema": "public", - "primaryKey": false, - "notNull": true, - "default": "'blog'" - }, - "is_featured": { - "name": "is_featured", - "type": "boolean", - "primaryKey": false, - "notNull": false, - "default": false - }, - "featured_image_id": { - "name": "featured_image_id", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "author": { - "name": "author", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "status": { - "name": "status", - "type": "enum_posts_status", - "typeSchema": "public", - "primaryKey": false, - "notNull": false, - "default": "'draft'" - }, - "published_at": { - "name": "published_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": false - }, - "seo_og_image_id": { - "name": "seo_og_image_id", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "created_at": { - "name": "created_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - } - }, - "indexes": { - "posts_tenant_idx": { - "name": "posts_tenant_idx", - "columns": [ - { - "expression": "tenant_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "posts_featured_image_idx": { - "name": "posts_featured_image_idx", - "columns": [ - { - "expression": "featured_image_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "posts_seo_seo_og_image_idx": { - "name": "posts_seo_seo_og_image_idx", - "columns": [ - { - "expression": "seo_og_image_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "posts_updated_at_idx": { - "name": "posts_updated_at_idx", - "columns": [ - { - "expression": "updated_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "posts_created_at_idx": { - "name": "posts_created_at_idx", - "columns": [ - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "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" - }, - "posts_seo_og_image_id_media_id_fk": { - "name": "posts_seo_og_image_id_media_id_fk", - "tableFrom": "posts", - "tableTo": "media", - "columnsFrom": [ - "seo_og_image_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "set null", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.posts_locales": { - "name": "posts_locales", - "schema": "", - "columns": { - "title": { - "name": "title", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "slug": { - "name": "slug", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "excerpt": { - "name": "excerpt", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "content": { - "name": "content", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "seo_meta_title": { - "name": "seo_meta_title", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "seo_meta_description": { - "name": "seo_meta_description", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "id": { - "name": "id", - "type": "serial", - "primaryKey": true, - "notNull": true - }, - "_locale": { - "name": "_locale", - "type": "_locales", - "typeSchema": "public", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "integer", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "posts_locales_locale_parent_id_unique": { - "name": "posts_locales_locale_parent_id_unique", - "columns": [ - { - "expression": "_locale", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "posts_locales_parent_id_fk": { - "name": "posts_locales_parent_id_fk", - "tableFrom": "posts_locales", - "tableTo": "posts", - "columnsFrom": [ - "_parent_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.posts_rels": { - "name": "posts_rels", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "serial", - "primaryKey": true, - "notNull": true - }, - "order": { - "name": "order", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "parent_id": { - "name": "parent_id", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "path": { - "name": "path", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "categories_id": { - "name": "categories_id", - "type": "integer", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "posts_rels_order_idx": { - "name": "posts_rels_order_idx", - "columns": [ - { - "expression": "order", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "posts_rels_parent_idx": { - "name": "posts_rels_parent_idx", - "columns": [ - { - "expression": "parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "posts_rels_path_idx": { - "name": "posts_rels_path_idx", - "columns": [ - { - "expression": "path", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "posts_rels_categories_id_idx": { - "name": "posts_rels_categories_id_idx", - "columns": [ - { - "expression": "categories_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "posts_rels_parent_fk": { - "name": "posts_rels_parent_fk", - "tableFrom": "posts_rels", - "tableTo": "posts", - "columnsFrom": [ - "parent_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - }, - "posts_rels_categories_fk": { - "name": "posts_rels_categories_fk", - "tableFrom": "posts_rels", - "tableTo": "categories", - "columnsFrom": [ - "categories_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.categories": { - "name": "categories", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "serial", - "primaryKey": true, - "notNull": true - }, - "tenant_id": { - "name": "tenant_id", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "created_at": { - "name": "created_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - } - }, - "indexes": { - "categories_tenant_idx": { - "name": "categories_tenant_idx", - "columns": [ - { - "expression": "tenant_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "categories_updated_at_idx": { - "name": "categories_updated_at_idx", - "columns": [ - { - "expression": "updated_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "categories_created_at_idx": { - "name": "categories_created_at_idx", - "columns": [ - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "categories_tenant_id_tenants_id_fk": { - "name": "categories_tenant_id_tenants_id_fk", - "tableFrom": "categories", - "tableTo": "tenants", - "columnsFrom": [ - "tenant_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "set null", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.categories_locales": { - "name": "categories_locales", - "schema": "", - "columns": { - "name": { - "name": "name", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "slug": { - "name": "slug", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "description": { - "name": "description", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "id": { - "name": "id", - "type": "serial", - "primaryKey": true, - "notNull": true - }, - "_locale": { - "name": "_locale", - "type": "_locales", - "typeSchema": "public", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "integer", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "categories_locales_locale_parent_id_unique": { - "name": "categories_locales_locale_parent_id_unique", - "columns": [ - { - "expression": "_locale", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "categories_locales_parent_id_fk": { - "name": "categories_locales_parent_id_fk", - "tableFrom": "categories_locales", - "tableTo": "categories", - "columnsFrom": [ - "_parent_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.social_links": { - "name": "social_links", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "serial", - "primaryKey": true, - "notNull": true - }, - "tenant_id": { - "name": "tenant_id", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "platform": { - "name": "platform", - "type": "enum_social_links_platform", - "typeSchema": "public", - "primaryKey": false, - "notNull": true - }, - "url": { - "name": "url", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "is_active": { - "name": "is_active", - "type": "boolean", - "primaryKey": false, - "notNull": false, - "default": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "created_at": { - "name": "created_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - } - }, - "indexes": { - "social_links_tenant_idx": { - "name": "social_links_tenant_idx", - "columns": [ - { - "expression": "tenant_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "social_links_updated_at_idx": { - "name": "social_links_updated_at_idx", - "columns": [ - { - "expression": "updated_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "social_links_created_at_idx": { - "name": "social_links_created_at_idx", - "columns": [ - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "social_links_tenant_id_tenants_id_fk": { - "name": "social_links_tenant_id_tenants_id_fk", - "tableFrom": "social_links", - "tableTo": "tenants", - "columnsFrom": [ - "tenant_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "set null", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.testimonials": { - "name": "testimonials", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "serial", - "primaryKey": true, - "notNull": true - }, - "tenant_id": { - "name": "tenant_id", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "author": { - "name": "author", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "company": { - "name": "company", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "image_id": { - "name": "image_id", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "rating": { - "name": "rating", - "type": "numeric", - "primaryKey": false, - "notNull": false - }, - "source": { - "name": "source", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "source_url": { - "name": "source_url", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "date": { - "name": "date", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": false - }, - "is_active": { - "name": "is_active", - "type": "boolean", - "primaryKey": false, - "notNull": false, - "default": true - }, - "order": { - "name": "order", - "type": "numeric", - "primaryKey": false, - "notNull": false, - "default": 0 - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "created_at": { - "name": "created_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - } - }, - "indexes": { - "testimonials_tenant_idx": { - "name": "testimonials_tenant_idx", - "columns": [ - { - "expression": "tenant_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "testimonials_image_idx": { - "name": "testimonials_image_idx", - "columns": [ - { - "expression": "image_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "testimonials_updated_at_idx": { - "name": "testimonials_updated_at_idx", - "columns": [ - { - "expression": "updated_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "testimonials_created_at_idx": { - "name": "testimonials_created_at_idx", - "columns": [ - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "testimonials_tenant_id_tenants_id_fk": { - "name": "testimonials_tenant_id_tenants_id_fk", - "tableFrom": "testimonials", - "tableTo": "tenants", - "columnsFrom": [ - "tenant_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "set null", - "onUpdate": "no action" - }, - "testimonials_image_id_media_id_fk": { - "name": "testimonials_image_id_media_id_fk", - "tableFrom": "testimonials", - "tableTo": "media", - "columnsFrom": [ - "image_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "set null", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.testimonials_locales": { - "name": "testimonials_locales", - "schema": "", - "columns": { - "quote": { - "name": "quote", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "role": { - "name": "role", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "id": { - "name": "id", - "type": "serial", - "primaryKey": true, - "notNull": true - }, - "_locale": { - "name": "_locale", - "type": "_locales", - "typeSchema": "public", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "integer", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "testimonials_locales_locale_parent_id_unique": { - "name": "testimonials_locales_locale_parent_id_unique", - "columns": [ - { - "expression": "_locale", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "testimonials_locales_parent_id_fk": { - "name": "testimonials_locales_parent_id_fk", - "tableFrom": "testimonials_locales", - "tableTo": "testimonials", - "columnsFrom": [ - "_parent_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.newsletter_subscribers_interests": { - "name": "newsletter_subscribers_interests", - "schema": "", - "columns": { - "order": { - "name": "order", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "parent_id": { - "name": "parent_id", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "value": { - "name": "value", - "type": "enum_newsletter_subscribers_interests", - "typeSchema": "public", - "primaryKey": false, - "notNull": false - }, - "id": { - "name": "id", - "type": "serial", - "primaryKey": true, - "notNull": true - } - }, - "indexes": { - "newsletter_subscribers_interests_order_idx": { - "name": "newsletter_subscribers_interests_order_idx", - "columns": [ - { - "expression": "order", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "newsletter_subscribers_interests_parent_idx": { - "name": "newsletter_subscribers_interests_parent_idx", - "columns": [ - { - "expression": "parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "newsletter_subscribers_interests_parent_fk": { - "name": "newsletter_subscribers_interests_parent_fk", - "tableFrom": "newsletter_subscribers_interests", - "tableTo": "newsletter_subscribers", - "columnsFrom": [ - "parent_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.newsletter_subscribers": { - "name": "newsletter_subscribers", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "serial", - "primaryKey": true, - "notNull": true - }, - "tenant_id": { - "name": "tenant_id", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "email": { - "name": "email", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "first_name": { - "name": "first_name", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "last_name": { - "name": "last_name", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "status": { - "name": "status", - "type": "enum_newsletter_subscribers_status", - "typeSchema": "public", - "primaryKey": false, - "notNull": true, - "default": "'pending'" - }, - "source": { - "name": "source", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "subscribed_at": { - "name": "subscribed_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": false - }, - "confirmed_at": { - "name": "confirmed_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": false - }, - "unsubscribed_at": { - "name": "unsubscribed_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": false - }, - "confirmation_token": { - "name": "confirmation_token", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "ip_address": { - "name": "ip_address", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "user_agent": { - "name": "user_agent", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "created_at": { - "name": "created_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - } - }, - "indexes": { - "newsletter_subscribers_tenant_idx": { - "name": "newsletter_subscribers_tenant_idx", - "columns": [ - { - "expression": "tenant_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "newsletter_subscribers_updated_at_idx": { - "name": "newsletter_subscribers_updated_at_idx", - "columns": [ - { - "expression": "updated_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "newsletter_subscribers_created_at_idx": { - "name": "newsletter_subscribers_created_at_idx", - "columns": [ - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "newsletter_subscribers_tenant_id_tenants_id_fk": { - "name": "newsletter_subscribers_tenant_id_tenants_id_fk", - "tableFrom": "newsletter_subscribers", - "tableTo": "tenants", - "columnsFrom": [ - "tenant_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "set null", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.cookie_configurations_enabled_categories": { - "name": "cookie_configurations_enabled_categories", - "schema": "", - "columns": { - "order": { - "name": "order", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "parent_id": { - "name": "parent_id", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "value": { - "name": "value", - "type": "enum_cookie_configurations_enabled_categories", - "typeSchema": "public", - "primaryKey": false, - "notNull": false - }, - "id": { - "name": "id", - "type": "serial", - "primaryKey": true, - "notNull": true - } - }, - "indexes": { - "cookie_configurations_enabled_categories_order_idx": { - "name": "cookie_configurations_enabled_categories_order_idx", - "columns": [ - { - "expression": "order", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "cookie_configurations_enabled_categories_parent_idx": { - "name": "cookie_configurations_enabled_categories_parent_idx", - "columns": [ - { - "expression": "parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "cookie_configurations_enabled_categories_parent_fk": { - "name": "cookie_configurations_enabled_categories_parent_fk", - "tableFrom": "cookie_configurations_enabled_categories", - "tableTo": "cookie_configurations", - "columnsFrom": [ - "parent_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.cookie_configurations": { - "name": "cookie_configurations", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "serial", - "primaryKey": true, - "notNull": true - }, - "tenant_id": { - "name": "tenant_id", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "title": { - "name": "title", - "type": "varchar", - "primaryKey": false, - "notNull": true, - "default": "'Cookie-Einstellungen'" - }, - "revision": { - "name": "revision", - "type": "numeric", - "primaryKey": false, - "notNull": true, - "default": 1 - }, - "translations_de_banner_title": { - "name": "translations_de_banner_title", - "type": "varchar", - "primaryKey": false, - "notNull": false, - "default": "'Wir respektieren Ihre Privatsphäre'" - }, - "translations_de_banner_description": { - "name": "translations_de_banner_description", - "type": "varchar", - "primaryKey": false, - "notNull": false, - "default": "'Diese Website verwendet Cookies, um Ihnen die bestmögliche Erfahrung zu bieten.'" - }, - "translations_de_accept_all_button": { - "name": "translations_de_accept_all_button", - "type": "varchar", - "primaryKey": false, - "notNull": false, - "default": "'Alle akzeptieren'" - }, - "translations_de_accept_necessary_button": { - "name": "translations_de_accept_necessary_button", - "type": "varchar", - "primaryKey": false, - "notNull": false, - "default": "'Nur notwendige'" - }, - "translations_de_settings_button": { - "name": "translations_de_settings_button", - "type": "varchar", - "primaryKey": false, - "notNull": false, - "default": "'Einstellungen'" - }, - "translations_de_save_button": { - "name": "translations_de_save_button", - "type": "varchar", - "primaryKey": false, - "notNull": false, - "default": "'Auswahl speichern'" - }, - "translations_de_privacy_policy_url": { - "name": "translations_de_privacy_policy_url", - "type": "varchar", - "primaryKey": false, - "notNull": false, - "default": "'/datenschutz'" - }, - "translations_de_category_labels_necessary_title": { - "name": "translations_de_category_labels_necessary_title", - "type": "varchar", - "primaryKey": false, - "notNull": false, - "default": "'Notwendig'" - }, - "translations_de_category_labels_necessary_description": { - "name": "translations_de_category_labels_necessary_description", - "type": "varchar", - "primaryKey": false, - "notNull": false, - "default": "'Diese Cookies sind für die Grundfunktionen der Website erforderlich.'" - }, - "translations_de_category_labels_functional_title": { - "name": "translations_de_category_labels_functional_title", - "type": "varchar", - "primaryKey": false, - "notNull": false, - "default": "'Funktional'" - }, - "translations_de_category_labels_functional_description": { - "name": "translations_de_category_labels_functional_description", - "type": "varchar", - "primaryKey": false, - "notNull": false, - "default": "'Diese Cookies ermöglichen erweiterte Funktionen.'" - }, - "translations_de_category_labels_analytics_title": { - "name": "translations_de_category_labels_analytics_title", - "type": "varchar", - "primaryKey": false, - "notNull": false, - "default": "'Statistik'" - }, - "translations_de_category_labels_analytics_description": { - "name": "translations_de_category_labels_analytics_description", - "type": "varchar", - "primaryKey": false, - "notNull": false, - "default": "'Diese Cookies helfen uns zu verstehen, wie Besucher die Website nutzen.'" - }, - "translations_de_category_labels_marketing_title": { - "name": "translations_de_category_labels_marketing_title", - "type": "varchar", - "primaryKey": false, - "notNull": false, - "default": "'Marketing'" - }, - "translations_de_category_labels_marketing_description": { - "name": "translations_de_category_labels_marketing_description", - "type": "varchar", - "primaryKey": false, - "notNull": false, - "default": "'Diese Cookies werden für Werbezwecke verwendet.'" - }, - "styling_position": { - "name": "styling_position", - "type": "enum_cookie_configurations_styling_position", - "typeSchema": "public", - "primaryKey": false, - "notNull": false, - "default": "'bottom'" - }, - "styling_theme": { - "name": "styling_theme", - "type": "enum_cookie_configurations_styling_theme", - "typeSchema": "public", - "primaryKey": false, - "notNull": false, - "default": "'dark'" - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "created_at": { - "name": "created_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - } - }, - "indexes": { - "cookie_configurations_tenant_idx": { - "name": "cookie_configurations_tenant_idx", - "columns": [ - { - "expression": "tenant_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "cookie_configurations_updated_at_idx": { - "name": "cookie_configurations_updated_at_idx", - "columns": [ - { - "expression": "updated_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "cookie_configurations_created_at_idx": { - "name": "cookie_configurations_created_at_idx", - "columns": [ - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "cookie_configurations_tenant_id_tenants_id_fk": { - "name": "cookie_configurations_tenant_id_tenants_id_fk", - "tableFrom": "cookie_configurations", - "tableTo": "tenants", - "columnsFrom": [ - "tenant_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "set null", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.cookie_inventory": { - "name": "cookie_inventory", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "serial", - "primaryKey": true, - "notNull": true - }, - "tenant_id": { - "name": "tenant_id", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "category": { - "name": "category", - "type": "enum_cookie_inventory_category", - "typeSchema": "public", - "primaryKey": false, - "notNull": true - }, - "duration": { - "name": "duration", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "description": { - "name": "description", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "is_active": { - "name": "is_active", - "type": "boolean", - "primaryKey": false, - "notNull": false, - "default": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "created_at": { - "name": "created_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - } - }, - "indexes": { - "cookie_inventory_tenant_idx": { - "name": "cookie_inventory_tenant_idx", - "columns": [ - { - "expression": "tenant_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "cookie_inventory_updated_at_idx": { - "name": "cookie_inventory_updated_at_idx", - "columns": [ - { - "expression": "updated_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "cookie_inventory_created_at_idx": { - "name": "cookie_inventory_created_at_idx", - "columns": [ - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "cookie_inventory_tenant_id_tenants_id_fk": { - "name": "cookie_inventory_tenant_id_tenants_id_fk", - "tableFrom": "cookie_inventory", - "tableTo": "tenants", - "columnsFrom": [ - "tenant_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "set null", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.consent_logs": { - "name": "consent_logs", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "serial", - "primaryKey": true, - "notNull": true - }, - "consent_id": { - "name": "consent_id", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "client_ref": { - "name": "client_ref", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "tenant_id": { - "name": "tenant_id", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "categories": { - "name": "categories", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "revision": { - "name": "revision", - "type": "numeric", - "primaryKey": false, - "notNull": true - }, - "user_agent": { - "name": "user_agent", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "anonymized_ip": { - "name": "anonymized_ip", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "expires_at": { - "name": "expires_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "created_at": { - "name": "created_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - } - }, - "indexes": { - "consent_logs_consent_id_idx": { - "name": "consent_logs_consent_id_idx", - "columns": [ - { - "expression": "consent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "consent_logs_tenant_idx": { - "name": "consent_logs_tenant_idx", - "columns": [ - { - "expression": "tenant_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "consent_logs_updated_at_idx": { - "name": "consent_logs_updated_at_idx", - "columns": [ - { - "expression": "updated_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "consent_logs_created_at_idx": { - "name": "consent_logs_created_at_idx", - "columns": [ - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "consent_logs_tenant_id_tenants_id_fk": { - "name": "consent_logs_tenant_id_tenants_id_fk", - "tableFrom": "consent_logs", - "tableTo": "tenants", - "columnsFrom": [ - "tenant_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "set null", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.privacy_policy_settings": { - "name": "privacy_policy_settings", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "serial", - "primaryKey": true, - "notNull": true - }, - "tenant_id": { - "name": "tenant_id", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "title": { - "name": "title", - "type": "varchar", - "primaryKey": false, - "notNull": true, - "default": "'Datenschutzerklärung'" - }, - "provider": { - "name": "provider", - "type": "enum_privacy_policy_settings_provider", - "typeSchema": "public", - "primaryKey": false, - "notNull": true, - "default": "'alfright'" - }, - "alfright_tenant_id": { - "name": "alfright_tenant_id", - "type": "varchar", - "primaryKey": false, - "notNull": false, - "default": "'alfright_schutzteam'" - }, - "alfright_api_key": { - "name": "alfright_api_key", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "alfright_language": { - "name": "alfright_language", - "type": "enum_privacy_policy_settings_alfright_language", - "typeSchema": "public", - "primaryKey": false, - "notNull": false, - "default": "'de-de'" - }, - "alfright_iframe_height": { - "name": "alfright_iframe_height", - "type": "numeric", - "primaryKey": false, - "notNull": false, - "default": 4000 - }, - "styling_header_color": { - "name": "styling_header_color", - "type": "varchar", - "primaryKey": false, - "notNull": false, - "default": "'#ca8a04'" - }, - "styling_header_font": { - "name": "styling_header_font", - "type": "varchar", - "primaryKey": false, - "notNull": false, - "default": "'Inter, sans-serif'" - }, - "styling_header_size": { - "name": "styling_header_size", - "type": "varchar", - "primaryKey": false, - "notNull": false, - "default": "'24px'" - }, - "styling_subheader_size": { - "name": "styling_subheader_size", - "type": "varchar", - "primaryKey": false, - "notNull": false, - "default": "'18px'" - }, - "styling_font_color": { - "name": "styling_font_color", - "type": "varchar", - "primaryKey": false, - "notNull": false, - "default": "'#f3f4f6'" - }, - "styling_text_font": { - "name": "styling_text_font", - "type": "varchar", - "primaryKey": false, - "notNull": false, - "default": "'Inter, sans-serif'" - }, - "styling_text_size": { - "name": "styling_text_size", - "type": "varchar", - "primaryKey": false, - "notNull": false, - "default": "'16px'" - }, - "styling_link_color": { - "name": "styling_link_color", - "type": "varchar", - "primaryKey": false, - "notNull": false, - "default": "'#ca8a04'" - }, - "styling_background_color": { - "name": "styling_background_color", - "type": "varchar", - "primaryKey": false, - "notNull": false, - "default": "'#111827'" - }, - "show_cookie_table": { - "name": "show_cookie_table", - "type": "boolean", - "primaryKey": false, - "notNull": false, - "default": true - }, - "cookie_table_title": { - "name": "cookie_table_title", - "type": "varchar", - "primaryKey": false, - "notNull": false, - "default": "'Übersicht der verwendeten Cookies'" - }, - "cookie_table_description": { - "name": "cookie_table_description", - "type": "varchar", - "primaryKey": false, - "notNull": false, - "default": "'Ergänzend zur Datenschutzerklärung finden Sie hier eine detaillierte Übersicht aller auf dieser Website eingesetzten Cookies. Sie können Ihre Cookie-Einstellungen jederzeit über den Link \"Cookie-Einstellungen\" im Footer anpassen.'" - }, - "seo_meta_title": { - "name": "seo_meta_title", - "type": "varchar", - "primaryKey": false, - "notNull": false, - "default": "'Datenschutzerklärung'" - }, - "seo_meta_description": { - "name": "seo_meta_description", - "type": "varchar", - "primaryKey": false, - "notNull": false, - "default": "'Informationen zum Datenschutz und zur Verarbeitung Ihrer personenbezogenen Daten.'" - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "created_at": { - "name": "created_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - } - }, - "indexes": { - "privacy_policy_settings_tenant_idx": { - "name": "privacy_policy_settings_tenant_idx", - "columns": [ - { - "expression": "tenant_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "privacy_policy_settings_updated_at_idx": { - "name": "privacy_policy_settings_updated_at_idx", - "columns": [ - { - "expression": "updated_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "privacy_policy_settings_created_at_idx": { - "name": "privacy_policy_settings_created_at_idx", - "columns": [ - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "privacy_policy_settings_tenant_id_tenants_id_fk": { - "name": "privacy_policy_settings_tenant_id_tenants_id_fk", - "tableFrom": "privacy_policy_settings", - "tableTo": "tenants", - "columnsFrom": [ - "tenant_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "set null", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.forms_blocks_checkbox": { - "name": "forms_blocks_checkbox", - "schema": "", - "columns": { - "_order": { - "name": "_order", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_path": { - "name": "_path", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "varchar", - "primaryKey": true, - "notNull": true - }, - "name": { - "name": "name", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "width": { - "name": "width", - "type": "numeric", - "primaryKey": false, - "notNull": false - }, - "required": { - "name": "required", - "type": "boolean", - "primaryKey": false, - "notNull": false - }, - "default_value": { - "name": "default_value", - "type": "boolean", - "primaryKey": false, - "notNull": false - }, - "block_name": { - "name": "block_name", - "type": "varchar", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "forms_blocks_checkbox_order_idx": { - "name": "forms_blocks_checkbox_order_idx", - "columns": [ - { - "expression": "_order", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "forms_blocks_checkbox_parent_id_idx": { - "name": "forms_blocks_checkbox_parent_id_idx", - "columns": [ - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "forms_blocks_checkbox_path_idx": { - "name": "forms_blocks_checkbox_path_idx", - "columns": [ - { - "expression": "_path", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "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": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.forms_blocks_checkbox_locales": { - "name": "forms_blocks_checkbox_locales", - "schema": "", - "columns": { - "label": { - "name": "label", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "id": { - "name": "id", - "type": "serial", - "primaryKey": true, - "notNull": true - }, - "_locale": { - "name": "_locale", - "type": "_locales", - "typeSchema": "public", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "varchar", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "forms_blocks_checkbox_locales_locale_parent_id_unique": { - "name": "forms_blocks_checkbox_locales_locale_parent_id_unique", - "columns": [ - { - "expression": "_locale", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "forms_blocks_checkbox_locales_parent_id_fk": { - "name": "forms_blocks_checkbox_locales_parent_id_fk", - "tableFrom": "forms_blocks_checkbox_locales", - "tableTo": "forms_blocks_checkbox", - "columnsFrom": [ - "_parent_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.forms_blocks_email": { - "name": "forms_blocks_email", - "schema": "", - "columns": { - "_order": { - "name": "_order", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_path": { - "name": "_path", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "varchar", - "primaryKey": true, - "notNull": true - }, - "name": { - "name": "name", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "width": { - "name": "width", - "type": "numeric", - "primaryKey": false, - "notNull": false - }, - "required": { - "name": "required", - "type": "boolean", - "primaryKey": false, - "notNull": false - }, - "block_name": { - "name": "block_name", - "type": "varchar", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "forms_blocks_email_order_idx": { - "name": "forms_blocks_email_order_idx", - "columns": [ - { - "expression": "_order", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "forms_blocks_email_parent_id_idx": { - "name": "forms_blocks_email_parent_id_idx", - "columns": [ - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "forms_blocks_email_path_idx": { - "name": "forms_blocks_email_path_idx", - "columns": [ - { - "expression": "_path", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "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": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.forms_blocks_email_locales": { - "name": "forms_blocks_email_locales", - "schema": "", - "columns": { - "label": { - "name": "label", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "id": { - "name": "id", - "type": "serial", - "primaryKey": true, - "notNull": true - }, - "_locale": { - "name": "_locale", - "type": "_locales", - "typeSchema": "public", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "varchar", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "forms_blocks_email_locales_locale_parent_id_unique": { - "name": "forms_blocks_email_locales_locale_parent_id_unique", - "columns": [ - { - "expression": "_locale", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "forms_blocks_email_locales_parent_id_fk": { - "name": "forms_blocks_email_locales_parent_id_fk", - "tableFrom": "forms_blocks_email_locales", - "tableTo": "forms_blocks_email", - "columnsFrom": [ - "_parent_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.forms_blocks_message": { - "name": "forms_blocks_message", - "schema": "", - "columns": { - "_order": { - "name": "_order", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_path": { - "name": "_path", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "varchar", - "primaryKey": true, - "notNull": true - }, - "block_name": { - "name": "block_name", - "type": "varchar", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "forms_blocks_message_order_idx": { - "name": "forms_blocks_message_order_idx", - "columns": [ - { - "expression": "_order", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "forms_blocks_message_parent_id_idx": { - "name": "forms_blocks_message_parent_id_idx", - "columns": [ - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "forms_blocks_message_path_idx": { - "name": "forms_blocks_message_path_idx", - "columns": [ - { - "expression": "_path", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "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": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.forms_blocks_message_locales": { - "name": "forms_blocks_message_locales", - "schema": "", - "columns": { - "message": { - "name": "message", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "id": { - "name": "id", - "type": "serial", - "primaryKey": true, - "notNull": true - }, - "_locale": { - "name": "_locale", - "type": "_locales", - "typeSchema": "public", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "varchar", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "forms_blocks_message_locales_locale_parent_id_unique": { - "name": "forms_blocks_message_locales_locale_parent_id_unique", - "columns": [ - { - "expression": "_locale", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "forms_blocks_message_locales_parent_id_fk": { - "name": "forms_blocks_message_locales_parent_id_fk", - "tableFrom": "forms_blocks_message_locales", - "tableTo": "forms_blocks_message", - "columnsFrom": [ - "_parent_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.forms_blocks_number": { - "name": "forms_blocks_number", - "schema": "", - "columns": { - "_order": { - "name": "_order", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_path": { - "name": "_path", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "varchar", - "primaryKey": true, - "notNull": true - }, - "name": { - "name": "name", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "width": { - "name": "width", - "type": "numeric", - "primaryKey": false, - "notNull": false - }, - "default_value": { - "name": "default_value", - "type": "numeric", - "primaryKey": false, - "notNull": false - }, - "required": { - "name": "required", - "type": "boolean", - "primaryKey": false, - "notNull": false - }, - "block_name": { - "name": "block_name", - "type": "varchar", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "forms_blocks_number_order_idx": { - "name": "forms_blocks_number_order_idx", - "columns": [ - { - "expression": "_order", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "forms_blocks_number_parent_id_idx": { - "name": "forms_blocks_number_parent_id_idx", - "columns": [ - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "forms_blocks_number_path_idx": { - "name": "forms_blocks_number_path_idx", - "columns": [ - { - "expression": "_path", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "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": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.forms_blocks_number_locales": { - "name": "forms_blocks_number_locales", - "schema": "", - "columns": { - "label": { - "name": "label", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "id": { - "name": "id", - "type": "serial", - "primaryKey": true, - "notNull": true - }, - "_locale": { - "name": "_locale", - "type": "_locales", - "typeSchema": "public", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "varchar", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "forms_blocks_number_locales_locale_parent_id_unique": { - "name": "forms_blocks_number_locales_locale_parent_id_unique", - "columns": [ - { - "expression": "_locale", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "forms_blocks_number_locales_parent_id_fk": { - "name": "forms_blocks_number_locales_parent_id_fk", - "tableFrom": "forms_blocks_number_locales", - "tableTo": "forms_blocks_number", - "columnsFrom": [ - "_parent_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.forms_blocks_select_options": { - "name": "forms_blocks_select_options", - "schema": "", - "columns": { - "_order": { - "name": "_order", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "varchar", - "primaryKey": true, - "notNull": true - }, - "value": { - "name": "value", - "type": "varchar", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "forms_blocks_select_options_order_idx": { - "name": "forms_blocks_select_options_order_idx", - "columns": [ - { - "expression": "_order", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "forms_blocks_select_options_parent_id_idx": { - "name": "forms_blocks_select_options_parent_id_idx", - "columns": [ - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "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": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.forms_blocks_select_options_locales": { - "name": "forms_blocks_select_options_locales", - "schema": "", - "columns": { - "label": { - "name": "label", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "serial", - "primaryKey": true, - "notNull": true - }, - "_locale": { - "name": "_locale", - "type": "_locales", - "typeSchema": "public", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "varchar", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "forms_blocks_select_options_locales_locale_parent_id_unique": { - "name": "forms_blocks_select_options_locales_locale_parent_id_unique", - "columns": [ - { - "expression": "_locale", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "forms_blocks_select_options_locales_parent_id_fk": { - "name": "forms_blocks_select_options_locales_parent_id_fk", - "tableFrom": "forms_blocks_select_options_locales", - "tableTo": "forms_blocks_select_options", - "columnsFrom": [ - "_parent_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.forms_blocks_select": { - "name": "forms_blocks_select", - "schema": "", - "columns": { - "_order": { - "name": "_order", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_path": { - "name": "_path", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "varchar", - "primaryKey": true, - "notNull": true - }, - "name": { - "name": "name", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "width": { - "name": "width", - "type": "numeric", - "primaryKey": false, - "notNull": false - }, - "placeholder": { - "name": "placeholder", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "required": { - "name": "required", - "type": "boolean", - "primaryKey": false, - "notNull": false - }, - "block_name": { - "name": "block_name", - "type": "varchar", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "forms_blocks_select_order_idx": { - "name": "forms_blocks_select_order_idx", - "columns": [ - { - "expression": "_order", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "forms_blocks_select_parent_id_idx": { - "name": "forms_blocks_select_parent_id_idx", - "columns": [ - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "forms_blocks_select_path_idx": { - "name": "forms_blocks_select_path_idx", - "columns": [ - { - "expression": "_path", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "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": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.forms_blocks_select_locales": { - "name": "forms_blocks_select_locales", - "schema": "", - "columns": { - "label": { - "name": "label", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "default_value": { - "name": "default_value", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "id": { - "name": "id", - "type": "serial", - "primaryKey": true, - "notNull": true - }, - "_locale": { - "name": "_locale", - "type": "_locales", - "typeSchema": "public", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "varchar", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "forms_blocks_select_locales_locale_parent_id_unique": { - "name": "forms_blocks_select_locales_locale_parent_id_unique", - "columns": [ - { - "expression": "_locale", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "forms_blocks_select_locales_parent_id_fk": { - "name": "forms_blocks_select_locales_parent_id_fk", - "tableFrom": "forms_blocks_select_locales", - "tableTo": "forms_blocks_select", - "columnsFrom": [ - "_parent_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.forms_blocks_text": { - "name": "forms_blocks_text", - "schema": "", - "columns": { - "_order": { - "name": "_order", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_path": { - "name": "_path", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "varchar", - "primaryKey": true, - "notNull": true - }, - "name": { - "name": "name", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "width": { - "name": "width", - "type": "numeric", - "primaryKey": false, - "notNull": false - }, - "required": { - "name": "required", - "type": "boolean", - "primaryKey": false, - "notNull": false - }, - "block_name": { - "name": "block_name", - "type": "varchar", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "forms_blocks_text_order_idx": { - "name": "forms_blocks_text_order_idx", - "columns": [ - { - "expression": "_order", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "forms_blocks_text_parent_id_idx": { - "name": "forms_blocks_text_parent_id_idx", - "columns": [ - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "forms_blocks_text_path_idx": { - "name": "forms_blocks_text_path_idx", - "columns": [ - { - "expression": "_path", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "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": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.forms_blocks_text_locales": { - "name": "forms_blocks_text_locales", - "schema": "", - "columns": { - "label": { - "name": "label", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "default_value": { - "name": "default_value", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "id": { - "name": "id", - "type": "serial", - "primaryKey": true, - "notNull": true - }, - "_locale": { - "name": "_locale", - "type": "_locales", - "typeSchema": "public", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "varchar", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "forms_blocks_text_locales_locale_parent_id_unique": { - "name": "forms_blocks_text_locales_locale_parent_id_unique", - "columns": [ - { - "expression": "_locale", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "forms_blocks_text_locales_parent_id_fk": { - "name": "forms_blocks_text_locales_parent_id_fk", - "tableFrom": "forms_blocks_text_locales", - "tableTo": "forms_blocks_text", - "columnsFrom": [ - "_parent_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.forms_blocks_textarea": { - "name": "forms_blocks_textarea", - "schema": "", - "columns": { - "_order": { - "name": "_order", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_path": { - "name": "_path", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "varchar", - "primaryKey": true, - "notNull": true - }, - "name": { - "name": "name", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "width": { - "name": "width", - "type": "numeric", - "primaryKey": false, - "notNull": false - }, - "required": { - "name": "required", - "type": "boolean", - "primaryKey": false, - "notNull": false - }, - "block_name": { - "name": "block_name", - "type": "varchar", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "forms_blocks_textarea_order_idx": { - "name": "forms_blocks_textarea_order_idx", - "columns": [ - { - "expression": "_order", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "forms_blocks_textarea_parent_id_idx": { - "name": "forms_blocks_textarea_parent_id_idx", - "columns": [ - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "forms_blocks_textarea_path_idx": { - "name": "forms_blocks_textarea_path_idx", - "columns": [ - { - "expression": "_path", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "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": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.forms_blocks_textarea_locales": { - "name": "forms_blocks_textarea_locales", - "schema": "", - "columns": { - "label": { - "name": "label", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "default_value": { - "name": "default_value", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "id": { - "name": "id", - "type": "serial", - "primaryKey": true, - "notNull": true - }, - "_locale": { - "name": "_locale", - "type": "_locales", - "typeSchema": "public", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "varchar", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "forms_blocks_textarea_locales_locale_parent_id_unique": { - "name": "forms_blocks_textarea_locales_locale_parent_id_unique", - "columns": [ - { - "expression": "_locale", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "forms_blocks_textarea_locales_parent_id_fk": { - "name": "forms_blocks_textarea_locales_parent_id_fk", - "tableFrom": "forms_blocks_textarea_locales", - "tableTo": "forms_blocks_textarea", - "columnsFrom": [ - "_parent_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.forms_emails": { - "name": "forms_emails", - "schema": "", - "columns": { - "_order": { - "name": "_order", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "varchar", - "primaryKey": true, - "notNull": true - }, - "email_to": { - "name": "email_to", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "cc": { - "name": "cc", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "bcc": { - "name": "bcc", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "reply_to": { - "name": "reply_to", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "email_from": { - "name": "email_from", - "type": "varchar", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "forms_emails_order_idx": { - "name": "forms_emails_order_idx", - "columns": [ - { - "expression": "_order", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "forms_emails_parent_id_idx": { - "name": "forms_emails_parent_id_idx", - "columns": [ - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "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": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.forms_emails_locales": { - "name": "forms_emails_locales", - "schema": "", - "columns": { - "subject": { - "name": "subject", - "type": "varchar", - "primaryKey": false, - "notNull": true, - "default": "'You''ve received a new message.'" - }, - "message": { - "name": "message", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "id": { - "name": "id", - "type": "serial", - "primaryKey": true, - "notNull": true - }, - "_locale": { - "name": "_locale", - "type": "_locales", - "typeSchema": "public", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "varchar", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "forms_emails_locales_locale_parent_id_unique": { - "name": "forms_emails_locales_locale_parent_id_unique", - "columns": [ - { - "expression": "_locale", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "forms_emails_locales_parent_id_fk": { - "name": "forms_emails_locales_parent_id_fk", - "tableFrom": "forms_emails_locales", - "tableTo": "forms_emails", - "columnsFrom": [ - "_parent_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.forms": { - "name": "forms", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "serial", - "primaryKey": true, - "notNull": true - }, - "title": { - "name": "title", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "confirmation_type": { - "name": "confirmation_type", - "type": "enum_forms_confirmation_type", - "typeSchema": "public", - "primaryKey": false, - "notNull": false, - "default": "'message'" - }, - "redirect_url": { - "name": "redirect_url", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "created_at": { - "name": "created_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - } - }, - "indexes": { - "forms_updated_at_idx": { - "name": "forms_updated_at_idx", - "columns": [ - { - "expression": "updated_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "forms_created_at_idx": { - "name": "forms_created_at_idx", - "columns": [ - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.forms_locales": { - "name": "forms_locales", - "schema": "", - "columns": { - "submit_button_label": { - "name": "submit_button_label", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "confirmation_message": { - "name": "confirmation_message", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "id": { - "name": "id", - "type": "serial", - "primaryKey": true, - "notNull": true - }, - "_locale": { - "name": "_locale", - "type": "_locales", - "typeSchema": "public", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "integer", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "forms_locales_locale_parent_id_unique": { - "name": "forms_locales_locale_parent_id_unique", - "columns": [ - { - "expression": "_locale", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "forms_locales_parent_id_fk": { - "name": "forms_locales_parent_id_fk", - "tableFrom": "forms_locales", - "tableTo": "forms", - "columnsFrom": [ - "_parent_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.form_submissions_submission_data": { - "name": "form_submissions_submission_data", - "schema": "", - "columns": { - "_order": { - "name": "_order", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "varchar", - "primaryKey": true, - "notNull": true - }, - "field": { - "name": "field", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "value": { - "name": "value", - "type": "varchar", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "form_submissions_submission_data_order_idx": { - "name": "form_submissions_submission_data_order_idx", - "columns": [ - { - "expression": "_order", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "form_submissions_submission_data_parent_id_idx": { - "name": "form_submissions_submission_data_parent_id_idx", - "columns": [ - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "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": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.form_submissions": { - "name": "form_submissions", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "serial", - "primaryKey": true, - "notNull": true - }, - "form_id": { - "name": "form_id", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "created_at": { - "name": "created_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - } - }, - "indexes": { - "form_submissions_form_idx": { - "name": "form_submissions_form_idx", - "columns": [ - { - "expression": "form_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "form_submissions_updated_at_idx": { - "name": "form_submissions_updated_at_idx", - "columns": [ - { - "expression": "updated_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "form_submissions_created_at_idx": { - "name": "form_submissions_created_at_idx", - "columns": [ - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "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" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.redirects": { - "name": "redirects", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "serial", - "primaryKey": true, - "notNull": true - }, - "from": { - "name": "from", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "to_type": { - "name": "to_type", - "type": "enum_redirects_to_type", - "typeSchema": "public", - "primaryKey": false, - "notNull": false, - "default": "'reference'" - }, - "to_url": { - "name": "to_url", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "created_at": { - "name": "created_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - } - }, - "indexes": { - "redirects_from_idx": { - "name": "redirects_from_idx", - "columns": [ - { - "expression": "from", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "redirects_updated_at_idx": { - "name": "redirects_updated_at_idx", - "columns": [ - { - "expression": "updated_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "redirects_created_at_idx": { - "name": "redirects_created_at_idx", - "columns": [ - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.payload_kv": { - "name": "payload_kv", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "serial", - "primaryKey": true, - "notNull": true - }, - "key": { - "name": "key", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "data": { - "name": "data", - "type": "jsonb", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "payload_kv_key_idx": { - "name": "payload_kv_key_idx", - "columns": [ - { - "expression": "key", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.payload_locked_documents": { - "name": "payload_locked_documents", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "serial", - "primaryKey": true, - "notNull": true - }, - "global_slug": { - "name": "global_slug", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "created_at": { - "name": "created_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - } - }, - "indexes": { - "payload_locked_documents_global_slug_idx": { - "name": "payload_locked_documents_global_slug_idx", - "columns": [ - { - "expression": "global_slug", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "payload_locked_documents_updated_at_idx": { - "name": "payload_locked_documents_updated_at_idx", - "columns": [ - { - "expression": "updated_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "payload_locked_documents_created_at_idx": { - "name": "payload_locked_documents_created_at_idx", - "columns": [ - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.payload_locked_documents_rels": { - "name": "payload_locked_documents_rels", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "serial", - "primaryKey": true, - "notNull": true - }, - "order": { - "name": "order", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "parent_id": { - "name": "parent_id", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "path": { - "name": "path", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "users_id": { - "name": "users_id", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "media_id": { - "name": "media_id", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "tenants_id": { - "name": "tenants_id", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "pages_id": { - "name": "pages_id", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "posts_id": { - "name": "posts_id", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "categories_id": { - "name": "categories_id", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "social_links_id": { - "name": "social_links_id", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "testimonials_id": { - "name": "testimonials_id", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "newsletter_subscribers_id": { - "name": "newsletter_subscribers_id", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "cookie_configurations_id": { - "name": "cookie_configurations_id", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "cookie_inventory_id": { - "name": "cookie_inventory_id", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "consent_logs_id": { - "name": "consent_logs_id", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "privacy_policy_settings_id": { - "name": "privacy_policy_settings_id", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "forms_id": { - "name": "forms_id", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "form_submissions_id": { - "name": "form_submissions_id", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "redirects_id": { - "name": "redirects_id", - "type": "integer", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "payload_locked_documents_rels_order_idx": { - "name": "payload_locked_documents_rels_order_idx", - "columns": [ - { - "expression": "order", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "payload_locked_documents_rels_parent_idx": { - "name": "payload_locked_documents_rels_parent_idx", - "columns": [ - { - "expression": "parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "payload_locked_documents_rels_path_idx": { - "name": "payload_locked_documents_rels_path_idx", - "columns": [ - { - "expression": "path", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "payload_locked_documents_rels_users_id_idx": { - "name": "payload_locked_documents_rels_users_id_idx", - "columns": [ - { - "expression": "users_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "payload_locked_documents_rels_media_id_idx": { - "name": "payload_locked_documents_rels_media_id_idx", - "columns": [ - { - "expression": "media_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "payload_locked_documents_rels_tenants_id_idx": { - "name": "payload_locked_documents_rels_tenants_id_idx", - "columns": [ - { - "expression": "tenants_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "payload_locked_documents_rels_pages_id_idx": { - "name": "payload_locked_documents_rels_pages_id_idx", - "columns": [ - { - "expression": "pages_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "payload_locked_documents_rels_posts_id_idx": { - "name": "payload_locked_documents_rels_posts_id_idx", - "columns": [ - { - "expression": "posts_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "payload_locked_documents_rels_categories_id_idx": { - "name": "payload_locked_documents_rels_categories_id_idx", - "columns": [ - { - "expression": "categories_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "payload_locked_documents_rels_social_links_id_idx": { - "name": "payload_locked_documents_rels_social_links_id_idx", - "columns": [ - { - "expression": "social_links_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "payload_locked_documents_rels_testimonials_id_idx": { - "name": "payload_locked_documents_rels_testimonials_id_idx", - "columns": [ - { - "expression": "testimonials_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "payload_locked_documents_rels_newsletter_subscribers_id_idx": { - "name": "payload_locked_documents_rels_newsletter_subscribers_id_idx", - "columns": [ - { - "expression": "newsletter_subscribers_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "payload_locked_documents_rels_cookie_configurations_id_idx": { - "name": "payload_locked_documents_rels_cookie_configurations_id_idx", - "columns": [ - { - "expression": "cookie_configurations_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "payload_locked_documents_rels_cookie_inventory_id_idx": { - "name": "payload_locked_documents_rels_cookie_inventory_id_idx", - "columns": [ - { - "expression": "cookie_inventory_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "payload_locked_documents_rels_consent_logs_id_idx": { - "name": "payload_locked_documents_rels_consent_logs_id_idx", - "columns": [ - { - "expression": "consent_logs_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "payload_locked_documents_rels_privacy_policy_settings_id_idx": { - "name": "payload_locked_documents_rels_privacy_policy_settings_id_idx", - "columns": [ - { - "expression": "privacy_policy_settings_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "payload_locked_documents_rels_forms_id_idx": { - "name": "payload_locked_documents_rels_forms_id_idx", - "columns": [ - { - "expression": "forms_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "payload_locked_documents_rels_form_submissions_id_idx": { - "name": "payload_locked_documents_rels_form_submissions_id_idx", - "columns": [ - { - "expression": "form_submissions_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "payload_locked_documents_rels_redirects_id_idx": { - "name": "payload_locked_documents_rels_redirects_id_idx", - "columns": [ - { - "expression": "redirects_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "payload_locked_documents_rels_parent_fk": { - "name": "payload_locked_documents_rels_parent_fk", - "tableFrom": "payload_locked_documents_rels", - "tableTo": "payload_locked_documents", - "columnsFrom": [ - "parent_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - }, - "payload_locked_documents_rels_users_fk": { - "name": "payload_locked_documents_rels_users_fk", - "tableFrom": "payload_locked_documents_rels", - "tableTo": "users", - "columnsFrom": [ - "users_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - }, - "payload_locked_documents_rels_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_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_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_categories_fk": { - "name": "payload_locked_documents_rels_categories_fk", - "tableFrom": "payload_locked_documents_rels", - "tableTo": "categories", - "columnsFrom": [ - "categories_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - }, - "payload_locked_documents_rels_social_links_fk": { - "name": "payload_locked_documents_rels_social_links_fk", - "tableFrom": "payload_locked_documents_rels", - "tableTo": "social_links", - "columnsFrom": [ - "social_links_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - }, - "payload_locked_documents_rels_testimonials_fk": { - "name": "payload_locked_documents_rels_testimonials_fk", - "tableFrom": "payload_locked_documents_rels", - "tableTo": "testimonials", - "columnsFrom": [ - "testimonials_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - }, - "payload_locked_documents_rels_newsletter_subscribers_fk": { - "name": "payload_locked_documents_rels_newsletter_subscribers_fk", - "tableFrom": "payload_locked_documents_rels", - "tableTo": "newsletter_subscribers", - "columnsFrom": [ - "newsletter_subscribers_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - }, - "payload_locked_documents_rels_cookie_configurations_fk": { - "name": "payload_locked_documents_rels_cookie_configurations_fk", - "tableFrom": "payload_locked_documents_rels", - "tableTo": "cookie_configurations", - "columnsFrom": [ - "cookie_configurations_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - }, - "payload_locked_documents_rels_cookie_inventory_fk": { - "name": "payload_locked_documents_rels_cookie_inventory_fk", - "tableFrom": "payload_locked_documents_rels", - "tableTo": "cookie_inventory", - "columnsFrom": [ - "cookie_inventory_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - }, - "payload_locked_documents_rels_consent_logs_fk": { - "name": "payload_locked_documents_rels_consent_logs_fk", - "tableFrom": "payload_locked_documents_rels", - "tableTo": "consent_logs", - "columnsFrom": [ - "consent_logs_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - }, - "payload_locked_documents_rels_privacy_policy_settings_fk": { - "name": "payload_locked_documents_rels_privacy_policy_settings_fk", - "tableFrom": "payload_locked_documents_rels", - "tableTo": "privacy_policy_settings", - "columnsFrom": [ - "privacy_policy_settings_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" - }, - "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" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.payload_preferences": { - "name": "payload_preferences", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "serial", - "primaryKey": true, - "notNull": true - }, - "key": { - "name": "key", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "value": { - "name": "value", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "created_at": { - "name": "created_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - } - }, - "indexes": { - "payload_preferences_key_idx": { - "name": "payload_preferences_key_idx", - "columns": [ - { - "expression": "key", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "payload_preferences_updated_at_idx": { - "name": "payload_preferences_updated_at_idx", - "columns": [ - { - "expression": "updated_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "payload_preferences_created_at_idx": { - "name": "payload_preferences_created_at_idx", - "columns": [ - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.payload_preferences_rels": { - "name": "payload_preferences_rels", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "serial", - "primaryKey": true, - "notNull": true - }, - "order": { - "name": "order", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "parent_id": { - "name": "parent_id", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "path": { - "name": "path", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "users_id": { - "name": "users_id", - "type": "integer", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "payload_preferences_rels_order_idx": { - "name": "payload_preferences_rels_order_idx", - "columns": [ - { - "expression": "order", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "payload_preferences_rels_parent_idx": { - "name": "payload_preferences_rels_parent_idx", - "columns": [ - { - "expression": "parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "payload_preferences_rels_path_idx": { - "name": "payload_preferences_rels_path_idx", - "columns": [ - { - "expression": "path", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "payload_preferences_rels_users_id_idx": { - "name": "payload_preferences_rels_users_id_idx", - "columns": [ - { - "expression": "users_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "payload_preferences_rels_parent_fk": { - "name": "payload_preferences_rels_parent_fk", - "tableFrom": "payload_preferences_rels", - "tableTo": "payload_preferences", - "columnsFrom": [ - "parent_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - }, - "payload_preferences_rels_users_fk": { - "name": "payload_preferences_rels_users_fk", - "tableFrom": "payload_preferences_rels", - "tableTo": "users", - "columnsFrom": [ - "users_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.payload_migrations": { - "name": "payload_migrations", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "serial", - "primaryKey": true, - "notNull": true - }, - "name": { - "name": "name", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "batch": { - "name": "batch", - "type": "numeric", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "created_at": { - "name": "created_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - } - }, - "indexes": { - "payload_migrations_updated_at_idx": { - "name": "payload_migrations_updated_at_idx", - "columns": [ - { - "expression": "updated_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "payload_migrations_created_at_idx": { - "name": "payload_migrations_created_at_idx", - "columns": [ - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.site_settings": { - "name": "site_settings", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "serial", - "primaryKey": true, - "notNull": true - }, - "logo_id": { - "name": "logo_id", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "favicon_id": { - "name": "favicon_id", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "contact_email": { - "name": "contact_email", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "contact_phone": { - "name": "contact_phone", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "contact_address": { - "name": "contact_address", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "footer_show_social_links": { - "name": "footer_show_social_links", - "type": "boolean", - "primaryKey": false, - "notNull": false, - "default": true - }, - "seo_default_og_image_id": { - "name": "seo_default_og_image_id", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "site_settings_logo_idx": { - "name": "site_settings_logo_idx", - "columns": [ - { - "expression": "logo_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "site_settings_favicon_idx": { - "name": "site_settings_favicon_idx", - "columns": [ - { - "expression": "favicon_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "site_settings_seo_seo_default_og_image_idx": { - "name": "site_settings_seo_seo_default_og_image_idx", - "columns": [ - { - "expression": "seo_default_og_image_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "site_settings_logo_id_media_id_fk": { - "name": "site_settings_logo_id_media_id_fk", - "tableFrom": "site_settings", - "tableTo": "media", - "columnsFrom": [ - "logo_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "set null", - "onUpdate": "no action" - }, - "site_settings_favicon_id_media_id_fk": { - "name": "site_settings_favicon_id_media_id_fk", - "tableFrom": "site_settings", - "tableTo": "media", - "columnsFrom": [ - "favicon_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "set null", - "onUpdate": "no action" - }, - "site_settings_seo_default_og_image_id_media_id_fk": { - "name": "site_settings_seo_default_og_image_id_media_id_fk", - "tableFrom": "site_settings", - "tableTo": "media", - "columnsFrom": [ - "seo_default_og_image_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "set null", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.site_settings_locales": { - "name": "site_settings_locales", - "schema": "", - "columns": { - "site_name": { - "name": "site_name", - "type": "varchar", - "primaryKey": false, - "notNull": false, - "default": "'porwoll.de'" - }, - "site_tagline": { - "name": "site_tagline", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "footer_copyright_text": { - "name": "footer_copyright_text", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "seo_default_meta_title": { - "name": "seo_default_meta_title", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "seo_default_meta_description": { - "name": "seo_default_meta_description", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "id": { - "name": "id", - "type": "serial", - "primaryKey": true, - "notNull": true - }, - "_locale": { - "name": "_locale", - "type": "_locales", - "typeSchema": "public", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "integer", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "site_settings_locales_locale_parent_id_unique": { - "name": "site_settings_locales_locale_parent_id_unique", - "columns": [ - { - "expression": "_locale", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "site_settings_locales_parent_id_fk": { - "name": "site_settings_locales_parent_id_fk", - "tableFrom": "site_settings_locales", - "tableTo": "site_settings", - "columnsFrom": [ - "_parent_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.navigation_main_menu_submenu": { - "name": "navigation_main_menu_submenu", - "schema": "", - "columns": { - "_order": { - "name": "_order", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "varchar", - "primaryKey": true, - "notNull": true - }, - "link_type": { - "name": "link_type", - "type": "enum_navigation_main_menu_submenu_link_type", - "typeSchema": "public", - "primaryKey": false, - "notNull": false, - "default": "'page'" - }, - "page_id": { - "name": "page_id", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "url": { - "name": "url", - "type": "varchar", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "navigation_main_menu_submenu_order_idx": { - "name": "navigation_main_menu_submenu_order_idx", - "columns": [ - { - "expression": "_order", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "navigation_main_menu_submenu_parent_id_idx": { - "name": "navigation_main_menu_submenu_parent_id_idx", - "columns": [ - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "navigation_main_menu_submenu_page_idx": { - "name": "navigation_main_menu_submenu_page_idx", - "columns": [ - { - "expression": "page_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "navigation_main_menu_submenu_page_id_pages_id_fk": { - "name": "navigation_main_menu_submenu_page_id_pages_id_fk", - "tableFrom": "navigation_main_menu_submenu", - "tableTo": "pages", - "columnsFrom": [ - "page_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "set null", - "onUpdate": "no action" - }, - "navigation_main_menu_submenu_parent_id_fk": { - "name": "navigation_main_menu_submenu_parent_id_fk", - "tableFrom": "navigation_main_menu_submenu", - "tableTo": "navigation_main_menu", - "columnsFrom": [ - "_parent_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.navigation_main_menu_submenu_locales": { - "name": "navigation_main_menu_submenu_locales", - "schema": "", - "columns": { - "label": { - "name": "label", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "id": { - "name": "id", - "type": "serial", - "primaryKey": true, - "notNull": true - }, - "_locale": { - "name": "_locale", - "type": "_locales", - "typeSchema": "public", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "varchar", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "navigation_main_menu_submenu_locales_locale_parent_id_unique": { - "name": "navigation_main_menu_submenu_locales_locale_parent_id_unique", - "columns": [ - { - "expression": "_locale", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "navigation_main_menu_submenu_locales_parent_id_fk": { - "name": "navigation_main_menu_submenu_locales_parent_id_fk", - "tableFrom": "navigation_main_menu_submenu_locales", - "tableTo": "navigation_main_menu_submenu", - "columnsFrom": [ - "_parent_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.navigation_main_menu": { - "name": "navigation_main_menu", - "schema": "", - "columns": { - "_order": { - "name": "_order", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "varchar", - "primaryKey": true, - "notNull": true - }, - "type": { - "name": "type", - "type": "enum_navigation_main_menu_type", - "typeSchema": "public", - "primaryKey": false, - "notNull": false, - "default": "'page'" - }, - "page_id": { - "name": "page_id", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "url": { - "name": "url", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "open_in_new_tab": { - "name": "open_in_new_tab", - "type": "boolean", - "primaryKey": false, - "notNull": false, - "default": false - } - }, - "indexes": { - "navigation_main_menu_order_idx": { - "name": "navigation_main_menu_order_idx", - "columns": [ - { - "expression": "_order", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "navigation_main_menu_parent_id_idx": { - "name": "navigation_main_menu_parent_id_idx", - "columns": [ - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "navigation_main_menu_page_idx": { - "name": "navigation_main_menu_page_idx", - "columns": [ - { - "expression": "page_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "navigation_main_menu_page_id_pages_id_fk": { - "name": "navigation_main_menu_page_id_pages_id_fk", - "tableFrom": "navigation_main_menu", - "tableTo": "pages", - "columnsFrom": [ - "page_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "set null", - "onUpdate": "no action" - }, - "navigation_main_menu_parent_id_fk": { - "name": "navigation_main_menu_parent_id_fk", - "tableFrom": "navigation_main_menu", - "tableTo": "navigation", - "columnsFrom": [ - "_parent_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.navigation_main_menu_locales": { - "name": "navigation_main_menu_locales", - "schema": "", - "columns": { - "label": { - "name": "label", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "serial", - "primaryKey": true, - "notNull": true - }, - "_locale": { - "name": "_locale", - "type": "_locales", - "typeSchema": "public", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "varchar", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "navigation_main_menu_locales_locale_parent_id_unique": { - "name": "navigation_main_menu_locales_locale_parent_id_unique", - "columns": [ - { - "expression": "_locale", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "navigation_main_menu_locales_parent_id_fk": { - "name": "navigation_main_menu_locales_parent_id_fk", - "tableFrom": "navigation_main_menu_locales", - "tableTo": "navigation_main_menu", - "columnsFrom": [ - "_parent_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.navigation_footer_menu": { - "name": "navigation_footer_menu", - "schema": "", - "columns": { - "_order": { - "name": "_order", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "varchar", - "primaryKey": true, - "notNull": true - }, - "link_type": { - "name": "link_type", - "type": "enum_navigation_footer_menu_link_type", - "typeSchema": "public", - "primaryKey": false, - "notNull": false, - "default": "'page'" - }, - "page_id": { - "name": "page_id", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "url": { - "name": "url", - "type": "varchar", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "navigation_footer_menu_order_idx": { - "name": "navigation_footer_menu_order_idx", - "columns": [ - { - "expression": "_order", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "navigation_footer_menu_parent_id_idx": { - "name": "navigation_footer_menu_parent_id_idx", - "columns": [ - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "navigation_footer_menu_page_idx": { - "name": "navigation_footer_menu_page_idx", - "columns": [ - { - "expression": "page_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "navigation_footer_menu_page_id_pages_id_fk": { - "name": "navigation_footer_menu_page_id_pages_id_fk", - "tableFrom": "navigation_footer_menu", - "tableTo": "pages", - "columnsFrom": [ - "page_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "set null", - "onUpdate": "no action" - }, - "navigation_footer_menu_parent_id_fk": { - "name": "navigation_footer_menu_parent_id_fk", - "tableFrom": "navigation_footer_menu", - "tableTo": "navigation", - "columnsFrom": [ - "_parent_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.navigation_footer_menu_locales": { - "name": "navigation_footer_menu_locales", - "schema": "", - "columns": { - "label": { - "name": "label", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "serial", - "primaryKey": true, - "notNull": true - }, - "_locale": { - "name": "_locale", - "type": "_locales", - "typeSchema": "public", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "varchar", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "navigation_footer_menu_locales_locale_parent_id_unique": { - "name": "navigation_footer_menu_locales_locale_parent_id_unique", - "columns": [ - { - "expression": "_locale", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "navigation_footer_menu_locales_parent_id_fk": { - "name": "navigation_footer_menu_locales_parent_id_fk", - "tableFrom": "navigation_footer_menu_locales", - "tableTo": "navigation_footer_menu", - "columnsFrom": [ - "_parent_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.navigation": { - "name": "navigation", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "serial", - "primaryKey": true, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": false - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.seo_settings_social_profiles": { - "name": "seo_settings_social_profiles", - "schema": "", - "columns": { - "_order": { - "name": "_order", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "varchar", - "primaryKey": true, - "notNull": true - }, - "platform": { - "name": "platform", - "type": "enum_seo_settings_social_profiles_platform", - "typeSchema": "public", - "primaryKey": false, - "notNull": false - }, - "url": { - "name": "url", - "type": "varchar", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "seo_settings_social_profiles_order_idx": { - "name": "seo_settings_social_profiles_order_idx", - "columns": [ - { - "expression": "_order", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "seo_settings_social_profiles_parent_id_idx": { - "name": "seo_settings_social_profiles_parent_id_idx", - "columns": [ - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "seo_settings_social_profiles_parent_id_fk": { - "name": "seo_settings_social_profiles_parent_id_fk", - "tableFrom": "seo_settings_social_profiles", - "tableTo": "seo_settings", - "columnsFrom": [ - "_parent_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.seo_settings_local_business_opening_hours": { - "name": "seo_settings_local_business_opening_hours", - "schema": "", - "columns": { - "_order": { - "name": "_order", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "varchar", - "primaryKey": true, - "notNull": true - }, - "specification": { - "name": "specification", - "type": "varchar", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "seo_settings_local_business_opening_hours_order_idx": { - "name": "seo_settings_local_business_opening_hours_order_idx", - "columns": [ - { - "expression": "_order", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "seo_settings_local_business_opening_hours_parent_id_idx": { - "name": "seo_settings_local_business_opening_hours_parent_id_idx", - "columns": [ - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "seo_settings_local_business_opening_hours_parent_id_fk": { - "name": "seo_settings_local_business_opening_hours_parent_id_fk", - "tableFrom": "seo_settings_local_business_opening_hours", - "tableTo": "seo_settings", - "columnsFrom": [ - "_parent_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.seo_settings": { - "name": "seo_settings", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "serial", - "primaryKey": true, - "notNull": true - }, - "meta_defaults_default_og_image_id": { - "name": "meta_defaults_default_og_image_id", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "organization_name": { - "name": "organization_name", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "organization_legal_name": { - "name": "organization_legal_name", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "organization_logo_id": { - "name": "organization_logo_id", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "organization_founding_date": { - "name": "organization_founding_date", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": false - }, - "contact_email": { - "name": "contact_email", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "contact_phone": { - "name": "contact_phone", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "contact_fax": { - "name": "contact_fax", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "address_street": { - "name": "address_street", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "address_postal_code": { - "name": "address_postal_code", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "address_city": { - "name": "address_city", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "address_region": { - "name": "address_region", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "address_country": { - "name": "address_country", - "type": "varchar", - "primaryKey": false, - "notNull": false, - "default": "'Deutschland'" - }, - "address_country_code": { - "name": "address_country_code", - "type": "varchar", - "primaryKey": false, - "notNull": false, - "default": "'DE'" - }, - "geo_latitude": { - "name": "geo_latitude", - "type": "numeric", - "primaryKey": false, - "notNull": false - }, - "geo_longitude": { - "name": "geo_longitude", - "type": "numeric", - "primaryKey": false, - "notNull": false - }, - "local_business_enabled": { - "name": "local_business_enabled", - "type": "boolean", - "primaryKey": false, - "notNull": false, - "default": false - }, - "local_business_type": { - "name": "local_business_type", - "type": "enum_seo_settings_local_business_type", - "typeSchema": "public", - "primaryKey": false, - "notNull": false - }, - "local_business_price_range": { - "name": "local_business_price_range", - "type": "enum_seo_settings_local_business_price_range", - "typeSchema": "public", - "primaryKey": false, - "notNull": false - }, - "robots_allow_indexing": { - "name": "robots_allow_indexing", - "type": "boolean", - "primaryKey": false, - "notNull": false, - "default": true - }, - "verification_google": { - "name": "verification_google", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "verification_bing": { - "name": "verification_bing", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "verification_yandex": { - "name": "verification_yandex", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp(3) with time zone", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "seo_settings_meta_defaults_meta_defaults_default_og_imag_idx": { - "name": "seo_settings_meta_defaults_meta_defaults_default_og_imag_idx", - "columns": [ - { - "expression": "meta_defaults_default_og_image_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "seo_settings_organization_organization_logo_idx": { - "name": "seo_settings_organization_organization_logo_idx", - "columns": [ - { - "expression": "organization_logo_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "seo_settings_meta_defaults_default_og_image_id_media_id_fk": { - "name": "seo_settings_meta_defaults_default_og_image_id_media_id_fk", - "tableFrom": "seo_settings", - "tableTo": "media", - "columnsFrom": [ - "meta_defaults_default_og_image_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "set null", - "onUpdate": "no action" - }, - "seo_settings_organization_logo_id_media_id_fk": { - "name": "seo_settings_organization_logo_id_media_id_fk", - "tableFrom": "seo_settings", - "tableTo": "media", - "columnsFrom": [ - "organization_logo_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "set null", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.seo_settings_locales": { - "name": "seo_settings_locales", - "schema": "", - "columns": { - "meta_defaults_title_suffix": { - "name": "meta_defaults_title_suffix", - "type": "varchar", - "primaryKey": false, - "notNull": false, - "default": "'| Website'" - }, - "meta_defaults_default_description": { - "name": "meta_defaults_default_description", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "organization_description": { - "name": "organization_description", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "id": { - "name": "id", - "type": "serial", - "primaryKey": true, - "notNull": true - }, - "_locale": { - "name": "_locale", - "type": "_locales", - "typeSchema": "public", - "primaryKey": false, - "notNull": true - }, - "_parent_id": { - "name": "_parent_id", - "type": "integer", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "seo_settings_locales_locale_parent_id_unique": { - "name": "seo_settings_locales_locale_parent_id_unique", - "columns": [ - { - "expression": "_locale", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "_parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "seo_settings_locales_parent_id_fk": { - "name": "seo_settings_locales_parent_id_fk", - "tableFrom": "seo_settings_locales", - "tableTo": "seo_settings", - "columnsFrom": [ - "_parent_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.seo_settings_texts": { - "name": "seo_settings_texts", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "serial", - "primaryKey": true, - "notNull": true - }, - "order": { - "name": "order", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "parent_id": { - "name": "parent_id", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "path": { - "name": "path", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "text": { - "name": "text", - "type": "varchar", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "seo_settings_texts_order_parent": { - "name": "seo_settings_texts_order_parent", - "columns": [ - { - "expression": "order", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "parent_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "seo_settings_texts_parent_fk": { - "name": "seo_settings_texts_parent_fk", - "tableFrom": "seo_settings_texts", - "tableTo": "seo_settings", - "columnsFrom": [ - "parent_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - } - }, - "enums": { - "public._locales": { - "name": "_locales", - "schema": "public", - "values": [ - "de", - "en" - ] - }, - "public.enum_pages_blocks_hero_block_alignment": { - "name": "enum_pages_blocks_hero_block_alignment", - "schema": "public", - "values": [ - "left", - "center", - "right" - ] - }, - "public.enum_pages_blocks_hero_block_cta_style": { - "name": "enum_pages_blocks_hero_block_cta_style", - "schema": "public", - "values": [ - "primary", - "secondary", - "outline" - ] - }, - "public.enum_pages_blocks_text_block_width": { - "name": "enum_pages_blocks_text_block_width", - "schema": "public", - "values": [ - "narrow", - "medium", - "full" - ] - }, - "public.enum_pages_blocks_image_text_block_image_position": { - "name": "enum_pages_blocks_image_text_block_image_position", - "schema": "public", - "values": [ - "left", - "right" - ] - }, - "public.enum_pages_blocks_card_grid_block_columns": { - "name": "enum_pages_blocks_card_grid_block_columns", - "schema": "public", - "values": [ - "2", - "3", - "4" - ] - }, - "public.enum_pages_blocks_quote_block_style": { - "name": "enum_pages_blocks_quote_block_style", - "schema": "public", - "values": [ - "simple", - "highlighted", - "with-image" - ] - }, - "public.enum_pages_blocks_cta_block_buttons_style": { - "name": "enum_pages_blocks_cta_block_buttons_style", - "schema": "public", - "values": [ - "primary", - "secondary", - "outline" - ] - }, - "public.enum_pages_blocks_cta_block_background_color": { - "name": "enum_pages_blocks_cta_block_background_color", - "schema": "public", - "values": [ - "dark", - "light", - "accent" - ] - }, - "public.enum_pages_blocks_timeline_block_layout": { - "name": "enum_pages_blocks_timeline_block_layout", - "schema": "public", - "values": [ - "vertical", - "alternating", - "horizontal" - ] - }, - "public.enum_pages_blocks_timeline_block_marker_style": { - "name": "enum_pages_blocks_timeline_block_marker_style", - "schema": "public", - "values": [ - "dot", - "number", - "icon", - "date" - ] - }, - "public.enum_pages_blocks_timeline_block_background_color": { - "name": "enum_pages_blocks_timeline_block_background_color", - "schema": "public", - "values": [ - "white", - "light", - "dark" - ] - }, - "public.enum_pages_blocks_divider_block_style": { - "name": "enum_pages_blocks_divider_block_style", - "schema": "public", - "values": [ - "line", - "space", - "dots" - ] - }, - "public.enum_pages_blocks_divider_block_spacing": { - "name": "enum_pages_blocks_divider_block_spacing", - "schema": "public", - "values": [ - "small", - "medium", - "large" - ] - }, - "public.enum_pages_blocks_video_block_aspect_ratio": { - "name": "enum_pages_blocks_video_block_aspect_ratio", - "schema": "public", - "values": [ - "16:9", - "4:3", - "1:1" - ] - }, - "public.enum_pages_blocks_posts_list_block_post_type": { - "name": "enum_pages_blocks_posts_list_block_post_type", - "schema": "public", - "values": [ - "blog", - "news", - "press", - "announcement", - "all" - ] - }, - "public.enum_pages_blocks_posts_list_block_layout": { - "name": "enum_pages_blocks_posts_list_block_layout", - "schema": "public", - "values": [ - "grid", - "list", - "featured", - "compact", - "masonry" - ] - }, - "public.enum_pages_blocks_posts_list_block_columns": { - "name": "enum_pages_blocks_posts_list_block_columns", - "schema": "public", - "values": [ - "2", - "3", - "4" - ] - }, - "public.enum_pages_blocks_posts_list_block_background_color": { - "name": "enum_pages_blocks_posts_list_block_background_color", - "schema": "public", - "values": [ - "white", - "light", - "dark" - ] - }, - "public.enum_pages_blocks_testimonials_block_layout": { - "name": "enum_pages_blocks_testimonials_block_layout", - "schema": "public", - "values": [ - "slider", - "grid", - "single", - "masonry", - "list" - ] - }, - "public.enum_pages_blocks_testimonials_block_columns": { - "name": "enum_pages_blocks_testimonials_block_columns", - "schema": "public", - "values": [ - "2", - "3", - "4" - ] - }, - "public.enum_pages_blocks_testimonials_block_display_mode": { - "name": "enum_pages_blocks_testimonials_block_display_mode", - "schema": "public", - "values": [ - "all", - "selected" - ] - }, - "public.enum_pages_blocks_testimonials_block_background_color": { - "name": "enum_pages_blocks_testimonials_block_background_color", - "schema": "public", - "values": [ - "white", - "light", - "dark", - "accent" - ] - }, - "public.enum_pages_blocks_newsletter_block_available_interests": { - "name": "enum_pages_blocks_newsletter_block_available_interests", - "schema": "public", - "values": [ - "general", - "blog", - "products", - "offers", - "events" - ] - }, - "public.enum_pages_blocks_newsletter_block_layout": { - "name": "enum_pages_blocks_newsletter_block_layout", - "schema": "public", - "values": [ - "inline", - "stacked", - "with-image", - "minimal", - "card" - ] - }, - "public.enum_pages_blocks_newsletter_block_image_position": { - "name": "enum_pages_blocks_newsletter_block_image_position", - "schema": "public", - "values": [ - "left", - "right" - ] - }, - "public.enum_pages_blocks_newsletter_block_background_color": { - "name": "enum_pages_blocks_newsletter_block_background_color", - "schema": "public", - "values": [ - "white", - "light", - "dark", - "accent" - ] - }, - "public.enum_pages_blocks_process_steps_block_layout": { - "name": "enum_pages_blocks_process_steps_block_layout", - "schema": "public", - "values": [ - "horizontal", - "vertical", - "alternating", - "connected", - "timeline" - ] - }, - "public.enum_pages_blocks_process_steps_block_cta_variant": { - "name": "enum_pages_blocks_process_steps_block_cta_variant", - "schema": "public", - "values": [ - "default", - "ghost", - "light" - ] - }, - "public.enum_pages_blocks_process_steps_block_background_color": { - "name": "enum_pages_blocks_process_steps_block_background_color", - "schema": "public", - "values": [ - "white", - "light", - "dark" - ] - }, - "public.enum_pages_status": { - "name": "enum_pages_status", - "schema": "public", - "values": [ - "draft", - "published" - ] - }, - "public.enum_posts_type": { - "name": "enum_posts_type", - "schema": "public", - "values": [ - "blog", - "news", - "press", - "announcement" - ] - }, - "public.enum_posts_status": { - "name": "enum_posts_status", - "schema": "public", - "values": [ - "draft", - "published", - "archived" - ] - }, - "public.enum_social_links_platform": { - "name": "enum_social_links_platform", - "schema": "public", - "values": [ - "facebook", - "x", - "instagram", - "youtube", - "linkedin", - "xing" - ] - }, - "public.enum_newsletter_subscribers_interests": { - "name": "enum_newsletter_subscribers_interests", - "schema": "public", - "values": [ - "general", - "blog", - "products", - "offers", - "events" - ] - }, - "public.enum_newsletter_subscribers_status": { - "name": "enum_newsletter_subscribers_status", - "schema": "public", - "values": [ - "pending", - "confirmed", - "unsubscribed", - "bounced" - ] - }, - "public.enum_cookie_configurations_enabled_categories": { - "name": "enum_cookie_configurations_enabled_categories", - "schema": "public", - "values": [ - "necessary", - "functional", - "analytics", - "marketing" - ] - }, - "public.enum_cookie_configurations_styling_position": { - "name": "enum_cookie_configurations_styling_position", - "schema": "public", - "values": [ - "bottom", - "top", - "middle" - ] - }, - "public.enum_cookie_configurations_styling_theme": { - "name": "enum_cookie_configurations_styling_theme", - "schema": "public", - "values": [ - "dark", - "light", - "auto" - ] - }, - "public.enum_cookie_inventory_category": { - "name": "enum_cookie_inventory_category", - "schema": "public", - "values": [ - "necessary", - "functional", - "analytics", - "marketing" - ] - }, - "public.enum_privacy_policy_settings_provider": { - "name": "enum_privacy_policy_settings_provider", - "schema": "public", - "values": [ - "alfright", - "internal" - ] - }, - "public.enum_privacy_policy_settings_alfright_language": { - "name": "enum_privacy_policy_settings_alfright_language", - "schema": "public", - "values": [ - "de-de", - "de-at", - "de-ch", - "en-gb", - "en-us" - ] - }, - "public.enum_forms_confirmation_type": { - "name": "enum_forms_confirmation_type", - "schema": "public", - "values": [ - "message", - "redirect" - ] - }, - "public.enum_redirects_to_type": { - "name": "enum_redirects_to_type", - "schema": "public", - "values": [ - "reference", - "custom" - ] - }, - "public.enum_navigation_main_menu_submenu_link_type": { - "name": "enum_navigation_main_menu_submenu_link_type", - "schema": "public", - "values": [ - "page", - "custom" - ] - }, - "public.enum_navigation_main_menu_type": { - "name": "enum_navigation_main_menu_type", - "schema": "public", - "values": [ - "page", - "custom", - "submenu" - ] - }, - "public.enum_navigation_footer_menu_link_type": { - "name": "enum_navigation_footer_menu_link_type", - "schema": "public", - "values": [ - "page", - "custom" - ] - }, - "public.enum_seo_settings_social_profiles_platform": { - "name": "enum_seo_settings_social_profiles_platform", - "schema": "public", - "values": [ - "facebook", - "instagram", - "twitter", - "linkedin", - "youtube", - "tiktok", - "pinterest", - "xing", - "other" - ] - }, - "public.enum_seo_settings_local_business_type": { - "name": "enum_seo_settings_local_business_type", - "schema": "public", - "values": [ - "LocalBusiness", - "Physician", - "Dentist", - "Attorney", - "Restaurant", - "Hotel", - "Store", - "HealthClub", - "HairSalon", - "AutoRepair", - "RealEstateAgent", - "FinancialService", - "ProfessionalService", - "MedicalBusiness" - ] - }, - "public.enum_seo_settings_local_business_price_range": { - "name": "enum_seo_settings_local_business_price_range", - "schema": "public", - "values": [ - "€", - "€€", - "€€€", - "€€€€" - ] - } - }, - "schemas": {}, - "sequences": {}, - "roles": {}, - "policies": {}, - "views": {}, - "_meta": { - "schemas": {}, - "tables": {}, - "columns": {} - }, - "id": "dfbfed35-ff1c-4634-ab85-e24c3a8932e5", - "prevId": "00000000-0000-0000-0000-000000000000" -} \ No newline at end of file diff --git a/src/migrations_backup/20251130_213429_add_localization.ts b/src/migrations_backup/20251130_213429_add_localization.ts deleted file mode 100644 index 011ab2b..0000000 --- a/src/migrations_backup/20251130_213429_add_localization.ts +++ /dev/null @@ -1,9 +0,0 @@ -import { MigrateUpArgs, MigrateDownArgs, sql } from '@payloadcms/db-postgres' - -export async function up({ db, payload, req }: MigrateUpArgs): Promise { - // Migration code -} - -export async function down({ db, payload, req }: MigrateDownArgs): Promise { - // Migration code -} diff --git a/src/migrations_backup/index.ts b/src/migrations_backup/index.ts deleted file mode 100644 index 6bfd8d4..0000000 --- a/src/migrations_backup/index.ts +++ /dev/null @@ -1,75 +0,0 @@ -import * as migration_20251126_163428 from './20251126_163428'; -import * as migration_20251126_200521 from './20251126_200521'; -import * as migration_20251127_081206 from './20251127_081206'; -import * as migration_20251127_085124 from './20251127_085124'; -import * as migration_20251127_224713 from './20251127_224713'; -import * as migration_20251128_142608 from './20251128_142608'; -import * as migration_20251130_135459 from './20251130_135459'; -import * as migration_20251130_143000_media_optimization from './20251130_143000_media_optimization'; -import * as migration_20251130_150000_blocks_tables from './20251130_150000_blocks_tables'; -import * as migration_20251130_160000_fix_schema_divergence from './20251130_160000_fix_schema_divergence'; -import * as migration_20251130_170000_add_search_index from './20251130_170000_add_search_index'; -import * as migration_20251130_213429_add_localization from './20251130_213429_add_localization'; - -export const migrations = [ - { - up: migration_20251126_163428.up, - down: migration_20251126_163428.down, - name: '20251126_163428', - }, - { - up: migration_20251126_200521.up, - down: migration_20251126_200521.down, - name: '20251126_200521', - }, - { - up: migration_20251127_081206.up, - down: migration_20251127_081206.down, - name: '20251127_081206', - }, - { - up: migration_20251127_085124.up, - down: migration_20251127_085124.down, - name: '20251127_085124', - }, - { - up: migration_20251127_224713.up, - down: migration_20251127_224713.down, - name: '20251127_224713', - }, - { - up: migration_20251128_142608.up, - down: migration_20251128_142608.down, - name: '20251128_142608', - }, - { - up: migration_20251130_135459.up, - down: migration_20251130_135459.down, - name: '20251130_135459', - }, - { - up: migration_20251130_143000_media_optimization.up, - down: migration_20251130_143000_media_optimization.down, - name: '20251130_143000_media_optimization', - }, - { - up: migration_20251130_150000_blocks_tables.up, - down: migration_20251130_150000_blocks_tables.down, - name: '20251130_150000_blocks_tables', - }, - { - up: migration_20251130_160000_fix_schema_divergence.up, - down: migration_20251130_160000_fix_schema_divergence.down, - name: '20251130_160000_fix_schema_divergence', - }, - { - up: migration_20251130_170000_add_search_index.up, - down: migration_20251130_170000_add_search_index.down, - name: '20251130_170000_add_search_index', - }, - { - up: migration_20251130_213429_add_localization.up, - down: migration_20251130_213429_add_localization.down, - name: '20251130_213429_add_localization' - }, -];