Blåhaj
Explore posts from serversJSON in columns (postgresql)
Hey <a:YA_Wave:743393941369651201>
I am completely new to using SQL databases and have a (hopefully) simple question. I want to store JSON inside a column and want to make certain keys not null and/or set a default value, how would I do that?
In this case, I have a
language
column and want to set a default value for the locale
key
This is my UserTable type:
This is the current state of my migrations/0-initials.ts
(stripped things away that are not needed for this post)
Thanks 10 replies
AOAnswer Overflow
•Created by Blåhaj on 5/27/2023 in #feedback
Error marking messages as answer
22 replies