handoff-app 2.0.0-8 → 2.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (322) hide show
  1. package/{Changelog.md → CHANGELOG.md} +85 -1
  2. package/{License.md → LICENSE.md} +1 -1
  3. package/README.md +816 -393
  4. package/RECIPES.md +975 -0
  5. package/UPGRADE.md +57 -9
  6. package/components.json +20 -20
  7. package/config/docs/foundations/colors/guidelines.md +0 -1
  8. package/config/docs/foundations/colors.md +0 -1
  9. package/config/docs/foundations/effects/guidelines.md +0 -1
  10. package/config/docs/foundations/effects/resources.md +0 -1
  11. package/config/docs/foundations/effects.md +0 -1
  12. package/config/docs/foundations/fonts.md +0 -1
  13. package/config/docs/foundations/grid.md +0 -1
  14. package/config/docs/foundations/icon.md +0 -1
  15. package/config/docs/foundations/icons/guidelines.md +0 -1
  16. package/config/docs/foundations/icons.md +0 -1
  17. package/config/docs/foundations/images/guidelines.md +0 -1
  18. package/config/docs/foundations/images/resources.md +0 -1
  19. package/config/docs/foundations/images.md +0 -1
  20. package/config/docs/foundations/logo/resources.md +0 -1
  21. package/config/docs/foundations/logo.md +0 -1
  22. package/config/docs/foundations/typography/guidelines.md +0 -1
  23. package/config/docs/foundations/typography/resources.md +0 -1
  24. package/config/docs/foundations/typography.md +0 -1
  25. package/config/docs/foundations.md +0 -1
  26. package/config/docs/guidelines.md +0 -1
  27. package/config/docs/index.md +0 -1
  28. package/config/docs/system/tokens/foundations/colors.md +0 -4
  29. package/config/docs/system/tokens/foundations/effects.md +0 -4
  30. package/config/docs/system/tokens/foundations/typography.md +0 -2
  31. package/config/docs/system.md +0 -2
  32. package/config/templates/page.md +2 -1
  33. package/config/templates/page.mdx +2 -1
  34. package/dist/ai/connections.d.ts +66 -0
  35. package/dist/ai/connections.js +149 -0
  36. package/dist/ai/define.d.ts +10 -0
  37. package/dist/ai/define.js +13 -0
  38. package/dist/ai/types.d.ts +26 -0
  39. package/dist/ai/types.js +10 -0
  40. package/dist/app-builder/build.d.ts +14 -7
  41. package/dist/app-builder/build.js +195 -66
  42. package/dist/app-builder/client-config.js +3 -2
  43. package/dist/app-builder/paths.d.ts +0 -12
  44. package/dist/app-builder/paths.js +3 -20
  45. package/dist/app-builder/static-export.js +1 -1
  46. package/dist/app-builder/vercel-output.d.ts +1 -1
  47. package/dist/app-builder/vercel-output.js +5 -4
  48. package/dist/cache/build-cache.d.ts +27 -4
  49. package/dist/cache/build-cache.js +114 -47
  50. package/dist/cache/build-inputs.d.ts +13 -0
  51. package/dist/cache/build-inputs.js +19 -0
  52. package/dist/cache/index.d.ts +2 -1
  53. package/dist/cache/index.js +5 -1
  54. package/dist/catalog/normalize.js +3 -0
  55. package/dist/catalog/previews.js +5 -4
  56. package/dist/catalog/types.d.ts +8 -0
  57. package/dist/cli/create.js +1 -2
  58. package/dist/commands/build/index.d.ts +1 -1
  59. package/dist/commands/build/index.js +1 -1
  60. package/dist/commands/utils.d.ts +3 -3
  61. package/dist/config/defaults.js +7 -4
  62. package/dist/config/from-env.d.ts +4 -0
  63. package/dist/config/from-env.js +38 -1
  64. package/dist/config/helpers.js +2 -2
  65. package/dist/config/index.d.ts +0 -1
  66. package/dist/config/index.js +1 -4
  67. package/dist/config/loader.js +28 -2
  68. package/dist/config/resolve-env.d.ts +2 -1
  69. package/dist/config/resolve-env.js +28 -12
  70. package/dist/config/runtime.js +9 -11
  71. package/dist/handlebars.d.ts +10 -2
  72. package/dist/index.d.ts +12 -7
  73. package/dist/index.js +18 -22
  74. package/dist/nav/index.d.ts +2 -2
  75. package/dist/nav/registry.d.ts +3 -3
  76. package/dist/nav/registry.js +1 -1
  77. package/dist/nav/workspace.d.ts +3 -3
  78. package/dist/nav/workspace.js +1 -1
  79. package/dist/pipeline/figma.d.ts +13 -2
  80. package/dist/pipeline/figma.js +86 -46
  81. package/dist/pipeline/styles.js +1 -1
  82. package/dist/pipeline/validation.d.ts +1 -1
  83. package/dist/pipeline/validation.js +3 -3
  84. package/dist/providers.d.ts +10 -0
  85. package/dist/providers.js +13 -0
  86. package/dist/registry/asset-storage/define.d.ts +5 -5
  87. package/dist/registry/asset-storage/define.js +4 -4
  88. package/dist/registry/asset-storage/resolve.d.ts +9 -19
  89. package/dist/registry/asset-storage/resolve.js +33 -21
  90. package/dist/registry/asset-storage/types.d.ts +37 -17
  91. package/dist/registry/asset-storage/types.js +5 -5
  92. package/dist/registry/auth/ai-keys.d.ts +32 -0
  93. package/dist/registry/auth/ai-keys.js +69 -0
  94. package/dist/registry/auth/crypto.d.ts +17 -0
  95. package/dist/registry/auth/crypto.js +61 -1
  96. package/dist/registry/auth/index.d.ts +2 -1
  97. package/dist/registry/auth/index.js +11 -2
  98. package/dist/registry/checkout/index.d.ts +2 -1
  99. package/dist/registry/checkout/index.js +57 -127
  100. package/dist/registry/client.js +53 -17
  101. package/dist/registry/db/driver.js +3 -3
  102. package/dist/registry/db/schema.d.ts +261 -3
  103. package/dist/registry/db/schema.js +29 -4
  104. package/dist/registry/email/define.d.ts +10 -0
  105. package/dist/registry/email/define.js +13 -0
  106. package/dist/registry/email/providers/smtp.d.ts +10 -0
  107. package/dist/registry/email/providers/smtp.js +73 -0
  108. package/dist/registry/email/resolve.d.ts +28 -0
  109. package/dist/registry/email/resolve.js +74 -0
  110. package/dist/registry/email/types.d.ts +24 -0
  111. package/dist/registry/email/types.js +6 -0
  112. package/dist/registry/path.d.ts +2 -0
  113. package/dist/registry/path.js +11 -1
  114. package/dist/registry/publish/package.js +8 -0
  115. package/dist/registry/transfer.d.ts +4 -0
  116. package/dist/store/registry.d.ts +3 -3
  117. package/dist/store/registry.js +4 -4
  118. package/dist/transformers/plugins/ssr-render.js +40 -15
  119. package/dist/transformers/preview/component/builder.d.ts +1 -9
  120. package/dist/transformers/preview/component/builder.js +17 -17
  121. package/dist/transformers/preview/component/css.d.ts +3 -1
  122. package/dist/transformers/preview/component/css.js +92 -51
  123. package/dist/transformers/preview/component/html.d.ts +3 -1
  124. package/dist/transformers/preview/component/html.js +6 -2
  125. package/dist/transformers/preview/component/javascript.d.ts +2 -1
  126. package/dist/transformers/preview/component/javascript.js +10 -4
  127. package/dist/transformers/preview/pattern/html.js +3 -1
  128. package/dist/transformers/preview/types.d.ts +13 -0
  129. package/dist/transformers/utils/build.d.ts +24 -0
  130. package/dist/transformers/utils/build.js +100 -1
  131. package/dist/transformers/utils/module.js +2 -1
  132. package/dist/types/config.d.ts +135 -18
  133. package/dist/utils/path.d.ts +1 -5
  134. package/dist/utils/path.js +6 -23
  135. package/docs/api.md +6 -4
  136. package/docs/cli.md +275 -54
  137. package/drizzle/0007_add_ai_keys.sql +11 -0
  138. package/drizzle/0008_add_source_dir.sql +2 -0
  139. package/drizzle/meta/0007_snapshot.json +2013 -0
  140. package/drizzle/meta/0008_snapshot.json +2025 -0
  141. package/drizzle/meta/_journal.json +14 -0
  142. package/package.json +19 -8
  143. package/src/ai/README.md +42 -0
  144. package/src/ai/connections.ts +189 -0
  145. package/src/ai/define.ts +15 -0
  146. package/src/ai/types.ts +30 -0
  147. package/src/app/components/AiAssistant/AiAssistantPanel.tsx +144 -0
  148. package/src/app/components/AiAssistant/AiAssistantProvider.tsx +215 -0
  149. package/src/app/components/AiAssistant/AiConversation.tsx +737 -0
  150. package/src/app/components/AiAssistant/AiToolResult.tsx +99 -0
  151. package/src/app/components/AiAssistant/dockState.ts +86 -0
  152. package/src/app/components/AiAssistant/toolLabel.ts +24 -0
  153. package/src/app/components/AiAssistant/useAiChat.ts +147 -0
  154. package/src/app/components/AiAssistant/useAiConnections.ts +86 -0
  155. package/src/app/components/AiAssistant/usePageContext.ts +63 -0
  156. package/src/app/components/Auth/AccountLayout.tsx +58 -19
  157. package/src/app/components/Auth/AuthShell.tsx +27 -33
  158. package/src/app/components/Auth/RegistryInstallGate.tsx +4 -8
  159. package/src/app/components/Auth/installStatus.ts +29 -0
  160. package/src/app/components/Component/PageSliceResolver.tsx +1 -0
  161. package/src/app/components/Component/Preview.tsx +383 -189
  162. package/src/app/components/Component/slices/ComponentDisplaySlice.tsx +4 -0
  163. package/src/app/components/Foundations/ColorGrid.tsx +13 -14
  164. package/src/app/components/Layout/Header.tsx +21 -15
  165. package/src/app/components/Layout/Main.tsx +2 -2
  166. package/src/app/components/Markdown/MarkdownComponents.tsx +30 -32
  167. package/src/app/components/McpIntegration/McpConfigDialog.tsx +12 -51
  168. package/src/app/components/Navigation/MobileNav.tsx +2 -2
  169. package/src/app/components/Navigation/SideNav.tsx +1 -15
  170. package/src/app/components/context/NavProvider.tsx +7 -3
  171. package/src/app/components/ui/attachment.tsx +50 -0
  172. package/src/app/components/ui/bubble.tsx +57 -0
  173. package/src/app/components/ui/button.tsx +3 -1
  174. package/src/app/components/ui/confirm-dialog.tsx +87 -0
  175. package/src/app/components/ui/dialog.tsx +7 -2
  176. package/src/app/components/ui/marker.tsx +56 -0
  177. package/src/app/components/ui/sidebar.tsx +3 -1
  178. package/src/app/components/util/index.ts +3 -12
  179. package/src/app/css/index.css +64 -0
  180. package/src/app/lib/ai/auth.ts +33 -0
  181. package/src/app/lib/ai/context.ts +99 -0
  182. package/src/app/lib/ai/model.ts +79 -0
  183. package/src/app/lib/ai/prompt.ts +36 -0
  184. package/src/app/lib/ai/resolve.ts +97 -0
  185. package/src/app/lib/ai/tools.ts +120 -0
  186. package/src/app/lib/api/methods.ts +13 -0
  187. package/src/app/lib/asset-storage.ts +35 -36
  188. package/src/app/lib/auth/api.ts +4 -12
  189. package/src/app/lib/auth/email.ts +96 -23
  190. package/src/app/lib/docs-api/page-rendering.ts +1 -1
  191. package/src/app/lib/docs-api/registry.ts +2 -3
  192. package/src/app/lib/docs-api/runtime-config.ts +47 -21
  193. package/src/app/lib/mcp/components.ts +523 -0
  194. package/src/app/lib/mcp/page-url.ts +24 -0
  195. package/src/app/lib/mcp/pages.ts +84 -0
  196. package/src/app/lib/mcp/result.ts +33 -0
  197. package/src/app/lib/mcp/server.ts +39 -318
  198. package/src/app/lib/mcp/tokens.ts +334 -0
  199. package/src/app/lib/mcp/tool.ts +19 -0
  200. package/src/app/lib/registry-api/asset-transfer.ts +119 -11
  201. package/src/app/lib/registry-api/errors.ts +2 -0
  202. package/src/app/lib/registry-api/handler.ts +7 -1
  203. package/src/app/lib/registry-api/transfer.ts +28 -6
  204. package/src/app/lib/server-module.ts +34 -0
  205. package/src/app/lib/utils.ts +20 -0
  206. package/src/app/next.config.mjs +26 -24
  207. package/src/app/pages/[...slug]/index.tsx +2 -1
  208. package/src/app/pages/_app.tsx +6 -2
  209. package/src/app/pages/_document.tsx +6 -0
  210. package/src/app/pages/account/ai.tsx +183 -0
  211. package/src/app/pages/account/index.tsx +68 -68
  212. package/src/app/pages/account/tokens.tsx +37 -7
  213. package/src/app/pages/account/users.tsx +75 -15
  214. package/src/app/pages/api/account/ai/keys/[connectionId].ts +60 -0
  215. package/src/app/pages/api/account/ai/keys/index.ts +20 -0
  216. package/src/app/pages/api/admin/users/[id]/[action].ts +80 -11
  217. package/src/app/pages/api/admin/users/index.ts +2 -2
  218. package/src/app/pages/api/ai/chat.ts +115 -0
  219. package/src/app/pages/api/ai/connections.ts +23 -0
  220. package/src/app/pages/api/auth/request-reset.ts +14 -16
  221. package/src/app/pages/api/docs/nav.json.ts +1 -1
  222. package/src/app/pages/api/install.ts +3 -3
  223. package/src/app/pages/api/mcp.ts +6 -0
  224. package/src/app/pages/api/registry/transfer/assets/blobs/[hash]/complete.ts +11 -0
  225. package/src/app/pages/api/registry/transfer/assets/blobs/[hash]/upload.ts +12 -0
  226. package/src/app/pages/api/registry/transfer/assets/blobs/[hash].ts +1 -1
  227. package/src/app/pages/cli/device.tsx +10 -5
  228. package/src/app/pages/foundations/colors.tsx +9 -8
  229. package/src/app/pages/foundations/index.tsx +3 -3
  230. package/src/app/pages/index.tsx +2 -2
  231. package/src/app/pages/install.tsx +7 -2
  232. package/src/app/pages/login.tsx +32 -27
  233. package/src/app/pages/reset-password.tsx +21 -20
  234. package/src/app/pages/system/component/[component]/index.tsx +2 -5
  235. package/src/app/pages/system/index.tsx +11 -11
  236. package/src/app/pages/system/pattern/[pattern]/index.tsx +2 -2
  237. package/src/app/pages/system/tokens/components/[component]/index.tsx +0 -4
  238. package/src/app-builder/README.md +2 -1
  239. package/src/app-builder/build.ts +218 -73
  240. package/src/app-builder/client-config.ts +3 -2
  241. package/src/app-builder/paths.ts +3 -22
  242. package/src/app-builder/static-export.ts +1 -1
  243. package/src/app-builder/vercel-output.ts +5 -4
  244. package/src/cache/README.md +4 -1
  245. package/src/cache/build-cache.ts +128 -43
  246. package/src/cache/build-inputs.ts +28 -0
  247. package/src/cache/index.ts +4 -0
  248. package/src/catalog/README.md +3 -0
  249. package/src/catalog/normalize.ts +2 -0
  250. package/src/catalog/previews.ts +6 -3
  251. package/src/catalog/types.ts +8 -0
  252. package/src/cli/create.ts +1 -2
  253. package/src/commands/build/index.ts +1 -1
  254. package/src/config/README.md +10 -9
  255. package/src/config/defaults.ts +7 -4
  256. package/src/config/from-env.ts +33 -0
  257. package/src/config/helpers.ts +1 -3
  258. package/src/config/index.ts +0 -3
  259. package/src/config/loader.ts +27 -3
  260. package/src/config/resolve-env.ts +28 -15
  261. package/src/config/runtime.ts +10 -5
  262. package/src/handlebars.ts +8 -2
  263. package/src/index.ts +33 -29
  264. package/src/nav/index.ts +2 -2
  265. package/src/nav/registry.ts +3 -3
  266. package/src/nav/workspace.ts +3 -3
  267. package/src/pipeline/README.md +1 -1
  268. package/src/pipeline/figma.ts +98 -49
  269. package/src/pipeline/styles.ts +1 -1
  270. package/src/pipeline/validation.ts +3 -3
  271. package/src/providers.ts +18 -0
  272. package/src/registry/asset-storage/define.ts +6 -6
  273. package/src/registry/asset-storage/resolve.ts +38 -37
  274. package/src/registry/asset-storage/types.ts +39 -17
  275. package/src/registry/auth/ai-keys.ts +62 -0
  276. package/src/registry/auth/crypto.ts +63 -1
  277. package/src/registry/auth/index.ts +11 -1
  278. package/src/registry/checkout/index.ts +60 -138
  279. package/src/registry/client.ts +60 -20
  280. package/src/registry/db/driver.ts +2 -2
  281. package/src/registry/db/schema.ts +49 -22
  282. package/src/registry/email/define.ts +15 -0
  283. package/src/registry/email/providers/smtp.ts +39 -0
  284. package/src/registry/email/resolve.ts +94 -0
  285. package/src/registry/email/types.ts +28 -0
  286. package/src/registry/path.ts +11 -0
  287. package/src/registry/publish/package.ts +9 -0
  288. package/src/registry/transfer.ts +4 -0
  289. package/src/store/registry.ts +7 -7
  290. package/src/transformers/plugins/ssr-render.ts +53 -16
  291. package/src/transformers/preview/component/builder.ts +19 -25
  292. package/src/transformers/preview/component/css.ts +101 -53
  293. package/src/transformers/preview/component/html.ts +6 -2
  294. package/src/transformers/preview/component/javascript.ts +14 -4
  295. package/src/transformers/preview/pattern/html.ts +3 -1
  296. package/src/transformers/preview/types.ts +14 -0
  297. package/src/transformers/utils/build.ts +93 -0
  298. package/src/transformers/utils/module.ts +4 -2
  299. package/src/types/config.ts +148 -20
  300. package/src/utils/README.md +1 -1
  301. package/src/utils/path.ts +6 -29
  302. package/templates/default/handoff.config.js.tpl +10 -2
  303. package/templates/default/handoff.config.ts.tpl +10 -2
  304. package/templates/default/handoff.config.with-examples.js.tpl +10 -2
  305. package/templates/default/handoff.config.with-examples.ts.tpl +10 -2
  306. package/templates/default/package.json.tpl +2 -2
  307. package/.editorconfig +0 -19
  308. package/.eslintrc.json +0 -4
  309. package/.prettierignore +0 -0
  310. package/.prettierrc.json +0 -8
  311. package/.vscode/settings.json +0 -17
  312. package/dist/config/validator.d.ts +0 -9
  313. package/dist/config/validator.js +0 -24
  314. package/dist/registry/asset-storage/adapters/vercel-blob.d.ts +0 -17
  315. package/dist/registry/asset-storage/adapters/vercel-blob.js +0 -87
  316. package/src/app/components/old/Header.tsx +0 -89
  317. package/src/app/lib/mcp/shape.ts +0 -596
  318. package/src/app/pages/assets/fonts.tsx +0 -129
  319. package/src/app/pages/assets/index.tsx +0 -91
  320. package/src/app/pages/assets/logos.tsx +0 -75
  321. package/src/config/validator.ts +0 -22
  322. package/src/registry/asset-storage/adapters/vercel-blob.ts +0 -51
