Files
simrsx-be/cmd/main-migration/migrations/20251121033803.sql
2025-11-21 10:39:37 +07:00

15 lines
501 B
SQL

-- Create "VclaimReference" table
CREATE TABLE "public"."VclaimReference" (
"Id" bigserial NOT NULL,
"CreatedAt" timestamptz NULL,
"UpdatedAt" timestamptz NULL,
"DeletedAt" timestamptz NULL,
"Encounter_Id" bigint NULL,
"Date" timestamptz NULL,
"SrcCode" text NULL,
"SrcName" text NULL,
"Number" text NULL,
PRIMARY KEY ("Id"),
CONSTRAINT "fk_Encounter_VclaimReference" FOREIGN KEY ("Encounter_Id") REFERENCES "public"."Encounter" ("Id") ON UPDATE NO ACTION ON DELETE NO ACTION
);