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