JSON in columns (postgresql)
Hey
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
This is my UserTable type:
This is the current state of my
(stripped things away that are not needed for this post)
Thanks
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 keyThis 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
