Is there a way to define the data to go within the json. An example:
create table books ( id serial primary key, name text, email text, addresses jsonb );
Is there a way I can define the data that should go in the address, lets say I have an interface of :
export interface Tenants { id: string; name: string; email: string; addresses: { street: string; postal: string; address: string; city: string; postalCode: string; country: string; website: string; }; }
Exactly the same question I have as well.
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Is there a way to define the data to go within the json. An example:
Is there a way I can define the data that should go in the address, lets say I have an interface of :
Exactly the same question I have as well.