14 lines
455 B
SQL
14 lines
455 B
SQL
-- Create "Screening" table
|
|
CREATE TABLE "public"."Screening" (
|
|
"Id" bigserial NOT NULL,
|
|
"CreatedAt" timestamptz NULL,
|
|
"UpdatedAt" timestamptz NULL,
|
|
"DeletedAt" timestamptz NULL,
|
|
"Encounter_Id" bigint NULL,
|
|
"Employee_Id" bigint NULL,
|
|
"Type" text NULL,
|
|
"Value" text NULL,
|
|
PRIMARY KEY ("Id"),
|
|
CONSTRAINT "fk_Screening_Employee" FOREIGN KEY ("Employee_Id") REFERENCES "public"."Employee" ("Id") ON UPDATE NO ACTION ON DELETE NO ACTION
|
|
);
|