@@ -0,0 +1,2025 @@
1
+ {
2
+ "id": "772f7446-8408-4f87-b697-4c8c46ca9378",
3
+ "prevId": "fefea61e-b074-4115-9c23-796fe559f6b9",
4
+ "version": "7",
5
+ "dialect": "postgresql",
6
+ "tables": {
7
+ "public.asset_blobs": {
8
+ "name": "asset_blobs",
9
+ "schema": "",
10
+ "columns": {
11
+ "hash": {
12
+ "name": "hash",
13
+ "type": "text",
14
+ "primaryKey": true,
15
+ "notNull": true
16
+ },
17
+ "storage_provider": {
18
+ "name": "storage_provider",
19
+ "type": "text",
20
+ "primaryKey": false,
21
+ "notNull": true
22
+ },
23
+ "content": {
24
+ "name": "content",
25
+ "type": "bytea",
26
+ "primaryKey": false,
27
+ "notNull": false
28
+ },
29
+ "storage_ref": {
30
+ "name": "storage_ref",
31
+ "type": "text",
32
+ "primaryKey": false,
33
+ "notNull": false
34
+ },
35
+ "content_type": {
36
+ "name": "content_type",
37
+ "type": "text",
38
+ "primaryKey": false,
39
+ "notNull": true
40
+ },
41
+ "size": {
42
+ "name": "size",
43
+ "type": "integer",
44
+ "primaryKey": false,
45
+ "notNull": true
46
+ },
47
+ "created_at": {
48
+ "name": "created_at",
49
+ "type": "timestamp with time zone",
50
+ "primaryKey": false,
51
+ "notNull": true,
52
+ "default": "now()"
53
+ }
54
+ },
55
+ "indexes": {},
56
+ "foreignKeys": {},
57
+ "compositePrimaryKeys": {},
58
+ "uniqueConstraints": {},
59
+ "policies": {},
60
+ "checkConstraints": {},
61
+ "isRLSEnabled": false
62
+ },
63
+ "public.asset_collections": {
64
+ "name": "asset_collections",
65
+ "schema": "",
66
+ "columns": {
67
+ "collection": {
68
+ "name": "collection",
69
+ "type": "text",
70
+ "primaryKey": true,
71
+ "notNull": true
72
+ },
73
+ "source_hash": {
74
+ "name": "source_hash",
75
+ "type": "text",
76
+ "primaryKey": false,
77
+ "notNull": false
78
+ },
79
+ "status": {
80
+ "name": "status",
81
+ "type": "text",
82
+ "primaryKey": false,
83
+ "notNull": false
84
+ },
85
+ "built_at": {
86
+ "name": "built_at",
87
+ "type": "timestamp with time zone",
88
+ "primaryKey": false,
89
+ "notNull": false
90
+ },
91
+ "builder_version": {
92
+ "name": "builder_version",
93
+ "type": "text",
94
+ "primaryKey": false,
95
+ "notNull": false
96
+ },
97
+ "metadata": {
98
+ "name": "metadata",
99
+ "type": "jsonb",
100
+ "primaryKey": false,
101
+ "notNull": false
102
+ },
103
+ "created_at": {
104
+ "name": "created_at",
105
+ "type": "timestamp with time zone",
106
+ "primaryKey": false,
107
+ "notNull": true,
108
+ "default": "now()"
109
+ },
110
+ "updated_at": {
111
+ "name": "updated_at",
112
+ "type": "timestamp with time zone",
113
+ "primaryKey": false,
114
+ "notNull": true,
115
+ "default": "now()"
116
+ }
117
+ },
118
+ "indexes": {},
119
+ "foreignKeys": {},
120
+ "compositePrimaryKeys": {},
121
+ "uniqueConstraints": {},
122
+ "policies": {},
123
+ "checkConstraints": {},
124
+ "isRLSEnabled": false
125
+ },
126
+ "public.assets": {
127
+ "name": "assets",
128
+ "schema": "",
129
+ "columns": {
130
+ "collection": {
131
+ "name": "collection",
132
+ "type": "text",
133
+ "primaryKey": false,
134
+ "notNull": true
135
+ },
136
+ "path": {
137
+ "name": "path",
138
+ "type": "text",
139
+ "primaryKey": false,
140
+ "notNull": true
141
+ },
142
+ "name": {
143
+ "name": "name",
144
+ "type": "text",
145
+ "primaryKey": false,
146
+ "notNull": true
147
+ },
148
+ "content_type": {
149
+ "name": "content_type",
150
+ "type": "text",
151
+ "primaryKey": false,
152
+ "notNull": true
153
+ },
154
+ "size": {
155
+ "name": "size",
156
+ "type": "integer",
157
+ "primaryKey": false,
158
+ "notNull": false
159
+ },
160
+ "content_hash": {
161
+ "name": "content_hash",
162
+ "type": "text",
163
+ "primaryKey": false,
164
+ "notNull": true
165
+ },
166
+ "metadata": {
167
+ "name": "metadata",
168
+ "type": "jsonb",
169
+ "primaryKey": false,
170
+ "notNull": false
171
+ },
172
+ "blob_hash": {
173
+ "name": "blob_hash",
174
+ "type": "text",
175
+ "primaryKey": false,
176
+ "notNull": true
177
+ },
178
+ "created_at": {
179
+ "name": "created_at",
180
+ "type": "timestamp with time zone",
181
+ "primaryKey": false,
182
+ "notNull": true,
183
+ "default": "now()"
184
+ },
185
+ "updated_at": {
186
+ "name": "updated_at",
187
+ "type": "timestamp with time zone",
188
+ "primaryKey": false,
189
+ "notNull": true,
190
+ "default": "now()"
191
+ }
192
+ },
193
+ "indexes": {},
194
+ "foreignKeys": {
195
+ "assets_collection_asset_collections_collection_fk": {
196
+ "name": "assets_collection_asset_collections_collection_fk",
197
+ "tableFrom": "assets",
198
+ "tableTo": "asset_collections",
199
+ "columnsFrom": [
200
+ "collection"
201
+ ],
202
+ "columnsTo": [
203
+ "collection"
204
+ ],
205
+ "onDelete": "cascade",
206
+ "onUpdate": "no action"
207
+ },
208
+ "assets_blob_hash_asset_blobs_hash_fk": {
209
+ "name": "assets_blob_hash_asset_blobs_hash_fk",
210
+ "tableFrom": "assets",
211
+ "tableTo": "asset_blobs",
212
+ "columnsFrom": [
213
+ "blob_hash"
214
+ ],
215
+ "columnsTo": [
216
+ "hash"
217
+ ],
218
+ "onDelete": "no action",
219
+ "onUpdate": "no action"
220
+ }
221
+ },
222
+ "compositePrimaryKeys": {
223
+ "assets_collection_path_pk": {
224
+ "name": "assets_collection_path_pk",
225
+ "columns": [
226
+ "collection",
227
+ "path"
228
+ ]
229
+ }
230
+ },
231
+ "uniqueConstraints": {},
232
+ "policies": {},
233
+ "checkConstraints": {},
234
+ "isRLSEnabled": false
235
+ },
236
+ "public.build_metadata": {
237
+ "name": "build_metadata",
238
+ "schema": "",
239
+ "columns": {
240
+ "entity_kind": {
241
+ "name": "entity_kind",
242
+ "type": "text",
243
+ "primaryKey": false,
244
+ "notNull": true
245
+ },
246
+ "entity_id": {
247
+ "name": "entity_id",
248
+ "type": "text",
249
+ "primaryKey": false,
250
+ "notNull": true
251
+ },
252
+ "status": {
253
+ "name": "status",
254
+ "type": "text",
255
+ "primaryKey": false,
256
+ "notNull": true
257
+ },
258
+ "built_at": {
259
+ "name": "built_at",
260
+ "type": "timestamp with time zone",
261
+ "primaryKey": false,
262
+ "notNull": false
263
+ },
264
+ "builder_version": {
265
+ "name": "builder_version",
266
+ "type": "text",
267
+ "primaryKey": false,
268
+ "notNull": false
269
+ },
270
+ "artifact_hash": {
271
+ "name": "artifact_hash",
272
+ "type": "text",
273
+ "primaryKey": false,
274
+ "notNull": false
275
+ },
276
+ "source_hash": {
277
+ "name": "source_hash",
278
+ "type": "text",
279
+ "primaryKey": false,
280
+ "notNull": false
281
+ },
282
+ "warnings": {
283
+ "name": "warnings",
284
+ "type": "jsonb",
285
+ "primaryKey": false,
286
+ "notNull": false
287
+ },
288
+ "error": {
289
+ "name": "error",
290
+ "type": "text",
291
+ "primaryKey": false,
292
+ "notNull": false
293
+ },
294
+ "created_at": {
295
+ "name": "created_at",
296
+ "type": "timestamp with time zone",
297
+ "primaryKey": false,
298
+ "notNull": true,
299
+ "default": "now()"
300
+ },
301
+ "updated_at": {
302
+ "name": "updated_at",
303
+ "type": "timestamp with time zone",
304
+ "primaryKey": false,
305
+ "notNull": true,
306
+ "default": "now()"
307
+ }
308
+ },
309
+ "indexes": {},
310
+ "foreignKeys": {},
311
+ "compositePrimaryKeys": {
312
+ "build_metadata_entity_kind_entity_id_pk": {
313
+ "name": "build_metadata_entity_kind_entity_id_pk",
314
+ "columns": [
315
+ "entity_kind",
316
+ "entity_id"
317
+ ]
318
+ }
319
+ },
320
+ "uniqueConstraints": {},
321
+ "policies": {},
322
+ "checkConstraints": {},
323
+ "isRLSEnabled": false
324
+ },
325
+ "public.component_files": {
326
+ "name": "component_files",
327
+ "schema": "",
328
+ "columns": {
329
+ "component_id": {
330
+ "name": "component_id",
331
+ "type": "text",
332
+ "primaryKey": false,
333
+ "notNull": true
334
+ },
335
+ "path": {
336
+ "name": "path",
337
+ "type": "text",
338
+ "primaryKey": false,
339
+ "notNull": true
340
+ },
341
+ "kind": {
342
+ "name": "kind",
343
+ "type": "text",
344
+ "primaryKey": false,
345
+ "notNull": true
346
+ },
347
+ "content": {
348
+ "name": "content",
349
+ "type": "text",
350
+ "primaryKey": false,
351
+ "notNull": false
352
+ },
353
+ "storage_ref": {
354
+ "name": "storage_ref",
355
+ "type": "text",
356
+ "primaryKey": false,
357
+ "notNull": false
358
+ },
359
+ "content_type": {
360
+ "name": "content_type",
361
+ "type": "text",
362
+ "primaryKey": false,
363
+ "notNull": true
364
+ },
365
+ "created_at": {
366
+ "name": "created_at",
367
+ "type": "timestamp with time zone",
368
+ "primaryKey": false,
369
+ "notNull": true,
370
+ "default": "now()"
371
+ },
372
+ "updated_at": {
373
+ "name": "updated_at",
374
+ "type": "timestamp with time zone",
375
+ "primaryKey": false,
376
+ "notNull": true,
377
+ "default": "now()"
378
+ }
379
+ },
380
+ "indexes": {},
381
+ "foreignKeys": {
382
+ "component_files_component_id_components_id_fk": {
383
+ "name": "component_files_component_id_components_id_fk",
384
+ "tableFrom": "component_files",
385
+ "tableTo": "components",
386
+ "columnsFrom": [
387
+ "component_id"
388
+ ],
389
+ "columnsTo": [
390
+ "id"
391
+ ],
392
+ "onDelete": "cascade",
393
+ "onUpdate": "no action"
394
+ }
395
+ },
396
+ "compositePrimaryKeys": {
397
+ "component_files_component_id_path_pk": {
398
+ "name": "component_files_component_id_path_pk",
399
+ "columns": [
400
+ "component_id",
401
+ "path"
402
+ ]
403
+ }
404
+ },
405
+ "uniqueConstraints": {},
406
+ "policies": {},
407
+ "checkConstraints": {
408
+ "component_files_kind_not_declaration": {
409
+ "name": "component_files_kind_not_declaration",
410
+ "value": "\"component_files\".\"kind\" <> 'declaration'"
411
+ }
412
+ },
413
+ "isRLSEnabled": false
414
+ },
415
+ "public.components": {
416
+ "name": "components",
417
+ "schema": "",
418
+ "columns": {
419
+ "id": {
420
+ "name": "id",
421
+ "type": "text",
422
+ "primaryKey": true,
423
+ "notNull": true
424
+ },
425
+ "path": {
426
+ "name": "path",
427
+ "type": "text",
428
+ "primaryKey": false,
429
+ "notNull": true
430
+ },
431
+ "title": {
432
+ "name": "title",
433
+ "type": "text",
434
+ "primaryKey": false,
435
+ "notNull": false
436
+ },
437
+ "description": {
438
+ "name": "description",
439
+ "type": "text",
440
+ "primaryKey": false,
441
+ "notNull": false
442
+ },
443
+ "group": {
444
+ "name": "group",
445
+ "type": "text",
446
+ "primaryKey": false,
447
+ "notNull": false
448
+ },
449
+ "type": {
450
+ "name": "type",
451
+ "type": "text",
452
+ "primaryKey": false,
453
+ "notNull": false
454
+ },
455
+ "renderer": {
456
+ "name": "renderer",
457
+ "type": "text",
458
+ "primaryKey": false,
459
+ "notNull": false
460
+ },
461
+ "source_format": {
462
+ "name": "source_format",
463
+ "type": "text",
464
+ "primaryKey": false,
465
+ "notNull": false
466
+ },
467
+ "tags": {
468
+ "name": "tags",
469
+ "type": "jsonb",
470
+ "primaryKey": false,
471
+ "notNull": false
472
+ },
473
+ "categories": {
474
+ "name": "categories",
475
+ "type": "jsonb",
476
+ "primaryKey": false,
477
+ "notNull": false
478
+ },
479
+ "source_dir": {
480
+ "name": "source_dir",
481
+ "type": "text",
482
+ "primaryKey": false,
483
+ "notNull": false
484
+ },
485
+ "record": {
486
+ "name": "record",
487
+ "type": "jsonb",
488
+ "primaryKey": false,
489
+ "notNull": true
490
+ },
491
+ "metadata": {
492
+ "name": "metadata",
493
+ "type": "jsonb",
494
+ "primaryKey": false,
495
+ "notNull": false
496
+ },
497
+ "created_at": {
498
+ "name": "created_at",
499
+ "type": "timestamp with time zone",
500
+ "primaryKey": false,
501
+ "notNull": true,
502
+ "default": "now()"
503
+ },
504
+ "updated_at": {
505
+ "name": "updated_at",
506
+ "type": "timestamp with time zone",
507
+ "primaryKey": false,
508
+ "notNull": true,
509
+ "default": "now()"
510
+ }
511
+ },
512
+ "indexes": {
513
+ "components_group_idx": {
514
+ "name": "components_group_idx",
515
+ "columns": [
516
+ {
517
+ "expression": "group",
518
+ "isExpression": false,
519
+ "asc": true,
520
+ "nulls": "last"
521
+ }
522
+ ],
523
+ "isUnique": false,
524
+ "concurrently": false,
525
+ "method": "btree",
526
+ "with": {}
527
+ }
528
+ },
529
+ "foreignKeys": {},
530
+ "compositePrimaryKeys": {},
531
+ "uniqueConstraints": {},
532
+ "policies": {},
533
+ "checkConstraints": {},
534
+ "isRLSEnabled": false
535
+ },
536
+ "public.docs_artifacts": {
537
+ "name": "docs_artifacts",
538
+ "schema": "",
539
+ "columns": {
540
+ "path": {
541
+ "name": "path",
542
+ "type": "text",
543
+ "primaryKey": true,
544
+ "notNull": true
545
+ },
546
+ "entity_kind": {
547
+ "name": "entity_kind",
548
+ "type": "text",
549
+ "primaryKey": false,
550
+ "notNull": true
551
+ },
552
+ "entity_id": {
553
+ "name": "entity_id",
554
+ "type": "text",
555
+ "primaryKey": false,
556
+ "notNull": false
557
+ },
558
+ "artifact_kind": {
559
+ "name": "artifact_kind",
560
+ "type": "text",
561
+ "primaryKey": false,
562
+ "notNull": true
563
+ },
564
+ "content": {
565
+ "name": "content",
566
+ "type": "text",
567
+ "primaryKey": false,
568
+ "notNull": false
569
+ },
570
+ "storage_ref": {
571
+ "name": "storage_ref",
572
+ "type": "text",
573
+ "primaryKey": false,
574
+ "notNull": false
575
+ },
576
+ "content_type": {
577
+ "name": "content_type",
578
+ "type": "text",
579
+ "primaryKey": false,
580
+ "notNull": true
581
+ },
582
+ "owner_kind": {
583
+ "name": "owner_kind",
584
+ "type": "text",
585
+ "primaryKey": false,
586
+ "notNull": false
587
+ },
588
+ "owner_id": {
589
+ "name": "owner_id",
590
+ "type": "text",
591
+ "primaryKey": false,
592
+ "notNull": false
593
+ },
594
+ "references": {
595
+ "name": "references",
596
+ "type": "jsonb",
597
+ "primaryKey": false,
598
+ "notNull": false
599
+ },
600
+ "format_version": {
601
+ "name": "format_version",
602
+ "type": "text",
603
+ "primaryKey": false,
604
+ "notNull": false
605
+ },
606
+ "build_id": {
607
+ "name": "build_id",
608
+ "type": "text",
609
+ "primaryKey": false,
610
+ "notNull": false
611
+ },
612
+ "hash": {
613
+ "name": "hash",
614
+ "type": "text",
615
+ "primaryKey": false,
616
+ "notNull": false
617
+ },
618
+ "size": {
619
+ "name": "size",
620
+ "type": "integer",
621
+ "primaryKey": false,
622
+ "notNull": false
623
+ },
624
+ "gzip_size": {
625
+ "name": "gzip_size",
626
+ "type": "integer",
627
+ "primaryKey": false,
628
+ "notNull": false
629
+ },
630
+ "created_at": {
631
+ "name": "created_at",
632
+ "type": "timestamp with time zone",
633
+ "primaryKey": false,
634
+ "notNull": true,
635
+ "default": "now()"
636
+ },
637
+ "updated_at": {
638
+ "name": "updated_at",
639
+ "type": "timestamp with time zone",
640
+ "primaryKey": false,
641
+ "notNull": true,
642
+ "default": "now()"
643
+ }
644
+ },
645
+ "indexes": {
646
+ "docs_artifacts_entity_idx": {
647
+ "name": "docs_artifacts_entity_idx",
648
+ "columns": [
649
+ {
650
+ "expression": "entity_kind",
651
+ "isExpression": false,
652
+ "asc": true,
653
+ "nulls": "last"
654
+ },
655
+ {
656
+ "expression": "entity_id",
657
+ "isExpression": false,
658
+ "asc": true,
659
+ "nulls": "last"
660
+ }
661
+ ],
662
+ "isUnique": false,
663
+ "concurrently": false,
664
+ "method": "btree",
665
+ "with": {}
666
+ },
667
+ "docs_artifacts_owner_idx": {
668
+ "name": "docs_artifacts_owner_idx",
669
+ "columns": [
670
+ {
671
+ "expression": "owner_kind",
672
+ "isExpression": false,
673
+ "asc": true,
674
+ "nulls": "last"
675
+ },
676
+ {
677
+ "expression": "owner_id",
678
+ "isExpression": false,
679
+ "asc": true,
680
+ "nulls": "last"
681
+ }
682
+ ],
683
+ "isUnique": false,
684
+ "concurrently": false,
685
+ "method": "btree",
686
+ "with": {}
687
+ }
688
+ },
689
+ "foreignKeys": {},
690
+ "compositePrimaryKeys": {},
691
+ "uniqueConstraints": {},
692
+ "policies": {},
693
+ "checkConstraints": {},
694
+ "isRLSEnabled": false
695
+ },
696
+ "public.page_files": {
697
+ "name": "page_files",
698
+ "schema": "",
699
+ "columns": {
700
+ "page_id": {
701
+ "name": "page_id",
702
+ "type": "text",
703
+ "primaryKey": false,
704
+ "notNull": true
705
+ },
706
+ "path": {
707
+ "name": "path",
708
+ "type": "text",
709
+ "primaryKey": false,
710
+ "notNull": true
711
+ },
712
+ "kind": {
713
+ "name": "kind",
714
+ "type": "text",
715
+ "primaryKey": false,
716
+ "notNull": true
717
+ },
718
+ "content": {
719
+ "name": "content",
720
+ "type": "text",
721
+ "primaryKey": false,
722
+ "notNull": false
723
+ },
724
+ "body": {
725
+ "name": "body",
726
+ "type": "text",
727
+ "primaryKey": false,
728
+ "notNull": true
729
+ },
730
+ "storage_ref": {
731
+ "name": "storage_ref",
732
+ "type": "text",
733
+ "primaryKey": false,
734
+ "notNull": false
735
+ },
736
+ "content_type": {
737
+ "name": "content_type",
738
+ "type": "text",
739
+ "primaryKey": false,
740
+ "notNull": true
741
+ },
742
+ "created_at": {
743
+ "name": "created_at",
744
+ "type": "timestamp with time zone",
745
+ "primaryKey": false,
746
+ "notNull": true,
747
+ "default": "now()"
748
+ },
749
+ "updated_at": {
750
+ "name": "updated_at",
751
+ "type": "timestamp with time zone",
752
+ "primaryKey": false,
753
+ "notNull": true,
754
+ "default": "now()"
755
+ }
756
+ },
757
+ "indexes": {},
758
+ "foreignKeys": {
759
+ "page_files_page_id_pages_id_fk": {
760
+ "name": "page_files_page_id_pages_id_fk",
761
+ "tableFrom": "page_files",
762
+ "tableTo": "pages",
763
+ "columnsFrom": [
764
+ "page_id"
765
+ ],
766
+ "columnsTo": [
767
+ "id"
768
+ ],
769
+ "onDelete": "cascade",
770
+ "onUpdate": "no action"
771
+ }
772
+ },
773
+ "compositePrimaryKeys": {
774
+ "page_files_page_id_pk": {
775
+ "name": "page_files_page_id_pk",
776
+ "columns": [
777
+ "page_id"
778
+ ]
779
+ }
780
+ },
781
+ "uniqueConstraints": {},
782
+ "policies": {},
783
+ "checkConstraints": {
784
+ "page_files_kind_markdown": {
785
+ "name": "page_files_kind_markdown",
786
+ "value": "\"page_files\".\"kind\" = 'markdown'"
787
+ },
788
+ "page_files_canonical_path": {
789
+ "name": "page_files_canonical_path",
790
+ "value": "\"page_files\".\"path\" = \"page_files\".\"page_id\" || '.md'"
791
+ }
792
+ },
793
+ "isRLSEnabled": false
794
+ },
795
+ "public.pages": {
796
+ "name": "pages",
797
+ "schema": "",
798
+ "columns": {
799
+ "id": {
800
+ "name": "id",
801
+ "type": "text",
802
+ "primaryKey": true,
803
+ "notNull": true
804
+ },
805
+ "path": {
806
+ "name": "path",
807
+ "type": "text",
808
+ "primaryKey": false,
809
+ "notNull": true
810
+ },
811
+ "title": {
812
+ "name": "title",
813
+ "type": "text",
814
+ "primaryKey": false,
815
+ "notNull": false
816
+ },
817
+ "description": {
818
+ "name": "description",
819
+ "type": "text",
820
+ "primaryKey": false,
821
+ "notNull": false
822
+ },
823
+ "group": {
824
+ "name": "group",
825
+ "type": "text",
826
+ "primaryKey": false,
827
+ "notNull": false
828
+ },
829
+ "weight": {
830
+ "name": "weight",
831
+ "type": "integer",
832
+ "primaryKey": false,
833
+ "notNull": false
834
+ },
835
+ "record": {
836
+ "name": "record",
837
+ "type": "jsonb",
838
+ "primaryKey": false,
839
+ "notNull": true
840
+ },
841
+ "metadata": {
842
+ "name": "metadata",
843
+ "type": "jsonb",
844
+ "primaryKey": false,
845
+ "notNull": false
846
+ },
847
+ "created_at": {
848
+ "name": "created_at",
849
+ "type": "timestamp with time zone",
850
+ "primaryKey": false,
851
+ "notNull": true,
852
+ "default": "now()"
853
+ },
854
+ "updated_at": {
855
+ "name": "updated_at",
856
+ "type": "timestamp with time zone",
857
+ "primaryKey": false,
858
+ "notNull": true,
859
+ "default": "now()"
860
+ }
861
+ },
862
+ "indexes": {
863
+ "pages_group_idx": {
864
+ "name": "pages_group_idx",
865
+ "columns": [
866
+ {
867
+ "expression": "group",
868
+ "isExpression": false,
869
+ "asc": true,
870
+ "nulls": "last"
871
+ }
872
+ ],
873
+ "isUnique": false,
874
+ "concurrently": false,
875
+ "method": "btree",
876
+ "with": {}
877
+ }
878
+ },
879
+ "foreignKeys": {},
880
+ "compositePrimaryKeys": {},
881
+ "uniqueConstraints": {},
882
+ "policies": {},
883
+ "checkConstraints": {},
884
+ "isRLSEnabled": false
885
+ },
886
+ "public.pattern_files": {
887
+ "name": "pattern_files",
888
+ "schema": "",
889
+ "columns": {
890
+ "pattern_id": {
891
+ "name": "pattern_id",
892
+ "type": "text",
893
+ "primaryKey": false,
894
+ "notNull": true
895
+ },
896
+ "path": {
897
+ "name": "path",
898
+ "type": "text",
899
+ "primaryKey": false,
900
+ "notNull": true
901
+ },
902
+ "kind": {
903
+ "name": "kind",
904
+ "type": "text",
905
+ "primaryKey": false,
906
+ "notNull": true
907
+ },
908
+ "content": {
909
+ "name": "content",
910
+ "type": "text",
911
+ "primaryKey": false,
912
+ "notNull": false
913
+ },
914
+ "storage_ref": {
915
+ "name": "storage_ref",
916
+ "type": "text",
917
+ "primaryKey": false,
918
+ "notNull": false
919
+ },
920
+ "content_type": {
921
+ "name": "content_type",
922
+ "type": "text",
923
+ "primaryKey": false,
924
+ "notNull": true
925
+ },
926
+ "created_at": {
927
+ "name": "created_at",
928
+ "type": "timestamp with time zone",
929
+ "primaryKey": false,
930
+ "notNull": true,
931
+ "default": "now()"
932
+ },
933
+ "updated_at": {
934
+ "name": "updated_at",
935
+ "type": "timestamp with time zone",
936
+ "primaryKey": false,
937
+ "notNull": true,
938
+ "default": "now()"
939
+ }
940
+ },
941
+ "indexes": {},
942
+ "foreignKeys": {
943
+ "pattern_files_pattern_id_patterns_id_fk": {
944
+ "name": "pattern_files_pattern_id_patterns_id_fk",
945
+ "tableFrom": "pattern_files",
946
+ "tableTo": "patterns",
947
+ "columnsFrom": [
948
+ "pattern_id"
949
+ ],
950
+ "columnsTo": [
951
+ "id"
952
+ ],
953
+ "onDelete": "cascade",
954
+ "onUpdate": "no action"
955
+ }
956
+ },
957
+ "compositePrimaryKeys": {
958
+ "pattern_files_pattern_id_path_pk": {
959
+ "name": "pattern_files_pattern_id_path_pk",
960
+ "columns": [
961
+ "pattern_id",
962
+ "path"
963
+ ]
964
+ }
965
+ },
966
+ "uniqueConstraints": {},
967
+ "policies": {},
968
+ "checkConstraints": {
969
+ "pattern_files_kind_not_declaration": {
970
+ "name": "pattern_files_kind_not_declaration",
971
+ "value": "\"pattern_files\".\"kind\" <> 'declaration'"
972
+ }
973
+ },
974
+ "isRLSEnabled": false
975
+ },
976
+ "public.patterns": {
977
+ "name": "patterns",
978
+ "schema": "",
979
+ "columns": {
980
+ "id": {
981
+ "name": "id",
982
+ "type": "text",
983
+ "primaryKey": true,
984
+ "notNull": true
985
+ },
986
+ "path": {
987
+ "name": "path",
988
+ "type": "text",
989
+ "primaryKey": false,
990
+ "notNull": true
991
+ },
992
+ "title": {
993
+ "name": "title",
994
+ "type": "text",
995
+ "primaryKey": false,
996
+ "notNull": false
997
+ },
998
+ "description": {
999
+ "name": "description",
1000
+ "type": "text",
1001
+ "primaryKey": false,
1002
+ "notNull": false
1003
+ },
1004
+ "group": {
1005
+ "name": "group",
1006
+ "type": "text",
1007
+ "primaryKey": false,
1008
+ "notNull": false
1009
+ },
1010
+ "tags": {
1011
+ "name": "tags",
1012
+ "type": "jsonb",
1013
+ "primaryKey": false,
1014
+ "notNull": false
1015
+ },
1016
+ "components": {
1017
+ "name": "components",
1018
+ "type": "jsonb",
1019
+ "primaryKey": false,
1020
+ "notNull": false
1021
+ },
1022
+ "source_dir": {
1023
+ "name": "source_dir",
1024
+ "type": "text",
1025
+ "primaryKey": false,
1026
+ "notNull": false
1027
+ },
1028
+ "record": {
1029
+ "name": "record",
1030
+ "type": "jsonb",
1031
+ "primaryKey": false,
1032
+ "notNull": true
1033
+ },
1034
+ "metadata": {
1035
+ "name": "metadata",
1036
+ "type": "jsonb",
1037
+ "primaryKey": false,
1038
+ "notNull": false
1039
+ },
1040
+ "created_at": {
1041
+ "name": "created_at",
1042
+ "type": "timestamp with time zone",
1043
+ "primaryKey": false,
1044
+ "notNull": true,
1045
+ "default": "now()"
1046
+ },
1047
+ "updated_at": {
1048
+ "name": "updated_at",
1049
+ "type": "timestamp with time zone",
1050
+ "primaryKey": false,
1051
+ "notNull": true,
1052
+ "default": "now()"
1053
+ }
1054
+ },
1055
+ "indexes": {
1056
+ "patterns_group_idx": {
1057
+ "name": "patterns_group_idx",
1058
+ "columns": [
1059
+ {
1060
+ "expression": "group",
1061
+ "isExpression": false,
1062
+ "asc": true,
1063
+ "nulls": "last"
1064
+ }
1065
+ ],
1066
+ "isUnique": false,
1067
+ "concurrently": false,
1068
+ "method": "btree",
1069
+ "with": {}
1070
+ }
1071
+ },
1072
+ "foreignKeys": {},
1073
+ "compositePrimaryKeys": {},
1074
+ "uniqueConstraints": {},
1075
+ "policies": {},
1076
+ "checkConstraints": {},
1077
+ "isRLSEnabled": false
1078
+ },
1079
+ "public.registry_access_tokens": {
1080
+ "name": "registry_access_tokens",
1081
+ "schema": "",
1082
+ "columns": {
1083
+ "id": {
1084
+ "name": "id",
1085
+ "type": "text",
1086
+ "primaryKey": true,
1087
+ "notNull": true
1088
+ },
1089
+ "user_id": {
1090
+ "name": "user_id",
1091
+ "type": "text",
1092
+ "primaryKey": false,
1093
+ "notNull": true
1094
+ },
1095
+ "name": {
1096
+ "name": "name",
1097
+ "type": "text",
1098
+ "primaryKey": false,
1099
+ "notNull": true
1100
+ },
1101
+ "secret_hash": {
1102
+ "name": "secret_hash",
1103
+ "type": "text",
1104
+ "primaryKey": false,
1105
+ "notNull": true
1106
+ },
1107
+ "scopes": {
1108
+ "name": "scopes",
1109
+ "type": "jsonb",
1110
+ "primaryKey": false,
1111
+ "notNull": true
1112
+ },
1113
+ "expires_at": {
1114
+ "name": "expires_at",
1115
+ "type": "timestamp with time zone",
1116
+ "primaryKey": false,
1117
+ "notNull": true
1118
+ },
1119
+ "last_used_at": {
1120
+ "name": "last_used_at",
1121
+ "type": "timestamp with time zone",
1122
+ "primaryKey": false,
1123
+ "notNull": false
1124
+ },
1125
+ "revoked_at": {
1126
+ "name": "revoked_at",
1127
+ "type": "timestamp with time zone",
1128
+ "primaryKey": false,
1129
+ "notNull": false
1130
+ },
1131
+ "created_at": {
1132
+ "name": "created_at",
1133
+ "type": "timestamp with time zone",
1134
+ "primaryKey": false,
1135
+ "notNull": true,
1136
+ "default": "now()"
1137
+ }
1138
+ },
1139
+ "indexes": {
1140
+ "registry_access_tokens_user_idx": {
1141
+ "name": "registry_access_tokens_user_idx",
1142
+ "columns": [
1143
+ {
1144
+ "expression": "user_id",
1145
+ "isExpression": false,
1146
+ "asc": true,
1147
+ "nulls": "last"
1148
+ }
1149
+ ],
1150
+ "isUnique": false,
1151
+ "concurrently": false,
1152
+ "method": "btree",
1153
+ "with": {}
1154
+ },
1155
+ "registry_access_tokens_expires_idx": {
1156
+ "name": "registry_access_tokens_expires_idx",
1157
+ "columns": [
1158
+ {
1159
+ "expression": "expires_at",
1160
+ "isExpression": false,
1161
+ "asc": true,
1162
+ "nulls": "last"
1163
+ }
1164
+ ],
1165
+ "isUnique": false,
1166
+ "concurrently": false,
1167
+ "method": "btree",
1168
+ "with": {}
1169
+ }
1170
+ },
1171
+ "foreignKeys": {
1172
+ "registry_access_tokens_user_id_registry_users_id_fk": {
1173
+ "name": "registry_access_tokens_user_id_registry_users_id_fk",
1174
+ "tableFrom": "registry_access_tokens",
1175
+ "tableTo": "registry_users",
1176
+ "columnsFrom": [
1177
+ "user_id"
1178
+ ],
1179
+ "columnsTo": [
1180
+ "id"
1181
+ ],
1182
+ "onDelete": "cascade",
1183
+ "onUpdate": "no action"
1184
+ }
1185
+ },
1186
+ "compositePrimaryKeys": {},
1187
+ "uniqueConstraints": {},
1188
+ "policies": {},
1189
+ "checkConstraints": {
1190
+ "registry_access_tokens_name_not_blank": {
1191
+ "name": "registry_access_tokens_name_not_blank",
1192
+ "value": "length(btrim(\"registry_access_tokens\".\"name\")) > 0"
1193
+ },
1194
+ "registry_access_tokens_scopes_array": {
1195
+ "name": "registry_access_tokens_scopes_array",
1196
+ "value": "jsonb_typeof(\"registry_access_tokens\".\"scopes\") = 'array'"
1197
+ }
1198
+ },
1199
+ "isRLSEnabled": false
1200
+ },
1201
+ "public.registry_ai_keys": {
1202
+ "name": "registry_ai_keys",
1203
+ "schema": "",
1204
+ "columns": {
1205
+ "user_id": {
1206
+ "name": "user_id",
1207
+ "type": "text",
1208
+ "primaryKey": false,
1209
+ "notNull": true
1210
+ },
1211
+ "connection_id": {
1212
+ "name": "connection_id",
1213
+ "type": "text",
1214
+ "primaryKey": false,
1215
+ "notNull": true
1216
+ },
1217
+ "encrypted_key": {
1218
+ "name": "encrypted_key",
1219
+ "type": "text",
1220
+ "primaryKey": false,
1221
+ "notNull": true
1222
+ },
1223
+ "created_at": {
1224
+ "name": "created_at",
1225
+ "type": "timestamp with time zone",
1226
+ "primaryKey": false,
1227
+ "notNull": true,
1228
+ "default": "now()"
1229
+ },
1230
+ "updated_at": {
1231
+ "name": "updated_at",
1232
+ "type": "timestamp with time zone",
1233
+ "primaryKey": false,
1234
+ "notNull": true,
1235
+ "default": "now()"
1236
+ }
1237
+ },
1238
+ "indexes": {},
1239
+ "foreignKeys": {
1240
+ "registry_ai_keys_user_id_registry_users_id_fk": {
1241
+ "name": "registry_ai_keys_user_id_registry_users_id_fk",
1242
+ "tableFrom": "registry_ai_keys",
1243
+ "tableTo": "registry_users",
1244
+ "columnsFrom": [
1245
+ "user_id"
1246
+ ],
1247
+ "columnsTo": [
1248
+ "id"
1249
+ ],
1250
+ "onDelete": "cascade",
1251
+ "onUpdate": "no action"
1252
+ }
1253
+ },
1254
+ "compositePrimaryKeys": {
1255
+ "registry_ai_keys_user_id_connection_id_pk": {
1256
+ "name": "registry_ai_keys_user_id_connection_id_pk",
1257
+ "columns": [
1258
+ "user_id",
1259
+ "connection_id"
1260
+ ]
1261
+ }
1262
+ },
1263
+ "uniqueConstraints": {},
1264
+ "policies": {},
1265
+ "checkConstraints": {
1266
+ "registry_ai_keys_connection_not_blank": {
1267
+ "name": "registry_ai_keys_connection_not_blank",
1268
+ "value": "length(btrim(\"registry_ai_keys\".\"connection_id\")) > 0"
1269
+ }
1270
+ },
1271
+ "isRLSEnabled": false
1272
+ },
1273
+ "public.registry_auth_action_tokens": {
1274
+ "name": "registry_auth_action_tokens",
1275
+ "schema": "",
1276
+ "columns": {
1277
+ "id": {
1278
+ "name": "id",
1279
+ "type": "text",
1280
+ "primaryKey": true,
1281
+ "notNull": true
1282
+ },
1283
+ "user_id": {
1284
+ "name": "user_id",
1285
+ "type": "text",
1286
+ "primaryKey": false,
1287
+ "notNull": true
1288
+ },
1289
+ "purpose": {
1290
+ "name": "purpose",
1291
+ "type": "text",
1292
+ "primaryKey": false,
1293
+ "notNull": true
1294
+ },
1295
+ "token_hash": {
1296
+ "name": "token_hash",
1297
+ "type": "text",
1298
+ "primaryKey": false,
1299
+ "notNull": true
1300
+ },
1301
+ "expires_at": {
1302
+ "name": "expires_at",
1303
+ "type": "timestamp with time zone",
1304
+ "primaryKey": false,
1305
+ "notNull": true
1306
+ },
1307
+ "used_at": {
1308
+ "name": "used_at",
1309
+ "type": "timestamp with time zone",
1310
+ "primaryKey": false,
1311
+ "notNull": false
1312
+ },
1313
+ "created_at": {
1314
+ "name": "created_at",
1315
+ "type": "timestamp with time zone",
1316
+ "primaryKey": false,
1317
+ "notNull": true,
1318
+ "default": "now()"
1319
+ }
1320
+ },
1321
+ "indexes": {
1322
+ "registry_auth_action_tokens_hash_idx": {
1323
+ "name": "registry_auth_action_tokens_hash_idx",
1324
+ "columns": [
1325
+ {
1326
+ "expression": "token_hash",
1327
+ "isExpression": false,
1328
+ "asc": true,
1329
+ "nulls": "last"
1330
+ }
1331
+ ],
1332
+ "isUnique": true,
1333
+ "concurrently": false,
1334
+ "method": "btree",
1335
+ "with": {}
1336
+ },
1337
+ "registry_auth_action_tokens_user_purpose_idx": {
1338
+ "name": "registry_auth_action_tokens_user_purpose_idx",
1339
+ "columns": [
1340
+ {
1341
+ "expression": "user_id",
1342
+ "isExpression": false,
1343
+ "asc": true,
1344
+ "nulls": "last"
1345
+ },
1346
+ {
1347
+ "expression": "purpose",
1348
+ "isExpression": false,
1349
+ "asc": true,
1350
+ "nulls": "last"
1351
+ }
1352
+ ],
1353
+ "isUnique": false,
1354
+ "concurrently": false,
1355
+ "method": "btree",
1356
+ "with": {}
1357
+ }
1358
+ },
1359
+ "foreignKeys": {
1360
+ "registry_auth_action_tokens_user_id_registry_users_id_fk": {
1361
+ "name": "registry_auth_action_tokens_user_id_registry_users_id_fk",
1362
+ "tableFrom": "registry_auth_action_tokens",
1363
+ "tableTo": "registry_users",
1364
+ "columnsFrom": [
1365
+ "user_id"
1366
+ ],
1367
+ "columnsTo": [
1368
+ "id"
1369
+ ],
1370
+ "onDelete": "cascade",
1371
+ "onUpdate": "no action"
1372
+ }
1373
+ },
1374
+ "compositePrimaryKeys": {},
1375
+ "uniqueConstraints": {},
1376
+ "policies": {},
1377
+ "checkConstraints": {
1378
+ "registry_auth_action_tokens_purpose_valid": {
1379
+ "name": "registry_auth_action_tokens_purpose_valid",
1380
+ "value": "\"registry_auth_action_tokens\".\"purpose\" in ('invite', 'password_reset')"
1381
+ }
1382
+ },
1383
+ "isRLSEnabled": false
1384
+ },
1385
+ "public.registry_auth_rate_limits": {
1386
+ "name": "registry_auth_rate_limits",
1387
+ "schema": "",
1388
+ "columns": {
1389
+ "bucket": {
1390
+ "name": "bucket",
1391
+ "type": "text",
1392
+ "primaryKey": false,
1393
+ "notNull": true
1394
+ },
1395
+ "identifier_hash": {
1396
+ "name": "identifier_hash",
1397
+ "type": "text",
1398
+ "primaryKey": false,
1399
+ "notNull": true
1400
+ },
1401
+ "window_started_at": {
1402
+ "name": "window_started_at",
1403
+ "type": "timestamp with time zone",
1404
+ "primaryKey": false,
1405
+ "notNull": true
1406
+ },
1407
+ "attempts": {
1408
+ "name": "attempts",
1409
+ "type": "integer",
1410
+ "primaryKey": false,
1411
+ "notNull": true,
1412
+ "default": 1
1413
+ },
1414
+ "expires_at": {
1415
+ "name": "expires_at",
1416
+ "type": "timestamp with time zone",
1417
+ "primaryKey": false,
1418
+ "notNull": true
1419
+ },
1420
+ "updated_at": {
1421
+ "name": "updated_at",
1422
+ "type": "timestamp with time zone",
1423
+ "primaryKey": false,
1424
+ "notNull": true,
1425
+ "default": "now()"
1426
+ }
1427
+ },
1428
+ "indexes": {
1429
+ "registry_auth_rate_limits_expires_idx": {
1430
+ "name": "registry_auth_rate_limits_expires_idx",
1431
+ "columns": [
1432
+ {
1433
+ "expression": "expires_at",
1434
+ "isExpression": false,
1435
+ "asc": true,
1436
+ "nulls": "last"
1437
+ }
1438
+ ],
1439
+ "isUnique": false,
1440
+ "concurrently": false,
1441
+ "method": "btree",
1442
+ "with": {}
1443
+ }
1444
+ },
1445
+ "foreignKeys": {},
1446
+ "compositePrimaryKeys": {
1447
+ "registry_auth_rate_limits_bucket_identifier_hash_window_started_at_pk": {
1448
+ "name": "registry_auth_rate_limits_bucket_identifier_hash_window_started_at_pk",
1449
+ "columns": [
1450
+ "bucket",
1451
+ "identifier_hash",
1452
+ "window_started_at"
1453
+ ]
1454
+ }
1455
+ },
1456
+ "uniqueConstraints": {},
1457
+ "policies": {},
1458
+ "checkConstraints": {
1459
+ "registry_auth_rate_limits_bucket_valid": {
1460
+ "name": "registry_auth_rate_limits_bucket_valid",
1461
+ "value": "\"registry_auth_rate_limits\".\"bucket\" in ('login', 'password_reset', 'device')"
1462
+ },
1463
+ "registry_auth_rate_limits_attempts_positive": {
1464
+ "name": "registry_auth_rate_limits_attempts_positive",
1465
+ "value": "\"registry_auth_rate_limits\".\"attempts\" > 0"
1466
+ }
1467
+ },
1468
+ "isRLSEnabled": false
1469
+ },
1470
+ "public.registry_device_authorizations": {
1471
+ "name": "registry_device_authorizations",
1472
+ "schema": "",
1473
+ "columns": {
1474
+ "id": {
1475
+ "name": "id",
1476
+ "type": "text",
1477
+ "primaryKey": true,
1478
+ "notNull": true
1479
+ },
1480
+ "device_code_hash": {
1481
+ "name": "device_code_hash",
1482
+ "type": "text",
1483
+ "primaryKey": false,
1484
+ "notNull": true
1485
+ },
1486
+ "user_code": {
1487
+ "name": "user_code",
1488
+ "type": "text",
1489
+ "primaryKey": false,
1490
+ "notNull": true
1491
+ },
1492
+ "status": {
1493
+ "name": "status",
1494
+ "type": "text",
1495
+ "primaryKey": false,
1496
+ "notNull": true,
1497
+ "default": "'pending'"
1498
+ },
1499
+ "user_id": {
1500
+ "name": "user_id",
1501
+ "type": "text",
1502
+ "primaryKey": false,
1503
+ "notNull": false
1504
+ },
1505
+ "scopes": {
1506
+ "name": "scopes",
1507
+ "type": "jsonb",
1508
+ "primaryKey": false,
1509
+ "notNull": true
1510
+ },
1511
+ "expires_at": {
1512
+ "name": "expires_at",
1513
+ "type": "timestamp with time zone",
1514
+ "primaryKey": false,
1515
+ "notNull": true
1516
+ },
1517
+ "approved_at": {
1518
+ "name": "approved_at",
1519
+ "type": "timestamp with time zone",
1520
+ "primaryKey": false,
1521
+ "notNull": false
1522
+ },
1523
+ "consumed_at": {
1524
+ "name": "consumed_at",
1525
+ "type": "timestamp with time zone",
1526
+ "primaryKey": false,
1527
+ "notNull": false
1528
+ },
1529
+ "created_at": {
1530
+ "name": "created_at",
1531
+ "type": "timestamp with time zone",
1532
+ "primaryKey": false,
1533
+ "notNull": true,
1534
+ "default": "now()"
1535
+ }
1536
+ },
1537
+ "indexes": {
1538
+ "registry_device_authorizations_device_hash_idx": {
1539
+ "name": "registry_device_authorizations_device_hash_idx",
1540
+ "columns": [
1541
+ {
1542
+ "expression": "device_code_hash",
1543
+ "isExpression": false,
1544
+ "asc": true,
1545
+ "nulls": "last"
1546
+ }
1547
+ ],
1548
+ "isUnique": true,
1549
+ "concurrently": false,
1550
+ "method": "btree",
1551
+ "with": {}
1552
+ },
1553
+ "registry_device_authorizations_user_code_idx": {
1554
+ "name": "registry_device_authorizations_user_code_idx",
1555
+ "columns": [
1556
+ {
1557
+ "expression": "user_code",
1558
+ "isExpression": false,
1559
+ "asc": true,
1560
+ "nulls": "last"
1561
+ }
1562
+ ],
1563
+ "isUnique": true,
1564
+ "concurrently": false,
1565
+ "method": "btree",
1566
+ "with": {}
1567
+ },
1568
+ "registry_device_authorizations_expires_idx": {
1569
+ "name": "registry_device_authorizations_expires_idx",
1570
+ "columns": [
1571
+ {
1572
+ "expression": "expires_at",
1573
+ "isExpression": false,
1574
+ "asc": true,
1575
+ "nulls": "last"
1576
+ }
1577
+ ],
1578
+ "isUnique": false,
1579
+ "concurrently": false,
1580
+ "method": "btree",
1581
+ "with": {}
1582
+ }
1583
+ },
1584
+ "foreignKeys": {
1585
+ "registry_device_authorizations_user_id_registry_users_id_fk": {
1586
+ "name": "registry_device_authorizations_user_id_registry_users_id_fk",
1587
+ "tableFrom": "registry_device_authorizations",
1588
+ "tableTo": "registry_users",
1589
+ "columnsFrom": [
1590
+ "user_id"
1591
+ ],
1592
+ "columnsTo": [
1593
+ "id"
1594
+ ],
1595
+ "onDelete": "set null",
1596
+ "onUpdate": "no action"
1597
+ }
1598
+ },
1599
+ "compositePrimaryKeys": {},
1600
+ "uniqueConstraints": {},
1601
+ "policies": {},
1602
+ "checkConstraints": {
1603
+ "registry_device_authorizations_status_valid": {
1604
+ "name": "registry_device_authorizations_status_valid",
1605
+ "value": "\"registry_device_authorizations\".\"status\" in ('pending', 'approved', 'denied', 'consumed')"
1606
+ },
1607
+ "registry_device_authorizations_scopes_array": {
1608
+ "name": "registry_device_authorizations_scopes_array",
1609
+ "value": "jsonb_typeof(\"registry_device_authorizations\".\"scopes\") = 'array'"
1610
+ }
1611
+ },
1612
+ "isRLSEnabled": false
1613
+ },
1614
+ "public.registry_installations": {
1615
+ "name": "registry_installations",
1616
+ "schema": "",
1617
+ "columns": {
1618
+ "id": {
1619
+ "name": "id",
1620
+ "type": "text",
1621
+ "primaryKey": true,
1622
+ "notNull": true,
1623
+ "default": "'default'"
1624
+ },
1625
+ "status": {
1626
+ "name": "status",
1627
+ "type": "text",
1628
+ "primaryKey": false,
1629
+ "notNull": true,
1630
+ "default": "'installed'"
1631
+ },
1632
+ "schema_version": {
1633
+ "name": "schema_version",
1634
+ "type": "integer",
1635
+ "primaryKey": false,
1636
+ "notNull": true
1637
+ },
1638
+ "initial_admin_user_id": {
1639
+ "name": "initial_admin_user_id",
1640
+ "type": "text",
1641
+ "primaryKey": false,
1642
+ "notNull": true
1643
+ },
1644
+ "installed_at": {
1645
+ "name": "installed_at",
1646
+ "type": "timestamp with time zone",
1647
+ "primaryKey": false,
1648
+ "notNull": true,
1649
+ "default": "now()"
1650
+ }
1651
+ },
1652
+ "indexes": {},
1653
+ "foreignKeys": {
1654
+ "registry_installations_initial_admin_user_id_registry_users_id_fk": {
1655
+ "name": "registry_installations_initial_admin_user_id_registry_users_id_fk",
1656
+ "tableFrom": "registry_installations",
1657
+ "tableTo": "registry_users",
1658
+ "columnsFrom": [
1659
+ "initial_admin_user_id"
1660
+ ],
1661
+ "columnsTo": [
1662
+ "id"
1663
+ ],
1664
+ "onDelete": "restrict",
1665
+ "onUpdate": "no action"
1666
+ }
1667
+ },
1668
+ "compositePrimaryKeys": {},
1669
+ "uniqueConstraints": {},
1670
+ "policies": {},
1671
+ "checkConstraints": {
1672
+ "registry_installations_singleton": {
1673
+ "name": "registry_installations_singleton",
1674
+ "value": "\"registry_installations\".\"id\" = 'default'"
1675
+ },
1676
+ "registry_installations_status_valid": {
1677
+ "name": "registry_installations_status_valid",
1678
+ "value": "\"registry_installations\".\"status\" = 'installed'"
1679
+ },
1680
+ "registry_installations_schema_version_positive": {
1681
+ "name": "registry_installations_schema_version_positive",
1682
+ "value": "\"registry_installations\".\"schema_version\" > 0"
1683
+ }
1684
+ },
1685
+ "isRLSEnabled": false
1686
+ },
1687
+ "public.registry_users": {
1688
+ "name": "registry_users",
1689
+ "schema": "",
1690
+ "columns": {
1691
+ "id": {
1692
+ "name": "id",
1693
+ "type": "text",
1694
+ "primaryKey": true,
1695
+ "notNull": true
1696
+ },
1697
+ "email": {
1698
+ "name": "email",
1699
+ "type": "text",
1700
+ "primaryKey": false,
1701
+ "notNull": true
1702
+ },
1703
+ "name": {
1704
+ "name": "name",
1705
+ "type": "text",
1706
+ "primaryKey": false,
1707
+ "notNull": false
1708
+ },
1709
+ "image": {
1710
+ "name": "image",
1711
+ "type": "text",
1712
+ "primaryKey": false,
1713
+ "notNull": false
1714
+ },
1715
+ "role": {
1716
+ "name": "role",
1717
+ "type": "text",
1718
+ "primaryKey": false,
1719
+ "notNull": true,
1720
+ "default": "'member'"
1721
+ },
1722
+ "status": {
1723
+ "name": "status",
1724
+ "type": "text",
1725
+ "primaryKey": false,
1726
+ "notNull": true,
1727
+ "default": "'invited'"
1728
+ },
1729
+ "password_hash": {
1730
+ "name": "password_hash",
1731
+ "type": "text",
1732
+ "primaryKey": false,
1733
+ "notNull": false
1734
+ },
1735
+ "email_verified_at": {
1736
+ "name": "email_verified_at",
1737
+ "type": "timestamp with time zone",
1738
+ "primaryKey": false,
1739
+ "notNull": false
1740
+ },
1741
+ "auth_version": {
1742
+ "name": "auth_version",
1743
+ "type": "integer",
1744
+ "primaryKey": false,
1745
+ "notNull": true,
1746
+ "default": 1
1747
+ },
1748
+ "created_at": {
1749
+ "name": "created_at",
1750
+ "type": "timestamp with time zone",
1751
+ "primaryKey": false,
1752
+ "notNull": true,
1753
+ "default": "now()"
1754
+ },
1755
+ "updated_at": {
1756
+ "name": "updated_at",
1757
+ "type": "timestamp with time zone",
1758
+ "primaryKey": false,
1759
+ "notNull": true,
1760
+ "default": "now()"
1761
+ }
1762
+ },
1763
+ "indexes": {
1764
+ "registry_users_normalized_email_idx": {
1765
+ "name": "registry_users_normalized_email_idx",
1766
+ "columns": [
1767
+ {
1768
+ "expression": "lower(btrim(\"email\"))",
1769
+ "asc": true,
1770
+ "isExpression": true,
1771
+ "nulls": "last"
1772
+ }
1773
+ ],
1774
+ "isUnique": true,
1775
+ "concurrently": false,
1776
+ "method": "btree",
1777
+ "with": {}
1778
+ },
1779
+ "registry_users_status_role_idx": {
1780
+ "name": "registry_users_status_role_idx",
1781
+ "columns": [
1782
+ {
1783
+ "expression": "status",
1784
+ "isExpression": false,
1785
+ "asc": true,
1786
+ "nulls": "last"
1787
+ },
1788
+ {
1789
+ "expression": "role",
1790
+ "isExpression": false,
1791
+ "asc": true,
1792
+ "nulls": "last"
1793
+ }
1794
+ ],
1795
+ "isUnique": false,
1796
+ "concurrently": false,
1797
+ "method": "btree",
1798
+ "with": {}
1799
+ }
1800
+ },
1801
+ "foreignKeys": {},
1802
+ "compositePrimaryKeys": {},
1803
+ "uniqueConstraints": {},
1804
+ "policies": {},
1805
+ "checkConstraints": {
1806
+ "registry_users_email_normalized": {
1807
+ "name": "registry_users_email_normalized",
1808
+ "value": "\"registry_users\".\"email\" = lower(btrim(\"registry_users\".\"email\"))"
1809
+ },
1810
+ "registry_users_role_valid": {
1811
+ "name": "registry_users_role_valid",
1812
+ "value": "\"registry_users\".\"role\" in ('admin', 'member')"
1813
+ },
1814
+ "registry_users_status_valid": {
1815
+ "name": "registry_users_status_valid",
1816
+ "value": "\"registry_users\".\"status\" in ('invited', 'active', 'deactivated')"
1817
+ },
1818
+ "registry_users_auth_version_positive": {
1819
+ "name": "registry_users_auth_version_positive",
1820
+ "value": "\"registry_users\".\"auth_version\" > 0"
1821
+ }
1822
+ },
1823
+ "isRLSEnabled": false
1824
+ },
1825
+ "public.token_artifacts": {
1826
+ "name": "token_artifacts",
1827
+ "schema": "",
1828
+ "columns": {
1829
+ "token_set_id": {
1830
+ "name": "token_set_id",
1831
+ "type": "text",
1832
+ "primaryKey": false,
1833
+ "notNull": true
1834
+ },
1835
+ "path": {
1836
+ "name": "path",
1837
+ "type": "text",
1838
+ "primaryKey": false,
1839
+ "notNull": true
1840
+ },
1841
+ "format": {
1842
+ "name": "format",
1843
+ "type": "text",
1844
+ "primaryKey": false,
1845
+ "notNull": true
1846
+ },
1847
+ "content": {
1848
+ "name": "content",
1849
+ "type": "text",
1850
+ "primaryKey": false,
1851
+ "notNull": false
1852
+ },
1853
+ "storage_ref": {
1854
+ "name": "storage_ref",
1855
+ "type": "text",
1856
+ "primaryKey": false,
1857
+ "notNull": false
1858
+ },
1859
+ "content_type": {
1860
+ "name": "content_type",
1861
+ "type": "text",
1862
+ "primaryKey": false,
1863
+ "notNull": true
1864
+ },
1865
+ "hash": {
1866
+ "name": "hash",
1867
+ "type": "text",
1868
+ "primaryKey": false,
1869
+ "notNull": false
1870
+ },
1871
+ "size": {
1872
+ "name": "size",
1873
+ "type": "integer",
1874
+ "primaryKey": false,
1875
+ "notNull": false
1876
+ },
1877
+ "created_at": {
1878
+ "name": "created_at",
1879
+ "type": "timestamp with time zone",
1880
+ "primaryKey": false,
1881
+ "notNull": true,
1882
+ "default": "now()"
1883
+ },
1884
+ "updated_at": {
1885
+ "name": "updated_at",
1886
+ "type": "timestamp with time zone",
1887
+ "primaryKey": false,
1888
+ "notNull": true,
1889
+ "default": "now()"
1890
+ }
1891
+ },
1892
+ "indexes": {},
1893
+ "foreignKeys": {
1894
+ "token_artifacts_token_set_id_token_sets_id_fk": {
1895
+ "name": "token_artifacts_token_set_id_token_sets_id_fk",
1896
+ "tableFrom": "token_artifacts",
1897
+ "tableTo": "token_sets",
1898
+ "columnsFrom": [
1899
+ "token_set_id"
1900
+ ],
1901
+ "columnsTo": [
1902
+ "id"
1903
+ ],
1904
+ "onDelete": "cascade",
1905
+ "onUpdate": "no action"
1906
+ }
1907
+ },
1908
+ "compositePrimaryKeys": {
1909
+ "token_artifacts_token_set_id_path_pk": {
1910
+ "name": "token_artifacts_token_set_id_path_pk",
1911
+ "columns": [
1912
+ "token_set_id",
1913
+ "path"
1914
+ ]
1915
+ }
1916
+ },
1917
+ "uniqueConstraints": {},
1918
+ "policies": {},
1919
+ "checkConstraints": {},
1920
+ "isRLSEnabled": false
1921
+ },
1922
+ "public.token_sets": {
1923
+ "name": "token_sets",
1924
+ "schema": "",
1925
+ "columns": {
1926
+ "id": {
1927
+ "name": "id",
1928
+ "type": "text",
1929
+ "primaryKey": true,
1930
+ "notNull": true
1931
+ },
1932
+ "kind": {
1933
+ "name": "kind",
1934
+ "type": "text",
1935
+ "primaryKey": false,
1936
+ "notNull": true
1937
+ },
1938
+ "record": {
1939
+ "name": "record",
1940
+ "type": "jsonb",
1941
+ "primaryKey": false,
1942
+ "notNull": true
1943
+ },
1944
+ "source_hash": {
1945
+ "name": "source_hash",
1946
+ "type": "text",
1947
+ "primaryKey": false,
1948
+ "notNull": false
1949
+ },
1950
+ "status": {
1951
+ "name": "status",
1952
+ "type": "text",
1953
+ "primaryKey": false,
1954
+ "notNull": false
1955
+ },
1956
+ "built_at": {
1957
+ "name": "built_at",
1958
+ "type": "timestamp with time zone",
1959
+ "primaryKey": false,
1960
+ "notNull": false
1961
+ },
1962
+ "builder_version": {
1963
+ "name": "builder_version",
1964
+ "type": "text",
1965
+ "primaryKey": false,
1966
+ "notNull": false
1967
+ },
1968
+ "metadata": {
1969
+ "name": "metadata",
1970
+ "type": "jsonb",
1971
+ "primaryKey": false,
1972
+ "notNull": false
1973
+ },
1974
+ "created_at": {
1975
+ "name": "created_at",
1976
+ "type": "timestamp with time zone",
1977
+ "primaryKey": false,
1978
+ "notNull": true,
1979
+ "default": "now()"
1980
+ },
1981
+ "updated_at": {
1982
+ "name": "updated_at",
1983
+ "type": "timestamp with time zone",
1984
+ "primaryKey": false,
1985
+ "notNull": true,
1986
+ "default": "now()"
1987
+ }
1988
+ },
1989
+ "indexes": {
1990
+ "token_sets_kind_idx": {
1991
+ "name": "token_sets_kind_idx",
1992
+ "columns": [
1993
+ {
1994
+ "expression": "kind",
1995
+ "isExpression": false,
1996
+ "asc": true,
1997
+ "nulls": "last"
1998
+ }
1999
+ ],
2000
+ "isUnique": false,
2001
+ "concurrently": false,
2002
+ "method": "btree",
2003
+ "with": {}
2004
+ }
2005
+ },
2006
+ "foreignKeys": {},
2007
+ "compositePrimaryKeys": {},
2008
+ "uniqueConstraints": {},
2009
+ "policies": {},
2010
+ "checkConstraints": {},
2011
+ "isRLSEnabled": false
2012
+ }
2013
+ },
2014
+ "enums": {},
2015
+ "schemas": {},
2016
+ "sequences": {},
2017
+ "roles": {},
2018
+ "policies": {},
2019
+ "views": {},
2020
+ "_meta": {
2021
+ "columns": {},
2022
+ "schemas": {},
2023
+ "tables": {}
2024
+ }
2025
+ }