CREATE TABLE "bookmark" ( "id" int PRIMARY KEY, "folder_id" int CONSTRAINT folder_id REFERENCES folder(id), "name" varchar(255), "description" varchar(255), "url" varchar(255) ); CREATE TABLE "folder" ( "id" int PRIMARY KEY, "name" varchar(255), "description" varchar(255) ); CREATE TABLE "folder_depth" ( "parent_id" int CONSTRAINT folder_id REFERENCES folder(id), "child_id" int CONSTRAINT folder_id REFERENCES folder(id) );