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,1883 @@
1
+ {
2
+ "id": "70cdda27-0420-4679-ad28-2aff39eb55f6",
3
+ "prevId": "64b05291-9163-42f8-b217-85f4046462ba",
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.email_templates": {
349
+ "name": "email_templates",
350
+ "schema": "",
351
+ "columns": {
352
+ "id": {
353
+ "name": "id",
354
+ "type": "serial",
355
+ "primaryKey": true,
356
+ "notNull": true
357
+ },
358
+ "name": {
359
+ "name": "name",
360
+ "type": "text",
361
+ "primaryKey": false,
362
+ "notNull": true
363
+ },
364
+ "purpose": {
365
+ "name": "purpose",
366
+ "type": "text",
367
+ "primaryKey": false,
368
+ "notNull": true
369
+ },
370
+ "data": {
371
+ "name": "data",
372
+ "type": "jsonb",
373
+ "primaryKey": false,
374
+ "notNull": true
375
+ },
376
+ "is_default": {
377
+ "name": "is_default",
378
+ "type": "boolean",
379
+ "primaryKey": false,
380
+ "notNull": true,
381
+ "default": false
382
+ },
383
+ "created_by": {
384
+ "name": "created_by",
385
+ "type": "text",
386
+ "primaryKey": false,
387
+ "notNull": false
388
+ },
389
+ "created_at": {
390
+ "name": "created_at",
391
+ "type": "timestamp with time zone",
392
+ "primaryKey": false,
393
+ "notNull": true,
394
+ "default": "now()"
395
+ },
396
+ "updated_at": {
397
+ "name": "updated_at",
398
+ "type": "timestamp with time zone",
399
+ "primaryKey": false,
400
+ "notNull": true,
401
+ "default": "now()"
402
+ }
403
+ },
404
+ "indexes": {},
405
+ "foreignKeys": {
406
+ "email_templates_created_by_users_id_fk": {
407
+ "name": "email_templates_created_by_users_id_fk",
408
+ "tableFrom": "email_templates",
409
+ "tableTo": "users",
410
+ "columnsFrom": [
411
+ "created_by"
412
+ ],
413
+ "columnsTo": [
414
+ "id"
415
+ ],
416
+ "onDelete": "set null",
417
+ "onUpdate": "no action"
418
+ }
419
+ },
420
+ "compositePrimaryKeys": {},
421
+ "uniqueConstraints": {},
422
+ "policies": {},
423
+ "checkConstraints": {},
424
+ "isRLSEnabled": false
425
+ },
426
+ "public.media": {
427
+ "name": "media",
428
+ "schema": "",
429
+ "columns": {
430
+ "id": {
431
+ "name": "id",
432
+ "type": "serial",
433
+ "primaryKey": true,
434
+ "notNull": true
435
+ },
436
+ "filename": {
437
+ "name": "filename",
438
+ "type": "text",
439
+ "primaryKey": false,
440
+ "notNull": true
441
+ },
442
+ "mime_type": {
443
+ "name": "mime_type",
444
+ "type": "text",
445
+ "primaryKey": false,
446
+ "notNull": true
447
+ },
448
+ "size": {
449
+ "name": "size",
450
+ "type": "integer",
451
+ "primaryKey": false,
452
+ "notNull": true
453
+ },
454
+ "width": {
455
+ "name": "width",
456
+ "type": "integer",
457
+ "primaryKey": false,
458
+ "notNull": false
459
+ },
460
+ "height": {
461
+ "name": "height",
462
+ "type": "integer",
463
+ "primaryKey": false,
464
+ "notNull": false
465
+ },
466
+ "alt": {
467
+ "name": "alt",
468
+ "type": "text",
469
+ "primaryKey": false,
470
+ "notNull": true
471
+ },
472
+ "name": {
473
+ "name": "name",
474
+ "type": "text",
475
+ "primaryKey": false,
476
+ "notNull": false
477
+ },
478
+ "search_text": {
479
+ "name": "search_text",
480
+ "type": "text",
481
+ "primaryKey": false,
482
+ "notNull": false
483
+ },
484
+ "created_at": {
485
+ "name": "created_at",
486
+ "type": "timestamp with time zone",
487
+ "primaryKey": false,
488
+ "notNull": true,
489
+ "default": "now()"
490
+ },
491
+ "updated_at": {
492
+ "name": "updated_at",
493
+ "type": "timestamp with time zone",
494
+ "primaryKey": false,
495
+ "notNull": true,
496
+ "default": "now()"
497
+ }
498
+ },
499
+ "indexes": {
500
+ "media_filename_idx": {
501
+ "name": "media_filename_idx",
502
+ "columns": [
503
+ {
504
+ "expression": "filename",
505
+ "isExpression": false,
506
+ "asc": true,
507
+ "nulls": "last"
508
+ }
509
+ ],
510
+ "isUnique": true,
511
+ "concurrently": false,
512
+ "method": "btree",
513
+ "with": {}
514
+ }
515
+ },
516
+ "foreignKeys": {},
517
+ "compositePrimaryKeys": {},
518
+ "uniqueConstraints": {},
519
+ "policies": {},
520
+ "checkConstraints": {},
521
+ "isRLSEnabled": false
522
+ },
523
+ "public.page_versions": {
524
+ "name": "page_versions",
525
+ "schema": "",
526
+ "columns": {
527
+ "id": {
528
+ "name": "id",
529
+ "type": "serial",
530
+ "primaryKey": true,
531
+ "notNull": true
532
+ },
533
+ "page_id": {
534
+ "name": "page_id",
535
+ "type": "integer",
536
+ "primaryKey": false,
537
+ "notNull": true
538
+ },
539
+ "number": {
540
+ "name": "number",
541
+ "type": "integer",
542
+ "primaryKey": false,
543
+ "notNull": true
544
+ },
545
+ "kind": {
546
+ "name": "kind",
547
+ "type": "text",
548
+ "primaryKey": false,
549
+ "notNull": true
550
+ },
551
+ "title": {
552
+ "name": "title",
553
+ "type": "text",
554
+ "primaryKey": false,
555
+ "notNull": true
556
+ },
557
+ "data": {
558
+ "name": "data",
559
+ "type": "jsonb",
560
+ "primaryKey": false,
561
+ "notNull": true
562
+ },
563
+ "created_by": {
564
+ "name": "created_by",
565
+ "type": "text",
566
+ "primaryKey": false,
567
+ "notNull": false
568
+ },
569
+ "restored_from": {
570
+ "name": "restored_from",
571
+ "type": "integer",
572
+ "primaryKey": false,
573
+ "notNull": false
574
+ },
575
+ "details": {
576
+ "name": "details",
577
+ "type": "jsonb",
578
+ "primaryKey": false,
579
+ "notNull": false
580
+ },
581
+ "created_at": {
582
+ "name": "created_at",
583
+ "type": "timestamp with time zone",
584
+ "primaryKey": false,
585
+ "notNull": true,
586
+ "default": "now()"
587
+ },
588
+ "updated_at": {
589
+ "name": "updated_at",
590
+ "type": "timestamp with time zone",
591
+ "primaryKey": false,
592
+ "notNull": true,
593
+ "default": "now()"
594
+ }
595
+ },
596
+ "indexes": {
597
+ "page_versions_page_number_idx": {
598
+ "name": "page_versions_page_number_idx",
599
+ "columns": [
600
+ {
601
+ "expression": "page_id",
602
+ "isExpression": false,
603
+ "asc": true,
604
+ "nulls": "last"
605
+ },
606
+ {
607
+ "expression": "number",
608
+ "isExpression": false,
609
+ "asc": true,
610
+ "nulls": "last"
611
+ }
612
+ ],
613
+ "isUnique": true,
614
+ "concurrently": false,
615
+ "method": "btree",
616
+ "with": {}
617
+ }
618
+ },
619
+ "foreignKeys": {
620
+ "page_versions_page_id_pages_id_fk": {
621
+ "name": "page_versions_page_id_pages_id_fk",
622
+ "tableFrom": "page_versions",
623
+ "tableTo": "pages",
624
+ "columnsFrom": [
625
+ "page_id"
626
+ ],
627
+ "columnsTo": [
628
+ "id"
629
+ ],
630
+ "onDelete": "cascade",
631
+ "onUpdate": "cascade"
632
+ },
633
+ "page_versions_created_by_users_id_fk": {
634
+ "name": "page_versions_created_by_users_id_fk",
635
+ "tableFrom": "page_versions",
636
+ "tableTo": "users",
637
+ "columnsFrom": [
638
+ "created_by"
639
+ ],
640
+ "columnsTo": [
641
+ "id"
642
+ ],
643
+ "onDelete": "set null",
644
+ "onUpdate": "no action"
645
+ }
646
+ },
647
+ "compositePrimaryKeys": {},
648
+ "uniqueConstraints": {},
649
+ "policies": {},
650
+ "checkConstraints": {},
651
+ "isRLSEnabled": false
652
+ },
653
+ "public.pages": {
654
+ "name": "pages",
655
+ "schema": "",
656
+ "columns": {
657
+ "id": {
658
+ "name": "id",
659
+ "type": "serial",
660
+ "primaryKey": true,
661
+ "notNull": true
662
+ },
663
+ "title": {
664
+ "name": "title",
665
+ "type": "text",
666
+ "primaryKey": false,
667
+ "notNull": true
668
+ },
669
+ "slug": {
670
+ "name": "slug",
671
+ "type": "text",
672
+ "primaryKey": false,
673
+ "notNull": true
674
+ },
675
+ "status": {
676
+ "name": "status",
677
+ "type": "text",
678
+ "primaryKey": false,
679
+ "notNull": true,
680
+ "default": "'draft'"
681
+ },
682
+ "puck_draft": {
683
+ "name": "puck_draft",
684
+ "type": "jsonb",
685
+ "primaryKey": false,
686
+ "notNull": false
687
+ },
688
+ "puck_published": {
689
+ "name": "puck_published",
690
+ "type": "jsonb",
691
+ "primaryKey": false,
692
+ "notNull": false
693
+ },
694
+ "details_draft": {
695
+ "name": "details_draft",
696
+ "type": "jsonb",
697
+ "primaryKey": false,
698
+ "notNull": false
699
+ },
700
+ "seo_description": {
701
+ "name": "seo_description",
702
+ "type": "text",
703
+ "primaryKey": false,
704
+ "notNull": false
705
+ },
706
+ "seo_image_id": {
707
+ "name": "seo_image_id",
708
+ "type": "integer",
709
+ "primaryKey": false,
710
+ "notNull": false
711
+ },
712
+ "published_at": {
713
+ "name": "published_at",
714
+ "type": "timestamp with time zone",
715
+ "primaryKey": false,
716
+ "notNull": false
717
+ },
718
+ "archived_at": {
719
+ "name": "archived_at",
720
+ "type": "timestamp with time zone",
721
+ "primaryKey": false,
722
+ "notNull": false
723
+ },
724
+ "created_at": {
725
+ "name": "created_at",
726
+ "type": "timestamp with time zone",
727
+ "primaryKey": false,
728
+ "notNull": true,
729
+ "default": "now()"
730
+ },
731
+ "updated_at": {
732
+ "name": "updated_at",
733
+ "type": "timestamp with time zone",
734
+ "primaryKey": false,
735
+ "notNull": true,
736
+ "default": "now()"
737
+ }
738
+ },
739
+ "indexes": {
740
+ "pages_slug_idx": {
741
+ "name": "pages_slug_idx",
742
+ "columns": [
743
+ {
744
+ "expression": "slug",
745
+ "isExpression": false,
746
+ "asc": true,
747
+ "nulls": "last"
748
+ }
749
+ ],
750
+ "isUnique": true,
751
+ "concurrently": false,
752
+ "method": "btree",
753
+ "with": {}
754
+ },
755
+ "pages_seo_image_idx": {
756
+ "name": "pages_seo_image_idx",
757
+ "columns": [
758
+ {
759
+ "expression": "seo_image_id",
760
+ "isExpression": false,
761
+ "asc": true,
762
+ "nulls": "last"
763
+ }
764
+ ],
765
+ "isUnique": false,
766
+ "concurrently": false,
767
+ "method": "btree",
768
+ "with": {}
769
+ }
770
+ },
771
+ "foreignKeys": {
772
+ "pages_seo_image_id_media_id_fk": {
773
+ "name": "pages_seo_image_id_media_id_fk",
774
+ "tableFrom": "pages",
775
+ "tableTo": "media",
776
+ "columnsFrom": [
777
+ "seo_image_id"
778
+ ],
779
+ "columnsTo": [
780
+ "id"
781
+ ],
782
+ "onDelete": "set null",
783
+ "onUpdate": "no action"
784
+ }
785
+ },
786
+ "compositePrimaryKeys": {},
787
+ "uniqueConstraints": {},
788
+ "policies": {},
789
+ "checkConstraints": {},
790
+ "isRLSEnabled": false
791
+ },
792
+ "public.pet_photos": {
793
+ "name": "pet_photos",
794
+ "schema": "",
795
+ "columns": {
796
+ "pet_id": {
797
+ "name": "pet_id",
798
+ "type": "integer",
799
+ "primaryKey": false,
800
+ "notNull": true
801
+ },
802
+ "media_id": {
803
+ "name": "media_id",
804
+ "type": "integer",
805
+ "primaryKey": false,
806
+ "notNull": true
807
+ },
808
+ "position": {
809
+ "name": "position",
810
+ "type": "integer",
811
+ "primaryKey": false,
812
+ "notNull": true
813
+ }
814
+ },
815
+ "indexes": {
816
+ "pet_photos_media_idx": {
817
+ "name": "pet_photos_media_idx",
818
+ "columns": [
819
+ {
820
+ "expression": "media_id",
821
+ "isExpression": false,
822
+ "asc": true,
823
+ "nulls": "last"
824
+ }
825
+ ],
826
+ "isUnique": false,
827
+ "concurrently": false,
828
+ "method": "btree",
829
+ "with": {}
830
+ }
831
+ },
832
+ "foreignKeys": {
833
+ "pet_photos_pet_id_pets_id_fk": {
834
+ "name": "pet_photos_pet_id_pets_id_fk",
835
+ "tableFrom": "pet_photos",
836
+ "tableTo": "pets",
837
+ "columnsFrom": [
838
+ "pet_id"
839
+ ],
840
+ "columnsTo": [
841
+ "id"
842
+ ],
843
+ "onDelete": "cascade",
844
+ "onUpdate": "no action"
845
+ },
846
+ "pet_photos_media_id_media_id_fk": {
847
+ "name": "pet_photos_media_id_media_id_fk",
848
+ "tableFrom": "pet_photos",
849
+ "tableTo": "media",
850
+ "columnsFrom": [
851
+ "media_id"
852
+ ],
853
+ "columnsTo": [
854
+ "id"
855
+ ],
856
+ "onDelete": "restrict",
857
+ "onUpdate": "no action"
858
+ }
859
+ },
860
+ "compositePrimaryKeys": {
861
+ "pet_photos_pet_id_position_pk": {
862
+ "name": "pet_photos_pet_id_position_pk",
863
+ "columns": [
864
+ "pet_id",
865
+ "position"
866
+ ]
867
+ }
868
+ },
869
+ "uniqueConstraints": {},
870
+ "policies": {},
871
+ "checkConstraints": {},
872
+ "isRLSEnabled": false
873
+ },
874
+ "public.pets": {
875
+ "name": "pets",
876
+ "schema": "",
877
+ "columns": {
878
+ "id": {
879
+ "name": "id",
880
+ "type": "serial",
881
+ "primaryKey": true,
882
+ "notNull": true
883
+ },
884
+ "name": {
885
+ "name": "name",
886
+ "type": "text",
887
+ "primaryKey": false,
888
+ "notNull": true
889
+ },
890
+ "slug": {
891
+ "name": "slug",
892
+ "type": "text",
893
+ "primaryKey": false,
894
+ "notNull": true
895
+ },
896
+ "status": {
897
+ "name": "status",
898
+ "type": "text",
899
+ "primaryKey": false,
900
+ "notNull": true,
901
+ "default": "'available'"
902
+ },
903
+ "featured": {
904
+ "name": "featured",
905
+ "type": "boolean",
906
+ "primaryKey": false,
907
+ "notNull": true,
908
+ "default": false
909
+ },
910
+ "unlisted": {
911
+ "name": "unlisted",
912
+ "type": "boolean",
913
+ "primaryKey": false,
914
+ "notNull": true,
915
+ "default": false
916
+ },
917
+ "urgent": {
918
+ "name": "urgent",
919
+ "type": "boolean",
920
+ "primaryKey": false,
921
+ "notNull": true,
922
+ "default": false
923
+ },
924
+ "adopted_at": {
925
+ "name": "adopted_at",
926
+ "type": "timestamp with time zone",
927
+ "primaryKey": false,
928
+ "notNull": false
929
+ },
930
+ "species": {
931
+ "name": "species",
932
+ "type": "text",
933
+ "primaryKey": false,
934
+ "notNull": true,
935
+ "default": "'cat'"
936
+ },
937
+ "breed": {
938
+ "name": "breed",
939
+ "type": "text",
940
+ "primaryKey": false,
941
+ "notNull": false
942
+ },
943
+ "sex": {
944
+ "name": "sex",
945
+ "type": "text",
946
+ "primaryKey": false,
947
+ "notNull": false,
948
+ "default": "'unknown'"
949
+ },
950
+ "age_group": {
951
+ "name": "age_group",
952
+ "type": "text",
953
+ "primaryKey": false,
954
+ "notNull": false
955
+ },
956
+ "age_description": {
957
+ "name": "age_description",
958
+ "type": "text",
959
+ "primaryKey": false,
960
+ "notNull": false
961
+ },
962
+ "size": {
963
+ "name": "size",
964
+ "type": "text",
965
+ "primaryKey": false,
966
+ "notNull": false
967
+ },
968
+ "birth_date": {
969
+ "name": "birth_date",
970
+ "type": "text",
971
+ "primaryKey": false,
972
+ "notNull": false
973
+ },
974
+ "birth_date_estimated": {
975
+ "name": "birth_date_estimated",
976
+ "type": "boolean",
977
+ "primaryKey": false,
978
+ "notNull": true,
979
+ "default": false
980
+ },
981
+ "color": {
982
+ "name": "color",
983
+ "type": "text",
984
+ "primaryKey": false,
985
+ "notNull": false
986
+ },
987
+ "city": {
988
+ "name": "city",
989
+ "type": "text",
990
+ "primaryKey": false,
991
+ "notNull": false
992
+ },
993
+ "state": {
994
+ "name": "state",
995
+ "type": "text",
996
+ "primaryKey": false,
997
+ "notNull": false
998
+ },
999
+ "location": {
1000
+ "name": "location",
1001
+ "type": "text",
1002
+ "primaryKey": false,
1003
+ "notNull": false
1004
+ },
1005
+ "search_text": {
1006
+ "name": "search_text",
1007
+ "type": "text",
1008
+ "primaryKey": false,
1009
+ "notNull": false
1010
+ },
1011
+ "location_search": {
1012
+ "name": "location_search",
1013
+ "type": "text",
1014
+ "primaryKey": false,
1015
+ "notNull": false
1016
+ },
1017
+ "vaccinated": {
1018
+ "name": "vaccinated",
1019
+ "type": "boolean",
1020
+ "primaryKey": false,
1021
+ "notNull": true,
1022
+ "default": false
1023
+ },
1024
+ "neutered": {
1025
+ "name": "neutered",
1026
+ "type": "boolean",
1027
+ "primaryKey": false,
1028
+ "notNull": true,
1029
+ "default": false
1030
+ },
1031
+ "microchipped": {
1032
+ "name": "microchipped",
1033
+ "type": "boolean",
1034
+ "primaryKey": false,
1035
+ "notNull": true,
1036
+ "default": false
1037
+ },
1038
+ "house_trained": {
1039
+ "name": "house_trained",
1040
+ "type": "boolean",
1041
+ "primaryKey": false,
1042
+ "notNull": true,
1043
+ "default": false
1044
+ },
1045
+ "special_needs": {
1046
+ "name": "special_needs",
1047
+ "type": "boolean",
1048
+ "primaryKey": false,
1049
+ "notNull": true,
1050
+ "default": false
1051
+ },
1052
+ "health_notes": {
1053
+ "name": "health_notes",
1054
+ "type": "text",
1055
+ "primaryKey": false,
1056
+ "notNull": false
1057
+ },
1058
+ "health_notes_doc": {
1059
+ "name": "health_notes_doc",
1060
+ "type": "jsonb",
1061
+ "primaryKey": false,
1062
+ "notNull": false
1063
+ },
1064
+ "temperament": {
1065
+ "name": "temperament",
1066
+ "type": "jsonb",
1067
+ "primaryKey": false,
1068
+ "notNull": true,
1069
+ "default": "'[]'::jsonb"
1070
+ },
1071
+ "good_with": {
1072
+ "name": "good_with",
1073
+ "type": "jsonb",
1074
+ "primaryKey": false,
1075
+ "notNull": true,
1076
+ "default": "'[]'::jsonb"
1077
+ },
1078
+ "description": {
1079
+ "name": "description",
1080
+ "type": "text",
1081
+ "primaryKey": false,
1082
+ "notNull": false
1083
+ },
1084
+ "description_doc": {
1085
+ "name": "description_doc",
1086
+ "type": "jsonb",
1087
+ "primaryKey": false,
1088
+ "notNull": false
1089
+ },
1090
+ "video_url": {
1091
+ "name": "video_url",
1092
+ "type": "text",
1093
+ "primaryKey": false,
1094
+ "notNull": false
1095
+ },
1096
+ "adoption_fee": {
1097
+ "name": "adoption_fee",
1098
+ "type": "double precision",
1099
+ "primaryKey": false,
1100
+ "notNull": false
1101
+ },
1102
+ "rescued_at": {
1103
+ "name": "rescued_at",
1104
+ "type": "text",
1105
+ "primaryKey": false,
1106
+ "notNull": false
1107
+ },
1108
+ "contact_whatsapp": {
1109
+ "name": "contact_whatsapp",
1110
+ "type": "text",
1111
+ "primaryKey": false,
1112
+ "notNull": false
1113
+ },
1114
+ "seo_title": {
1115
+ "name": "seo_title",
1116
+ "type": "text",
1117
+ "primaryKey": false,
1118
+ "notNull": false
1119
+ },
1120
+ "seo_description": {
1121
+ "name": "seo_description",
1122
+ "type": "text",
1123
+ "primaryKey": false,
1124
+ "notNull": false
1125
+ },
1126
+ "seo_image_id": {
1127
+ "name": "seo_image_id",
1128
+ "type": "integer",
1129
+ "primaryKey": false,
1130
+ "notNull": false
1131
+ },
1132
+ "created_at": {
1133
+ "name": "created_at",
1134
+ "type": "timestamp with time zone",
1135
+ "primaryKey": false,
1136
+ "notNull": true,
1137
+ "default": "now()"
1138
+ },
1139
+ "updated_at": {
1140
+ "name": "updated_at",
1141
+ "type": "timestamp with time zone",
1142
+ "primaryKey": false,
1143
+ "notNull": true,
1144
+ "default": "now()"
1145
+ }
1146
+ },
1147
+ "indexes": {
1148
+ "pets_slug_idx": {
1149
+ "name": "pets_slug_idx",
1150
+ "columns": [
1151
+ {
1152
+ "expression": "slug",
1153
+ "isExpression": false,
1154
+ "asc": true,
1155
+ "nulls": "last"
1156
+ }
1157
+ ],
1158
+ "isUnique": true,
1159
+ "concurrently": false,
1160
+ "method": "btree",
1161
+ "with": {}
1162
+ },
1163
+ "pets_status_idx": {
1164
+ "name": "pets_status_idx",
1165
+ "columns": [
1166
+ {
1167
+ "expression": "status",
1168
+ "isExpression": false,
1169
+ "asc": true,
1170
+ "nulls": "last"
1171
+ }
1172
+ ],
1173
+ "isUnique": false,
1174
+ "concurrently": false,
1175
+ "method": "btree",
1176
+ "with": {}
1177
+ },
1178
+ "pets_species_idx": {
1179
+ "name": "pets_species_idx",
1180
+ "columns": [
1181
+ {
1182
+ "expression": "species",
1183
+ "isExpression": false,
1184
+ "asc": true,
1185
+ "nulls": "last"
1186
+ }
1187
+ ],
1188
+ "isUnique": false,
1189
+ "concurrently": false,
1190
+ "method": "btree",
1191
+ "with": {}
1192
+ },
1193
+ "pets_featured_idx": {
1194
+ "name": "pets_featured_idx",
1195
+ "columns": [
1196
+ {
1197
+ "expression": "featured",
1198
+ "isExpression": false,
1199
+ "asc": true,
1200
+ "nulls": "last"
1201
+ }
1202
+ ],
1203
+ "isUnique": false,
1204
+ "concurrently": false,
1205
+ "method": "btree",
1206
+ "with": {}
1207
+ },
1208
+ "pets_city_idx": {
1209
+ "name": "pets_city_idx",
1210
+ "columns": [
1211
+ {
1212
+ "expression": "city",
1213
+ "isExpression": false,
1214
+ "asc": true,
1215
+ "nulls": "last"
1216
+ }
1217
+ ],
1218
+ "isUnique": false,
1219
+ "concurrently": false,
1220
+ "method": "btree",
1221
+ "with": {}
1222
+ },
1223
+ "pets_state_idx": {
1224
+ "name": "pets_state_idx",
1225
+ "columns": [
1226
+ {
1227
+ "expression": "state",
1228
+ "isExpression": false,
1229
+ "asc": true,
1230
+ "nulls": "last"
1231
+ }
1232
+ ],
1233
+ "isUnique": false,
1234
+ "concurrently": false,
1235
+ "method": "btree",
1236
+ "with": {}
1237
+ },
1238
+ "pets_status_created_idx": {
1239
+ "name": "pets_status_created_idx",
1240
+ "columns": [
1241
+ {
1242
+ "expression": "status",
1243
+ "isExpression": false,
1244
+ "asc": true,
1245
+ "nulls": "last"
1246
+ },
1247
+ {
1248
+ "expression": "created_at",
1249
+ "isExpression": false,
1250
+ "asc": true,
1251
+ "nulls": "last"
1252
+ }
1253
+ ],
1254
+ "isUnique": false,
1255
+ "concurrently": false,
1256
+ "method": "btree",
1257
+ "with": {}
1258
+ }
1259
+ },
1260
+ "foreignKeys": {
1261
+ "pets_seo_image_id_media_id_fk": {
1262
+ "name": "pets_seo_image_id_media_id_fk",
1263
+ "tableFrom": "pets",
1264
+ "tableTo": "media",
1265
+ "columnsFrom": [
1266
+ "seo_image_id"
1267
+ ],
1268
+ "columnsTo": [
1269
+ "id"
1270
+ ],
1271
+ "onDelete": "set null",
1272
+ "onUpdate": "no action"
1273
+ }
1274
+ },
1275
+ "compositePrimaryKeys": {},
1276
+ "uniqueConstraints": {},
1277
+ "policies": {},
1278
+ "checkConstraints": {},
1279
+ "isRLSEnabled": false
1280
+ },
1281
+ "public.plugin_migrations": {
1282
+ "name": "plugin_migrations",
1283
+ "schema": "",
1284
+ "columns": {
1285
+ "plugin": {
1286
+ "name": "plugin",
1287
+ "type": "text",
1288
+ "primaryKey": false,
1289
+ "notNull": true
1290
+ },
1291
+ "migration": {
1292
+ "name": "migration",
1293
+ "type": "text",
1294
+ "primaryKey": false,
1295
+ "notNull": true
1296
+ },
1297
+ "checksum": {
1298
+ "name": "checksum",
1299
+ "type": "text",
1300
+ "primaryKey": false,
1301
+ "notNull": true
1302
+ },
1303
+ "created_at": {
1304
+ "name": "created_at",
1305
+ "type": "timestamp with time zone",
1306
+ "primaryKey": false,
1307
+ "notNull": true,
1308
+ "default": "now()"
1309
+ }
1310
+ },
1311
+ "indexes": {},
1312
+ "foreignKeys": {},
1313
+ "compositePrimaryKeys": {
1314
+ "plugin_migrations_plugin_migration_pk": {
1315
+ "name": "plugin_migrations_plugin_migration_pk",
1316
+ "columns": [
1317
+ "plugin",
1318
+ "migration"
1319
+ ]
1320
+ }
1321
+ },
1322
+ "uniqueConstraints": {},
1323
+ "policies": {},
1324
+ "checkConstraints": {},
1325
+ "isRLSEnabled": false
1326
+ },
1327
+ "public.rate_limits": {
1328
+ "name": "rate_limits",
1329
+ "schema": "",
1330
+ "columns": {
1331
+ "id": {
1332
+ "name": "id",
1333
+ "type": "text",
1334
+ "primaryKey": true,
1335
+ "notNull": true
1336
+ },
1337
+ "key": {
1338
+ "name": "key",
1339
+ "type": "text",
1340
+ "primaryKey": false,
1341
+ "notNull": true
1342
+ },
1343
+ "count": {
1344
+ "name": "count",
1345
+ "type": "integer",
1346
+ "primaryKey": false,
1347
+ "notNull": true
1348
+ },
1349
+ "last_request": {
1350
+ "name": "last_request",
1351
+ "type": "bigint",
1352
+ "primaryKey": false,
1353
+ "notNull": true
1354
+ }
1355
+ },
1356
+ "indexes": {},
1357
+ "foreignKeys": {},
1358
+ "compositePrimaryKeys": {},
1359
+ "uniqueConstraints": {
1360
+ "rate_limits_key_unique": {
1361
+ "name": "rate_limits_key_unique",
1362
+ "nullsNotDistinct": false,
1363
+ "columns": [
1364
+ "key"
1365
+ ]
1366
+ }
1367
+ },
1368
+ "policies": {},
1369
+ "checkConstraints": {},
1370
+ "isRLSEnabled": false
1371
+ },
1372
+ "public.sessions": {
1373
+ "name": "sessions",
1374
+ "schema": "",
1375
+ "columns": {
1376
+ "id": {
1377
+ "name": "id",
1378
+ "type": "text",
1379
+ "primaryKey": true,
1380
+ "notNull": true
1381
+ },
1382
+ "expires_at": {
1383
+ "name": "expires_at",
1384
+ "type": "timestamp with time zone",
1385
+ "primaryKey": false,
1386
+ "notNull": true
1387
+ },
1388
+ "token": {
1389
+ "name": "token",
1390
+ "type": "text",
1391
+ "primaryKey": false,
1392
+ "notNull": true
1393
+ },
1394
+ "created_at": {
1395
+ "name": "created_at",
1396
+ "type": "timestamp with time zone",
1397
+ "primaryKey": false,
1398
+ "notNull": true,
1399
+ "default": "now()"
1400
+ },
1401
+ "updated_at": {
1402
+ "name": "updated_at",
1403
+ "type": "timestamp with time zone",
1404
+ "primaryKey": false,
1405
+ "notNull": true
1406
+ },
1407
+ "ip_address": {
1408
+ "name": "ip_address",
1409
+ "type": "text",
1410
+ "primaryKey": false,
1411
+ "notNull": false
1412
+ },
1413
+ "user_agent": {
1414
+ "name": "user_agent",
1415
+ "type": "text",
1416
+ "primaryKey": false,
1417
+ "notNull": false
1418
+ },
1419
+ "user_id": {
1420
+ "name": "user_id",
1421
+ "type": "text",
1422
+ "primaryKey": false,
1423
+ "notNull": true
1424
+ },
1425
+ "impersonated_by": {
1426
+ "name": "impersonated_by",
1427
+ "type": "text",
1428
+ "primaryKey": false,
1429
+ "notNull": false
1430
+ }
1431
+ },
1432
+ "indexes": {
1433
+ "sessions_userId_idx": {
1434
+ "name": "sessions_userId_idx",
1435
+ "columns": [
1436
+ {
1437
+ "expression": "user_id",
1438
+ "isExpression": false,
1439
+ "asc": true,
1440
+ "nulls": "last"
1441
+ }
1442
+ ],
1443
+ "isUnique": false,
1444
+ "concurrently": false,
1445
+ "method": "btree",
1446
+ "with": {}
1447
+ }
1448
+ },
1449
+ "foreignKeys": {
1450
+ "sessions_user_id_users_id_fk": {
1451
+ "name": "sessions_user_id_users_id_fk",
1452
+ "tableFrom": "sessions",
1453
+ "tableTo": "users",
1454
+ "columnsFrom": [
1455
+ "user_id"
1456
+ ],
1457
+ "columnsTo": [
1458
+ "id"
1459
+ ],
1460
+ "onDelete": "cascade",
1461
+ "onUpdate": "no action"
1462
+ }
1463
+ },
1464
+ "compositePrimaryKeys": {},
1465
+ "uniqueConstraints": {
1466
+ "sessions_token_unique": {
1467
+ "name": "sessions_token_unique",
1468
+ "nullsNotDistinct": false,
1469
+ "columns": [
1470
+ "token"
1471
+ ]
1472
+ }
1473
+ },
1474
+ "policies": {},
1475
+ "checkConstraints": {},
1476
+ "isRLSEnabled": false
1477
+ },
1478
+ "public.site_settings": {
1479
+ "name": "site_settings",
1480
+ "schema": "",
1481
+ "columns": {
1482
+ "id": {
1483
+ "name": "id",
1484
+ "type": "integer",
1485
+ "primaryKey": true,
1486
+ "notNull": true
1487
+ },
1488
+ "site_name": {
1489
+ "name": "site_name",
1490
+ "type": "text",
1491
+ "primaryKey": false,
1492
+ "notNull": true,
1493
+ "default": "'Pet Adopt'"
1494
+ },
1495
+ "tagline": {
1496
+ "name": "tagline",
1497
+ "type": "text",
1498
+ "primaryKey": false,
1499
+ "notNull": false,
1500
+ "default": "'Find your new best friend'"
1501
+ },
1502
+ "logo_id": {
1503
+ "name": "logo_id",
1504
+ "type": "integer",
1505
+ "primaryKey": false,
1506
+ "notNull": false
1507
+ },
1508
+ "favicon_id": {
1509
+ "name": "favicon_id",
1510
+ "type": "integer",
1511
+ "primaryKey": false,
1512
+ "notNull": false
1513
+ },
1514
+ "primary_color": {
1515
+ "name": "primary_color",
1516
+ "type": "text",
1517
+ "primaryKey": false,
1518
+ "notNull": false
1519
+ },
1520
+ "theme": {
1521
+ "name": "theme",
1522
+ "type": "text",
1523
+ "primaryKey": false,
1524
+ "notNull": true,
1525
+ "default": "'sunrise'"
1526
+ },
1527
+ "allow_mode_toggle": {
1528
+ "name": "allow_mode_toggle",
1529
+ "type": "boolean",
1530
+ "primaryKey": false,
1531
+ "notNull": true,
1532
+ "default": true
1533
+ },
1534
+ "customize": {
1535
+ "name": "customize",
1536
+ "type": "boolean",
1537
+ "primaryKey": false,
1538
+ "notNull": true,
1539
+ "default": false
1540
+ },
1541
+ "custom_theme": {
1542
+ "name": "custom_theme",
1543
+ "type": "jsonb",
1544
+ "primaryKey": false,
1545
+ "notNull": false
1546
+ },
1547
+ "active_theme_id": {
1548
+ "name": "active_theme_id",
1549
+ "type": "integer",
1550
+ "primaryKey": false,
1551
+ "notNull": false
1552
+ },
1553
+ "whatsapp_number": {
1554
+ "name": "whatsapp_number",
1555
+ "type": "text",
1556
+ "primaryKey": false,
1557
+ "notNull": false
1558
+ },
1559
+ "whatsapp_message": {
1560
+ "name": "whatsapp_message",
1561
+ "type": "text",
1562
+ "primaryKey": false,
1563
+ "notNull": false,
1564
+ "default": "'Hi! I''m interested in adopting {pet}.'"
1565
+ },
1566
+ "address": {
1567
+ "name": "address",
1568
+ "type": "text",
1569
+ "primaryKey": false,
1570
+ "notNull": false
1571
+ },
1572
+ "opening_hours": {
1573
+ "name": "opening_hours",
1574
+ "type": "text",
1575
+ "primaryKey": false,
1576
+ "notNull": false
1577
+ },
1578
+ "socials": {
1579
+ "name": "socials",
1580
+ "type": "jsonb",
1581
+ "primaryKey": false,
1582
+ "notNull": true,
1583
+ "default": "'[]'::jsonb"
1584
+ },
1585
+ "nav": {
1586
+ "name": "nav",
1587
+ "type": "jsonb",
1588
+ "primaryKey": false,
1589
+ "notNull": true,
1590
+ "default": "'[]'::jsonb"
1591
+ },
1592
+ "footer_text": {
1593
+ "name": "footer_text",
1594
+ "type": "text",
1595
+ "primaryKey": false,
1596
+ "notNull": false
1597
+ },
1598
+ "created_at": {
1599
+ "name": "created_at",
1600
+ "type": "timestamp with time zone",
1601
+ "primaryKey": false,
1602
+ "notNull": true,
1603
+ "default": "now()"
1604
+ },
1605
+ "updated_at": {
1606
+ "name": "updated_at",
1607
+ "type": "timestamp with time zone",
1608
+ "primaryKey": false,
1609
+ "notNull": true,
1610
+ "default": "now()"
1611
+ }
1612
+ },
1613
+ "indexes": {},
1614
+ "foreignKeys": {
1615
+ "site_settings_logo_id_media_id_fk": {
1616
+ "name": "site_settings_logo_id_media_id_fk",
1617
+ "tableFrom": "site_settings",
1618
+ "tableTo": "media",
1619
+ "columnsFrom": [
1620
+ "logo_id"
1621
+ ],
1622
+ "columnsTo": [
1623
+ "id"
1624
+ ],
1625
+ "onDelete": "set null",
1626
+ "onUpdate": "no action"
1627
+ },
1628
+ "site_settings_favicon_id_media_id_fk": {
1629
+ "name": "site_settings_favicon_id_media_id_fk",
1630
+ "tableFrom": "site_settings",
1631
+ "tableTo": "media",
1632
+ "columnsFrom": [
1633
+ "favicon_id"
1634
+ ],
1635
+ "columnsTo": [
1636
+ "id"
1637
+ ],
1638
+ "onDelete": "set null",
1639
+ "onUpdate": "no action"
1640
+ },
1641
+ "site_settings_active_theme_id_themes_id_fk": {
1642
+ "name": "site_settings_active_theme_id_themes_id_fk",
1643
+ "tableFrom": "site_settings",
1644
+ "tableTo": "themes",
1645
+ "columnsFrom": [
1646
+ "active_theme_id"
1647
+ ],
1648
+ "columnsTo": [
1649
+ "id"
1650
+ ],
1651
+ "onDelete": "set null",
1652
+ "onUpdate": "no action"
1653
+ }
1654
+ },
1655
+ "compositePrimaryKeys": {},
1656
+ "uniqueConstraints": {},
1657
+ "policies": {},
1658
+ "checkConstraints": {},
1659
+ "isRLSEnabled": false
1660
+ },
1661
+ "public.themes": {
1662
+ "name": "themes",
1663
+ "schema": "",
1664
+ "columns": {
1665
+ "id": {
1666
+ "name": "id",
1667
+ "type": "serial",
1668
+ "primaryKey": true,
1669
+ "notNull": true
1670
+ },
1671
+ "name": {
1672
+ "name": "name",
1673
+ "type": "text",
1674
+ "primaryKey": false,
1675
+ "notNull": true
1676
+ },
1677
+ "base": {
1678
+ "name": "base",
1679
+ "type": "text",
1680
+ "primaryKey": false,
1681
+ "notNull": true,
1682
+ "default": "'sunrise'"
1683
+ },
1684
+ "settings": {
1685
+ "name": "settings",
1686
+ "type": "jsonb",
1687
+ "primaryKey": false,
1688
+ "notNull": true
1689
+ },
1690
+ "created_at": {
1691
+ "name": "created_at",
1692
+ "type": "timestamp with time zone",
1693
+ "primaryKey": false,
1694
+ "notNull": true,
1695
+ "default": "now()"
1696
+ },
1697
+ "updated_at": {
1698
+ "name": "updated_at",
1699
+ "type": "timestamp with time zone",
1700
+ "primaryKey": false,
1701
+ "notNull": true,
1702
+ "default": "now()"
1703
+ }
1704
+ },
1705
+ "indexes": {},
1706
+ "foreignKeys": {},
1707
+ "compositePrimaryKeys": {},
1708
+ "uniqueConstraints": {},
1709
+ "policies": {},
1710
+ "checkConstraints": {},
1711
+ "isRLSEnabled": false
1712
+ },
1713
+ "public.users": {
1714
+ "name": "users",
1715
+ "schema": "",
1716
+ "columns": {
1717
+ "id": {
1718
+ "name": "id",
1719
+ "type": "text",
1720
+ "primaryKey": true,
1721
+ "notNull": true
1722
+ },
1723
+ "name": {
1724
+ "name": "name",
1725
+ "type": "text",
1726
+ "primaryKey": false,
1727
+ "notNull": true
1728
+ },
1729
+ "email": {
1730
+ "name": "email",
1731
+ "type": "text",
1732
+ "primaryKey": false,
1733
+ "notNull": true
1734
+ },
1735
+ "email_verified": {
1736
+ "name": "email_verified",
1737
+ "type": "boolean",
1738
+ "primaryKey": false,
1739
+ "notNull": true,
1740
+ "default": false
1741
+ },
1742
+ "image": {
1743
+ "name": "image",
1744
+ "type": "text",
1745
+ "primaryKey": false,
1746
+ "notNull": false
1747
+ },
1748
+ "created_at": {
1749
+ "name": "created_at",
1750
+ "type": "timestamp with time zone",
1751
+ "primaryKey": false,
1752
+ "notNull": true,
1753
+ "default": "now()"
1754
+ },
1755
+ "updated_at": {
1756
+ "name": "updated_at",
1757
+ "type": "timestamp with time zone",
1758
+ "primaryKey": false,
1759
+ "notNull": true,
1760
+ "default": "now()"
1761
+ },
1762
+ "role": {
1763
+ "name": "role",
1764
+ "type": "text",
1765
+ "primaryKey": false,
1766
+ "notNull": false
1767
+ },
1768
+ "banned": {
1769
+ "name": "banned",
1770
+ "type": "boolean",
1771
+ "primaryKey": false,
1772
+ "notNull": false,
1773
+ "default": false
1774
+ },
1775
+ "ban_reason": {
1776
+ "name": "ban_reason",
1777
+ "type": "text",
1778
+ "primaryKey": false,
1779
+ "notNull": false
1780
+ },
1781
+ "ban_expires": {
1782
+ "name": "ban_expires",
1783
+ "type": "timestamp with time zone",
1784
+ "primaryKey": false,
1785
+ "notNull": false
1786
+ }
1787
+ },
1788
+ "indexes": {},
1789
+ "foreignKeys": {},
1790
+ "compositePrimaryKeys": {},
1791
+ "uniqueConstraints": {
1792
+ "users_email_unique": {
1793
+ "name": "users_email_unique",
1794
+ "nullsNotDistinct": false,
1795
+ "columns": [
1796
+ "email"
1797
+ ]
1798
+ }
1799
+ },
1800
+ "policies": {},
1801
+ "checkConstraints": {},
1802
+ "isRLSEnabled": false
1803
+ },
1804
+ "public.verifications": {
1805
+ "name": "verifications",
1806
+ "schema": "",
1807
+ "columns": {
1808
+ "id": {
1809
+ "name": "id",
1810
+ "type": "text",
1811
+ "primaryKey": true,
1812
+ "notNull": true
1813
+ },
1814
+ "identifier": {
1815
+ "name": "identifier",
1816
+ "type": "text",
1817
+ "primaryKey": false,
1818
+ "notNull": true
1819
+ },
1820
+ "value": {
1821
+ "name": "value",
1822
+ "type": "text",
1823
+ "primaryKey": false,
1824
+ "notNull": true
1825
+ },
1826
+ "expires_at": {
1827
+ "name": "expires_at",
1828
+ "type": "timestamp with time zone",
1829
+ "primaryKey": false,
1830
+ "notNull": true
1831
+ },
1832
+ "created_at": {
1833
+ "name": "created_at",
1834
+ "type": "timestamp with time zone",
1835
+ "primaryKey": false,
1836
+ "notNull": true,
1837
+ "default": "now()"
1838
+ },
1839
+ "updated_at": {
1840
+ "name": "updated_at",
1841
+ "type": "timestamp with time zone",
1842
+ "primaryKey": false,
1843
+ "notNull": true,
1844
+ "default": "now()"
1845
+ }
1846
+ },
1847
+ "indexes": {
1848
+ "verifications_identifier_idx": {
1849
+ "name": "verifications_identifier_idx",
1850
+ "columns": [
1851
+ {
1852
+ "expression": "identifier",
1853
+ "isExpression": false,
1854
+ "asc": true,
1855
+ "nulls": "last"
1856
+ }
1857
+ ],
1858
+ "isUnique": false,
1859
+ "concurrently": false,
1860
+ "method": "btree",
1861
+ "with": {}
1862
+ }
1863
+ },
1864
+ "foreignKeys": {},
1865
+ "compositePrimaryKeys": {},
1866
+ "uniqueConstraints": {},
1867
+ "policies": {},
1868
+ "checkConstraints": {},
1869
+ "isRLSEnabled": false
1870
+ }
1871
+ },
1872
+ "enums": {},
1873
+ "schemas": {},
1874
+ "sequences": {},
1875
+ "roles": {},
1876
+ "policies": {},
1877
+ "views": {},
1878
+ "_meta": {
1879
+ "columns": {},
1880
+ "schemas": {},
1881
+ "tables": {}
1882
+ }
1883
+ }