create-pet-adopt 0.0.0 → 0.3.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 (486) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +120 -0
  3. package/index.js +920 -0
  4. package/package.json +43 -1
  5. package/template/.env.example +136 -0
  6. package/template/.pet-adopt/template.json +581 -0
  7. package/template/LICENSE +21 -0
  8. package/template/README.md +109 -0
  9. package/template/_gitignore +28 -0
  10. package/template/_pnpm-lock.yaml +9251 -0
  11. package/template/assets/sample-pet.png +0 -0
  12. package/template/components.json +25 -0
  13. package/template/docker-compose.yml +110 -0
  14. package/template/drizzle/pg/0000_initial.sql +176 -0
  15. package/template/drizzle/pg/0001_greedy_the_renegades.sql +1 -0
  16. package/template/drizzle/pg/0002_fuzzy_the_renegades.sql +1 -0
  17. package/template/drizzle/pg/0003_thin_multiple_man.sql +1 -0
  18. package/template/drizzle/pg/0004_boring_norman_osborn.sql +15 -0
  19. package/template/drizzle/pg/0005_bitter_proemial_gods.sql +3 -0
  20. package/template/drizzle/pg/0006_friendly_black_knight.sql +2 -0
  21. package/template/drizzle/pg/0007_wise_ozymandias.sql +11 -0
  22. package/template/drizzle/pg/0008_messy_human_fly.sql +2 -0
  23. package/template/drizzle/pg/0009_amused_lady_bullseye.sql +1 -0
  24. package/template/drizzle/pg/0010_cute_mauler.sql +7 -0
  25. package/template/drizzle/pg/0011_clear_purple_man.sql +3 -0
  26. package/template/drizzle/pg/0012_tiresome_gunslinger.sql +2 -0
  27. package/template/drizzle/pg/0013_awesome_wong.sql +18 -0
  28. package/template/drizzle/pg/0014_fantastic_sumo.sql +12 -0
  29. package/template/drizzle/pg/0015_pink_carnage.sql +12 -0
  30. package/template/drizzle/pg/0016_sloppy_king_bedlam.sql +2 -0
  31. package/template/drizzle/pg/0017_steep_warhawk.sql +15 -0
  32. package/template/drizzle/pg/0018_mixed_otto_octavius.sql +4 -0
  33. package/template/drizzle/pg/0019_talented_rocket_raccoon.sql +1 -0
  34. package/template/drizzle/pg/0020_worthless_zodiak.sql +19 -0
  35. package/template/drizzle/pg/0021_adorable_squadron_supreme.sql +1 -0
  36. package/template/drizzle/pg/0022_soft_pixie.sql +5 -0
  37. package/template/drizzle/pg/0023_fluffy_quasar.sql +1 -0
  38. package/template/drizzle/pg/0024_uneven_ken_ellis.sql +2 -0
  39. package/template/drizzle/pg/0025_rich_white_queen.sql +3 -0
  40. package/template/drizzle/pg/0026_spooky_komodo.sql +16 -0
  41. package/template/drizzle/pg/0027_big_thunderbolts.sql +2 -0
  42. package/template/drizzle/pg/meta/0000_snapshot.json +1265 -0
  43. package/template/drizzle/pg/meta/0001_snapshot.json +1272 -0
  44. package/template/drizzle/pg/meta/0002_snapshot.json +1278 -0
  45. package/template/drizzle/pg/meta/0003_snapshot.json +1284 -0
  46. package/template/drizzle/pg/meta/0004_snapshot.json +1401 -0
  47. package/template/drizzle/pg/meta/0005_snapshot.json +1401 -0
  48. package/template/drizzle/pg/meta/0006_snapshot.json +1414 -0
  49. package/template/drizzle/pg/meta/0007_snapshot.json +1485 -0
  50. package/template/drizzle/pg/meta/0008_snapshot.json +1504 -0
  51. package/template/drizzle/pg/meta/0009_snapshot.json +1510 -0
  52. package/template/drizzle/pg/meta/0010_snapshot.json +1556 -0
  53. package/template/drizzle/pg/meta/0011_snapshot.json +1574 -0
  54. package/template/drizzle/pg/meta/0012_snapshot.json +1586 -0
  55. package/template/drizzle/pg/meta/0013_snapshot.json +1730 -0
  56. package/template/drizzle/pg/meta/0014_snapshot.json +1805 -0
  57. package/template/drizzle/pg/meta/0015_snapshot.json +1883 -0
  58. package/template/drizzle/pg/meta/0016_snapshot.json +1897 -0
  59. package/template/drizzle/pg/meta/0017_snapshot.json +2013 -0
  60. package/template/drizzle/pg/meta/0018_snapshot.json +1988 -0
  61. package/template/drizzle/pg/meta/0019_snapshot.json +1994 -0
  62. package/template/drizzle/pg/meta/0020_snapshot.json +2108 -0
  63. package/template/drizzle/pg/meta/0021_snapshot.json +2114 -0
  64. package/template/drizzle/pg/meta/0022_snapshot.json +2126 -0
  65. package/template/drizzle/pg/meta/0023_snapshot.json +2132 -0
  66. package/template/drizzle/pg/meta/0024_snapshot.json +2151 -0
  67. package/template/drizzle/pg/meta/0025_snapshot.json +2169 -0
  68. package/template/drizzle/pg/meta/0026_snapshot.json +2294 -0
  69. package/template/drizzle/pg/meta/0027_snapshot.json +2330 -0
  70. package/template/drizzle/pg/meta/_journal.json +202 -0
  71. package/template/drizzle/sqlite/0000_initial.sql +176 -0
  72. package/template/drizzle/sqlite/0001_easy_sebastian_shaw.sql +1 -0
  73. package/template/drizzle/sqlite/0002_past_king_cobra.sql +1 -0
  74. package/template/drizzle/sqlite/0003_organic_masked_marvel.sql +1 -0
  75. package/template/drizzle/sqlite/0004_panoramic_inhumans.sql +15 -0
  76. package/template/drizzle/sqlite/0005_small_sunset_bain.sql +19 -0
  77. package/template/drizzle/sqlite/0006_narrow_medusa.sql +2 -0
  78. package/template/drizzle/sqlite/0007_gray_grandmaster.sql +10 -0
  79. package/template/drizzle/sqlite/0008_chief_toxin.sql +1 -0
  80. package/template/drizzle/sqlite/0009_vengeful_tag.sql +1 -0
  81. package/template/drizzle/sqlite/0010_kind_klaw.sql +7 -0
  82. package/template/drizzle/sqlite/0011_overrated_meltdown.sql +3 -0
  83. package/template/drizzle/sqlite/0012_robust_next_avengers.sql +2 -0
  84. package/template/drizzle/sqlite/0013_melodic_kitty_pryde.sql +18 -0
  85. package/template/drizzle/sqlite/0014_stormy_cyclops.sql +12 -0
  86. package/template/drizzle/sqlite/0015_parallel_mongu.sql +11 -0
  87. package/template/drizzle/sqlite/0016_grey_quicksilver.sql +2 -0
  88. package/template/drizzle/sqlite/0017_daily_psylocke.sql +15 -0
  89. package/template/drizzle/sqlite/0018_whole_redwing.sql +4 -0
  90. package/template/drizzle/sqlite/0019_spotty_mandroid.sql +1 -0
  91. package/template/drizzle/sqlite/0020_wild_wendell_rand.sql +19 -0
  92. package/template/drizzle/sqlite/0021_calm_lockheed.sql +1 -0
  93. package/template/drizzle/sqlite/0022_lonely_emma_frost.sql +5 -0
  94. package/template/drizzle/sqlite/0023_elite_tony_stark.sql +1 -0
  95. package/template/drizzle/sqlite/0024_little_lily_hollister.sql +1 -0
  96. package/template/drizzle/sqlite/0025_tough_shotgun.sql +3 -0
  97. package/template/drizzle/sqlite/0026_faithful_mephistopheles.sql +16 -0
  98. package/template/drizzle/sqlite/0027_rapid_arclight.sql +2 -0
  99. package/template/drizzle/sqlite/meta/0000_snapshot.json +1237 -0
  100. package/template/drizzle/sqlite/meta/0001_snapshot.json +1245 -0
  101. package/template/drizzle/sqlite/meta/0002_snapshot.json +1252 -0
  102. package/template/drizzle/sqlite/meta/0003_snapshot.json +1259 -0
  103. package/template/drizzle/sqlite/meta/0004_snapshot.json +1369 -0
  104. package/template/drizzle/sqlite/meta/0005_snapshot.json +1369 -0
  105. package/template/drizzle/sqlite/meta/0006_snapshot.json +1384 -0
  106. package/template/drizzle/sqlite/meta/0007_snapshot.json +1459 -0
  107. package/template/drizzle/sqlite/meta/0008_snapshot.json +1479 -0
  108. package/template/drizzle/sqlite/meta/0009_snapshot.json +1486 -0
  109. package/template/drizzle/sqlite/meta/0010_snapshot.json +1533 -0
  110. package/template/drizzle/sqlite/meta/0011_snapshot.json +1554 -0
  111. package/template/drizzle/sqlite/meta/0012_snapshot.json +1568 -0
  112. package/template/drizzle/sqlite/meta/0013_snapshot.json +1687 -0
  113. package/template/drizzle/sqlite/meta/0014_snapshot.json +1769 -0
  114. package/template/drizzle/sqlite/meta/0015_snapshot.json +1852 -0
  115. package/template/drizzle/sqlite/meta/0016_snapshot.json +1867 -0
  116. package/template/drizzle/sqlite/meta/0017_snapshot.json +1973 -0
  117. package/template/drizzle/sqlite/meta/0018_snapshot.json +1944 -0
  118. package/template/drizzle/sqlite/meta/0019_snapshot.json +1951 -0
  119. package/template/drizzle/sqlite/meta/0020_snapshot.json +2077 -0
  120. package/template/drizzle/sqlite/meta/0021_snapshot.json +2084 -0
  121. package/template/drizzle/sqlite/meta/0022_snapshot.json +2098 -0
  122. package/template/drizzle/sqlite/meta/0023_snapshot.json +2105 -0
  123. package/template/drizzle/sqlite/meta/0024_snapshot.json +2125 -0
  124. package/template/drizzle/sqlite/meta/0025_snapshot.json +2146 -0
  125. package/template/drizzle/sqlite/meta/0026_snapshot.json +2265 -0
  126. package/template/drizzle/sqlite/meta/0027_snapshot.json +2280 -0
  127. package/template/drizzle/sqlite/meta/_journal.json +202 -0
  128. package/template/drizzle.pg.config.ts +8 -0
  129. package/template/drizzle.sqlite.config.ts +8 -0
  130. package/template/eslint.config.mjs +22 -0
  131. package/template/next.config.ts +153 -0
  132. package/template/package.json +102 -0
  133. package/template/pet-adopt.blocks.ts +9 -0
  134. package/template/pet-adopt.config.ts +17 -0
  135. package/template/pnpm-workspace.yaml +19 -0
  136. package/template/postcss.config.mjs +5 -0
  137. package/template/scripts/check-routes.ts +405 -0
  138. package/template/scripts/check-schemas.ts +58 -0
  139. package/template/scripts/migrate-all.ts +25 -0
  140. package/template/scripts/migrate-on-build.ts +71 -0
  141. package/template/scripts/migrate.ts +20 -0
  142. package/template/scripts/plugin-generate.ts +92 -0
  143. package/template/scripts/reset-password.ts +45 -0
  144. package/template/scripts/reset-two-factor.ts +53 -0
  145. package/template/scripts/seed.ts +79 -0
  146. package/template/scripts/setup-env.ts +91 -0
  147. package/template/scripts/storage-check.ts +53 -0
  148. package/template/src/app/(admin)/admin/account/AccountForms.tsx +194 -0
  149. package/template/src/app/(admin)/admin/account/page.tsx +59 -0
  150. package/template/src/app/(admin)/admin/activity/page.tsx +76 -0
  151. package/template/src/app/(admin)/admin/authentication/archived/page.tsx +24 -0
  152. package/template/src/app/(admin)/admin/authentication/layout.tsx +20 -0
  153. package/template/src/app/(admin)/admin/authentication/page.tsx +36 -0
  154. package/template/src/app/(admin)/admin/authentication/providers/page.tsx +33 -0
  155. package/template/src/app/(admin)/admin/email/layout.tsx +21 -0
  156. package/template/src/app/(admin)/admin/email/page.tsx +43 -0
  157. package/template/src/app/(admin)/admin/email/templates/page.tsx +38 -0
  158. package/template/src/app/(admin)/admin/error.tsx +36 -0
  159. package/template/src/app/(admin)/admin/layout.tsx +26 -0
  160. package/template/src/app/(admin)/admin/loading.tsx +9 -0
  161. package/template/src/app/(admin)/admin/media/[id]/page.tsx +97 -0
  162. package/template/src/app/(admin)/admin/media/page.tsx +34 -0
  163. package/template/src/app/(admin)/admin/media/search-params.ts +16 -0
  164. package/template/src/app/(admin)/admin/page.tsx +79 -0
  165. package/template/src/app/(admin)/admin/pages/PageForm.tsx +604 -0
  166. package/template/src/app/(admin)/admin/pages/[id]/page.tsx +51 -0
  167. package/template/src/app/(admin)/admin/pages/new/page.tsx +19 -0
  168. package/template/src/app/(admin)/admin/pages/page.tsx +49 -0
  169. package/template/src/app/(admin)/admin/pets/PetForm.tsx +437 -0
  170. package/template/src/app/(admin)/admin/pets/[id]/page.tsx +41 -0
  171. package/template/src/app/(admin)/admin/pets/new/page.tsx +26 -0
  172. package/template/src/app/(admin)/admin/pets/page.tsx +70 -0
  173. package/template/src/app/(admin)/admin/pets/search-params.ts +16 -0
  174. package/template/src/app/(admin)/admin/plugins/[plugin]/[[...path]]/page.tsx +73 -0
  175. package/template/src/app/(admin)/admin/plugins/page.tsx +66 -0
  176. package/template/src/app/(admin)/admin/settings/SettingsForm.tsx +644 -0
  177. package/template/src/app/(admin)/admin/settings/email/page.tsx +9 -0
  178. package/template/src/app/(admin)/admin/settings/page.tsx +40 -0
  179. package/template/src/app/(admin)/admin/settings/templates/page.tsx +9 -0
  180. package/template/src/app/(admin)/admin/theme/[id]/page.tsx +28 -0
  181. package/template/src/app/(admin)/admin/theme/page.tsx +30 -0
  182. package/template/src/app/(admin)/admin/users/page.tsx +33 -0
  183. package/template/src/app/(admin)/layout.tsx +75 -0
  184. package/template/src/app/(admin)/providers.tsx +42 -0
  185. package/template/src/app/(auth)/admin/confirm-email/page.tsx +40 -0
  186. package/template/src/app/(auth)/admin/invite/page.tsx +38 -0
  187. package/template/src/app/(auth)/admin/login/DemoSignIn.tsx +69 -0
  188. package/template/src/app/(auth)/admin/login/page.tsx +83 -0
  189. package/template/src/app/(auth)/admin/reset-password/page.tsx +73 -0
  190. package/template/src/app/(auth)/error.tsx +9 -0
  191. package/template/src/app/(auth)/layout.tsx +71 -0
  192. package/template/src/app/(editor)/EditorToast.tsx +43 -0
  193. package/template/src/app/(editor)/edit/[id]/PageEditor.tsx +586 -0
  194. package/template/src/app/(editor)/edit/[id]/actions.ts +139 -0
  195. package/template/src/app/(editor)/edit/[id]/page.tsx +76 -0
  196. package/template/src/app/(editor)/edit/[id]/preview/page.tsx +81 -0
  197. package/template/src/app/(editor)/edit/email/[id]/EmailEditor.tsx +236 -0
  198. package/template/src/app/(editor)/edit/email/[id]/page.tsx +64 -0
  199. package/template/src/app/(editor)/edit/theme-preview/page.tsx +94 -0
  200. package/template/src/app/(editor)/editor.css +223 -0
  201. package/template/src/app/(editor)/error.tsx +32 -0
  202. package/template/src/app/(editor)/layout.tsx +67 -0
  203. package/template/src/app/(frontend)/[slug]/page.tsx +53 -0
  204. package/template/src/app/(frontend)/fonts.ts +8 -0
  205. package/template/src/app/(frontend)/layout.tsx +107 -0
  206. package/template/src/app/(frontend)/not-found.tsx +16 -0
  207. package/template/src/app/(frontend)/page.tsx +42 -0
  208. package/template/src/app/(frontend)/pets/[slug]/page.tsx +92 -0
  209. package/template/src/app/(frontend)/pets/page.tsx +42 -0
  210. package/template/src/app/(frontend)/styles.css +537 -0
  211. package/template/src/app/(setup)/error.tsx +9 -0
  212. package/template/src/app/(setup)/layout.tsx +41 -0
  213. package/template/src/app/(setup)/setup/page.tsx +105 -0
  214. package/template/src/app/(setup)/setup/storage-check.ts +43 -0
  215. package/template/src/app/api/auth/[...all]/route.ts +144 -0
  216. package/template/src/app/health/route.ts +9 -0
  217. package/template/src/app/media/[...path]/route.ts +45 -0
  218. package/template/src/app/media/email/[name]/route.ts +60 -0
  219. package/template/src/app/robots.ts +19 -0
  220. package/template/src/app/sitemap.ts +24 -0
  221. package/template/src/components/admin/AdminNav.tsx +153 -0
  222. package/template/src/components/admin/AdminShell.tsx +107 -0
  223. package/template/src/components/admin/DemoNotice.tsx +31 -0
  224. package/template/src/components/admin/EmailConfirmBanner.tsx +44 -0
  225. package/template/src/components/admin/EmptyState.tsx +10 -0
  226. package/template/src/components/admin/ErrorSummary.tsx +72 -0
  227. package/template/src/components/admin/MediaDetails.tsx +218 -0
  228. package/template/src/components/admin/MediaGrid.tsx +307 -0
  229. package/template/src/components/admin/MediaLibrary.tsx +103 -0
  230. package/template/src/components/admin/MediaPager.tsx +66 -0
  231. package/template/src/components/admin/PageHeader.tsx +22 -0
  232. package/template/src/components/admin/PhoneInput.tsx +128 -0
  233. package/template/src/components/admin/PluginWidgetBoundary.tsx +38 -0
  234. package/template/src/components/admin/PluginWidgets.tsx +51 -0
  235. package/template/src/components/admin/RemountOnNavigate.tsx +37 -0
  236. package/template/src/components/admin/StatusBadge.tsx +16 -0
  237. package/template/src/components/admin/UploadPhotosDialog.tsx +387 -0
  238. package/template/src/components/admin/UserAvatar.tsx +18 -0
  239. package/template/src/components/admin/UserMenu.tsx +118 -0
  240. package/template/src/components/admin/ViewSiteLink.tsx +24 -0
  241. package/template/src/components/admin/account/ConnectedProviders.tsx +91 -0
  242. package/template/src/components/admin/account/DeleteAccountCard.tsx +136 -0
  243. package/template/src/components/admin/account/EmailCard.tsx +137 -0
  244. package/template/src/components/admin/account/ProfilePicture.tsx +159 -0
  245. package/template/src/components/admin/activity/ActivityFilters.tsx +146 -0
  246. package/template/src/components/admin/activity/ActivityLog.tsx +159 -0
  247. package/template/src/components/admin/activity/RecentActivity.tsx +52 -0
  248. package/template/src/components/admin/demo-mode.tsx +17 -0
  249. package/template/src/components/admin/nav-items.ts +47 -0
  250. package/template/src/components/admin/pages/PageDetails.tsx +198 -0
  251. package/template/src/components/admin/pages/PageVersions.tsx +296 -0
  252. package/template/src/components/admin/pages/PagesTable.tsx +467 -0
  253. package/template/src/components/admin/pets/FilterBar.tsx +154 -0
  254. package/template/src/components/admin/pets/PetCard.tsx +170 -0
  255. package/template/src/components/admin/pets/PetList.tsx +112 -0
  256. package/template/src/components/admin/pets/PetListSkeleton.tsx +84 -0
  257. package/template/src/components/admin/pets/PetPagination.tsx +91 -0
  258. package/template/src/components/admin/pets/form/AgeFields.tsx +132 -0
  259. package/template/src/components/admin/pets/form/LocationFields.tsx +231 -0
  260. package/template/src/components/admin/pets/form/MediaPickerDialog.tsx +359 -0
  261. package/template/src/components/admin/pets/form/PhotosField.tsx +176 -0
  262. package/template/src/components/admin/pets/form/RichTextField.tsx +438 -0
  263. package/template/src/components/admin/pets/form/SeoImageField.tsx +87 -0
  264. package/template/src/components/admin/pets/form/SeoPreview.tsx +142 -0
  265. package/template/src/components/admin/pets/form/fields.tsx +434 -0
  266. package/template/src/components/admin/pets/form/rich-text-extensions.ts +45 -0
  267. package/template/src/components/admin/pets/timeline/PetTimeline.tsx +297 -0
  268. package/template/src/components/admin/pets/timeline/TimelineEntryForm.tsx +289 -0
  269. package/template/src/components/admin/pets/timeline/TimelinePhotosField.tsx +173 -0
  270. package/template/src/components/admin/plugins/PluginNotReady.tsx +28 -0
  271. package/template/src/components/admin/plugins/PluginOverview.tsx +121 -0
  272. package/template/src/components/admin/plugins/SendTestEmail.tsx +70 -0
  273. package/template/src/components/admin/settings/AuthProviders.tsx +373 -0
  274. package/template/src/components/admin/settings/AuthenticationNav.tsx +42 -0
  275. package/template/src/components/admin/settings/EmailNav.tsx +40 -0
  276. package/template/src/components/admin/settings/EmailSettingsForm.tsx +325 -0
  277. package/template/src/components/admin/settings/EmailTemplates.tsx +551 -0
  278. package/template/src/components/admin/settings/RegionFields.tsx +203 -0
  279. package/template/src/components/admin/site-time.tsx +26 -0
  280. package/template/src/components/admin/theme/ThemeEditor.tsx +467 -0
  281. package/template/src/components/admin/theme/ThemeLibrary.tsx +339 -0
  282. package/template/src/components/admin/theme/ThemeSwatches.tsx +30 -0
  283. package/template/src/components/admin/theme/theme-utils.ts +32 -0
  284. package/template/src/components/admin/two-factor/BackupCodeList.tsx +54 -0
  285. package/template/src/components/admin/two-factor/TwoFactorCard.tsx +237 -0
  286. package/template/src/components/admin/two-factor/TwoFactorRequired.tsx +52 -0
  287. package/template/src/components/admin/two-factor/TwoFactorSetup.tsx +180 -0
  288. package/template/src/components/admin/use-unsaved-changes.tsx +101 -0
  289. package/template/src/components/admin/users/ArchivedAccounts.tsx +159 -0
  290. package/template/src/components/admin/users/InviteDialogs.tsx +131 -0
  291. package/template/src/components/admin/users/TwoFactorRoles.tsx +80 -0
  292. package/template/src/components/admin/users/UserDialogs.tsx +681 -0
  293. package/template/src/components/admin/users/UsersTable.tsx +374 -0
  294. package/template/src/components/admin/view-only.tsx +43 -0
  295. package/template/src/components/auth/AcceptInviteForm.tsx +123 -0
  296. package/template/src/components/auth/AuthNav.tsx +80 -0
  297. package/template/src/components/auth/ConfirmEmailForm.tsx +73 -0
  298. package/template/src/components/auth/LoginForm.tsx +250 -0
  299. package/template/src/components/auth/PageError.tsx +37 -0
  300. package/template/src/components/auth/ProviderSignIn.tsx +53 -0
  301. package/template/src/components/auth/ResetPasswordForm.tsx +267 -0
  302. package/template/src/components/demo/DemoBanner.tsx +38 -0
  303. package/template/src/components/demo/SiteDemoBanner.tsx +22 -0
  304. package/template/src/components/demo/wording.ts +21 -0
  305. package/template/src/components/setup/SetupAccountForm.tsx +93 -0
  306. package/template/src/components/setup/SetupDone.tsx +95 -0
  307. package/template/src/components/setup/SetupNav.tsx +49 -0
  308. package/template/src/components/setup/SetupSampleContent.tsx +67 -0
  309. package/template/src/components/setup/SetupSiteForm.tsx +104 -0
  310. package/template/src/components/setup/SetupThemePicker.tsx +73 -0
  311. package/template/src/components/setup/SkipSetup.tsx +35 -0
  312. package/template/src/components/site/BuilderContent.tsx +46 -0
  313. package/template/src/components/site/CopyButton.tsx +28 -0
  314. package/template/src/components/site/ImageCarousel.tsx +52 -0
  315. package/template/src/components/site/PetCard.tsx +32 -0
  316. package/template/src/components/site/PetCatalog.tsx +106 -0
  317. package/template/src/components/site/PetGallery.tsx +75 -0
  318. package/template/src/components/site/PetTimeline.tsx +82 -0
  319. package/template/src/components/site/RemountOnNavigate.tsx +13 -0
  320. package/template/src/components/site/RichText.tsx +56 -0
  321. package/template/src/components/site/SmartLink.tsx +37 -0
  322. package/template/src/components/site/SocialIcons.tsx +26 -0
  323. package/template/src/components/site/ThemePreviewBridge.tsx +29 -0
  324. package/template/src/components/site/ThemeStyle.tsx +22 -0
  325. package/template/src/components/site/ThemeToggle.tsx +36 -0
  326. package/template/src/components/site/WhatsAppButton.tsx +27 -0
  327. package/template/src/components/site/timeline-format.ts +20 -0
  328. package/template/src/db/client.ts +702 -0
  329. package/template/src/db/compare-tables.ts +41 -0
  330. package/template/src/db/migrate.ts +28 -0
  331. package/template/src/db/plugin-migrations.ts +167 -0
  332. package/template/src/db/schema/pg.ts +484 -0
  333. package/template/src/db/schema/sqlite.ts +492 -0
  334. package/template/src/instrumentation.ts +110 -0
  335. package/template/src/lib/activity.ts +29 -0
  336. package/template/src/lib/admin/call-action.ts +19 -0
  337. package/template/src/lib/admin/initials.ts +9 -0
  338. package/template/src/lib/admin/media-cache.ts +16 -0
  339. package/template/src/lib/admin/media-page.ts +3 -0
  340. package/template/src/lib/admin/pet-form.ts +242 -0
  341. package/template/src/lib/admin/pets-cache.ts +22 -0
  342. package/template/src/lib/admin/unwrap-client.ts +11 -0
  343. package/template/src/lib/admin/unwrap.ts +38 -0
  344. package/template/src/lib/admin/use-media-list.ts +41 -0
  345. package/template/src/lib/admin/use-pet-list.ts +58 -0
  346. package/template/src/lib/age.ts +117 -0
  347. package/template/src/lib/auth-provider-errors.ts +38 -0
  348. package/template/src/lib/cache.ts +69 -0
  349. package/template/src/lib/color-mode.ts +48 -0
  350. package/template/src/lib/demo.ts +78 -0
  351. package/template/src/lib/email-address.ts +9 -0
  352. package/template/src/lib/email-template.ts +691 -0
  353. package/template/src/lib/links.ts +78 -0
  354. package/template/src/lib/mail-error.ts +38 -0
  355. package/template/src/lib/media-name.ts +31 -0
  356. package/template/src/lib/options.ts +134 -0
  357. package/template/src/lib/pagination.ts +28 -0
  358. package/template/src/lib/pet-placeholders.ts +34 -0
  359. package/template/src/lib/pet-seo.ts +40 -0
  360. package/template/src/lib/pet-timeline.ts +62 -0
  361. package/template/src/lib/phone.ts +129 -0
  362. package/template/src/lib/places.ts +84 -0
  363. package/template/src/lib/queries.ts +549 -0
  364. package/template/src/lib/revalidate.ts +32 -0
  365. package/template/src/lib/rich-text.ts +215 -0
  366. package/template/src/lib/seo.ts +121 -0
  367. package/template/src/lib/slugify.ts +11 -0
  368. package/template/src/lib/theme.ts +546 -0
  369. package/template/src/lib/utils.ts +2 -0
  370. package/template/src/lib/whatsapp.ts +29 -0
  371. package/template/src/lib/zod-schema/auth.ts +56 -0
  372. package/template/src/lib/zod-schema/page.ts +57 -0
  373. package/template/src/lib/zod-schema/pet-timeline.ts +118 -0
  374. package/template/src/lib/zod-schema/pet.ts +172 -0
  375. package/template/src/lib/zod-schema/settings.ts +162 -0
  376. package/template/src/plugins/host.ts +117 -0
  377. package/template/src/plugins/icon.ts +89 -0
  378. package/template/src/plugins/registry.ts +369 -0
  379. package/template/src/plugins/storage-rules.ts +87 -0
  380. package/template/src/plugins/storage.ts +184 -0
  381. package/template/src/puck/actions.ts +46 -0
  382. package/template/src/puck/config.tsx +1693 -0
  383. package/template/src/puck/data.ts +196 -0
  384. package/template/src/puck/demo-mode.tsx +20 -0
  385. package/template/src/puck/email-config.tsx +267 -0
  386. package/template/src/puck/icons.tsx +76 -0
  387. package/template/src/puck/media-picker.tsx +273 -0
  388. package/template/src/puck/padding.tsx +71 -0
  389. package/template/src/puck/pet-page-config.tsx +511 -0
  390. package/template/src/puck/pet-picker.tsx +40 -0
  391. package/template/src/puck/plugin-block-data.ts +91 -0
  392. package/template/src/puck/plugin-blocks.tsx +235 -0
  393. package/template/src/puck/plugin-choice-field.tsx +87 -0
  394. package/template/src/puck/sanitize.ts +107 -0
  395. package/template/src/puck/server.ts +36 -0
  396. package/template/src/puck/types.ts +41 -0
  397. package/template/src/server/actions/activity.ts +48 -0
  398. package/template/src/server/actions/auth-providers.ts +171 -0
  399. package/template/src/server/actions/auth.ts +217 -0
  400. package/template/src/server/actions/demo.ts +30 -0
  401. package/template/src/server/actions/email-change.ts +80 -0
  402. package/template/src/server/actions/email-templates.ts +144 -0
  403. package/template/src/server/actions/email.ts +70 -0
  404. package/template/src/server/actions/media.ts +127 -0
  405. package/template/src/server/actions/pages.ts +159 -0
  406. package/template/src/server/actions/password-reset.ts +80 -0
  407. package/template/src/server/actions/pet-timeline.ts +75 -0
  408. package/template/src/server/actions/pets.ts +74 -0
  409. package/template/src/server/actions/places.ts +36 -0
  410. package/template/src/server/actions/settings.ts +29 -0
  411. package/template/src/server/actions/setup.ts +72 -0
  412. package/template/src/server/actions/themes.ts +80 -0
  413. package/template/src/server/actions/two-factor.ts +306 -0
  414. package/template/src/server/actions/users.ts +200 -0
  415. package/template/src/server/activity.ts +409 -0
  416. package/template/src/server/auth-errors.ts +17 -0
  417. package/template/src/server/auth-providers.ts +359 -0
  418. package/template/src/server/auth.ts +266 -0
  419. package/template/src/server/avatars.ts +263 -0
  420. package/template/src/server/demo-site.ts +169 -0
  421. package/template/src/server/email-change.ts +278 -0
  422. package/template/src/server/email-templates.ts +350 -0
  423. package/template/src/server/email.ts +442 -0
  424. package/template/src/server/invites.ts +143 -0
  425. package/template/src/server/media-url.ts +20 -0
  426. package/template/src/server/media.ts +236 -0
  427. package/template/src/server/pages.ts +812 -0
  428. package/template/src/server/password-reset.ts +158 -0
  429. package/template/src/server/pending-links.ts +46 -0
  430. package/template/src/server/pet-timeline.ts +181 -0
  431. package/template/src/server/pets.ts +555 -0
  432. package/template/src/server/places.ts +113 -0
  433. package/template/src/server/privacy.ts +21 -0
  434. package/template/src/server/provider-endpoints.ts +94 -0
  435. package/template/src/server/provider-guard.ts +157 -0
  436. package/template/src/server/result.ts +280 -0
  437. package/template/src/server/sample-content.ts +368 -0
  438. package/template/src/server/search-text.ts +43 -0
  439. package/template/src/server/secret-box.ts +38 -0
  440. package/template/src/server/session.ts +154 -0
  441. package/template/src/server/settings.ts +361 -0
  442. package/template/src/server/setup.ts +110 -0
  443. package/template/src/server/sitemap.ts +88 -0
  444. package/template/src/server/storage.ts +267 -0
  445. package/template/src/server/strip-metadata.ts +357 -0
  446. package/template/src/server/themes.ts +195 -0
  447. package/template/src/server/throttle.ts +258 -0
  448. package/template/src/server/two-factor-codes.ts +32 -0
  449. package/template/src/server/two-factor.ts +158 -0
  450. package/template/src/server/types.ts +198 -0
  451. package/template/src/server/uploads.ts +137 -0
  452. package/template/src/server/users.ts +500 -0
  453. package/template/tsconfig.json +44 -0
  454. package/template/ui/components.json +25 -0
  455. package/template/ui/package.json +12 -0
  456. package/template/ui/src/components/alert-dialog.tsx +187 -0
  457. package/template/ui/src/components/avatar.tsx +108 -0
  458. package/template/ui/src/components/badge.tsx +51 -0
  459. package/template/ui/src/components/button.tsx +57 -0
  460. package/template/ui/src/components/card.tsx +102 -0
  461. package/template/ui/src/components/carousel.tsx +245 -0
  462. package/template/ui/src/components/checkbox.tsx +27 -0
  463. package/template/ui/src/components/combobox.tsx +297 -0
  464. package/template/ui/src/components/dialog.tsx +159 -0
  465. package/template/ui/src/components/dropdown-menu.tsx +265 -0
  466. package/template/ui/src/components/field.tsx +238 -0
  467. package/template/ui/src/components/input-group.tsx +158 -0
  468. package/template/ui/src/components/input.tsx +19 -0
  469. package/template/ui/src/components/label.tsx +19 -0
  470. package/template/ui/src/components/pagination.tsx +127 -0
  471. package/template/ui/src/components/popover.tsx +89 -0
  472. package/template/ui/src/components/radio-group.tsx +37 -0
  473. package/template/ui/src/components/select.tsx +200 -0
  474. package/template/ui/src/components/separator.tsx +24 -0
  475. package/template/ui/src/components/sheet.tsx +138 -0
  476. package/template/ui/src/components/sidebar.tsx +723 -0
  477. package/template/ui/src/components/skeleton.tsx +13 -0
  478. package/template/ui/src/components/switch.tsx +31 -0
  479. package/template/ui/src/components/table.tsx +115 -0
  480. package/template/ui/src/components/tabs.tsx +81 -0
  481. package/template/ui/src/components/textarea.tsx +17 -0
  482. package/template/ui/src/components/toggle.tsx +44 -0
  483. package/template/ui/src/components/tooltip.tsx +65 -0
  484. package/template/ui/src/hooks/use-mobile.ts +21 -0
  485. package/template/ui/src/lib/utils.ts +2 -0
  486. package/template/ui/src/styles/globals.css +145 -0
