Merge branch 'migration-vanilia' of https://github.com/dikstub-rssa/simrs-be into feat/sync-infra
This commit is contained in:
@@ -0,0 +1,36 @@
|
||||
-- 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")
|
||||
);
|
||||
@@ -0,0 +1,2 @@
|
||||
h1:OaRZyFJMii/8wQ0XLWEpF9MIL8IXblx3IYvB7LN2XQ4=
|
||||
20251113035508.sql h1:p/FKefphuiBjEND87ChQLS/lcZcnvn0aT5tRV43Dn5o=
|
||||
@@ -8,8 +8,8 @@ import (
|
||||
|
||||
type InstallationLink struct {
|
||||
ecore.Main
|
||||
Simx_Id string `json:"simx_id" gorm:"unique"`
|
||||
Simgos_Id uint64 `json:"simgos_id" gorm:"unique"`
|
||||
Simx_Id uint `json:"simx_id" gorm:"unique"`
|
||||
Simgos_Id uint `json:"simgos_id" gorm:"unique"`
|
||||
}
|
||||
|
||||
type InstallationSimxLog struct {
|
||||
|
||||
@@ -1,9 +1,14 @@
|
||||
package migration
|
||||
|
||||
import (
|
||||
/************** Source ***************/
|
||||
installation "simrs-vx/internal/domain/sync-entities/installation"
|
||||
)
|
||||
|
||||
func getSimgosSyncEntities() []any {
|
||||
return []any{
|
||||
//&installation.InstallationLink{},
|
||||
//&installation.InstallationSimxLog{},
|
||||
//&installation.InstallationSimgosLog{},
|
||||
&installation.InstallationLink{},
|
||||
&installation.InstallationSimxLog{},
|
||||
&installation.InstallationSimgosLog{},
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user