Ma-Kas / kansaibeyond

Monorepo for a blog and travel website, consisting of frontend, backend, and headless cms.
https://www.kansaibeyond.com
0 stars 0 forks source link

Blog table: media column datatype #27

Closed Ma-Kas closed 6 months ago

Ma-Kas commented 7 months ago

Datatype is set to JSONB, but should it be an array of objects instead?

Or is JSONB of format {array: [...]} better?

Either way, the Zod Schema needs to be updated, as it is currently of format { name: '', url: '', caption?: ''} thus only taking into account a single media in the blog.

Directly related to #16