@@ -0,0 +1,1805 @@
1
+ {
2
+ "id": "64b05291-9163-42f8-b217-85f4046462ba",
3
+ "prevId": "c7218cfb-d8c9-4761-a20e-7afa2630d4a2",
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": "text",
14
+ "primaryKey": true,
15
+ "notNull": true
16
+ },
17
+ "account_id": {
18
+ "name": "account_id",
19
+ "type": "text",
20
+ "primaryKey": false,
21
+ "notNull": true
22
+ },
23
+ "provider_id": {
24
+ "name": "provider_id",
25
+ "type": "text",
26
+ "primaryKey": false,
27
+ "notNull": true
28
+ },
29
+ "user_id": {
30
+ "name": "user_id",
31
+ "type": "text",
32
+ "primaryKey": false,
33
+ "notNull": true
34
+ },
35
+ "access_token": {
36
+ "name": "access_token",
37
+ "type": "text",
38
+ "primaryKey": false,
39
+ "notNull": false
40
+ },
41
+ "refresh_token": {
42
+ "name": "refresh_token",
43
+ "type": "text",
44
+ "primaryKey": false,
45
+ "notNull": false
46
+ },
47
+ "id_token": {
48
+ "name": "id_token",
49
+ "type": "text",
50
+ "primaryKey": false,
51
+ "notNull": false
52
+ },
53
+ "access_token_expires_at": {
54
+ "name": "access_token_expires_at",
55
+ "type": "timestamp with time zone",
56
+ "primaryKey": false,
57
+ "notNull": false
58
+ },
59
+ "refresh_token_expires_at": {
60
+ "name": "refresh_token_expires_at",
61
+ "type": "timestamp with time zone",
62
+ "primaryKey": false,
63
+ "notNull": false
64
+ },
65
+ "scope": {
66
+ "name": "scope",
67
+ "type": "text",
68
+ "primaryKey": false,
69
+ "notNull": false
70
+ },
71
+ "password": {
72
+ "name": "password",
73
+ "type": "text",
74
+ "primaryKey": false,
75
+ "notNull": false
76
+ },
77
+ "created_at": {
78
+ "name": "created_at",
79
+ "type": "timestamp with time zone",
80
+ "primaryKey": false,
81
+ "notNull": true,
82
+ "default": "now()"
83
+ },
84
+ "updated_at": {
85
+ "name": "updated_at",
86
+ "type": "timestamp with time zone",
87
+ "primaryKey": false,
88
+ "notNull": true
89
+ }
90
+ },
91
+ "indexes": {
92
+ "accounts_userId_idx": {
93
+ "name": "accounts_userId_idx",
94
+ "columns": [
95
+ {
96
+ "expression": "user_id",
97
+ "isExpression": false,
98
+ "asc": true,
99
+ "nulls": "last"
100
+ }
101
+ ],
102
+ "isUnique": false,
103
+ "concurrently": false,
104
+ "method": "btree",
105
+ "with": {}
106
+ }
107
+ },
108
+ "foreignKeys": {
109
+ "accounts_user_id_users_id_fk": {
110
+ "name": "accounts_user_id_users_id_fk",
111
+ "tableFrom": "accounts",
112
+ "tableTo": "users",
113
+ "columnsFrom": [
114
+ "user_id"
115
+ ],
116
+ "columnsTo": [
117
+ "id"
118
+ ],
119
+ "onDelete": "cascade",
120
+ "onUpdate": "no action"
121
+ }
122
+ },
123
+ "compositePrimaryKeys": {},
124
+ "uniqueConstraints": {},
125
+ "policies": {},
126
+ "checkConstraints": {},
127
+ "isRLSEnabled": false
128
+ },
129
+ "public.activity_log": {
130
+ "name": "activity_log",
131
+ "schema": "",
132
+ "columns": {
133
+ "id": {
134
+ "name": "id",
135
+ "type": "serial",
136
+ "primaryKey": true,
137
+ "notNull": true
138
+ },
139
+ "at": {
140
+ "name": "at",
141
+ "type": "timestamp with time zone",
142
+ "primaryKey": false,
143
+ "notNull": true,
144
+ "default": "now()"
145
+ },
146
+ "actor_id": {
147
+ "name": "actor_id",
148
+ "type": "text",
149
+ "primaryKey": false,
150
+ "notNull": false
151
+ },
152
+ "actor_name": {
153
+ "name": "actor_name",
154
+ "type": "text",
155
+ "primaryKey": false,
156
+ "notNull": false
157
+ },
158
+ "actor_role": {
159
+ "name": "actor_role",
160
+ "type": "text",
161
+ "primaryKey": false,
162
+ "notNull": false
163
+ },
164
+ "action": {
165
+ "name": "action",
166
+ "type": "text",
167
+ "primaryKey": false,
168
+ "notNull": true
169
+ },
170
+ "area": {
171
+ "name": "area",
172
+ "type": "text",
173
+ "primaryKey": false,
174
+ "notNull": true
175
+ },
176
+ "summary": {
177
+ "name": "summary",
178
+ "type": "text",
179
+ "primaryKey": false,
180
+ "notNull": true
181
+ },
182
+ "subject_id": {
183
+ "name": "subject_id",
184
+ "type": "text",
185
+ "primaryKey": false,
186
+ "notNull": false
187
+ },
188
+ "subject_label": {
189
+ "name": "subject_label",
190
+ "type": "text",
191
+ "primaryKey": false,
192
+ "notNull": false
193
+ },
194
+ "fields": {
195
+ "name": "fields",
196
+ "type": "jsonb",
197
+ "primaryKey": false,
198
+ "notNull": false
199
+ },
200
+ "client": {
201
+ "name": "client",
202
+ "type": "text",
203
+ "primaryKey": false,
204
+ "notNull": false
205
+ }
206
+ },
207
+ "indexes": {
208
+ "activity_log_at_idx": {
209
+ "name": "activity_log_at_idx",
210
+ "columns": [
211
+ {
212
+ "expression": "at",
213
+ "isExpression": false,
214
+ "asc": true,
215
+ "nulls": "last"
216
+ }
217
+ ],
218
+ "isUnique": false,
219
+ "concurrently": false,
220
+ "method": "btree",
221
+ "with": {}
222
+ },
223
+ "activity_log_actor_at_idx": {
224
+ "name": "activity_log_actor_at_idx",
225
+ "columns": [
226
+ {
227
+ "expression": "actor_id",
228
+ "isExpression": false,
229
+ "asc": true,
230
+ "nulls": "last"
231
+ },
232
+ {
233
+ "expression": "at",
234
+ "isExpression": false,
235
+ "asc": true,
236
+ "nulls": "last"
237
+ }
238
+ ],
239
+ "isUnique": false,
240
+ "concurrently": false,
241
+ "method": "btree",
242
+ "with": {}
243
+ },
244
+ "activity_log_area_at_idx": {
245
+ "name": "activity_log_area_at_idx",
246
+ "columns": [
247
+ {
248
+ "expression": "area",
249
+ "isExpression": false,
250
+ "asc": true,
251
+ "nulls": "last"
252
+ },
253
+ {
254
+ "expression": "at",
255
+ "isExpression": false,
256
+ "asc": true,
257
+ "nulls": "last"
258
+ }
259
+ ],
260
+ "isUnique": false,
261
+ "concurrently": false,
262
+ "method": "btree",
263
+ "with": {}
264
+ }
265
+ },
266
+ "foreignKeys": {},
267
+ "compositePrimaryKeys": {},
268
+ "uniqueConstraints": {},
269
+ "policies": {},
270
+ "checkConstraints": {},
271
+ "isRLSEnabled": false
272
+ },
273
+ "public.email_settings": {
274
+ "name": "email_settings",
275
+ "schema": "",
276
+ "columns": {
277
+ "id": {
278
+ "name": "id",
279
+ "type": "integer",
280
+ "primaryKey": true,
281
+ "notNull": true
282
+ },
283
+ "host": {
284
+ "name": "host",
285
+ "type": "text",
286
+ "primaryKey": false,
287
+ "notNull": false
288
+ },
289
+ "port": {
290
+ "name": "port",
291
+ "type": "integer",
292
+ "primaryKey": false,
293
+ "notNull": false
294
+ },
295
+ "security": {
296
+ "name": "security",
297
+ "type": "text",
298
+ "primaryKey": false,
299
+ "notNull": true,
300
+ "default": "'starttls'"
301
+ },
302
+ "username": {
303
+ "name": "username",
304
+ "type": "text",
305
+ "primaryKey": false,
306
+ "notNull": false
307
+ },
308
+ "password_encrypted": {
309
+ "name": "password_encrypted",
310
+ "type": "text",
311
+ "primaryKey": false,
312
+ "notNull": false
313
+ },
314
+ "from_name": {
315
+ "name": "from_name",
316
+ "type": "text",
317
+ "primaryKey": false,
318
+ "notNull": false
319
+ },
320
+ "from_address": {
321
+ "name": "from_address",
322
+ "type": "text",
323
+ "primaryKey": false,
324
+ "notNull": false
325
+ },
326
+ "reply_to": {
327
+ "name": "reply_to",
328
+ "type": "text",
329
+ "primaryKey": false,
330
+ "notNull": false
331
+ },
332
+ "updated_at": {
333
+ "name": "updated_at",
334
+ "type": "timestamp with time zone",
335
+ "primaryKey": false,
336
+ "notNull": true,
337
+ "default": "now()"
338
+ }
339
+ },
340
+ "indexes": {},
341
+ "foreignKeys": {},
342
+ "compositePrimaryKeys": {},
343
+ "uniqueConstraints": {},
344
+ "policies": {},
345
+ "checkConstraints": {},
346
+ "isRLSEnabled": false
347
+ },
348
+ "public.media": {
349
+ "name": "media",
350
+ "schema": "",
351
+ "columns": {
352
+ "id": {
353
+ "name": "id",
354
+ "type": "serial",
355
+ "primaryKey": true,
356
+ "notNull": true
357
+ },
358
+ "filename": {
359
+ "name": "filename",
360
+ "type": "text",
361
+ "primaryKey": false,
362
+ "notNull": true
363
+ },
364
+ "mime_type": {
365
+ "name": "mime_type",
366
+ "type": "text",
367
+ "primaryKey": false,
368
+ "notNull": true
369
+ },
370
+ "size": {
371
+ "name": "size",
372
+ "type": "integer",
373
+ "primaryKey": false,
374
+ "notNull": true
375
+ },
376
+ "width": {
377
+ "name": "width",
378
+ "type": "integer",
379
+ "primaryKey": false,
380
+ "notNull": false
381
+ },
382
+ "height": {
383
+ "name": "height",
384
+ "type": "integer",
385
+ "primaryKey": false,
386
+ "notNull": false
387
+ },
388
+ "alt": {
389
+ "name": "alt",
390
+ "type": "text",
391
+ "primaryKey": false,
392
+ "notNull": true
393
+ },
394
+ "name": {
395
+ "name": "name",
396
+ "type": "text",
397
+ "primaryKey": false,
398
+ "notNull": false
399
+ },
400
+ "search_text": {
401
+ "name": "search_text",
402
+ "type": "text",
403
+ "primaryKey": false,
404
+ "notNull": false
405
+ },
406
+ "created_at": {
407
+ "name": "created_at",
408
+ "type": "timestamp with time zone",
409
+ "primaryKey": false,
410
+ "notNull": true,
411
+ "default": "now()"
412
+ },
413
+ "updated_at": {
414
+ "name": "updated_at",
415
+ "type": "timestamp with time zone",
416
+ "primaryKey": false,
417
+ "notNull": true,
418
+ "default": "now()"
419
+ }
420
+ },
421
+ "indexes": {
422
+ "media_filename_idx": {
423
+ "name": "media_filename_idx",
424
+ "columns": [
425
+ {
426
+ "expression": "filename",
427
+ "isExpression": false,
428
+ "asc": true,
429
+ "nulls": "last"
430
+ }
431
+ ],
432
+ "isUnique": true,
433
+ "concurrently": false,
434
+ "method": "btree",
435
+ "with": {}
436
+ }
437
+ },
438
+ "foreignKeys": {},
439
+ "compositePrimaryKeys": {},
440
+ "uniqueConstraints": {},
441
+ "policies": {},
442
+ "checkConstraints": {},
443
+ "isRLSEnabled": false
444
+ },
445
+ "public.page_versions": {
446
+ "name": "page_versions",
447
+ "schema": "",
448
+ "columns": {
449
+ "id": {
450
+ "name": "id",
451
+ "type": "serial",
452
+ "primaryKey": true,
453
+ "notNull": true
454
+ },
455
+ "page_id": {
456
+ "name": "page_id",
457
+ "type": "integer",
458
+ "primaryKey": false,
459
+ "notNull": true
460
+ },
461
+ "number": {
462
+ "name": "number",
463
+ "type": "integer",
464
+ "primaryKey": false,
465
+ "notNull": true
466
+ },
467
+ "kind": {
468
+ "name": "kind",
469
+ "type": "text",
470
+ "primaryKey": false,
471
+ "notNull": true
472
+ },
473
+ "title": {
474
+ "name": "title",
475
+ "type": "text",
476
+ "primaryKey": false,
477
+ "notNull": true
478
+ },
479
+ "data": {
480
+ "name": "data",
481
+ "type": "jsonb",
482
+ "primaryKey": false,
483
+ "notNull": true
484
+ },
485
+ "created_by": {
486
+ "name": "created_by",
487
+ "type": "text",
488
+ "primaryKey": false,
489
+ "notNull": false
490
+ },
491
+ "restored_from": {
492
+ "name": "restored_from",
493
+ "type": "integer",
494
+ "primaryKey": false,
495
+ "notNull": false
496
+ },
497
+ "details": {
498
+ "name": "details",
499
+ "type": "jsonb",
500
+ "primaryKey": false,
501
+ "notNull": false
502
+ },
503
+ "created_at": {
504
+ "name": "created_at",
505
+ "type": "timestamp with time zone",
506
+ "primaryKey": false,
507
+ "notNull": true,
508
+ "default": "now()"
509
+ },
510
+ "updated_at": {
511
+ "name": "updated_at",
512
+ "type": "timestamp with time zone",
513
+ "primaryKey": false,
514
+ "notNull": true,
515
+ "default": "now()"
516
+ }
517
+ },
518
+ "indexes": {
519
+ "page_versions_page_number_idx": {
520
+ "name": "page_versions_page_number_idx",
521
+ "columns": [
522
+ {
523
+ "expression": "page_id",
524
+ "isExpression": false,
525
+ "asc": true,
526
+ "nulls": "last"
527
+ },
528
+ {
529
+ "expression": "number",
530
+ "isExpression": false,
531
+ "asc": true,
532
+ "nulls": "last"
533
+ }
534
+ ],
535
+ "isUnique": true,
536
+ "concurrently": false,
537
+ "method": "btree",
538
+ "with": {}
539
+ }
540
+ },
541
+ "foreignKeys": {
542
+ "page_versions_page_id_pages_id_fk": {
543
+ "name": "page_versions_page_id_pages_id_fk",
544
+ "tableFrom": "page_versions",
545
+ "tableTo": "pages",
546
+ "columnsFrom": [
547
+ "page_id"
548
+ ],
549
+ "columnsTo": [
550
+ "id"
551
+ ],
552
+ "onDelete": "cascade",
553
+ "onUpdate": "cascade"
554
+ },
555
+ "page_versions_created_by_users_id_fk": {
556
+ "name": "page_versions_created_by_users_id_fk",
557
+ "tableFrom": "page_versions",
558
+ "tableTo": "users",
559
+ "columnsFrom": [
560
+ "created_by"
561
+ ],
562
+ "columnsTo": [
563
+ "id"
564
+ ],
565
+ "onDelete": "set null",
566
+ "onUpdate": "no action"
567
+ }
568
+ },
569
+ "compositePrimaryKeys": {},
570
+ "uniqueConstraints": {},
571
+ "policies": {},
572
+ "checkConstraints": {},
573
+ "isRLSEnabled": false
574
+ },
575
+ "public.pages": {
576
+ "name": "pages",
577
+ "schema": "",
578
+ "columns": {
579
+ "id": {
580
+ "name": "id",
581
+ "type": "serial",
582
+ "primaryKey": true,
583
+ "notNull": true
584
+ },
585
+ "title": {
586
+ "name": "title",
587
+ "type": "text",
588
+ "primaryKey": false,
589
+ "notNull": true
590
+ },
591
+ "slug": {
592
+ "name": "slug",
593
+ "type": "text",
594
+ "primaryKey": false,
595
+ "notNull": true
596
+ },
597
+ "status": {
598
+ "name": "status",
599
+ "type": "text",
600
+ "primaryKey": false,
601
+ "notNull": true,
602
+ "default": "'draft'"
603
+ },
604
+ "puck_draft": {
605
+ "name": "puck_draft",
606
+ "type": "jsonb",
607
+ "primaryKey": false,
608
+ "notNull": false
609
+ },
610
+ "puck_published": {
611
+ "name": "puck_published",
612
+ "type": "jsonb",
613
+ "primaryKey": false,
614
+ "notNull": false
615
+ },
616
+ "details_draft": {
617
+ "name": "details_draft",
618
+ "type": "jsonb",
619
+ "primaryKey": false,
620
+ "notNull": false
621
+ },
622
+ "seo_description": {
623
+ "name": "seo_description",
624
+ "type": "text",
625
+ "primaryKey": false,
626
+ "notNull": false
627
+ },
628
+ "seo_image_id": {
629
+ "name": "seo_image_id",
630
+ "type": "integer",
631
+ "primaryKey": false,
632
+ "notNull": false
633
+ },
634
+ "published_at": {
635
+ "name": "published_at",
636
+ "type": "timestamp with time zone",
637
+ "primaryKey": false,
638
+ "notNull": false
639
+ },
640
+ "archived_at": {
641
+ "name": "archived_at",
642
+ "type": "timestamp with time zone",
643
+ "primaryKey": false,
644
+ "notNull": false
645
+ },
646
+ "created_at": {
647
+ "name": "created_at",
648
+ "type": "timestamp with time zone",
649
+ "primaryKey": false,
650
+ "notNull": true,
651
+ "default": "now()"
652
+ },
653
+ "updated_at": {
654
+ "name": "updated_at",
655
+ "type": "timestamp with time zone",
656
+ "primaryKey": false,
657
+ "notNull": true,
658
+ "default": "now()"
659
+ }
660
+ },
661
+ "indexes": {
662
+ "pages_slug_idx": {
663
+ "name": "pages_slug_idx",
664
+ "columns": [
665
+ {
666
+ "expression": "slug",
667
+ "isExpression": false,
668
+ "asc": true,
669
+ "nulls": "last"
670
+ }
671
+ ],
672
+ "isUnique": true,
673
+ "concurrently": false,
674
+ "method": "btree",
675
+ "with": {}
676
+ },
677
+ "pages_seo_image_idx": {
678
+ "name": "pages_seo_image_idx",
679
+ "columns": [
680
+ {
681
+ "expression": "seo_image_id",
682
+ "isExpression": false,
683
+ "asc": true,
684
+ "nulls": "last"
685
+ }
686
+ ],
687
+ "isUnique": false,
688
+ "concurrently": false,
689
+ "method": "btree",
690
+ "with": {}
691
+ }
692
+ },
693
+ "foreignKeys": {
694
+ "pages_seo_image_id_media_id_fk": {
695
+ "name": "pages_seo_image_id_media_id_fk",
696
+ "tableFrom": "pages",
697
+ "tableTo": "media",
698
+ "columnsFrom": [
699
+ "seo_image_id"
700
+ ],
701
+ "columnsTo": [
702
+ "id"
703
+ ],
704
+ "onDelete": "set null",
705
+ "onUpdate": "no action"
706
+ }
707
+ },
708
+ "compositePrimaryKeys": {},
709
+ "uniqueConstraints": {},
710
+ "policies": {},
711
+ "checkConstraints": {},
712
+ "isRLSEnabled": false
713
+ },
714
+ "public.pet_photos": {
715
+ "name": "pet_photos",
716
+ "schema": "",
717
+ "columns": {
718
+ "pet_id": {
719
+ "name": "pet_id",
720
+ "type": "integer",
721
+ "primaryKey": false,
722
+ "notNull": true
723
+ },
724
+ "media_id": {
725
+ "name": "media_id",
726
+ "type": "integer",
727
+ "primaryKey": false,
728
+ "notNull": true
729
+ },
730
+ "position": {
731
+ "name": "position",
732
+ "type": "integer",
733
+ "primaryKey": false,
734
+ "notNull": true
735
+ }
736
+ },
737
+ "indexes": {
738
+ "pet_photos_media_idx": {
739
+ "name": "pet_photos_media_idx",
740
+ "columns": [
741
+ {
742
+ "expression": "media_id",
743
+ "isExpression": false,
744
+ "asc": true,
745
+ "nulls": "last"
746
+ }
747
+ ],
748
+ "isUnique": false,
749
+ "concurrently": false,
750
+ "method": "btree",
751
+ "with": {}
752
+ }
753
+ },
754
+ "foreignKeys": {
755
+ "pet_photos_pet_id_pets_id_fk": {
756
+ "name": "pet_photos_pet_id_pets_id_fk",
757
+ "tableFrom": "pet_photos",
758
+ "tableTo": "pets",
759
+ "columnsFrom": [
760
+ "pet_id"
761
+ ],
762
+ "columnsTo": [
763
+ "id"
764
+ ],
765
+ "onDelete": "cascade",
766
+ "onUpdate": "no action"
767
+ },
768
+ "pet_photos_media_id_media_id_fk": {
769
+ "name": "pet_photos_media_id_media_id_fk",
770
+ "tableFrom": "pet_photos",
771
+ "tableTo": "media",
772
+ "columnsFrom": [
773
+ "media_id"
774
+ ],
775
+ "columnsTo": [
776
+ "id"
777
+ ],
778
+ "onDelete": "restrict",
779
+ "onUpdate": "no action"
780
+ }
781
+ },
782
+ "compositePrimaryKeys": {
783
+ "pet_photos_pet_id_position_pk": {
784
+ "name": "pet_photos_pet_id_position_pk",
785
+ "columns": [
786
+ "pet_id",
787
+ "position"
788
+ ]
789
+ }
790
+ },
791
+ "uniqueConstraints": {},
792
+ "policies": {},
793
+ "checkConstraints": {},
794
+ "isRLSEnabled": false
795
+ },
796
+ "public.pets": {
797
+ "name": "pets",
798
+ "schema": "",
799
+ "columns": {
800
+ "id": {
801
+ "name": "id",
802
+ "type": "serial",
803
+ "primaryKey": true,
804
+ "notNull": true
805
+ },
806
+ "name": {
807
+ "name": "name",
808
+ "type": "text",
809
+ "primaryKey": false,
810
+ "notNull": true
811
+ },
812
+ "slug": {
813
+ "name": "slug",
814
+ "type": "text",
815
+ "primaryKey": false,
816
+ "notNull": true
817
+ },
818
+ "status": {
819
+ "name": "status",
820
+ "type": "text",
821
+ "primaryKey": false,
822
+ "notNull": true,
823
+ "default": "'available'"
824
+ },
825
+ "featured": {
826
+ "name": "featured",
827
+ "type": "boolean",
828
+ "primaryKey": false,
829
+ "notNull": true,
830
+ "default": false
831
+ },
832
+ "unlisted": {
833
+ "name": "unlisted",
834
+ "type": "boolean",
835
+ "primaryKey": false,
836
+ "notNull": true,
837
+ "default": false
838
+ },
839
+ "urgent": {
840
+ "name": "urgent",
841
+ "type": "boolean",
842
+ "primaryKey": false,
843
+ "notNull": true,
844
+ "default": false
845
+ },
846
+ "adopted_at": {
847
+ "name": "adopted_at",
848
+ "type": "timestamp with time zone",
849
+ "primaryKey": false,
850
+ "notNull": false
851
+ },
852
+ "species": {
853
+ "name": "species",
854
+ "type": "text",
855
+ "primaryKey": false,
856
+ "notNull": true,
857
+ "default": "'cat'"
858
+ },
859
+ "breed": {
860
+ "name": "breed",
861
+ "type": "text",
862
+ "primaryKey": false,
863
+ "notNull": false
864
+ },
865
+ "sex": {
866
+ "name": "sex",
867
+ "type": "text",
868
+ "primaryKey": false,
869
+ "notNull": false,
870
+ "default": "'unknown'"
871
+ },
872
+ "age_group": {
873
+ "name": "age_group",
874
+ "type": "text",
875
+ "primaryKey": false,
876
+ "notNull": false
877
+ },
878
+ "age_description": {
879
+ "name": "age_description",
880
+ "type": "text",
881
+ "primaryKey": false,
882
+ "notNull": false
883
+ },
884
+ "size": {
885
+ "name": "size",
886
+ "type": "text",
887
+ "primaryKey": false,
888
+ "notNull": false
889
+ },
890
+ "birth_date": {
891
+ "name": "birth_date",
892
+ "type": "text",
893
+ "primaryKey": false,
894
+ "notNull": false
895
+ },
896
+ "birth_date_estimated": {
897
+ "name": "birth_date_estimated",
898
+ "type": "boolean",
899
+ "primaryKey": false,
900
+ "notNull": true,
901
+ "default": false
902
+ },
903
+ "color": {
904
+ "name": "color",
905
+ "type": "text",
906
+ "primaryKey": false,
907
+ "notNull": false
908
+ },
909
+ "city": {
910
+ "name": "city",
911
+ "type": "text",
912
+ "primaryKey": false,
913
+ "notNull": false
914
+ },
915
+ "state": {
916
+ "name": "state",
917
+ "type": "text",
918
+ "primaryKey": false,
919
+ "notNull": false
920
+ },
921
+ "location": {
922
+ "name": "location",
923
+ "type": "text",
924
+ "primaryKey": false,
925
+ "notNull": false
926
+ },
927
+ "search_text": {
928
+ "name": "search_text",
929
+ "type": "text",
930
+ "primaryKey": false,
931
+ "notNull": false
932
+ },
933
+ "location_search": {
934
+ "name": "location_search",
935
+ "type": "text",
936
+ "primaryKey": false,
937
+ "notNull": false
938
+ },
939
+ "vaccinated": {
940
+ "name": "vaccinated",
941
+ "type": "boolean",
942
+ "primaryKey": false,
943
+ "notNull": true,
944
+ "default": false
945
+ },
946
+ "neutered": {
947
+ "name": "neutered",
948
+ "type": "boolean",
949
+ "primaryKey": false,
950
+ "notNull": true,
951
+ "default": false
952
+ },
953
+ "microchipped": {
954
+ "name": "microchipped",
955
+ "type": "boolean",
956
+ "primaryKey": false,
957
+ "notNull": true,
958
+ "default": false
959
+ },
960
+ "house_trained": {
961
+ "name": "house_trained",
962
+ "type": "boolean",
963
+ "primaryKey": false,
964
+ "notNull": true,
965
+ "default": false
966
+ },
967
+ "special_needs": {
968
+ "name": "special_needs",
969
+ "type": "boolean",
970
+ "primaryKey": false,
971
+ "notNull": true,
972
+ "default": false
973
+ },
974
+ "health_notes": {
975
+ "name": "health_notes",
976
+ "type": "text",
977
+ "primaryKey": false,
978
+ "notNull": false
979
+ },
980
+ "health_notes_doc": {
981
+ "name": "health_notes_doc",
982
+ "type": "jsonb",
983
+ "primaryKey": false,
984
+ "notNull": false
985
+ },
986
+ "temperament": {
987
+ "name": "temperament",
988
+ "type": "jsonb",
989
+ "primaryKey": false,
990
+ "notNull": true,
991
+ "default": "'[]'::jsonb"
992
+ },
993
+ "good_with": {
994
+ "name": "good_with",
995
+ "type": "jsonb",
996
+ "primaryKey": false,
997
+ "notNull": true,
998
+ "default": "'[]'::jsonb"
999
+ },
1000
+ "description": {
1001
+ "name": "description",
1002
+ "type": "text",
1003
+ "primaryKey": false,
1004
+ "notNull": false
1005
+ },
1006
+ "description_doc": {
1007
+ "name": "description_doc",
1008
+ "type": "jsonb",
1009
+ "primaryKey": false,
1010
+ "notNull": false
1011
+ },
1012
+ "video_url": {
1013
+ "name": "video_url",
1014
+ "type": "text",
1015
+ "primaryKey": false,
1016
+ "notNull": false
1017
+ },
1018
+ "adoption_fee": {
1019
+ "name": "adoption_fee",
1020
+ "type": "double precision",
1021
+ "primaryKey": false,
1022
+ "notNull": false
1023
+ },
1024
+ "rescued_at": {
1025
+ "name": "rescued_at",
1026
+ "type": "text",
1027
+ "primaryKey": false,
1028
+ "notNull": false
1029
+ },
1030
+ "contact_whatsapp": {
1031
+ "name": "contact_whatsapp",
1032
+ "type": "text",
1033
+ "primaryKey": false,
1034
+ "notNull": false
1035
+ },
1036
+ "seo_title": {
1037
+ "name": "seo_title",
1038
+ "type": "text",
1039
+ "primaryKey": false,
1040
+ "notNull": false
1041
+ },
1042
+ "seo_description": {
1043
+ "name": "seo_description",
1044
+ "type": "text",
1045
+ "primaryKey": false,
1046
+ "notNull": false
1047
+ },
1048
+ "seo_image_id": {
1049
+ "name": "seo_image_id",
1050
+ "type": "integer",
1051
+ "primaryKey": false,
1052
+ "notNull": false
1053
+ },
1054
+ "created_at": {
1055
+ "name": "created_at",
1056
+ "type": "timestamp with time zone",
1057
+ "primaryKey": false,
1058
+ "notNull": true,
1059
+ "default": "now()"
1060
+ },
1061
+ "updated_at": {
1062
+ "name": "updated_at",
1063
+ "type": "timestamp with time zone",
1064
+ "primaryKey": false,
1065
+ "notNull": true,
1066
+ "default": "now()"
1067
+ }
1068
+ },
1069
+ "indexes": {
1070
+ "pets_slug_idx": {
1071
+ "name": "pets_slug_idx",
1072
+ "columns": [
1073
+ {
1074
+ "expression": "slug",
1075
+ "isExpression": false,
1076
+ "asc": true,
1077
+ "nulls": "last"
1078
+ }
1079
+ ],
1080
+ "isUnique": true,
1081
+ "concurrently": false,
1082
+ "method": "btree",
1083
+ "with": {}
1084
+ },
1085
+ "pets_status_idx": {
1086
+ "name": "pets_status_idx",
1087
+ "columns": [
1088
+ {
1089
+ "expression": "status",
1090
+ "isExpression": false,
1091
+ "asc": true,
1092
+ "nulls": "last"
1093
+ }
1094
+ ],
1095
+ "isUnique": false,
1096
+ "concurrently": false,
1097
+ "method": "btree",
1098
+ "with": {}
1099
+ },
1100
+ "pets_species_idx": {
1101
+ "name": "pets_species_idx",
1102
+ "columns": [
1103
+ {
1104
+ "expression": "species",
1105
+ "isExpression": false,
1106
+ "asc": true,
1107
+ "nulls": "last"
1108
+ }
1109
+ ],
1110
+ "isUnique": false,
1111
+ "concurrently": false,
1112
+ "method": "btree",
1113
+ "with": {}
1114
+ },
1115
+ "pets_featured_idx": {
1116
+ "name": "pets_featured_idx",
1117
+ "columns": [
1118
+ {
1119
+ "expression": "featured",
1120
+ "isExpression": false,
1121
+ "asc": true,
1122
+ "nulls": "last"
1123
+ }
1124
+ ],
1125
+ "isUnique": false,
1126
+ "concurrently": false,
1127
+ "method": "btree",
1128
+ "with": {}
1129
+ },
1130
+ "pets_city_idx": {
1131
+ "name": "pets_city_idx",
1132
+ "columns": [
1133
+ {
1134
+ "expression": "city",
1135
+ "isExpression": false,
1136
+ "asc": true,
1137
+ "nulls": "last"
1138
+ }
1139
+ ],
1140
+ "isUnique": false,
1141
+ "concurrently": false,
1142
+ "method": "btree",
1143
+ "with": {}
1144
+ },
1145
+ "pets_state_idx": {
1146
+ "name": "pets_state_idx",
1147
+ "columns": [
1148
+ {
1149
+ "expression": "state",
1150
+ "isExpression": false,
1151
+ "asc": true,
1152
+ "nulls": "last"
1153
+ }
1154
+ ],
1155
+ "isUnique": false,
1156
+ "concurrently": false,
1157
+ "method": "btree",
1158
+ "with": {}
1159
+ },
1160
+ "pets_status_created_idx": {
1161
+ "name": "pets_status_created_idx",
1162
+ "columns": [
1163
+ {
1164
+ "expression": "status",
1165
+ "isExpression": false,
1166
+ "asc": true,
1167
+ "nulls": "last"
1168
+ },
1169
+ {
1170
+ "expression": "created_at",
1171
+ "isExpression": false,
1172
+ "asc": true,
1173
+ "nulls": "last"
1174
+ }
1175
+ ],
1176
+ "isUnique": false,
1177
+ "concurrently": false,
1178
+ "method": "btree",
1179
+ "with": {}
1180
+ }
1181
+ },
1182
+ "foreignKeys": {
1183
+ "pets_seo_image_id_media_id_fk": {
1184
+ "name": "pets_seo_image_id_media_id_fk",
1185
+ "tableFrom": "pets",
1186
+ "tableTo": "media",
1187
+ "columnsFrom": [
1188
+ "seo_image_id"
1189
+ ],
1190
+ "columnsTo": [
1191
+ "id"
1192
+ ],
1193
+ "onDelete": "set null",
1194
+ "onUpdate": "no action"
1195
+ }
1196
+ },
1197
+ "compositePrimaryKeys": {},
1198
+ "uniqueConstraints": {},
1199
+ "policies": {},
1200
+ "checkConstraints": {},
1201
+ "isRLSEnabled": false
1202
+ },
1203
+ "public.plugin_migrations": {
1204
+ "name": "plugin_migrations",
1205
+ "schema": "",
1206
+ "columns": {
1207
+ "plugin": {
1208
+ "name": "plugin",
1209
+ "type": "text",
1210
+ "primaryKey": false,
1211
+ "notNull": true
1212
+ },
1213
+ "migration": {
1214
+ "name": "migration",
1215
+ "type": "text",
1216
+ "primaryKey": false,
1217
+ "notNull": true
1218
+ },
1219
+ "checksum": {
1220
+ "name": "checksum",
1221
+ "type": "text",
1222
+ "primaryKey": false,
1223
+ "notNull": true
1224
+ },
1225
+ "created_at": {
1226
+ "name": "created_at",
1227
+ "type": "timestamp with time zone",
1228
+ "primaryKey": false,
1229
+ "notNull": true,
1230
+ "default": "now()"
1231
+ }
1232
+ },
1233
+ "indexes": {},
1234
+ "foreignKeys": {},
1235
+ "compositePrimaryKeys": {
1236
+ "plugin_migrations_plugin_migration_pk": {
1237
+ "name": "plugin_migrations_plugin_migration_pk",
1238
+ "columns": [
1239
+ "plugin",
1240
+ "migration"
1241
+ ]
1242
+ }
1243
+ },
1244
+ "uniqueConstraints": {},
1245
+ "policies": {},
1246
+ "checkConstraints": {},
1247
+ "isRLSEnabled": false
1248
+ },
1249
+ "public.rate_limits": {
1250
+ "name": "rate_limits",
1251
+ "schema": "",
1252
+ "columns": {
1253
+ "id": {
1254
+ "name": "id",
1255
+ "type": "text",
1256
+ "primaryKey": true,
1257
+ "notNull": true
1258
+ },
1259
+ "key": {
1260
+ "name": "key",
1261
+ "type": "text",
1262
+ "primaryKey": false,
1263
+ "notNull": true
1264
+ },
1265
+ "count": {
1266
+ "name": "count",
1267
+ "type": "integer",
1268
+ "primaryKey": false,
1269
+ "notNull": true
1270
+ },
1271
+ "last_request": {
1272
+ "name": "last_request",
1273
+ "type": "bigint",
1274
+ "primaryKey": false,
1275
+ "notNull": true
1276
+ }
1277
+ },
1278
+ "indexes": {},
1279
+ "foreignKeys": {},
1280
+ "compositePrimaryKeys": {},
1281
+ "uniqueConstraints": {
1282
+ "rate_limits_key_unique": {
1283
+ "name": "rate_limits_key_unique",
1284
+ "nullsNotDistinct": false,
1285
+ "columns": [
1286
+ "key"
1287
+ ]
1288
+ }
1289
+ },
1290
+ "policies": {},
1291
+ "checkConstraints": {},
1292
+ "isRLSEnabled": false
1293
+ },
1294
+ "public.sessions": {
1295
+ "name": "sessions",
1296
+ "schema": "",
1297
+ "columns": {
1298
+ "id": {
1299
+ "name": "id",
1300
+ "type": "text",
1301
+ "primaryKey": true,
1302
+ "notNull": true
1303
+ },
1304
+ "expires_at": {
1305
+ "name": "expires_at",
1306
+ "type": "timestamp with time zone",
1307
+ "primaryKey": false,
1308
+ "notNull": true
1309
+ },
1310
+ "token": {
1311
+ "name": "token",
1312
+ "type": "text",
1313
+ "primaryKey": false,
1314
+ "notNull": true
1315
+ },
1316
+ "created_at": {
1317
+ "name": "created_at",
1318
+ "type": "timestamp with time zone",
1319
+ "primaryKey": false,
1320
+ "notNull": true,
1321
+ "default": "now()"
1322
+ },
1323
+ "updated_at": {
1324
+ "name": "updated_at",
1325
+ "type": "timestamp with time zone",
1326
+ "primaryKey": false,
1327
+ "notNull": true
1328
+ },
1329
+ "ip_address": {
1330
+ "name": "ip_address",
1331
+ "type": "text",
1332
+ "primaryKey": false,
1333
+ "notNull": false
1334
+ },
1335
+ "user_agent": {
1336
+ "name": "user_agent",
1337
+ "type": "text",
1338
+ "primaryKey": false,
1339
+ "notNull": false
1340
+ },
1341
+ "user_id": {
1342
+ "name": "user_id",
1343
+ "type": "text",
1344
+ "primaryKey": false,
1345
+ "notNull": true
1346
+ },
1347
+ "impersonated_by": {
1348
+ "name": "impersonated_by",
1349
+ "type": "text",
1350
+ "primaryKey": false,
1351
+ "notNull": false
1352
+ }
1353
+ },
1354
+ "indexes": {
1355
+ "sessions_userId_idx": {
1356
+ "name": "sessions_userId_idx",
1357
+ "columns": [
1358
+ {
1359
+ "expression": "user_id",
1360
+ "isExpression": false,
1361
+ "asc": true,
1362
+ "nulls": "last"
1363
+ }
1364
+ ],
1365
+ "isUnique": false,
1366
+ "concurrently": false,
1367
+ "method": "btree",
1368
+ "with": {}
1369
+ }
1370
+ },
1371
+ "foreignKeys": {
1372
+ "sessions_user_id_users_id_fk": {
1373
+ "name": "sessions_user_id_users_id_fk",
1374
+ "tableFrom": "sessions",
1375
+ "tableTo": "users",
1376
+ "columnsFrom": [
1377
+ "user_id"
1378
+ ],
1379
+ "columnsTo": [
1380
+ "id"
1381
+ ],
1382
+ "onDelete": "cascade",
1383
+ "onUpdate": "no action"
1384
+ }
1385
+ },
1386
+ "compositePrimaryKeys": {},
1387
+ "uniqueConstraints": {
1388
+ "sessions_token_unique": {
1389
+ "name": "sessions_token_unique",
1390
+ "nullsNotDistinct": false,
1391
+ "columns": [
1392
+ "token"
1393
+ ]
1394
+ }
1395
+ },
1396
+ "policies": {},
1397
+ "checkConstraints": {},
1398
+ "isRLSEnabled": false
1399
+ },
1400
+ "public.site_settings": {
1401
+ "name": "site_settings",
1402
+ "schema": "",
1403
+ "columns": {
1404
+ "id": {
1405
+ "name": "id",
1406
+ "type": "integer",
1407
+ "primaryKey": true,
1408
+ "notNull": true
1409
+ },
1410
+ "site_name": {
1411
+ "name": "site_name",
1412
+ "type": "text",
1413
+ "primaryKey": false,
1414
+ "notNull": true,
1415
+ "default": "'Pet Adopt'"
1416
+ },
1417
+ "tagline": {
1418
+ "name": "tagline",
1419
+ "type": "text",
1420
+ "primaryKey": false,
1421
+ "notNull": false,
1422
+ "default": "'Find your new best friend'"
1423
+ },
1424
+ "logo_id": {
1425
+ "name": "logo_id",
1426
+ "type": "integer",
1427
+ "primaryKey": false,
1428
+ "notNull": false
1429
+ },
1430
+ "favicon_id": {
1431
+ "name": "favicon_id",
1432
+ "type": "integer",
1433
+ "primaryKey": false,
1434
+ "notNull": false
1435
+ },
1436
+ "primary_color": {
1437
+ "name": "primary_color",
1438
+ "type": "text",
1439
+ "primaryKey": false,
1440
+ "notNull": false
1441
+ },
1442
+ "theme": {
1443
+ "name": "theme",
1444
+ "type": "text",
1445
+ "primaryKey": false,
1446
+ "notNull": true,
1447
+ "default": "'sunrise'"
1448
+ },
1449
+ "allow_mode_toggle": {
1450
+ "name": "allow_mode_toggle",
1451
+ "type": "boolean",
1452
+ "primaryKey": false,
1453
+ "notNull": true,
1454
+ "default": true
1455
+ },
1456
+ "customize": {
1457
+ "name": "customize",
1458
+ "type": "boolean",
1459
+ "primaryKey": false,
1460
+ "notNull": true,
1461
+ "default": false
1462
+ },
1463
+ "custom_theme": {
1464
+ "name": "custom_theme",
1465
+ "type": "jsonb",
1466
+ "primaryKey": false,
1467
+ "notNull": false
1468
+ },
1469
+ "active_theme_id": {
1470
+ "name": "active_theme_id",
1471
+ "type": "integer",
1472
+ "primaryKey": false,
1473
+ "notNull": false
1474
+ },
1475
+ "whatsapp_number": {
1476
+ "name": "whatsapp_number",
1477
+ "type": "text",
1478
+ "primaryKey": false,
1479
+ "notNull": false
1480
+ },
1481
+ "whatsapp_message": {
1482
+ "name": "whatsapp_message",
1483
+ "type": "text",
1484
+ "primaryKey": false,
1485
+ "notNull": false,
1486
+ "default": "'Hi! I''m interested in adopting {pet}.'"
1487
+ },
1488
+ "address": {
1489
+ "name": "address",
1490
+ "type": "text",
1491
+ "primaryKey": false,
1492
+ "notNull": false
1493
+ },
1494
+ "opening_hours": {
1495
+ "name": "opening_hours",
1496
+ "type": "text",
1497
+ "primaryKey": false,
1498
+ "notNull": false
1499
+ },
1500
+ "socials": {
1501
+ "name": "socials",
1502
+ "type": "jsonb",
1503
+ "primaryKey": false,
1504
+ "notNull": true,
1505
+ "default": "'[]'::jsonb"
1506
+ },
1507
+ "nav": {
1508
+ "name": "nav",
1509
+ "type": "jsonb",
1510
+ "primaryKey": false,
1511
+ "notNull": true,
1512
+ "default": "'[]'::jsonb"
1513
+ },
1514
+ "footer_text": {
1515
+ "name": "footer_text",
1516
+ "type": "text",
1517
+ "primaryKey": false,
1518
+ "notNull": false
1519
+ },
1520
+ "created_at": {
1521
+ "name": "created_at",
1522
+ "type": "timestamp with time zone",
1523
+ "primaryKey": false,
1524
+ "notNull": true,
1525
+ "default": "now()"
1526
+ },
1527
+ "updated_at": {
1528
+ "name": "updated_at",
1529
+ "type": "timestamp with time zone",
1530
+ "primaryKey": false,
1531
+ "notNull": true,
1532
+ "default": "now()"
1533
+ }
1534
+ },
1535
+ "indexes": {},
1536
+ "foreignKeys": {
1537
+ "site_settings_logo_id_media_id_fk": {
1538
+ "name": "site_settings_logo_id_media_id_fk",
1539
+ "tableFrom": "site_settings",
1540
+ "tableTo": "media",
1541
+ "columnsFrom": [
1542
+ "logo_id"
1543
+ ],
1544
+ "columnsTo": [
1545
+ "id"
1546
+ ],
1547
+ "onDelete": "set null",
1548
+ "onUpdate": "no action"
1549
+ },
1550
+ "site_settings_favicon_id_media_id_fk": {
1551
+ "name": "site_settings_favicon_id_media_id_fk",
1552
+ "tableFrom": "site_settings",
1553
+ "tableTo": "media",
1554
+ "columnsFrom": [
1555
+ "favicon_id"
1556
+ ],
1557
+ "columnsTo": [
1558
+ "id"
1559
+ ],
1560
+ "onDelete": "set null",
1561
+ "onUpdate": "no action"
1562
+ },
1563
+ "site_settings_active_theme_id_themes_id_fk": {
1564
+ "name": "site_settings_active_theme_id_themes_id_fk",
1565
+ "tableFrom": "site_settings",
1566
+ "tableTo": "themes",
1567
+ "columnsFrom": [
1568
+ "active_theme_id"
1569
+ ],
1570
+ "columnsTo": [
1571
+ "id"
1572
+ ],
1573
+ "onDelete": "set null",
1574
+ "onUpdate": "no action"
1575
+ }
1576
+ },
1577
+ "compositePrimaryKeys": {},
1578
+ "uniqueConstraints": {},
1579
+ "policies": {},
1580
+ "checkConstraints": {},
1581
+ "isRLSEnabled": false
1582
+ },
1583
+ "public.themes": {
1584
+ "name": "themes",
1585
+ "schema": "",
1586
+ "columns": {
1587
+ "id": {
1588
+ "name": "id",
1589
+ "type": "serial",
1590
+ "primaryKey": true,
1591
+ "notNull": true
1592
+ },
1593
+ "name": {
1594
+ "name": "name",
1595
+ "type": "text",
1596
+ "primaryKey": false,
1597
+ "notNull": true
1598
+ },
1599
+ "base": {
1600
+ "name": "base",
1601
+ "type": "text",
1602
+ "primaryKey": false,
1603
+ "notNull": true,
1604
+ "default": "'sunrise'"
1605
+ },
1606
+ "settings": {
1607
+ "name": "settings",
1608
+ "type": "jsonb",
1609
+ "primaryKey": false,
1610
+ "notNull": true
1611
+ },
1612
+ "created_at": {
1613
+ "name": "created_at",
1614
+ "type": "timestamp with time zone",
1615
+ "primaryKey": false,
1616
+ "notNull": true,
1617
+ "default": "now()"
1618
+ },
1619
+ "updated_at": {
1620
+ "name": "updated_at",
1621
+ "type": "timestamp with time zone",
1622
+ "primaryKey": false,
1623
+ "notNull": true,
1624
+ "default": "now()"
1625
+ }
1626
+ },
1627
+ "indexes": {},
1628
+ "foreignKeys": {},
1629
+ "compositePrimaryKeys": {},
1630
+ "uniqueConstraints": {},
1631
+ "policies": {},
1632
+ "checkConstraints": {},
1633
+ "isRLSEnabled": false
1634
+ },
1635
+ "public.users": {
1636
+ "name": "users",
1637
+ "schema": "",
1638
+ "columns": {
1639
+ "id": {
1640
+ "name": "id",
1641
+ "type": "text",
1642
+ "primaryKey": true,
1643
+ "notNull": true
1644
+ },
1645
+ "name": {
1646
+ "name": "name",
1647
+ "type": "text",
1648
+ "primaryKey": false,
1649
+ "notNull": true
1650
+ },
1651
+ "email": {
1652
+ "name": "email",
1653
+ "type": "text",
1654
+ "primaryKey": false,
1655
+ "notNull": true
1656
+ },
1657
+ "email_verified": {
1658
+ "name": "email_verified",
1659
+ "type": "boolean",
1660
+ "primaryKey": false,
1661
+ "notNull": true,
1662
+ "default": false
1663
+ },
1664
+ "image": {
1665
+ "name": "image",
1666
+ "type": "text",
1667
+ "primaryKey": false,
1668
+ "notNull": false
1669
+ },
1670
+ "created_at": {
1671
+ "name": "created_at",
1672
+ "type": "timestamp with time zone",
1673
+ "primaryKey": false,
1674
+ "notNull": true,
1675
+ "default": "now()"
1676
+ },
1677
+ "updated_at": {
1678
+ "name": "updated_at",
1679
+ "type": "timestamp with time zone",
1680
+ "primaryKey": false,
1681
+ "notNull": true,
1682
+ "default": "now()"
1683
+ },
1684
+ "role": {
1685
+ "name": "role",
1686
+ "type": "text",
1687
+ "primaryKey": false,
1688
+ "notNull": false
1689
+ },
1690
+ "banned": {
1691
+ "name": "banned",
1692
+ "type": "boolean",
1693
+ "primaryKey": false,
1694
+ "notNull": false,
1695
+ "default": false
1696
+ },
1697
+ "ban_reason": {
1698
+ "name": "ban_reason",
1699
+ "type": "text",
1700
+ "primaryKey": false,
1701
+ "notNull": false
1702
+ },
1703
+ "ban_expires": {
1704
+ "name": "ban_expires",
1705
+ "type": "timestamp with time zone",
1706
+ "primaryKey": false,
1707
+ "notNull": false
1708
+ }
1709
+ },
1710
+ "indexes": {},
1711
+ "foreignKeys": {},
1712
+ "compositePrimaryKeys": {},
1713
+ "uniqueConstraints": {
1714
+ "users_email_unique": {
1715
+ "name": "users_email_unique",
1716
+ "nullsNotDistinct": false,
1717
+ "columns": [
1718
+ "email"
1719
+ ]
1720
+ }
1721
+ },
1722
+ "policies": {},
1723
+ "checkConstraints": {},
1724
+ "isRLSEnabled": false
1725
+ },
1726
+ "public.verifications": {
1727
+ "name": "verifications",
1728
+ "schema": "",
1729
+ "columns": {
1730
+ "id": {
1731
+ "name": "id",
1732
+ "type": "text",
1733
+ "primaryKey": true,
1734
+ "notNull": true
1735
+ },
1736
+ "identifier": {
1737
+ "name": "identifier",
1738
+ "type": "text",
1739
+ "primaryKey": false,
1740
+ "notNull": true
1741
+ },
1742
+ "value": {
1743
+ "name": "value",
1744
+ "type": "text",
1745
+ "primaryKey": false,
1746
+ "notNull": true
1747
+ },
1748
+ "expires_at": {
1749
+ "name": "expires_at",
1750
+ "type": "timestamp with time zone",
1751
+ "primaryKey": false,
1752
+ "notNull": true
1753
+ },
1754
+ "created_at": {
1755
+ "name": "created_at",
1756
+ "type": "timestamp with time zone",
1757
+ "primaryKey": false,
1758
+ "notNull": true,
1759
+ "default": "now()"
1760
+ },
1761
+ "updated_at": {
1762
+ "name": "updated_at",
1763
+ "type": "timestamp with time zone",
1764
+ "primaryKey": false,
1765
+ "notNull": true,
1766
+ "default": "now()"
1767
+ }
1768
+ },
1769
+ "indexes": {
1770
+ "verifications_identifier_idx": {
1771
+ "name": "verifications_identifier_idx",
1772
+ "columns": [
1773
+ {
1774
+ "expression": "identifier",
1775
+ "isExpression": false,
1776
+ "asc": true,
1777
+ "nulls": "last"
1778
+ }
1779
+ ],
1780
+ "isUnique": false,
1781
+ "concurrently": false,
1782
+ "method": "btree",
1783
+ "with": {}
1784
+ }
1785
+ },
1786
+ "foreignKeys": {},
1787
+ "compositePrimaryKeys": {},
1788
+ "uniqueConstraints": {},
1789
+ "policies": {},
1790
+ "checkConstraints": {},
1791
+ "isRLSEnabled": false
1792
+ }
1793
+ },
1794
+ "enums": {},
1795
+ "schemas": {},
1796
+ "sequences": {},
1797
+ "roles": {},
1798
+ "policies": {},
1799
+ "views": {},
1800
+ "_meta": {
1801
+ "columns": {},
1802
+ "schemas": {},
1803
+ "tables": {}
1804
+ }
1805
+ }