We have a postgres setup, and I'll be honest straight away I know very little about database manipulations, my goal is to add an object to the pre-existing table called websites
and then have the following object with properties as below:
"support": {
"desktop": true,
"mobile": true
}
I know it's quite easy to just add supportDesktop as a boolean property like so:
ALTER TABLE websites
ADD COLUMN "supportDesktop" boolean DEFAULT true NOT NULL;
ADD COLUMN "supportMobile" boolean DEFAULT true NOT NULL;
COMMIT;
I'm not sure if there's some type of "object" value you can use but any help would be great!