21 lines
679 B
SQL
21 lines
679 B
SQL
CREATE TABLE public."Notification" (
|
|
id uuid NOT NULL,
|
|
"UserId" uuid,
|
|
"IsActive" integer NOT NULL,
|
|
"Type" integer NOT NULL,
|
|
"ContactTypeHint" integer,
|
|
"ContactHint" character varying,
|
|
"Data" character varying,
|
|
"NotifyState" integer NOT NULL,
|
|
"NotifiedAt" timestamp without time zone,
|
|
"RetryCount" integer,
|
|
"CreatedAt" timestamp without time zone,
|
|
"UpdatedAt" timestamp without time zone
|
|
);
|
|
|
|
ALTER TABLE ONLY public."Notification"
|
|
ADD CONSTRAINT "Notification_pkey" PRIMARY KEY (id);
|
|
|
|
ALTER TABLE ONLY public."Notification"
|
|
ADD CONSTRAINT "NotificationUserReference" FOREIGN KEY ("UserId") REFERENCES public."UserInfo"(id);
|