nextly 0.0.1 → 0.0.2-alpha.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 (268) hide show
  1. package/LICENSE +22 -0
  2. package/README.md +122 -0
  3. package/dist/_dts-chunks/collections-handler.d-DjgO74Wt.d.ts +20540 -0
  4. package/dist/_dts-chunks/config.d-DNwsDnjs.d.ts +2589 -0
  5. package/dist/_dts-chunks/define-component.d-BUgTHmt3.d.ts +1149 -0
  6. package/dist/_dts-chunks/image-processor.d-OO1PmMrv.d.ts +335 -0
  7. package/dist/_dts-chunks/index.d-axCAzZ7m.d.ts +17842 -0
  8. package/dist/_dts-chunks/media.d-DjDOZo4B.d.ts +117 -0
  9. package/dist/_dts-chunks/on-error.d-CHIKWNxd.d.ts +38 -0
  10. package/dist/_dts-chunks/storage.d-BUhQ2we_.d.ts +404 -0
  11. package/dist/actions/index.d.ts +239 -0
  12. package/dist/actions/index.mjs +281 -0
  13. package/dist/api/auth-state.d.ts +5 -0
  14. package/dist/api/auth-state.mjs +131 -0
  15. package/dist/api/collections-schema-detail.d.ts +56 -0
  16. package/dist/api/collections-schema-detail.mjs +244 -0
  17. package/dist/api/collections-schema-export.d.ts +56 -0
  18. package/dist/api/collections-schema-export.mjs +129 -0
  19. package/dist/api/collections-schema.d.ts +59 -0
  20. package/dist/api/collections-schema.mjs +207 -0
  21. package/dist/api/components-detail.d.ts +50 -0
  22. package/dist/api/components-detail.mjs +132 -0
  23. package/dist/api/components.d.ts +69 -0
  24. package/dist/api/components.mjs +144 -0
  25. package/dist/api/email-providers-default.d.ts +40 -0
  26. package/dist/api/email-providers-default.mjs +75 -0
  27. package/dist/api/email-providers-detail.d.ts +81 -0
  28. package/dist/api/email-providers-detail.mjs +109 -0
  29. package/dist/api/email-providers-test.d.ts +43 -0
  30. package/dist/api/email-providers-test.mjs +114 -0
  31. package/dist/api/email-providers.d.ts +69 -0
  32. package/dist/api/email-providers.mjs +110 -0
  33. package/dist/api/email-send-template.d.ts +41 -0
  34. package/dist/api/email-send-template.mjs +58 -0
  35. package/dist/api/email-send.d.ts +42 -0
  36. package/dist/api/email-send.mjs +58 -0
  37. package/dist/api/email-templates-detail.d.ts +74 -0
  38. package/dist/api/email-templates-detail.mjs +112 -0
  39. package/dist/api/email-templates-layout.d.ts +55 -0
  40. package/dist/api/email-templates-layout.mjs +92 -0
  41. package/dist/api/email-templates-preview.d.ts +48 -0
  42. package/dist/api/email-templates-preview.mjs +93 -0
  43. package/dist/api/email-templates.d.ts +61 -0
  44. package/dist/api/email-templates.mjs +118 -0
  45. package/dist/api/health.d.ts +68 -0
  46. package/dist/api/health.mjs +67 -0
  47. package/dist/api/index.d.ts +54 -0
  48. package/dist/api/index.mjs +16 -0
  49. package/dist/api/media-bulk.d.ts +74 -0
  50. package/dist/api/media-bulk.mjs +196 -0
  51. package/dist/api/media-folders.d.ts +112 -0
  52. package/dist/api/media-folders.mjs +187 -0
  53. package/dist/api/media-handlers.d.ts +102 -0
  54. package/dist/api/media-handlers.mjs +437 -0
  55. package/dist/api/media.d.ts +117 -0
  56. package/dist/api/media.mjs +242 -0
  57. package/dist/api/singles-detail.d.ts +87 -0
  58. package/dist/api/singles-detail.mjs +170 -0
  59. package/dist/api/singles-schema-detail.d.ts +54 -0
  60. package/dist/api/singles-schema-detail.mjs +182 -0
  61. package/dist/api/singles.d.ts +34 -0
  62. package/dist/api/singles.mjs +94 -0
  63. package/dist/api/storage-upload-url.d.ts +48 -0
  64. package/dist/api/storage-upload-url.mjs +202 -0
  65. package/dist/api/uploads.d.ts +109 -0
  66. package/dist/api/uploads.mjs +359 -0
  67. package/dist/auth/index.d.ts +425 -0
  68. package/dist/auth/index.mjs +199 -0
  69. package/dist/boot-apply-PQSYLDIN.mjs +7 -0
  70. package/dist/chunk-2OALJTK6.mjs +489 -0
  71. package/dist/chunk-2Q2SX2CS.mjs +365 -0
  72. package/dist/chunk-2TFX4ND3.mjs +13 -0
  73. package/dist/chunk-2TWPDSYD.mjs +87 -0
  74. package/dist/chunk-2W3DVD7S.mjs +647 -0
  75. package/dist/chunk-2ZFKXPQM.mjs +88 -0
  76. package/dist/chunk-3FA7FKAV.mjs +832 -0
  77. package/dist/chunk-3NZ2KMBL.mjs +58 -0
  78. package/dist/chunk-4MJLT6PZ.mjs +0 -0
  79. package/dist/chunk-56WO4WX7.mjs +0 -0
  80. package/dist/chunk-5APFUGAD.mjs +89 -0
  81. package/dist/chunk-5HMZ644B.mjs +108 -0
  82. package/dist/chunk-67GXH6PR.mjs +32 -0
  83. package/dist/chunk-6JNEPWRW.mjs +14368 -0
  84. package/dist/chunk-6NFHQIJD.mjs +45 -0
  85. package/dist/chunk-7P6ASYW6.mjs +9 -0
  86. package/dist/chunk-A3WPLSDT.mjs +1364 -0
  87. package/dist/chunk-AGJ6F2T3.mjs +144 -0
  88. package/dist/chunk-AK6Z23OX.mjs +1464 -0
  89. package/dist/chunk-APKKRD2G.mjs +102 -0
  90. package/dist/chunk-B2GV2BWH.mjs +73 -0
  91. package/dist/chunk-D5HQBNUB.mjs +74 -0
  92. package/dist/chunk-DNNG377Z.mjs +204 -0
  93. package/dist/chunk-DP3G27G5.mjs +135 -0
  94. package/dist/chunk-DV6WVX2Q.mjs +0 -0
  95. package/dist/chunk-DXGGXIUZ.mjs +57 -0
  96. package/dist/chunk-EGXBZCGC.mjs +943 -0
  97. package/dist/chunk-ERCNLX3V.mjs +176 -0
  98. package/dist/chunk-FQULBZ53.mjs +850 -0
  99. package/dist/chunk-G2AA4QLC.mjs +262 -0
  100. package/dist/chunk-GDBJ5JCU.mjs +488 -0
  101. package/dist/chunk-GJNSJU4S.mjs +19 -0
  102. package/dist/chunk-GZ6DCQKC.mjs +69 -0
  103. package/dist/chunk-H26B4FYG.mjs +167 -0
  104. package/dist/chunk-I4JMR3UR.mjs +21 -0
  105. package/dist/chunk-INV7QKLG.mjs +508 -0
  106. package/dist/chunk-IUDOC7N7.mjs +46 -0
  107. package/dist/chunk-IZWPRDC3.mjs +206 -0
  108. package/dist/chunk-KIMNCZGV.mjs +15 -0
  109. package/dist/chunk-L6HW2DA7.mjs +15 -0
  110. package/dist/chunk-LAZXX4HR.mjs +100 -0
  111. package/dist/chunk-LDKCUMHK.mjs +95 -0
  112. package/dist/chunk-LRXMECUA.mjs +0 -0
  113. package/dist/chunk-M52VMPGA.mjs +119 -0
  114. package/dist/chunk-MGUWEEI6.mjs +160 -0
  115. package/dist/chunk-NRUWQ5Z7.mjs +419 -0
  116. package/dist/chunk-NSEFNNU4.mjs +25360 -0
  117. package/dist/chunk-NTHVDFGO.mjs +138 -0
  118. package/dist/chunk-O3QHXMOX.mjs +3166 -0
  119. package/dist/chunk-P7NH2OSC.mjs +2605 -0
  120. package/dist/chunk-PKMABBB5.mjs +184 -0
  121. package/dist/chunk-PWS6XGJK.mjs +76 -0
  122. package/dist/chunk-R6JJQHFC.mjs +20 -0
  123. package/dist/chunk-RJLLGGPG.mjs +0 -0
  124. package/dist/chunk-SBACDPNX.mjs +689 -0
  125. package/dist/chunk-TO5AFLVQ.mjs +124 -0
  126. package/dist/chunk-TS7GHTG2.mjs +5436 -0
  127. package/dist/chunk-UJ2IMJ4W.mjs +133 -0
  128. package/dist/chunk-UOP63Q54.mjs +102 -0
  129. package/dist/chunk-UUOFWCM6.mjs +78 -0
  130. package/dist/chunk-V4EQTOA4.mjs +893 -0
  131. package/dist/chunk-VJ66NCL4.mjs +193 -0
  132. package/dist/chunk-VQJQHVEV.mjs +29 -0
  133. package/dist/chunk-VTJADRO3.mjs +141 -0
  134. package/dist/chunk-VWF3JO32.mjs +0 -0
  135. package/dist/chunk-W4MGXIRR.mjs +27 -0
  136. package/dist/chunk-W5KKPZT5.mjs +1204 -0
  137. package/dist/chunk-WD34YQ6T.mjs +381 -0
  138. package/dist/chunk-WZBYMYVW.mjs +14 -0
  139. package/dist/chunk-X23WKS3Z.mjs +50 -0
  140. package/dist/chunk-X7TXCYYN.mjs +6496 -0
  141. package/dist/chunk-XGI4EMS3.mjs +140 -0
  142. package/dist/chunk-XZKLBMN6.mjs +1153 -0
  143. package/dist/chunk-YB7INWPY.mjs +0 -0
  144. package/dist/chunk-YV4Y7SDL.mjs +83 -0
  145. package/dist/chunk-YZNBLFIW.mjs +1688 -0
  146. package/dist/chunk-YZZCTONM.mjs +263 -0
  147. package/dist/chunk-ZE6A3FYH.mjs +289 -0
  148. package/dist/cli/nextly.mjs +68 -0
  149. package/dist/cli/utils/index.d.ts +449 -0
  150. package/dist/cli/utils/index.mjs +49 -0
  151. package/dist/component-schema-service-5577KVW6.mjs +11 -0
  152. package/dist/config-loader-23YEMC3Z.mjs +23 -0
  153. package/dist/config.d.ts +44 -0
  154. package/dist/config.mjs +109 -0
  155. package/dist/container-ORGFGYSZ.mjs +9 -0
  156. package/dist/database/index.d.ts +12 -0
  157. package/dist/database/index.mjs +40 -0
  158. package/dist/database/seeders/index.d.ts +93 -0
  159. package/dist/database/seeders/index.mjs +47 -0
  160. package/dist/db-sync-demote-LJGKLB3S.mjs +117 -0
  161. package/dist/db-sync-promote-B26VSYQF.mjs +113 -0
  162. package/dist/dev-reload-broadcaster-B73IQ53V.mjs +25 -0
  163. package/dist/dist-M2NOU37V.mjs +19 -0
  164. package/dist/drizzle-kit-lazy-D2M2PXR2.mjs +13 -0
  165. package/dist/dynamic-collection-schema-service-IEXTPIZ7.mjs +8 -0
  166. package/dist/errors/index.d.ts +159 -0
  167. package/dist/errors/index.mjs +10 -0
  168. package/dist/factory-IWMBKUJM.mjs +15 -0
  169. package/dist/first-run-QIVKWJIF.mjs +63 -0
  170. package/dist/fresh-push-NR67DC3R.mjs +8 -0
  171. package/dist/index.d.ts +4175 -0
  172. package/dist/index.mjs +1336 -0
  173. package/dist/local-plugin-PTET4NAT.mjs +7 -0
  174. package/dist/logger-NU46DXNY.mjs +15 -0
  175. package/dist/logger-YE4TC7ZN.mjs +9 -0
  176. package/dist/migration-journal-EP532Y4L.mjs +139 -0
  177. package/dist/migrations/mysql/0000_eager_sentry.sql +174 -0
  178. package/dist/migrations/mysql/0001_soft_giant_girl.sql +27 -0
  179. package/dist/migrations/mysql/0002_media_table.sql +24 -0
  180. package/dist/migrations/mysql/0003_dynamic_singles.sql +37 -0
  181. package/dist/migrations/mysql/0004_dynamic_components.sql +35 -0
  182. package/dist/migrations/mysql/0005_user_management_tables.sql +92 -0
  183. package/dist/migrations/mysql/0006_api_keys.sql +36 -0
  184. package/dist/migrations/mysql/0007_general_settings.sql +20 -0
  185. package/dist/migrations/mysql/0008_site_settings_logo_url.sql +9 -0
  186. package/dist/migrations/mysql/0009_activity_log.sql +30 -0
  187. package/dist/migrations/mysql/0010_site_settings_sidebar.sql +13 -0
  188. package/dist/migrations/mysql/0011_missing_tables_and_columns.sql +54 -0
  189. package/dist/migrations/mysql/0012_image_sizes_and_focal_point.sql +30 -0
  190. package/dist/migrations/mysql/0012_media_folders.sql +43 -0
  191. package/dist/migrations/mysql/0013_user_brute_force_protection.sql +31 -0
  192. package/dist/migrations/mysql/0014_email_template_attachments.sql +12 -0
  193. package/dist/migrations/mysql/0015_media_uploaded_by_nullable.sql +15 -0
  194. package/dist/migrations/mysql/20260429_000000_000_initial_journal.sql +22 -0
  195. package/dist/migrations/mysql/20260501_000000_journal_batch.sql +17 -0
  196. package/dist/migrations/mysql/20260501_000001_audit_log.sql +24 -0
  197. package/dist/migrations/mysql/20260504_000000_nextly_meta.sql +21 -0
  198. package/dist/migrations/mysql/meta/0000_snapshot.json +1005 -0
  199. package/dist/migrations/mysql/meta/0001_snapshot.json +1099 -0
  200. package/dist/migrations/mysql/meta/_journal.json +41 -0
  201. package/dist/migrations/postgresql/0000_misty_king_bedlam.sql +169 -0
  202. package/dist/migrations/postgresql/0001_perpetual_captain_marvel.sql +8 -0
  203. package/dist/migrations/postgresql/0002_sad_spectrum.sql +16 -0
  204. package/dist/migrations/postgresql/0003_hesitant_ultron.sql +17 -0
  205. package/dist/migrations/postgresql/0004_media_table.sql +24 -0
  206. package/dist/migrations/postgresql/0005_media_folders.sql +36 -0
  207. package/dist/migrations/postgresql/0006_dynamic_collections_update.sql +50 -0
  208. package/dist/migrations/postgresql/0007_dynamic_singles.sql +38 -0
  209. package/dist/migrations/postgresql/0008_dynamic_components.sql +37 -0
  210. package/dist/migrations/postgresql/0009_user_management_tables.sql +95 -0
  211. package/dist/migrations/postgresql/0010_api_keys.sql +34 -0
  212. package/dist/migrations/postgresql/0011_general_settings.sql +20 -0
  213. package/dist/migrations/postgresql/0012_site_settings_logo_url.sql +9 -0
  214. package/dist/migrations/postgresql/0013_activity_log.sql +29 -0
  215. package/dist/migrations/postgresql/0014_image_sizes_and_focal_point.sql +33 -0
  216. package/dist/migrations/postgresql/0014_site_settings_sidebar.sql +13 -0
  217. package/dist/migrations/postgresql/0015_user_brute_force_protection.sql +29 -0
  218. package/dist/migrations/postgresql/0016_email_template_attachments.sql +12 -0
  219. package/dist/migrations/postgresql/0017_media_uploaded_by_nullable.sql +15 -0
  220. package/dist/migrations/postgresql/20260429_000000_000_initial_journal.sql +24 -0
  221. package/dist/migrations/postgresql/20260501_000000_journal_batch.sql +17 -0
  222. package/dist/migrations/postgresql/20260501_000001_audit_log.sql +24 -0
  223. package/dist/migrations/postgresql/20260504_000000_nextly_meta.sql +22 -0
  224. package/dist/migrations/postgresql/meta/0000_snapshot.json +1286 -0
  225. package/dist/migrations/postgresql/meta/0001_snapshot.json +1407 -0
  226. package/dist/migrations/postgresql/meta/0002_snapshot.json +1552 -0
  227. package/dist/migrations/postgresql/meta/0003_snapshot.json +1695 -0
  228. package/dist/migrations/postgresql/meta/0010_snapshot.json +2345 -0
  229. package/dist/migrations/postgresql/meta/_journal.json +90 -0
  230. package/dist/migrations/sqlite/0000_api_keys.sql +34 -0
  231. package/dist/migrations/sqlite/0001_general_settings.sql +20 -0
  232. package/dist/migrations/sqlite/0002_site_settings_logo_url.sql +9 -0
  233. package/dist/migrations/sqlite/0003_activity_log.sql +29 -0
  234. package/dist/migrations/sqlite/0004_image_sizes_and_focal_point.sql +29 -0
  235. package/dist/migrations/sqlite/0004_site_settings_sidebar.sql +11 -0
  236. package/dist/migrations/sqlite/0005_user_brute_force_protection.sql +29 -0
  237. package/dist/migrations/sqlite/0006_email_template_attachments.sql +12 -0
  238. package/dist/migrations/sqlite/0007_media_uploaded_by_nullable.sql +111 -0
  239. package/dist/migrations/sqlite/20260429_000000_000_initial_journal.sql +24 -0
  240. package/dist/migrations/sqlite/20260501_000000_journal_batch.sql +19 -0
  241. package/dist/migrations/sqlite/20260501_000001_audit_log.sql +24 -0
  242. package/dist/migrations/sqlite/20260504_000000_nextly_meta.sql +21 -0
  243. package/dist/migrations/sqlite/20260505_000000_user_management_tables.sql +77 -0
  244. package/dist/next.d.ts +57 -0
  245. package/dist/next.mjs +55 -0
  246. package/dist/observability/index.d.ts +87 -0
  247. package/dist/observability/index.mjs +57 -0
  248. package/dist/permissions-3DZZQZMI.mjs +39 -0
  249. package/dist/pipeline-YOML7SWF.mjs +29 -0
  250. package/dist/preview-ZZTR3QGS.mjs +9 -0
  251. package/dist/program-PW6UB2ZC.mjs +5934 -0
  252. package/dist/reconcile-single-tables-7ENVXJGB.mjs +7 -0
  253. package/dist/register-SF6E6FVU.mjs +49 -0
  254. package/dist/reload-config-HWQ4G5MM.mjs +23 -0
  255. package/dist/resolve-single-table-name-JSOMUB3R.mjs +7 -0
  256. package/dist/routeHandler-UNMMJIBM.mjs +77 -0
  257. package/dist/runtime-schema-generator-NRA6A6Z6.mjs +8 -0
  258. package/dist/runtime.d.ts +120 -0
  259. package/dist/runtime.mjs +73 -0
  260. package/dist/schema-hash-FMMG6VPJ.mjs +13 -0
  261. package/dist/schema-registry-EQ36FZDP.mjs +7 -0
  262. package/dist/scripts/load-env.mjs +42 -0
  263. package/dist/storage/index.d.ts +566 -0
  264. package/dist/storage/index.mjs +45 -0
  265. package/dist/super-admin-G5ZK5F4T.mjs +39 -0
  266. package/dist/system-table-service-WGSRVEGT.mjs +17 -0
  267. package/dist/users-7KELGRYJ.mjs +38 -0
  268. package/package.json +308 -9
