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,1284 @@
1
+ {
2
+ "id": "232c0583-025b-45bb-994e-47d0e66de293",
3
+ "prevId": "f1aacab8-47d8-4a9e-8532-227f205794c5",
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.media": {
130
+ "name": "media",
131
+ "schema": "",
132
+ "columns": {
133
+ "id": {
134
+ "name": "id",
135
+ "type": "serial",
136
+ "primaryKey": true,
137
+ "notNull": true
138
+ },
139
+ "filename": {
140
+ "name": "filename",
141
+ "type": "text",
142
+ "primaryKey": false,
143
+ "notNull": true
144
+ },
145
+ "mime_type": {
146
+ "name": "mime_type",
147
+ "type": "text",
148
+ "primaryKey": false,
149
+ "notNull": true
150
+ },
151
+ "size": {
152
+ "name": "size",
153
+ "type": "integer",
154
+ "primaryKey": false,
155
+ "notNull": true
156
+ },
157
+ "width": {
158
+ "name": "width",
159
+ "type": "integer",
160
+ "primaryKey": false,
161
+ "notNull": false
162
+ },
163
+ "height": {
164
+ "name": "height",
165
+ "type": "integer",
166
+ "primaryKey": false,
167
+ "notNull": false
168
+ },
169
+ "alt": {
170
+ "name": "alt",
171
+ "type": "text",
172
+ "primaryKey": false,
173
+ "notNull": true
174
+ },
175
+ "created_at": {
176
+ "name": "created_at",
177
+ "type": "timestamp with time zone",
178
+ "primaryKey": false,
179
+ "notNull": true,
180
+ "default": "now()"
181
+ },
182
+ "updated_at": {
183
+ "name": "updated_at",
184
+ "type": "timestamp with time zone",
185
+ "primaryKey": false,
186
+ "notNull": true,
187
+ "default": "now()"
188
+ }
189
+ },
190
+ "indexes": {
191
+ "media_filename_idx": {
192
+ "name": "media_filename_idx",
193
+ "columns": [
194
+ {
195
+ "expression": "filename",
196
+ "isExpression": false,
197
+ "asc": true,
198
+ "nulls": "last"
199
+ }
200
+ ],
201
+ "isUnique": true,
202
+ "concurrently": false,
203
+ "method": "btree",
204
+ "with": {}
205
+ }
206
+ },
207
+ "foreignKeys": {},
208
+ "compositePrimaryKeys": {},
209
+ "uniqueConstraints": {},
210
+ "policies": {},
211
+ "checkConstraints": {},
212
+ "isRLSEnabled": false
213
+ },
214
+ "public.pages": {
215
+ "name": "pages",
216
+ "schema": "",
217
+ "columns": {
218
+ "id": {
219
+ "name": "id",
220
+ "type": "serial",
221
+ "primaryKey": true,
222
+ "notNull": true
223
+ },
224
+ "title": {
225
+ "name": "title",
226
+ "type": "text",
227
+ "primaryKey": false,
228
+ "notNull": true
229
+ },
230
+ "slug": {
231
+ "name": "slug",
232
+ "type": "text",
233
+ "primaryKey": false,
234
+ "notNull": true
235
+ },
236
+ "status": {
237
+ "name": "status",
238
+ "type": "text",
239
+ "primaryKey": false,
240
+ "notNull": true,
241
+ "default": "'draft'"
242
+ },
243
+ "puck_draft": {
244
+ "name": "puck_draft",
245
+ "type": "jsonb",
246
+ "primaryKey": false,
247
+ "notNull": false
248
+ },
249
+ "puck_published": {
250
+ "name": "puck_published",
251
+ "type": "jsonb",
252
+ "primaryKey": false,
253
+ "notNull": false
254
+ },
255
+ "seo_description": {
256
+ "name": "seo_description",
257
+ "type": "text",
258
+ "primaryKey": false,
259
+ "notNull": false
260
+ },
261
+ "seo_image_id": {
262
+ "name": "seo_image_id",
263
+ "type": "integer",
264
+ "primaryKey": false,
265
+ "notNull": false
266
+ },
267
+ "published_at": {
268
+ "name": "published_at",
269
+ "type": "timestamp with time zone",
270
+ "primaryKey": false,
271
+ "notNull": false
272
+ },
273
+ "created_at": {
274
+ "name": "created_at",
275
+ "type": "timestamp with time zone",
276
+ "primaryKey": false,
277
+ "notNull": true,
278
+ "default": "now()"
279
+ },
280
+ "updated_at": {
281
+ "name": "updated_at",
282
+ "type": "timestamp with time zone",
283
+ "primaryKey": false,
284
+ "notNull": true,
285
+ "default": "now()"
286
+ }
287
+ },
288
+ "indexes": {
289
+ "pages_slug_idx": {
290
+ "name": "pages_slug_idx",
291
+ "columns": [
292
+ {
293
+ "expression": "slug",
294
+ "isExpression": false,
295
+ "asc": true,
296
+ "nulls": "last"
297
+ }
298
+ ],
299
+ "isUnique": true,
300
+ "concurrently": false,
301
+ "method": "btree",
302
+ "with": {}
303
+ },
304
+ "pages_seo_image_idx": {
305
+ "name": "pages_seo_image_idx",
306
+ "columns": [
307
+ {
308
+ "expression": "seo_image_id",
309
+ "isExpression": false,
310
+ "asc": true,
311
+ "nulls": "last"
312
+ }
313
+ ],
314
+ "isUnique": false,
315
+ "concurrently": false,
316
+ "method": "btree",
317
+ "with": {}
318
+ }
319
+ },
320
+ "foreignKeys": {
321
+ "pages_seo_image_id_media_id_fk": {
322
+ "name": "pages_seo_image_id_media_id_fk",
323
+ "tableFrom": "pages",
324
+ "tableTo": "media",
325
+ "columnsFrom": [
326
+ "seo_image_id"
327
+ ],
328
+ "columnsTo": [
329
+ "id"
330
+ ],
331
+ "onDelete": "set null",
332
+ "onUpdate": "no action"
333
+ }
334
+ },
335
+ "compositePrimaryKeys": {},
336
+ "uniqueConstraints": {},
337
+ "policies": {},
338
+ "checkConstraints": {},
339
+ "isRLSEnabled": false
340
+ },
341
+ "public.pet_photos": {
342
+ "name": "pet_photos",
343
+ "schema": "",
344
+ "columns": {
345
+ "pet_id": {
346
+ "name": "pet_id",
347
+ "type": "integer",
348
+ "primaryKey": false,
349
+ "notNull": true
350
+ },
351
+ "media_id": {
352
+ "name": "media_id",
353
+ "type": "integer",
354
+ "primaryKey": false,
355
+ "notNull": true
356
+ },
357
+ "position": {
358
+ "name": "position",
359
+ "type": "integer",
360
+ "primaryKey": false,
361
+ "notNull": true
362
+ }
363
+ },
364
+ "indexes": {
365
+ "pet_photos_media_idx": {
366
+ "name": "pet_photos_media_idx",
367
+ "columns": [
368
+ {
369
+ "expression": "media_id",
370
+ "isExpression": false,
371
+ "asc": true,
372
+ "nulls": "last"
373
+ }
374
+ ],
375
+ "isUnique": false,
376
+ "concurrently": false,
377
+ "method": "btree",
378
+ "with": {}
379
+ }
380
+ },
381
+ "foreignKeys": {
382
+ "pet_photos_pet_id_pets_id_fk": {
383
+ "name": "pet_photos_pet_id_pets_id_fk",
384
+ "tableFrom": "pet_photos",
385
+ "tableTo": "pets",
386
+ "columnsFrom": [
387
+ "pet_id"
388
+ ],
389
+ "columnsTo": [
390
+ "id"
391
+ ],
392
+ "onDelete": "cascade",
393
+ "onUpdate": "no action"
394
+ },
395
+ "pet_photos_media_id_media_id_fk": {
396
+ "name": "pet_photos_media_id_media_id_fk",
397
+ "tableFrom": "pet_photos",
398
+ "tableTo": "media",
399
+ "columnsFrom": [
400
+ "media_id"
401
+ ],
402
+ "columnsTo": [
403
+ "id"
404
+ ],
405
+ "onDelete": "restrict",
406
+ "onUpdate": "no action"
407
+ }
408
+ },
409
+ "compositePrimaryKeys": {
410
+ "pet_photos_pet_id_position_pk": {
411
+ "name": "pet_photos_pet_id_position_pk",
412
+ "columns": [
413
+ "pet_id",
414
+ "position"
415
+ ]
416
+ }
417
+ },
418
+ "uniqueConstraints": {},
419
+ "policies": {},
420
+ "checkConstraints": {},
421
+ "isRLSEnabled": false
422
+ },
423
+ "public.pets": {
424
+ "name": "pets",
425
+ "schema": "",
426
+ "columns": {
427
+ "id": {
428
+ "name": "id",
429
+ "type": "serial",
430
+ "primaryKey": true,
431
+ "notNull": true
432
+ },
433
+ "name": {
434
+ "name": "name",
435
+ "type": "text",
436
+ "primaryKey": false,
437
+ "notNull": true
438
+ },
439
+ "slug": {
440
+ "name": "slug",
441
+ "type": "text",
442
+ "primaryKey": false,
443
+ "notNull": true
444
+ },
445
+ "status": {
446
+ "name": "status",
447
+ "type": "text",
448
+ "primaryKey": false,
449
+ "notNull": true,
450
+ "default": "'available'"
451
+ },
452
+ "featured": {
453
+ "name": "featured",
454
+ "type": "boolean",
455
+ "primaryKey": false,
456
+ "notNull": true,
457
+ "default": false
458
+ },
459
+ "unlisted": {
460
+ "name": "unlisted",
461
+ "type": "boolean",
462
+ "primaryKey": false,
463
+ "notNull": true,
464
+ "default": false
465
+ },
466
+ "urgent": {
467
+ "name": "urgent",
468
+ "type": "boolean",
469
+ "primaryKey": false,
470
+ "notNull": true,
471
+ "default": false
472
+ },
473
+ "adopted_at": {
474
+ "name": "adopted_at",
475
+ "type": "timestamp with time zone",
476
+ "primaryKey": false,
477
+ "notNull": false
478
+ },
479
+ "species": {
480
+ "name": "species",
481
+ "type": "text",
482
+ "primaryKey": false,
483
+ "notNull": true,
484
+ "default": "'cat'"
485
+ },
486
+ "breed": {
487
+ "name": "breed",
488
+ "type": "text",
489
+ "primaryKey": false,
490
+ "notNull": false
491
+ },
492
+ "sex": {
493
+ "name": "sex",
494
+ "type": "text",
495
+ "primaryKey": false,
496
+ "notNull": false,
497
+ "default": "'unknown'"
498
+ },
499
+ "age_group": {
500
+ "name": "age_group",
501
+ "type": "text",
502
+ "primaryKey": false,
503
+ "notNull": false
504
+ },
505
+ "age_description": {
506
+ "name": "age_description",
507
+ "type": "text",
508
+ "primaryKey": false,
509
+ "notNull": false
510
+ },
511
+ "size": {
512
+ "name": "size",
513
+ "type": "text",
514
+ "primaryKey": false,
515
+ "notNull": false
516
+ },
517
+ "birth_date": {
518
+ "name": "birth_date",
519
+ "type": "text",
520
+ "primaryKey": false,
521
+ "notNull": false
522
+ },
523
+ "birth_date_estimated": {
524
+ "name": "birth_date_estimated",
525
+ "type": "boolean",
526
+ "primaryKey": false,
527
+ "notNull": true,
528
+ "default": false
529
+ },
530
+ "color": {
531
+ "name": "color",
532
+ "type": "text",
533
+ "primaryKey": false,
534
+ "notNull": false
535
+ },
536
+ "city": {
537
+ "name": "city",
538
+ "type": "text",
539
+ "primaryKey": false,
540
+ "notNull": false
541
+ },
542
+ "state": {
543
+ "name": "state",
544
+ "type": "text",
545
+ "primaryKey": false,
546
+ "notNull": false
547
+ },
548
+ "location": {
549
+ "name": "location",
550
+ "type": "text",
551
+ "primaryKey": false,
552
+ "notNull": false
553
+ },
554
+ "vaccinated": {
555
+ "name": "vaccinated",
556
+ "type": "boolean",
557
+ "primaryKey": false,
558
+ "notNull": true,
559
+ "default": false
560
+ },
561
+ "neutered": {
562
+ "name": "neutered",
563
+ "type": "boolean",
564
+ "primaryKey": false,
565
+ "notNull": true,
566
+ "default": false
567
+ },
568
+ "microchipped": {
569
+ "name": "microchipped",
570
+ "type": "boolean",
571
+ "primaryKey": false,
572
+ "notNull": true,
573
+ "default": false
574
+ },
575
+ "house_trained": {
576
+ "name": "house_trained",
577
+ "type": "boolean",
578
+ "primaryKey": false,
579
+ "notNull": true,
580
+ "default": false
581
+ },
582
+ "special_needs": {
583
+ "name": "special_needs",
584
+ "type": "boolean",
585
+ "primaryKey": false,
586
+ "notNull": true,
587
+ "default": false
588
+ },
589
+ "health_notes": {
590
+ "name": "health_notes",
591
+ "type": "text",
592
+ "primaryKey": false,
593
+ "notNull": false
594
+ },
595
+ "health_notes_doc": {
596
+ "name": "health_notes_doc",
597
+ "type": "jsonb",
598
+ "primaryKey": false,
599
+ "notNull": false
600
+ },
601
+ "temperament": {
602
+ "name": "temperament",
603
+ "type": "jsonb",
604
+ "primaryKey": false,
605
+ "notNull": true,
606
+ "default": "'[]'::jsonb"
607
+ },
608
+ "good_with": {
609
+ "name": "good_with",
610
+ "type": "jsonb",
611
+ "primaryKey": false,
612
+ "notNull": true,
613
+ "default": "'[]'::jsonb"
614
+ },
615
+ "description": {
616
+ "name": "description",
617
+ "type": "text",
618
+ "primaryKey": false,
619
+ "notNull": false
620
+ },
621
+ "description_doc": {
622
+ "name": "description_doc",
623
+ "type": "jsonb",
624
+ "primaryKey": false,
625
+ "notNull": false
626
+ },
627
+ "video_url": {
628
+ "name": "video_url",
629
+ "type": "text",
630
+ "primaryKey": false,
631
+ "notNull": false
632
+ },
633
+ "adoption_fee": {
634
+ "name": "adoption_fee",
635
+ "type": "double precision",
636
+ "primaryKey": false,
637
+ "notNull": false
638
+ },
639
+ "rescued_at": {
640
+ "name": "rescued_at",
641
+ "type": "text",
642
+ "primaryKey": false,
643
+ "notNull": false
644
+ },
645
+ "contact_whatsapp": {
646
+ "name": "contact_whatsapp",
647
+ "type": "text",
648
+ "primaryKey": false,
649
+ "notNull": false
650
+ },
651
+ "seo_title": {
652
+ "name": "seo_title",
653
+ "type": "text",
654
+ "primaryKey": false,
655
+ "notNull": false
656
+ },
657
+ "seo_description": {
658
+ "name": "seo_description",
659
+ "type": "text",
660
+ "primaryKey": false,
661
+ "notNull": false
662
+ },
663
+ "seo_image_id": {
664
+ "name": "seo_image_id",
665
+ "type": "integer",
666
+ "primaryKey": false,
667
+ "notNull": false
668
+ },
669
+ "created_at": {
670
+ "name": "created_at",
671
+ "type": "timestamp with time zone",
672
+ "primaryKey": false,
673
+ "notNull": true,
674
+ "default": "now()"
675
+ },
676
+ "updated_at": {
677
+ "name": "updated_at",
678
+ "type": "timestamp with time zone",
679
+ "primaryKey": false,
680
+ "notNull": true,
681
+ "default": "now()"
682
+ }
683
+ },
684
+ "indexes": {
685
+ "pets_slug_idx": {
686
+ "name": "pets_slug_idx",
687
+ "columns": [
688
+ {
689
+ "expression": "slug",
690
+ "isExpression": false,
691
+ "asc": true,
692
+ "nulls": "last"
693
+ }
694
+ ],
695
+ "isUnique": true,
696
+ "concurrently": false,
697
+ "method": "btree",
698
+ "with": {}
699
+ },
700
+ "pets_status_idx": {
701
+ "name": "pets_status_idx",
702
+ "columns": [
703
+ {
704
+ "expression": "status",
705
+ "isExpression": false,
706
+ "asc": true,
707
+ "nulls": "last"
708
+ }
709
+ ],
710
+ "isUnique": false,
711
+ "concurrently": false,
712
+ "method": "btree",
713
+ "with": {}
714
+ },
715
+ "pets_species_idx": {
716
+ "name": "pets_species_idx",
717
+ "columns": [
718
+ {
719
+ "expression": "species",
720
+ "isExpression": false,
721
+ "asc": true,
722
+ "nulls": "last"
723
+ }
724
+ ],
725
+ "isUnique": false,
726
+ "concurrently": false,
727
+ "method": "btree",
728
+ "with": {}
729
+ },
730
+ "pets_featured_idx": {
731
+ "name": "pets_featured_idx",
732
+ "columns": [
733
+ {
734
+ "expression": "featured",
735
+ "isExpression": false,
736
+ "asc": true,
737
+ "nulls": "last"
738
+ }
739
+ ],
740
+ "isUnique": false,
741
+ "concurrently": false,
742
+ "method": "btree",
743
+ "with": {}
744
+ },
745
+ "pets_city_idx": {
746
+ "name": "pets_city_idx",
747
+ "columns": [
748
+ {
749
+ "expression": "city",
750
+ "isExpression": false,
751
+ "asc": true,
752
+ "nulls": "last"
753
+ }
754
+ ],
755
+ "isUnique": false,
756
+ "concurrently": false,
757
+ "method": "btree",
758
+ "with": {}
759
+ },
760
+ "pets_state_idx": {
761
+ "name": "pets_state_idx",
762
+ "columns": [
763
+ {
764
+ "expression": "state",
765
+ "isExpression": false,
766
+ "asc": true,
767
+ "nulls": "last"
768
+ }
769
+ ],
770
+ "isUnique": false,
771
+ "concurrently": false,
772
+ "method": "btree",
773
+ "with": {}
774
+ },
775
+ "pets_status_created_idx": {
776
+ "name": "pets_status_created_idx",
777
+ "columns": [
778
+ {
779
+ "expression": "status",
780
+ "isExpression": false,
781
+ "asc": true,
782
+ "nulls": "last"
783
+ },
784
+ {
785
+ "expression": "created_at",
786
+ "isExpression": false,
787
+ "asc": true,
788
+ "nulls": "last"
789
+ }
790
+ ],
791
+ "isUnique": false,
792
+ "concurrently": false,
793
+ "method": "btree",
794
+ "with": {}
795
+ }
796
+ },
797
+ "foreignKeys": {
798
+ "pets_seo_image_id_media_id_fk": {
799
+ "name": "pets_seo_image_id_media_id_fk",
800
+ "tableFrom": "pets",
801
+ "tableTo": "media",
802
+ "columnsFrom": [
803
+ "seo_image_id"
804
+ ],
805
+ "columnsTo": [
806
+ "id"
807
+ ],
808
+ "onDelete": "set null",
809
+ "onUpdate": "no action"
810
+ }
811
+ },
812
+ "compositePrimaryKeys": {},
813
+ "uniqueConstraints": {},
814
+ "policies": {},
815
+ "checkConstraints": {},
816
+ "isRLSEnabled": false
817
+ },
818
+ "public.rate_limits": {
819
+ "name": "rate_limits",
820
+ "schema": "",
821
+ "columns": {
822
+ "id": {
823
+ "name": "id",
824
+ "type": "text",
825
+ "primaryKey": true,
826
+ "notNull": true
827
+ },
828
+ "key": {
829
+ "name": "key",
830
+ "type": "text",
831
+ "primaryKey": false,
832
+ "notNull": true
833
+ },
834
+ "count": {
835
+ "name": "count",
836
+ "type": "integer",
837
+ "primaryKey": false,
838
+ "notNull": true
839
+ },
840
+ "last_request": {
841
+ "name": "last_request",
842
+ "type": "bigint",
843
+ "primaryKey": false,
844
+ "notNull": true
845
+ }
846
+ },
847
+ "indexes": {},
848
+ "foreignKeys": {},
849
+ "compositePrimaryKeys": {},
850
+ "uniqueConstraints": {
851
+ "rate_limits_key_unique": {
852
+ "name": "rate_limits_key_unique",
853
+ "nullsNotDistinct": false,
854
+ "columns": [
855
+ "key"
856
+ ]
857
+ }
858
+ },
859
+ "policies": {},
860
+ "checkConstraints": {},
861
+ "isRLSEnabled": false
862
+ },
863
+ "public.sessions": {
864
+ "name": "sessions",
865
+ "schema": "",
866
+ "columns": {
867
+ "id": {
868
+ "name": "id",
869
+ "type": "text",
870
+ "primaryKey": true,
871
+ "notNull": true
872
+ },
873
+ "expires_at": {
874
+ "name": "expires_at",
875
+ "type": "timestamp with time zone",
876
+ "primaryKey": false,
877
+ "notNull": true
878
+ },
879
+ "token": {
880
+ "name": "token",
881
+ "type": "text",
882
+ "primaryKey": false,
883
+ "notNull": true
884
+ },
885
+ "created_at": {
886
+ "name": "created_at",
887
+ "type": "timestamp with time zone",
888
+ "primaryKey": false,
889
+ "notNull": true,
890
+ "default": "now()"
891
+ },
892
+ "updated_at": {
893
+ "name": "updated_at",
894
+ "type": "timestamp with time zone",
895
+ "primaryKey": false,
896
+ "notNull": true
897
+ },
898
+ "ip_address": {
899
+ "name": "ip_address",
900
+ "type": "text",
901
+ "primaryKey": false,
902
+ "notNull": false
903
+ },
904
+ "user_agent": {
905
+ "name": "user_agent",
906
+ "type": "text",
907
+ "primaryKey": false,
908
+ "notNull": false
909
+ },
910
+ "user_id": {
911
+ "name": "user_id",
912
+ "type": "text",
913
+ "primaryKey": false,
914
+ "notNull": true
915
+ },
916
+ "impersonated_by": {
917
+ "name": "impersonated_by",
918
+ "type": "text",
919
+ "primaryKey": false,
920
+ "notNull": false
921
+ }
922
+ },
923
+ "indexes": {
924
+ "sessions_userId_idx": {
925
+ "name": "sessions_userId_idx",
926
+ "columns": [
927
+ {
928
+ "expression": "user_id",
929
+ "isExpression": false,
930
+ "asc": true,
931
+ "nulls": "last"
932
+ }
933
+ ],
934
+ "isUnique": false,
935
+ "concurrently": false,
936
+ "method": "btree",
937
+ "with": {}
938
+ }
939
+ },
940
+ "foreignKeys": {
941
+ "sessions_user_id_users_id_fk": {
942
+ "name": "sessions_user_id_users_id_fk",
943
+ "tableFrom": "sessions",
944
+ "tableTo": "users",
945
+ "columnsFrom": [
946
+ "user_id"
947
+ ],
948
+ "columnsTo": [
949
+ "id"
950
+ ],
951
+ "onDelete": "cascade",
952
+ "onUpdate": "no action"
953
+ }
954
+ },
955
+ "compositePrimaryKeys": {},
956
+ "uniqueConstraints": {
957
+ "sessions_token_unique": {
958
+ "name": "sessions_token_unique",
959
+ "nullsNotDistinct": false,
960
+ "columns": [
961
+ "token"
962
+ ]
963
+ }
964
+ },
965
+ "policies": {},
966
+ "checkConstraints": {},
967
+ "isRLSEnabled": false
968
+ },
969
+ "public.site_settings": {
970
+ "name": "site_settings",
971
+ "schema": "",
972
+ "columns": {
973
+ "id": {
974
+ "name": "id",
975
+ "type": "integer",
976
+ "primaryKey": true,
977
+ "notNull": true
978
+ },
979
+ "site_name": {
980
+ "name": "site_name",
981
+ "type": "text",
982
+ "primaryKey": false,
983
+ "notNull": true,
984
+ "default": "'Pet Adopt'"
985
+ },
986
+ "tagline": {
987
+ "name": "tagline",
988
+ "type": "text",
989
+ "primaryKey": false,
990
+ "notNull": false,
991
+ "default": "'Find your new best friend'"
992
+ },
993
+ "logo_id": {
994
+ "name": "logo_id",
995
+ "type": "integer",
996
+ "primaryKey": false,
997
+ "notNull": false
998
+ },
999
+ "primary_color": {
1000
+ "name": "primary_color",
1001
+ "type": "text",
1002
+ "primaryKey": false,
1003
+ "notNull": false
1004
+ },
1005
+ "theme": {
1006
+ "name": "theme",
1007
+ "type": "text",
1008
+ "primaryKey": false,
1009
+ "notNull": true,
1010
+ "default": "'sunrise'"
1011
+ },
1012
+ "allow_mode_toggle": {
1013
+ "name": "allow_mode_toggle",
1014
+ "type": "boolean",
1015
+ "primaryKey": false,
1016
+ "notNull": true,
1017
+ "default": true
1018
+ },
1019
+ "customize": {
1020
+ "name": "customize",
1021
+ "type": "boolean",
1022
+ "primaryKey": false,
1023
+ "notNull": true,
1024
+ "default": false
1025
+ },
1026
+ "custom_theme": {
1027
+ "name": "custom_theme",
1028
+ "type": "jsonb",
1029
+ "primaryKey": false,
1030
+ "notNull": false
1031
+ },
1032
+ "whatsapp_number": {
1033
+ "name": "whatsapp_number",
1034
+ "type": "text",
1035
+ "primaryKey": false,
1036
+ "notNull": false
1037
+ },
1038
+ "whatsapp_message": {
1039
+ "name": "whatsapp_message",
1040
+ "type": "text",
1041
+ "primaryKey": false,
1042
+ "notNull": false,
1043
+ "default": "'Hi! I''m interested in adopting {pet}.'"
1044
+ },
1045
+ "address": {
1046
+ "name": "address",
1047
+ "type": "text",
1048
+ "primaryKey": false,
1049
+ "notNull": false
1050
+ },
1051
+ "opening_hours": {
1052
+ "name": "opening_hours",
1053
+ "type": "text",
1054
+ "primaryKey": false,
1055
+ "notNull": false
1056
+ },
1057
+ "socials": {
1058
+ "name": "socials",
1059
+ "type": "jsonb",
1060
+ "primaryKey": false,
1061
+ "notNull": true,
1062
+ "default": "'[]'::jsonb"
1063
+ },
1064
+ "nav": {
1065
+ "name": "nav",
1066
+ "type": "jsonb",
1067
+ "primaryKey": false,
1068
+ "notNull": true,
1069
+ "default": "'[]'::jsonb"
1070
+ },
1071
+ "footer_text": {
1072
+ "name": "footer_text",
1073
+ "type": "text",
1074
+ "primaryKey": false,
1075
+ "notNull": false
1076
+ },
1077
+ "created_at": {
1078
+ "name": "created_at",
1079
+ "type": "timestamp with time zone",
1080
+ "primaryKey": false,
1081
+ "notNull": true,
1082
+ "default": "now()"
1083
+ },
1084
+ "updated_at": {
1085
+ "name": "updated_at",
1086
+ "type": "timestamp with time zone",
1087
+ "primaryKey": false,
1088
+ "notNull": true,
1089
+ "default": "now()"
1090
+ }
1091
+ },
1092
+ "indexes": {},
1093
+ "foreignKeys": {
1094
+ "site_settings_logo_id_media_id_fk": {
1095
+ "name": "site_settings_logo_id_media_id_fk",
1096
+ "tableFrom": "site_settings",
1097
+ "tableTo": "media",
1098
+ "columnsFrom": [
1099
+ "logo_id"
1100
+ ],
1101
+ "columnsTo": [
1102
+ "id"
1103
+ ],
1104
+ "onDelete": "set null",
1105
+ "onUpdate": "no action"
1106
+ }
1107
+ },
1108
+ "compositePrimaryKeys": {},
1109
+ "uniqueConstraints": {},
1110
+ "policies": {},
1111
+ "checkConstraints": {},
1112
+ "isRLSEnabled": false
1113
+ },
1114
+ "public.users": {
1115
+ "name": "users",
1116
+ "schema": "",
1117
+ "columns": {
1118
+ "id": {
1119
+ "name": "id",
1120
+ "type": "text",
1121
+ "primaryKey": true,
1122
+ "notNull": true
1123
+ },
1124
+ "name": {
1125
+ "name": "name",
1126
+ "type": "text",
1127
+ "primaryKey": false,
1128
+ "notNull": true
1129
+ },
1130
+ "email": {
1131
+ "name": "email",
1132
+ "type": "text",
1133
+ "primaryKey": false,
1134
+ "notNull": true
1135
+ },
1136
+ "email_verified": {
1137
+ "name": "email_verified",
1138
+ "type": "boolean",
1139
+ "primaryKey": false,
1140
+ "notNull": true,
1141
+ "default": false
1142
+ },
1143
+ "image": {
1144
+ "name": "image",
1145
+ "type": "text",
1146
+ "primaryKey": false,
1147
+ "notNull": false
1148
+ },
1149
+ "created_at": {
1150
+ "name": "created_at",
1151
+ "type": "timestamp with time zone",
1152
+ "primaryKey": false,
1153
+ "notNull": true,
1154
+ "default": "now()"
1155
+ },
1156
+ "updated_at": {
1157
+ "name": "updated_at",
1158
+ "type": "timestamp with time zone",
1159
+ "primaryKey": false,
1160
+ "notNull": true,
1161
+ "default": "now()"
1162
+ },
1163
+ "role": {
1164
+ "name": "role",
1165
+ "type": "text",
1166
+ "primaryKey": false,
1167
+ "notNull": false
1168
+ },
1169
+ "banned": {
1170
+ "name": "banned",
1171
+ "type": "boolean",
1172
+ "primaryKey": false,
1173
+ "notNull": false,
1174
+ "default": false
1175
+ },
1176
+ "ban_reason": {
1177
+ "name": "ban_reason",
1178
+ "type": "text",
1179
+ "primaryKey": false,
1180
+ "notNull": false
1181
+ },
1182
+ "ban_expires": {
1183
+ "name": "ban_expires",
1184
+ "type": "timestamp with time zone",
1185
+ "primaryKey": false,
1186
+ "notNull": false
1187
+ }
1188
+ },
1189
+ "indexes": {},
1190
+ "foreignKeys": {},
1191
+ "compositePrimaryKeys": {},
1192
+ "uniqueConstraints": {
1193
+ "users_email_unique": {
1194
+ "name": "users_email_unique",
1195
+ "nullsNotDistinct": false,
1196
+ "columns": [
1197
+ "email"
1198
+ ]
1199
+ }
1200
+ },
1201
+ "policies": {},
1202
+ "checkConstraints": {},
1203
+ "isRLSEnabled": false
1204
+ },
1205
+ "public.verifications": {
1206
+ "name": "verifications",
1207
+ "schema": "",
1208
+ "columns": {
1209
+ "id": {
1210
+ "name": "id",
1211
+ "type": "text",
1212
+ "primaryKey": true,
1213
+ "notNull": true
1214
+ },
1215
+ "identifier": {
1216
+ "name": "identifier",
1217
+ "type": "text",
1218
+ "primaryKey": false,
1219
+ "notNull": true
1220
+ },
1221
+ "value": {
1222
+ "name": "value",
1223
+ "type": "text",
1224
+ "primaryKey": false,
1225
+ "notNull": true
1226
+ },
1227
+ "expires_at": {
1228
+ "name": "expires_at",
1229
+ "type": "timestamp with time zone",
1230
+ "primaryKey": false,
1231
+ "notNull": true
1232
+ },
1233
+ "created_at": {
1234
+ "name": "created_at",
1235
+ "type": "timestamp with time zone",
1236
+ "primaryKey": false,
1237
+ "notNull": true,
1238
+ "default": "now()"
1239
+ },
1240
+ "updated_at": {
1241
+ "name": "updated_at",
1242
+ "type": "timestamp with time zone",
1243
+ "primaryKey": false,
1244
+ "notNull": true,
1245
+ "default": "now()"
1246
+ }
1247
+ },
1248
+ "indexes": {
1249
+ "verifications_identifier_idx": {
1250
+ "name": "verifications_identifier_idx",
1251
+ "columns": [
1252
+ {
1253
+ "expression": "identifier",
1254
+ "isExpression": false,
1255
+ "asc": true,
1256
+ "nulls": "last"
1257
+ }
1258
+ ],
1259
+ "isUnique": false,
1260
+ "concurrently": false,
1261
+ "method": "btree",
1262
+ "with": {}
1263
+ }
1264
+ },
1265
+ "foreignKeys": {},
1266
+ "compositePrimaryKeys": {},
1267
+ "uniqueConstraints": {},
1268
+ "policies": {},
1269
+ "checkConstraints": {},
1270
+ "isRLSEnabled": false
1271
+ }
1272
+ },
1273
+ "enums": {},
1274
+ "schemas": {},
1275
+ "sequences": {},
1276
+ "roles": {},
1277
+ "policies": {},
1278
+ "views": {},
1279
+ "_meta": {
1280
+ "columns": {},
1281
+ "schemas": {},
1282
+ "tables": {}
1283
+ }
1284
+ }