Files
simrsx-be/cmd/main-migration/migrations/20251201081333.sql
2025-12-01 15:14:20 +07:00

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
);