-- Create "UnitLink" table
CREATE TABLE "public"."UnitLink" (
  "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_UnitLink_Simgos_Id" UNIQUE ("Simgos_Id"),
  CONSTRAINT "uni_UnitLink_Simx_Id" UNIQUE ("Simx_Id")
);
-- Create "UnitSimgosLog" table
CREATE TABLE "public"."UnitSimgosLog" (
  "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 "UnitSimxLog" table
CREATE TABLE "public"."UnitSimxLog" (
  "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")
);
