-- Create "EncounterLink" table
CREATE TABLE "public"."EncounterLink" (
  "Id" bigserial NOT NULL,
  "CreatedAt" timestamptz NULL,
  "UpdatedAt" timestamptz NULL,
  "DeletedAt" timestamptz NULL,
  "Simx_Id" bigint NULL,
  "Simgos_Id" bigint NULL,
  PRIMARY KEY ("Id"),
  CONSTRAINT "uni_EncounterLink_Simgos_Id" UNIQUE ("Simgos_Id"),
  CONSTRAINT "uni_EncounterLink_Simx_Id" UNIQUE ("Simx_Id")
);
-- Create "EncounterSimgosLog" table
CREATE TABLE "public"."EncounterSimgosLog" (
  "Id" bigserial NOT NULL,
  "CreatedAt" timestamptz NULL,
  "UpdatedAt" timestamptz NULL,
  "DeletedAt" timestamptz NULL,
  "Value" text NULL,
  "Date" timestamptz NULL,
  "Status" text NULL,
  "ErrMessage" text NULL,
  PRIMARY KEY ("Id")
);
-- Create "EncounterSimxLog" table
CREATE TABLE "public"."EncounterSimxLog" (
  "Id" bigserial NOT NULL,
  "CreatedAt" timestamptz NULL,
  "UpdatedAt" timestamptz NULL,
  "DeletedAt" timestamptz NULL,
  "Value" text NULL,
  "Date" timestamptz NULL,
  "Status" text NULL,
  "ErrMessage" text NULL,
  PRIMARY KEY ("Id")
);
