Files
Munawwirul Jamal 87baa898f6 dev: hotfixes
+ moved cmd/simgos-sync* to cmd/snync*
+ adjust Dockerfiles
2025-12-12 10:51:37 +07:00

37 lines
1.0 KiB
SQL

-- Create "InstallationLink" table
CREATE TABLE "public"."InstallationLink" (
"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_InstallationLink_Simgos_Id" UNIQUE ("Simgos_Id"),
CONSTRAINT "uni_InstallationLink_Simx_Id" UNIQUE ("Simx_Id")
);
-- Create "InstallationSimgosLog" table
CREATE TABLE "public"."InstallationSimgosLog" (
"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 "InstallationSimxLog" table
CREATE TABLE "public"."InstallationSimxLog" (
"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")
);