@@ -0,0 +1,1695 @@
1
+ {
2
+ "id": "37e81950-01f1-4844-85a7-b4cc14e0d034",
3
+ "prevId": "d64f7ce9-5251-4db4-ba3e-dddfdb36143f",
4
+ "version": "7",
5
+ "dialect": "postgresql",
6
+ "tables": {
7
+ "public.accounts": {
8
+ "name": "accounts",
9
+ "schema": "",
10
+ "columns": {
11
+ "id": {
12
+ "name": "id",
13
+ "type": "serial",
14
+ "primaryKey": true,
15
+ "notNull": true
16
+ },
17
+ "user_id": {
18
+ "name": "user_id",
19
+ "type": "text",
20
+ "primaryKey": false,
21
+ "notNull": true
22
+ },
23
+ "type": {
24
+ "name": "type",
25
+ "type": "text",
26
+ "primaryKey": false,
27
+ "notNull": true
28
+ },
29
+ "provider": {
30
+ "name": "provider",
31
+ "type": "text",
32
+ "primaryKey": false,
33
+ "notNull": true
34
+ },
35
+ "provider_account_id": {
36
+ "name": "provider_account_id",
37
+ "type": "text",
38
+ "primaryKey": false,
39
+ "notNull": true
40
+ },
41
+ "refresh_token": {
42
+ "name": "refresh_token",
43
+ "type": "text",
44
+ "primaryKey": false,
45
+ "notNull": false
46
+ },
47
+ "access_token": {
48
+ "name": "access_token",
49
+ "type": "text",
50
+ "primaryKey": false,
51
+ "notNull": false
52
+ },
53
+ "expires_at": {
54
+ "name": "expires_at",
55
+ "type": "integer",
56
+ "primaryKey": false,
57
+ "notNull": false
58
+ },
59
+ "token_type": {
60
+ "name": "token_type",
61
+ "type": "text",
62
+ "primaryKey": false,
63
+ "notNull": false
64
+ },
65
+ "scope": {
66
+ "name": "scope",
67
+ "type": "text",
68
+ "primaryKey": false,
69
+ "notNull": false
70
+ },
71
+ "id_token": {
72
+ "name": "id_token",
73
+ "type": "text",
74
+ "primaryKey": false,
75
+ "notNull": false
76
+ },
77
+ "session_state": {
78
+ "name": "session_state",
79
+ "type": "text",
80
+ "primaryKey": false,
81
+ "notNull": false
82
+ },
83
+ "created_at": {
84
+ "name": "created_at",
85
+ "type": "timestamp",
86
+ "primaryKey": false,
87
+ "notNull": true,
88
+ "default": "now()"
89
+ },
90
+ "updated_at": {
91
+ "name": "updated_at",
92
+ "type": "timestamp",
93
+ "primaryKey": false,
94
+ "notNull": true,
95
+ "default": "now()"
96
+ }
97
+ },
98
+ "indexes": {
99
+ "accounts_provider_providerAccountId_unique": {
100
+ "name": "accounts_provider_providerAccountId_unique",
101
+ "columns": [
102
+ {
103
+ "expression": "provider",
104
+ "isExpression": false,
105
+ "asc": true,
106
+ "nulls": "last"
107
+ },
108
+ {
109
+ "expression": "provider_account_id",
110
+ "isExpression": false,
111
+ "asc": true,
112
+ "nulls": "last"
113
+ }
114
+ ],
115
+ "isUnique": true,
116
+ "concurrently": false,
117
+ "method": "btree",
118
+ "with": {}
119
+ },
120
+ "accounts_user_id_idx": {
121
+ "name": "accounts_user_id_idx",
122
+ "columns": [
123
+ {
124
+ "expression": "user_id",
125
+ "isExpression": false,
126
+ "asc": true,
127
+ "nulls": "last"
128
+ }
129
+ ],
130
+ "isUnique": false,
131
+ "concurrently": false,
132
+ "method": "btree",
133
+ "with": {}
134
+ }
135
+ },
136
+ "foreignKeys": {},
137
+ "compositePrimaryKeys": {},
138
+ "uniqueConstraints": {},
139
+ "policies": {},
140
+ "checkConstraints": {},
141
+ "isRLSEnabled": false
142
+ },
143
+ "public.content_schema_events": {
144
+ "name": "content_schema_events",
145
+ "schema": "",
146
+ "columns": {
147
+ "id": {
148
+ "name": "id",
149
+ "type": "serial",
150
+ "primaryKey": true,
151
+ "notNull": true
152
+ },
153
+ "op": {
154
+ "name": "op",
155
+ "type": "text",
156
+ "primaryKey": false,
157
+ "notNull": true
158
+ },
159
+ "table_name": {
160
+ "name": "table_name",
161
+ "type": "text",
162
+ "primaryKey": false,
163
+ "notNull": true
164
+ },
165
+ "sql": {
166
+ "name": "sql",
167
+ "type": "text",
168
+ "primaryKey": false,
169
+ "notNull": true
170
+ },
171
+ "meta": {
172
+ "name": "meta",
173
+ "type": "jsonb",
174
+ "primaryKey": false,
175
+ "notNull": false
176
+ },
177
+ "created_at": {
178
+ "name": "created_at",
179
+ "type": "timestamp",
180
+ "primaryKey": false,
181
+ "notNull": true,
182
+ "default": "now()"
183
+ }
184
+ },
185
+ "indexes": {
186
+ "content_schema_events_created_at_idx": {
187
+ "name": "content_schema_events_created_at_idx",
188
+ "columns": [
189
+ {
190
+ "expression": "created_at",
191
+ "isExpression": false,
192
+ "asc": true,
193
+ "nulls": "last"
194
+ }
195
+ ],
196
+ "isUnique": false,
197
+ "concurrently": false,
198
+ "method": "btree",
199
+ "with": {}
200
+ },
201
+ "content_schema_events_table_name_idx": {
202
+ "name": "content_schema_events_table_name_idx",
203
+ "columns": [
204
+ {
205
+ "expression": "table_name",
206
+ "isExpression": false,
207
+ "asc": true,
208
+ "nulls": "last"
209
+ }
210
+ ],
211
+ "isUnique": false,
212
+ "concurrently": false,
213
+ "method": "btree",
214
+ "with": {}
215
+ }
216
+ },
217
+ "foreignKeys": {},
218
+ "compositePrimaryKeys": {},
219
+ "uniqueConstraints": {},
220
+ "policies": {},
221
+ "checkConstraints": {},
222
+ "isRLSEnabled": false
223
+ },
224
+ "public.dynamic_collections": {
225
+ "name": "dynamic_collections",
226
+ "schema": "",
227
+ "columns": {
228
+ "id": {
229
+ "name": "id",
230
+ "type": "text",
231
+ "primaryKey": true,
232
+ "notNull": true
233
+ },
234
+ "name": {
235
+ "name": "name",
236
+ "type": "varchar(255)",
237
+ "primaryKey": false,
238
+ "notNull": true
239
+ },
240
+ "label": {
241
+ "name": "label",
242
+ "type": "varchar(255)",
243
+ "primaryKey": false,
244
+ "notNull": true
245
+ },
246
+ "table_name": {
247
+ "name": "table_name",
248
+ "type": "varchar(255)",
249
+ "primaryKey": false,
250
+ "notNull": true
251
+ },
252
+ "description": {
253
+ "name": "description",
254
+ "type": "text",
255
+ "primaryKey": false,
256
+ "notNull": false
257
+ },
258
+ "icon": {
259
+ "name": "icon",
260
+ "type": "varchar(50)",
261
+ "primaryKey": false,
262
+ "notNull": false
263
+ },
264
+ "schema_definition": {
265
+ "name": "schema_definition",
266
+ "type": "jsonb",
267
+ "primaryKey": false,
268
+ "notNull": true
269
+ },
270
+ "created_by": {
271
+ "name": "created_by",
272
+ "type": "text",
273
+ "primaryKey": false,
274
+ "notNull": false
275
+ },
276
+ "created_at": {
277
+ "name": "created_at",
278
+ "type": "timestamp",
279
+ "primaryKey": false,
280
+ "notNull": true,
281
+ "default": "now()"
282
+ },
283
+ "updated_at": {
284
+ "name": "updated_at",
285
+ "type": "timestamp",
286
+ "primaryKey": false,
287
+ "notNull": true,
288
+ "default": "now()"
289
+ }
290
+ },
291
+ "indexes": {
292
+ "dynamic_collections_created_by_idx": {
293
+ "name": "dynamic_collections_created_by_idx",
294
+ "columns": [
295
+ {
296
+ "expression": "created_by",
297
+ "isExpression": false,
298
+ "asc": true,
299
+ "nulls": "last"
300
+ }
301
+ ],
302
+ "isUnique": false,
303
+ "concurrently": false,
304
+ "method": "btree",
305
+ "with": {}
306
+ },
307
+ "dynamic_collections_created_at_idx": {
308
+ "name": "dynamic_collections_created_at_idx",
309
+ "columns": [
310
+ {
311
+ "expression": "created_at",
312
+ "isExpression": false,
313
+ "asc": true,
314
+ "nulls": "last"
315
+ }
316
+ ],
317
+ "isUnique": false,
318
+ "concurrently": false,
319
+ "method": "btree",
320
+ "with": {}
321
+ },
322
+ "dynamic_collections_updated_at_idx": {
323
+ "name": "dynamic_collections_updated_at_idx",
324
+ "columns": [
325
+ {
326
+ "expression": "updated_at",
327
+ "isExpression": false,
328
+ "asc": true,
329
+ "nulls": "last"
330
+ }
331
+ ],
332
+ "isUnique": false,
333
+ "concurrently": false,
334
+ "method": "btree",
335
+ "with": {}
336
+ }
337
+ },
338
+ "foreignKeys": {
339
+ "dynamic_collections_created_by_users_id_fk": {
340
+ "name": "dynamic_collections_created_by_users_id_fk",
341
+ "tableFrom": "dynamic_collections",
342
+ "tableTo": "users",
343
+ "columnsFrom": ["created_by"],
344
+ "columnsTo": ["id"],
345
+ "onDelete": "no action",
346
+ "onUpdate": "no action"
347
+ }
348
+ },
349
+ "compositePrimaryKeys": {},
350
+ "uniqueConstraints": {
351
+ "dynamic_collections_name_unique": {
352
+ "name": "dynamic_collections_name_unique",
353
+ "nullsNotDistinct": false,
354
+ "columns": ["name"]
355
+ },
356
+ "dynamic_collections_table_name_unique": {
357
+ "name": "dynamic_collections_table_name_unique",
358
+ "nullsNotDistinct": false,
359
+ "columns": ["table_name"]
360
+ }
361
+ },
362
+ "policies": {},
363
+ "checkConstraints": {},
364
+ "isRLSEnabled": false
365
+ },
366
+ "public.email_verification_tokens": {
367
+ "name": "email_verification_tokens",
368
+ "schema": "",
369
+ "columns": {
370
+ "id": {
371
+ "name": "id",
372
+ "type": "serial",
373
+ "primaryKey": true,
374
+ "notNull": true
375
+ },
376
+ "identifier": {
377
+ "name": "identifier",
378
+ "type": "text",
379
+ "primaryKey": false,
380
+ "notNull": true
381
+ },
382
+ "token_hash": {
383
+ "name": "token_hash",
384
+ "type": "text",
385
+ "primaryKey": false,
386
+ "notNull": true
387
+ },
388
+ "expires": {
389
+ "name": "expires",
390
+ "type": "timestamp",
391
+ "primaryKey": false,
392
+ "notNull": true
393
+ },
394
+ "created_at": {
395
+ "name": "created_at",
396
+ "type": "timestamp",
397
+ "primaryKey": false,
398
+ "notNull": true,
399
+ "default": "now()"
400
+ }
401
+ },
402
+ "indexes": {
403
+ "evt_identifier_token_hash_unique": {
404
+ "name": "evt_identifier_token_hash_unique",
405
+ "columns": [
406
+ {
407
+ "expression": "identifier",
408
+ "isExpression": false,
409
+ "asc": true,
410
+ "nulls": "last"
411
+ },
412
+ {
413
+ "expression": "token_hash",
414
+ "isExpression": false,
415
+ "asc": true,
416
+ "nulls": "last"
417
+ }
418
+ ],
419
+ "isUnique": true,
420
+ "concurrently": false,
421
+ "method": "btree",
422
+ "with": {}
423
+ },
424
+ "evt_expires_idx": {
425
+ "name": "evt_expires_idx",
426
+ "columns": [
427
+ {
428
+ "expression": "expires",
429
+ "isExpression": false,
430
+ "asc": true,
431
+ "nulls": "last"
432
+ }
433
+ ],
434
+ "isUnique": false,
435
+ "concurrently": false,
436
+ "method": "btree",
437
+ "with": {}
438
+ }
439
+ },
440
+ "foreignKeys": {},
441
+ "compositePrimaryKeys": {},
442
+ "uniqueConstraints": {},
443
+ "policies": {},
444
+ "checkConstraints": {},
445
+ "isRLSEnabled": false
446
+ },
447
+ "public.example_users": {
448
+ "name": "example_users",
449
+ "schema": "",
450
+ "columns": {
451
+ "id": {
452
+ "name": "id",
453
+ "type": "serial",
454
+ "primaryKey": true,
455
+ "notNull": true
456
+ },
457
+ "name": {
458
+ "name": "name",
459
+ "type": "text",
460
+ "primaryKey": false,
461
+ "notNull": false
462
+ }
463
+ },
464
+ "indexes": {},
465
+ "foreignKeys": {},
466
+ "compositePrimaryKeys": {},
467
+ "uniqueConstraints": {},
468
+ "policies": {},
469
+ "checkConstraints": {},
470
+ "isRLSEnabled": false
471
+ },
472
+ "public.field_permissions": {
473
+ "name": "field_permissions",
474
+ "schema": "",
475
+ "columns": {
476
+ "id": {
477
+ "name": "id",
478
+ "type": "text",
479
+ "primaryKey": true,
480
+ "notNull": true
481
+ },
482
+ "role_id": {
483
+ "name": "role_id",
484
+ "type": "text",
485
+ "primaryKey": false,
486
+ "notNull": true
487
+ },
488
+ "collection_slug": {
489
+ "name": "collection_slug",
490
+ "type": "varchar(100)",
491
+ "primaryKey": false,
492
+ "notNull": true
493
+ },
494
+ "field_path": {
495
+ "name": "field_path",
496
+ "type": "varchar(255)",
497
+ "primaryKey": false,
498
+ "notNull": true
499
+ },
500
+ "action": {
501
+ "name": "action",
502
+ "type": "varchar(10)",
503
+ "primaryKey": false,
504
+ "notNull": true
505
+ },
506
+ "condition": {
507
+ "name": "condition",
508
+ "type": "jsonb",
509
+ "primaryKey": false,
510
+ "notNull": false
511
+ },
512
+ "created_at": {
513
+ "name": "created_at",
514
+ "type": "timestamp",
515
+ "primaryKey": false,
516
+ "notNull": true,
517
+ "default": "now()"
518
+ },
519
+ "updated_at": {
520
+ "name": "updated_at",
521
+ "type": "timestamp",
522
+ "primaryKey": false,
523
+ "notNull": true,
524
+ "default": "now()"
525
+ }
526
+ },
527
+ "indexes": {
528
+ "field_permissions_role_collection_field_unique": {
529
+ "name": "field_permissions_role_collection_field_unique",
530
+ "columns": [
531
+ {
532
+ "expression": "role_id",
533
+ "isExpression": false,
534
+ "asc": true,
535
+ "nulls": "last"
536
+ },
537
+ {
538
+ "expression": "collection_slug",
539
+ "isExpression": false,
540
+ "asc": true,
541
+ "nulls": "last"
542
+ },
543
+ {
544
+ "expression": "field_path",
545
+ "isExpression": false,
546
+ "asc": true,
547
+ "nulls": "last"
548
+ }
549
+ ],
550
+ "isUnique": true,
551
+ "concurrently": false,
552
+ "method": "btree",
553
+ "with": {}
554
+ },
555
+ "field_permissions_role_id_idx": {
556
+ "name": "field_permissions_role_id_idx",
557
+ "columns": [
558
+ {
559
+ "expression": "role_id",
560
+ "isExpression": false,
561
+ "asc": true,
562
+ "nulls": "last"
563
+ }
564
+ ],
565
+ "isUnique": false,
566
+ "concurrently": false,
567
+ "method": "btree",
568
+ "with": {}
569
+ },
570
+ "field_permissions_collection_idx": {
571
+ "name": "field_permissions_collection_idx",
572
+ "columns": [
573
+ {
574
+ "expression": "collection_slug",
575
+ "isExpression": false,
576
+ "asc": true,
577
+ "nulls": "last"
578
+ }
579
+ ],
580
+ "isUnique": false,
581
+ "concurrently": false,
582
+ "method": "btree",
583
+ "with": {}
584
+ },
585
+ "field_permissions_lookup_idx": {
586
+ "name": "field_permissions_lookup_idx",
587
+ "columns": [
588
+ {
589
+ "expression": "role_id",
590
+ "isExpression": false,
591
+ "asc": true,
592
+ "nulls": "last"
593
+ },
594
+ {
595
+ "expression": "collection_slug",
596
+ "isExpression": false,
597
+ "asc": true,
598
+ "nulls": "last"
599
+ },
600
+ {
601
+ "expression": "field_path",
602
+ "isExpression": false,
603
+ "asc": true,
604
+ "nulls": "last"
605
+ }
606
+ ],
607
+ "isUnique": false,
608
+ "concurrently": false,
609
+ "method": "btree",
610
+ "with": {}
611
+ }
612
+ },
613
+ "foreignKeys": {
614
+ "field_permissions_role_id_roles_id_fk": {
615
+ "name": "field_permissions_role_id_roles_id_fk",
616
+ "tableFrom": "field_permissions",
617
+ "tableTo": "roles",
618
+ "columnsFrom": ["role_id"],
619
+ "columnsTo": ["id"],
620
+ "onDelete": "cascade",
621
+ "onUpdate": "no action"
622
+ }
623
+ },
624
+ "compositePrimaryKeys": {},
625
+ "uniqueConstraints": {},
626
+ "policies": {},
627
+ "checkConstraints": {},
628
+ "isRLSEnabled": false
629
+ },
630
+ "public.password_reset_tokens": {
631
+ "name": "password_reset_tokens",
632
+ "schema": "",
633
+ "columns": {
634
+ "id": {
635
+ "name": "id",
636
+ "type": "serial",
637
+ "primaryKey": true,
638
+ "notNull": true
639
+ },
640
+ "identifier": {
641
+ "name": "identifier",
642
+ "type": "text",
643
+ "primaryKey": false,
644
+ "notNull": true
645
+ },
646
+ "token_hash": {
647
+ "name": "token_hash",
648
+ "type": "text",
649
+ "primaryKey": false,
650
+ "notNull": true
651
+ },
652
+ "expires": {
653
+ "name": "expires",
654
+ "type": "timestamp",
655
+ "primaryKey": false,
656
+ "notNull": true
657
+ },
658
+ "used_at": {
659
+ "name": "used_at",
660
+ "type": "timestamp",
661
+ "primaryKey": false,
662
+ "notNull": false
663
+ },
664
+ "created_at": {
665
+ "name": "created_at",
666
+ "type": "timestamp",
667
+ "primaryKey": false,
668
+ "notNull": true,
669
+ "default": "now()"
670
+ }
671
+ },
672
+ "indexes": {
673
+ "prt_identifier_token_hash_unique": {
674
+ "name": "prt_identifier_token_hash_unique",
675
+ "columns": [
676
+ {
677
+ "expression": "identifier",
678
+ "isExpression": false,
679
+ "asc": true,
680
+ "nulls": "last"
681
+ },
682
+ {
683
+ "expression": "token_hash",
684
+ "isExpression": false,
685
+ "asc": true,
686
+ "nulls": "last"
687
+ }
688
+ ],
689
+ "isUnique": true,
690
+ "concurrently": false,
691
+ "method": "btree",
692
+ "with": {}
693
+ },
694
+ "prt_expires_idx": {
695
+ "name": "prt_expires_idx",
696
+ "columns": [
697
+ {
698
+ "expression": "expires",
699
+ "isExpression": false,
700
+ "asc": true,
701
+ "nulls": "last"
702
+ }
703
+ ],
704
+ "isUnique": false,
705
+ "concurrently": false,
706
+ "method": "btree",
707
+ "with": {}
708
+ },
709
+ "prt_used_at_idx": {
710
+ "name": "prt_used_at_idx",
711
+ "columns": [
712
+ {
713
+ "expression": "used_at",
714
+ "isExpression": false,
715
+ "asc": true,
716
+ "nulls": "last"
717
+ }
718
+ ],
719
+ "isUnique": false,
720
+ "concurrently": false,
721
+ "method": "btree",
722
+ "with": {}
723
+ }
724
+ },
725
+ "foreignKeys": {},
726
+ "compositePrimaryKeys": {},
727
+ "uniqueConstraints": {},
728
+ "policies": {},
729
+ "checkConstraints": {},
730
+ "isRLSEnabled": false
731
+ },
732
+ "public.permissions": {
733
+ "name": "permissions",
734
+ "schema": "",
735
+ "columns": {
736
+ "id": {
737
+ "name": "id",
738
+ "type": "text",
739
+ "primaryKey": true,
740
+ "notNull": true
741
+ },
742
+ "name": {
743
+ "name": "name",
744
+ "type": "varchar(100)",
745
+ "primaryKey": false,
746
+ "notNull": true
747
+ },
748
+ "slug": {
749
+ "name": "slug",
750
+ "type": "varchar(100)",
751
+ "primaryKey": false,
752
+ "notNull": true
753
+ },
754
+ "action": {
755
+ "name": "action",
756
+ "type": "varchar(50)",
757
+ "primaryKey": false,
758
+ "notNull": true
759
+ },
760
+ "resource": {
761
+ "name": "resource",
762
+ "type": "varchar(50)",
763
+ "primaryKey": false,
764
+ "notNull": true
765
+ },
766
+ "description": {
767
+ "name": "description",
768
+ "type": "varchar(255)",
769
+ "primaryKey": false,
770
+ "notNull": false
771
+ },
772
+ "created_at": {
773
+ "name": "created_at",
774
+ "type": "timestamp",
775
+ "primaryKey": false,
776
+ "notNull": true,
777
+ "default": "now()"
778
+ },
779
+ "updated_at": {
780
+ "name": "updated_at",
781
+ "type": "timestamp",
782
+ "primaryKey": false,
783
+ "notNull": true,
784
+ "default": "now()"
785
+ }
786
+ },
787
+ "indexes": {
788
+ "permissions_action_resource_unique": {
789
+ "name": "permissions_action_resource_unique",
790
+ "columns": [
791
+ {
792
+ "expression": "action",
793
+ "isExpression": false,
794
+ "asc": true,
795
+ "nulls": "last"
796
+ },
797
+ {
798
+ "expression": "resource",
799
+ "isExpression": false,
800
+ "asc": true,
801
+ "nulls": "last"
802
+ }
803
+ ],
804
+ "isUnique": true,
805
+ "concurrently": false,
806
+ "method": "btree",
807
+ "with": {}
808
+ },
809
+ "permissions_slug_unique": {
810
+ "name": "permissions_slug_unique",
811
+ "columns": [
812
+ {
813
+ "expression": "slug",
814
+ "isExpression": false,
815
+ "asc": true,
816
+ "nulls": "last"
817
+ }
818
+ ],
819
+ "isUnique": true,
820
+ "concurrently": false,
821
+ "method": "btree",
822
+ "with": {}
823
+ },
824
+ "permissions_resource_idx": {
825
+ "name": "permissions_resource_idx",
826
+ "columns": [
827
+ {
828
+ "expression": "resource",
829
+ "isExpression": false,
830
+ "asc": true,
831
+ "nulls": "last"
832
+ }
833
+ ],
834
+ "isUnique": false,
835
+ "concurrently": false,
836
+ "method": "btree",
837
+ "with": {}
838
+ },
839
+ "permissions_action_idx": {
840
+ "name": "permissions_action_idx",
841
+ "columns": [
842
+ {
843
+ "expression": "action",
844
+ "isExpression": false,
845
+ "asc": true,
846
+ "nulls": "last"
847
+ }
848
+ ],
849
+ "isUnique": false,
850
+ "concurrently": false,
851
+ "method": "btree",
852
+ "with": {}
853
+ }
854
+ },
855
+ "foreignKeys": {},
856
+ "compositePrimaryKeys": {},
857
+ "uniqueConstraints": {},
858
+ "policies": {},
859
+ "checkConstraints": {},
860
+ "isRLSEnabled": false
861
+ },
862
+ "public.role_inherits": {
863
+ "name": "role_inherits",
864
+ "schema": "",
865
+ "columns": {
866
+ "id": {
867
+ "name": "id",
868
+ "type": "text",
869
+ "primaryKey": true,
870
+ "notNull": true
871
+ },
872
+ "parent_role_id": {
873
+ "name": "parent_role_id",
874
+ "type": "text",
875
+ "primaryKey": false,
876
+ "notNull": true
877
+ },
878
+ "child_role_id": {
879
+ "name": "child_role_id",
880
+ "type": "text",
881
+ "primaryKey": false,
882
+ "notNull": true
883
+ }
884
+ },
885
+ "indexes": {
886
+ "role_inherits_parent_child_unique": {
887
+ "name": "role_inherits_parent_child_unique",
888
+ "columns": [
889
+ {
890
+ "expression": "parent_role_id",
891
+ "isExpression": false,
892
+ "asc": true,
893
+ "nulls": "last"
894
+ },
895
+ {
896
+ "expression": "child_role_id",
897
+ "isExpression": false,
898
+ "asc": true,
899
+ "nulls": "last"
900
+ }
901
+ ],
902
+ "isUnique": true,
903
+ "concurrently": false,
904
+ "method": "btree",
905
+ "with": {}
906
+ },
907
+ "role_inherits_child_idx": {
908
+ "name": "role_inherits_child_idx",
909
+ "columns": [
910
+ {
911
+ "expression": "child_role_id",
912
+ "isExpression": false,
913
+ "asc": true,
914
+ "nulls": "last"
915
+ }
916
+ ],
917
+ "isUnique": false,
918
+ "concurrently": false,
919
+ "method": "btree",
920
+ "with": {}
921
+ },
922
+ "role_inherits_parent_idx": {
923
+ "name": "role_inherits_parent_idx",
924
+ "columns": [
925
+ {
926
+ "expression": "parent_role_id",
927
+ "isExpression": false,
928
+ "asc": true,
929
+ "nulls": "last"
930
+ }
931
+ ],
932
+ "isUnique": false,
933
+ "concurrently": false,
934
+ "method": "btree",
935
+ "with": {}
936
+ }
937
+ },
938
+ "foreignKeys": {
939
+ "role_inherits_parent_role_id_roles_id_fk": {
940
+ "name": "role_inherits_parent_role_id_roles_id_fk",
941
+ "tableFrom": "role_inherits",
942
+ "tableTo": "roles",
943
+ "columnsFrom": ["parent_role_id"],
944
+ "columnsTo": ["id"],
945
+ "onDelete": "cascade",
946
+ "onUpdate": "no action"
947
+ },
948
+ "role_inherits_child_role_id_roles_id_fk": {
949
+ "name": "role_inherits_child_role_id_roles_id_fk",
950
+ "tableFrom": "role_inherits",
951
+ "tableTo": "roles",
952
+ "columnsFrom": ["child_role_id"],
953
+ "columnsTo": ["id"],
954
+ "onDelete": "cascade",
955
+ "onUpdate": "no action"
956
+ }
957
+ },
958
+ "compositePrimaryKeys": {},
959
+ "uniqueConstraints": {},
960
+ "policies": {},
961
+ "checkConstraints": {},
962
+ "isRLSEnabled": false
963
+ },
964
+ "public.role_permissions": {
965
+ "name": "role_permissions",
966
+ "schema": "",
967
+ "columns": {
968
+ "id": {
969
+ "name": "id",
970
+ "type": "text",
971
+ "primaryKey": true,
972
+ "notNull": true
973
+ },
974
+ "role_id": {
975
+ "name": "role_id",
976
+ "type": "text",
977
+ "primaryKey": false,
978
+ "notNull": true
979
+ },
980
+ "permission_id": {
981
+ "name": "permission_id",
982
+ "type": "text",
983
+ "primaryKey": false,
984
+ "notNull": true
985
+ },
986
+ "created_at": {
987
+ "name": "created_at",
988
+ "type": "timestamp",
989
+ "primaryKey": false,
990
+ "notNull": true,
991
+ "default": "now()"
992
+ }
993
+ },
994
+ "indexes": {
995
+ "role_permissions_role_permission_unique": {
996
+ "name": "role_permissions_role_permission_unique",
997
+ "columns": [
998
+ {
999
+ "expression": "role_id",
1000
+ "isExpression": false,
1001
+ "asc": true,
1002
+ "nulls": "last"
1003
+ },
1004
+ {
1005
+ "expression": "permission_id",
1006
+ "isExpression": false,
1007
+ "asc": true,
1008
+ "nulls": "last"
1009
+ }
1010
+ ],
1011
+ "isUnique": true,
1012
+ "concurrently": false,
1013
+ "method": "btree",
1014
+ "with": {}
1015
+ },
1016
+ "role_permissions_role_id_idx": {
1017
+ "name": "role_permissions_role_id_idx",
1018
+ "columns": [
1019
+ {
1020
+ "expression": "role_id",
1021
+ "isExpression": false,
1022
+ "asc": true,
1023
+ "nulls": "last"
1024
+ }
1025
+ ],
1026
+ "isUnique": false,
1027
+ "concurrently": false,
1028
+ "method": "btree",
1029
+ "with": {}
1030
+ }
1031
+ },
1032
+ "foreignKeys": {
1033
+ "role_permissions_role_id_roles_id_fk": {
1034
+ "name": "role_permissions_role_id_roles_id_fk",
1035
+ "tableFrom": "role_permissions",
1036
+ "tableTo": "roles",
1037
+ "columnsFrom": ["role_id"],
1038
+ "columnsTo": ["id"],
1039
+ "onDelete": "cascade",
1040
+ "onUpdate": "no action"
1041
+ },
1042
+ "role_permissions_permission_id_permissions_id_fk": {
1043
+ "name": "role_permissions_permission_id_permissions_id_fk",
1044
+ "tableFrom": "role_permissions",
1045
+ "tableTo": "permissions",
1046
+ "columnsFrom": ["permission_id"],
1047
+ "columnsTo": ["id"],
1048
+ "onDelete": "cascade",
1049
+ "onUpdate": "no action"
1050
+ }
1051
+ },
1052
+ "compositePrimaryKeys": {},
1053
+ "uniqueConstraints": {},
1054
+ "policies": {},
1055
+ "checkConstraints": {},
1056
+ "isRLSEnabled": false
1057
+ },
1058
+ "public.roles": {
1059
+ "name": "roles",
1060
+ "schema": "",
1061
+ "columns": {
1062
+ "id": {
1063
+ "name": "id",
1064
+ "type": "text",
1065
+ "primaryKey": true,
1066
+ "notNull": true
1067
+ },
1068
+ "name": {
1069
+ "name": "name",
1070
+ "type": "varchar(50)",
1071
+ "primaryKey": false,
1072
+ "notNull": true
1073
+ },
1074
+ "slug": {
1075
+ "name": "slug",
1076
+ "type": "varchar(50)",
1077
+ "primaryKey": false,
1078
+ "notNull": true
1079
+ },
1080
+ "description": {
1081
+ "name": "description",
1082
+ "type": "varchar(255)",
1083
+ "primaryKey": false,
1084
+ "notNull": false
1085
+ },
1086
+ "level": {
1087
+ "name": "level",
1088
+ "type": "integer",
1089
+ "primaryKey": false,
1090
+ "notNull": true,
1091
+ "default": 0
1092
+ },
1093
+ "is_system": {
1094
+ "name": "is_system",
1095
+ "type": "boolean",
1096
+ "primaryKey": false,
1097
+ "notNull": true,
1098
+ "default": false
1099
+ },
1100
+ "created_at": {
1101
+ "name": "created_at",
1102
+ "type": "timestamp",
1103
+ "primaryKey": false,
1104
+ "notNull": true,
1105
+ "default": "now()"
1106
+ },
1107
+ "updated_at": {
1108
+ "name": "updated_at",
1109
+ "type": "timestamp",
1110
+ "primaryKey": false,
1111
+ "notNull": true,
1112
+ "default": "now()"
1113
+ }
1114
+ },
1115
+ "indexes": {
1116
+ "roles_name_unique": {
1117
+ "name": "roles_name_unique",
1118
+ "columns": [
1119
+ {
1120
+ "expression": "name",
1121
+ "isExpression": false,
1122
+ "asc": true,
1123
+ "nulls": "last"
1124
+ }
1125
+ ],
1126
+ "isUnique": true,
1127
+ "concurrently": false,
1128
+ "method": "btree",
1129
+ "with": {}
1130
+ },
1131
+ "roles_slug_unique": {
1132
+ "name": "roles_slug_unique",
1133
+ "columns": [
1134
+ {
1135
+ "expression": "slug",
1136
+ "isExpression": false,
1137
+ "asc": true,
1138
+ "nulls": "last"
1139
+ }
1140
+ ],
1141
+ "isUnique": true,
1142
+ "concurrently": false,
1143
+ "method": "btree",
1144
+ "with": {}
1145
+ },
1146
+ "roles_level_idx": {
1147
+ "name": "roles_level_idx",
1148
+ "columns": [
1149
+ {
1150
+ "expression": "level",
1151
+ "isExpression": false,
1152
+ "asc": true,
1153
+ "nulls": "last"
1154
+ }
1155
+ ],
1156
+ "isUnique": false,
1157
+ "concurrently": false,
1158
+ "method": "btree",
1159
+ "with": {}
1160
+ },
1161
+ "roles_is_system_idx": {
1162
+ "name": "roles_is_system_idx",
1163
+ "columns": [
1164
+ {
1165
+ "expression": "is_system",
1166
+ "isExpression": false,
1167
+ "asc": true,
1168
+ "nulls": "last"
1169
+ }
1170
+ ],
1171
+ "isUnique": false,
1172
+ "concurrently": false,
1173
+ "method": "btree",
1174
+ "with": {}
1175
+ }
1176
+ },
1177
+ "foreignKeys": {},
1178
+ "compositePrimaryKeys": {},
1179
+ "uniqueConstraints": {},
1180
+ "policies": {},
1181
+ "checkConstraints": {},
1182
+ "isRLSEnabled": false
1183
+ },
1184
+ "public.sessions": {
1185
+ "name": "sessions",
1186
+ "schema": "",
1187
+ "columns": {
1188
+ "session_token": {
1189
+ "name": "session_token",
1190
+ "type": "text",
1191
+ "primaryKey": true,
1192
+ "notNull": true
1193
+ },
1194
+ "user_id": {
1195
+ "name": "user_id",
1196
+ "type": "text",
1197
+ "primaryKey": false,
1198
+ "notNull": true
1199
+ },
1200
+ "expires": {
1201
+ "name": "expires",
1202
+ "type": "timestamp",
1203
+ "primaryKey": false,
1204
+ "notNull": true
1205
+ }
1206
+ },
1207
+ "indexes": {
1208
+ "sessions_user_id_idx": {
1209
+ "name": "sessions_user_id_idx",
1210
+ "columns": [
1211
+ {
1212
+ "expression": "user_id",
1213
+ "isExpression": false,
1214
+ "asc": true,
1215
+ "nulls": "last"
1216
+ }
1217
+ ],
1218
+ "isUnique": false,
1219
+ "concurrently": false,
1220
+ "method": "btree",
1221
+ "with": {}
1222
+ }
1223
+ },
1224
+ "foreignKeys": {},
1225
+ "compositePrimaryKeys": {},
1226
+ "uniqueConstraints": {},
1227
+ "policies": {},
1228
+ "checkConstraints": {},
1229
+ "isRLSEnabled": false
1230
+ },
1231
+ "public.system_migrations": {
1232
+ "name": "system_migrations",
1233
+ "schema": "",
1234
+ "columns": {
1235
+ "id": {
1236
+ "name": "id",
1237
+ "type": "serial",
1238
+ "primaryKey": true,
1239
+ "notNull": true
1240
+ },
1241
+ "name": {
1242
+ "name": "name",
1243
+ "type": "text",
1244
+ "primaryKey": false,
1245
+ "notNull": true
1246
+ },
1247
+ "run_at": {
1248
+ "name": "run_at",
1249
+ "type": "timestamp",
1250
+ "primaryKey": false,
1251
+ "notNull": true,
1252
+ "default": "now()"
1253
+ }
1254
+ },
1255
+ "indexes": {},
1256
+ "foreignKeys": {},
1257
+ "compositePrimaryKeys": {},
1258
+ "uniqueConstraints": {},
1259
+ "policies": {},
1260
+ "checkConstraints": {},
1261
+ "isRLSEnabled": false
1262
+ },
1263
+ "public.user_permission_cache": {
1264
+ "name": "user_permission_cache",
1265
+ "schema": "",
1266
+ "columns": {
1267
+ "id": {
1268
+ "name": "id",
1269
+ "type": "text",
1270
+ "primaryKey": true,
1271
+ "notNull": true
1272
+ },
1273
+ "user_id": {
1274
+ "name": "user_id",
1275
+ "type": "text",
1276
+ "primaryKey": false,
1277
+ "notNull": true
1278
+ },
1279
+ "action": {
1280
+ "name": "action",
1281
+ "type": "varchar(50)",
1282
+ "primaryKey": false,
1283
+ "notNull": true
1284
+ },
1285
+ "resource": {
1286
+ "name": "resource",
1287
+ "type": "varchar(100)",
1288
+ "primaryKey": false,
1289
+ "notNull": true
1290
+ },
1291
+ "has_permission": {
1292
+ "name": "has_permission",
1293
+ "type": "boolean",
1294
+ "primaryKey": false,
1295
+ "notNull": true
1296
+ },
1297
+ "role_ids": {
1298
+ "name": "role_ids",
1299
+ "type": "jsonb",
1300
+ "primaryKey": false,
1301
+ "notNull": true
1302
+ },
1303
+ "expires_at": {
1304
+ "name": "expires_at",
1305
+ "type": "timestamp",
1306
+ "primaryKey": false,
1307
+ "notNull": true
1308
+ },
1309
+ "created_at": {
1310
+ "name": "created_at",
1311
+ "type": "timestamp",
1312
+ "primaryKey": false,
1313
+ "notNull": true,
1314
+ "default": "now()"
1315
+ }
1316
+ },
1317
+ "indexes": {
1318
+ "upc_user_id_idx": {
1319
+ "name": "upc_user_id_idx",
1320
+ "columns": [
1321
+ {
1322
+ "expression": "user_id",
1323
+ "isExpression": false,
1324
+ "asc": true,
1325
+ "nulls": "last"
1326
+ }
1327
+ ],
1328
+ "isUnique": false,
1329
+ "concurrently": false,
1330
+ "method": "btree",
1331
+ "with": {}
1332
+ },
1333
+ "upc_expires_at_idx": {
1334
+ "name": "upc_expires_at_idx",
1335
+ "columns": [
1336
+ {
1337
+ "expression": "expires_at",
1338
+ "isExpression": false,
1339
+ "asc": true,
1340
+ "nulls": "last"
1341
+ }
1342
+ ],
1343
+ "isUnique": false,
1344
+ "concurrently": false,
1345
+ "method": "btree",
1346
+ "with": {}
1347
+ },
1348
+ "upc_user_action_resource_idx": {
1349
+ "name": "upc_user_action_resource_idx",
1350
+ "columns": [
1351
+ {
1352
+ "expression": "user_id",
1353
+ "isExpression": false,
1354
+ "asc": true,
1355
+ "nulls": "last"
1356
+ },
1357
+ {
1358
+ "expression": "action",
1359
+ "isExpression": false,
1360
+ "asc": true,
1361
+ "nulls": "last"
1362
+ },
1363
+ {
1364
+ "expression": "resource",
1365
+ "isExpression": false,
1366
+ "asc": true,
1367
+ "nulls": "last"
1368
+ }
1369
+ ],
1370
+ "isUnique": false,
1371
+ "concurrently": false,
1372
+ "method": "btree",
1373
+ "with": {}
1374
+ }
1375
+ },
1376
+ "foreignKeys": {
1377
+ "user_permission_cache_user_id_users_id_fk": {
1378
+ "name": "user_permission_cache_user_id_users_id_fk",
1379
+ "tableFrom": "user_permission_cache",
1380
+ "tableTo": "users",
1381
+ "columnsFrom": ["user_id"],
1382
+ "columnsTo": ["id"],
1383
+ "onDelete": "cascade",
1384
+ "onUpdate": "no action"
1385
+ }
1386
+ },
1387
+ "compositePrimaryKeys": {},
1388
+ "uniqueConstraints": {},
1389
+ "policies": {},
1390
+ "checkConstraints": {},
1391
+ "isRLSEnabled": false
1392
+ },
1393
+ "public.user_roles": {
1394
+ "name": "user_roles",
1395
+ "schema": "",
1396
+ "columns": {
1397
+ "id": {
1398
+ "name": "id",
1399
+ "type": "text",
1400
+ "primaryKey": true,
1401
+ "notNull": true
1402
+ },
1403
+ "user_id": {
1404
+ "name": "user_id",
1405
+ "type": "text",
1406
+ "primaryKey": false,
1407
+ "notNull": true
1408
+ },
1409
+ "role_id": {
1410
+ "name": "role_id",
1411
+ "type": "text",
1412
+ "primaryKey": false,
1413
+ "notNull": true
1414
+ },
1415
+ "created_at": {
1416
+ "name": "created_at",
1417
+ "type": "timestamp",
1418
+ "primaryKey": false,
1419
+ "notNull": true,
1420
+ "default": "now()"
1421
+ },
1422
+ "expires_at": {
1423
+ "name": "expires_at",
1424
+ "type": "timestamp",
1425
+ "primaryKey": false,
1426
+ "notNull": false
1427
+ }
1428
+ },
1429
+ "indexes": {
1430
+ "user_roles_user_role_unique": {
1431
+ "name": "user_roles_user_role_unique",
1432
+ "columns": [
1433
+ {
1434
+ "expression": "user_id",
1435
+ "isExpression": false,
1436
+ "asc": true,
1437
+ "nulls": "last"
1438
+ },
1439
+ {
1440
+ "expression": "role_id",
1441
+ "isExpression": false,
1442
+ "asc": true,
1443
+ "nulls": "last"
1444
+ }
1445
+ ],
1446
+ "isUnique": true,
1447
+ "concurrently": false,
1448
+ "method": "btree",
1449
+ "with": {}
1450
+ },
1451
+ "user_roles_user_id_idx": {
1452
+ "name": "user_roles_user_id_idx",
1453
+ "columns": [
1454
+ {
1455
+ "expression": "user_id",
1456
+ "isExpression": false,
1457
+ "asc": true,
1458
+ "nulls": "last"
1459
+ }
1460
+ ],
1461
+ "isUnique": false,
1462
+ "concurrently": false,
1463
+ "method": "btree",
1464
+ "with": {}
1465
+ },
1466
+ "user_roles_expires_at_idx": {
1467
+ "name": "user_roles_expires_at_idx",
1468
+ "columns": [
1469
+ {
1470
+ "expression": "expires_at",
1471
+ "isExpression": false,
1472
+ "asc": true,
1473
+ "nulls": "last"
1474
+ }
1475
+ ],
1476
+ "isUnique": false,
1477
+ "concurrently": false,
1478
+ "method": "btree",
1479
+ "with": {}
1480
+ }
1481
+ },
1482
+ "foreignKeys": {
1483
+ "user_roles_user_id_users_id_fk": {
1484
+ "name": "user_roles_user_id_users_id_fk",
1485
+ "tableFrom": "user_roles",
1486
+ "tableTo": "users",
1487
+ "columnsFrom": ["user_id"],
1488
+ "columnsTo": ["id"],
1489
+ "onDelete": "cascade",
1490
+ "onUpdate": "no action"
1491
+ },
1492
+ "user_roles_role_id_roles_id_fk": {
1493
+ "name": "user_roles_role_id_roles_id_fk",
1494
+ "tableFrom": "user_roles",
1495
+ "tableTo": "roles",
1496
+ "columnsFrom": ["role_id"],
1497
+ "columnsTo": ["id"],
1498
+ "onDelete": "cascade",
1499
+ "onUpdate": "no action"
1500
+ }
1501
+ },
1502
+ "compositePrimaryKeys": {},
1503
+ "uniqueConstraints": {},
1504
+ "policies": {},
1505
+ "checkConstraints": {},
1506
+ "isRLSEnabled": false
1507
+ },
1508
+ "public.users": {
1509
+ "name": "users",
1510
+ "schema": "",
1511
+ "columns": {
1512
+ "id": {
1513
+ "name": "id",
1514
+ "type": "text",
1515
+ "primaryKey": true,
1516
+ "notNull": true
1517
+ },
1518
+ "name": {
1519
+ "name": "name",
1520
+ "type": "text",
1521
+ "primaryKey": false,
1522
+ "notNull": false
1523
+ },
1524
+ "email": {
1525
+ "name": "email",
1526
+ "type": "text",
1527
+ "primaryKey": false,
1528
+ "notNull": true
1529
+ },
1530
+ "email_verified": {
1531
+ "name": "email_verified",
1532
+ "type": "timestamp",
1533
+ "primaryKey": false,
1534
+ "notNull": false
1535
+ },
1536
+ "password_updated_at": {
1537
+ "name": "password_updated_at",
1538
+ "type": "timestamp",
1539
+ "primaryKey": false,
1540
+ "notNull": false
1541
+ },
1542
+ "image": {
1543
+ "name": "image",
1544
+ "type": "text",
1545
+ "primaryKey": false,
1546
+ "notNull": false
1547
+ },
1548
+ "password_hash": {
1549
+ "name": "password_hash",
1550
+ "type": "text",
1551
+ "primaryKey": false,
1552
+ "notNull": true
1553
+ },
1554
+ "is_active": {
1555
+ "name": "is_active",
1556
+ "type": "boolean",
1557
+ "primaryKey": false,
1558
+ "notNull": true,
1559
+ "default": false
1560
+ },
1561
+ "created_at": {
1562
+ "name": "created_at",
1563
+ "type": "timestamp",
1564
+ "primaryKey": false,
1565
+ "notNull": true,
1566
+ "default": "now()"
1567
+ },
1568
+ "updated_at": {
1569
+ "name": "updated_at",
1570
+ "type": "timestamp",
1571
+ "primaryKey": false,
1572
+ "notNull": true,
1573
+ "default": "now()"
1574
+ }
1575
+ },
1576
+ "indexes": {
1577
+ "users_email_unique": {
1578
+ "name": "users_email_unique",
1579
+ "columns": [
1580
+ {
1581
+ "expression": "email",
1582
+ "isExpression": false,
1583
+ "asc": true,
1584
+ "nulls": "last"
1585
+ }
1586
+ ],
1587
+ "isUnique": true,
1588
+ "concurrently": false,
1589
+ "method": "btree",
1590
+ "with": {}
1591
+ },
1592
+ "users_created_at_idx": {
1593
+ "name": "users_created_at_idx",
1594
+ "columns": [
1595
+ {
1596
+ "expression": "created_at",
1597
+ "isExpression": false,
1598
+ "asc": true,
1599
+ "nulls": "last"
1600
+ }
1601
+ ],
1602
+ "isUnique": false,
1603
+ "concurrently": false,
1604
+ "method": "btree",
1605
+ "with": {}
1606
+ }
1607
+ },
1608
+ "foreignKeys": {},
1609
+ "compositePrimaryKeys": {},
1610
+ "uniqueConstraints": {},
1611
+ "policies": {},
1612
+ "checkConstraints": {},
1613
+ "isRLSEnabled": false
1614
+ },
1615
+ "public.verification_tokens": {
1616
+ "name": "verification_tokens",
1617
+ "schema": "",
1618
+ "columns": {
1619
+ "identifier": {
1620
+ "name": "identifier",
1621
+ "type": "text",
1622
+ "primaryKey": false,
1623
+ "notNull": true
1624
+ },
1625
+ "token": {
1626
+ "name": "token",
1627
+ "type": "text",
1628
+ "primaryKey": false,
1629
+ "notNull": true
1630
+ },
1631
+ "expires": {
1632
+ "name": "expires",
1633
+ "type": "timestamp",
1634
+ "primaryKey": false,
1635
+ "notNull": true
1636
+ }
1637
+ },
1638
+ "indexes": {
1639
+ "verification_tokens_identifier_token_pk": {
1640
+ "name": "verification_tokens_identifier_token_pk",
1641
+ "columns": [
1642
+ {
1643
+ "expression": "identifier",
1644
+ "isExpression": false,
1645
+ "asc": true,
1646
+ "nulls": "last"
1647
+ },
1648
+ {
1649
+ "expression": "token",
1650
+ "isExpression": false,
1651
+ "asc": true,
1652
+ "nulls": "last"
1653
+ }
1654
+ ],
1655
+ "isUnique": true,
1656
+ "concurrently": false,
1657
+ "method": "btree",
1658
+ "with": {}
1659
+ },
1660
+ "verification_tokens_token_idx": {
1661
+ "name": "verification_tokens_token_idx",
1662
+ "columns": [
1663
+ {
1664
+ "expression": "token",
1665
+ "isExpression": false,
1666
+ "asc": true,
1667
+ "nulls": "last"
1668
+ }
1669
+ ],
1670
+ "isUnique": false,
1671
+ "concurrently": false,
1672
+ "method": "btree",
1673
+ "with": {}
1674
+ }
1675
+ },
1676
+ "foreignKeys": {},
1677
+ "compositePrimaryKeys": {},
1678
+ "uniqueConstraints": {},
1679
+ "policies": {},
1680
+ "checkConstraints": {},
1681
+ "isRLSEnabled": false
1682
+ }
1683
+ },
1684
+ "enums": {},
1685
+ "schemas": {},
1686
+ "sequences": {},
1687
+ "roles": {},
1688
+ "policies": {},
1689
+ "views": {},
1690
+ "_meta": {
1691
+ "columns": {},
1692
+ "schemas": {},
1693
+ "tables": {}
1694
+ }
1695
+ }