You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
460 B
SQL
17 lines
460 B
SQL
CREATE TABLE public."UserPreference" (
|
|
"Id" uuid NOT NULL,
|
|
"UserId" uuid NOT NULL,
|
|
"Data" json NOT NULL,
|
|
"PreferenceType" smallint NOT NULL
|
|
);
|
|
|
|
|
|
ALTER TABLE public."UserPreference" OWNER TO dmptool;
|
|
|
|
ALTER TABLE ONLY public."UserPreference"
|
|
ADD CONSTRAINT "UserPreference_pkey" PRIMARY KEY ("Id");
|
|
|
|
|
|
ALTER TABLE ONLY public."UserPreference"
|
|
ADD CONSTRAINT userpreference_user_fk FOREIGN KEY ("UserId") REFERENCES public."UserInfo"(id);
|