add sync unit
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
package unit
|
||||
|
||||
type MPloy struct {
|
||||
Kode uint `json:"kode" gorm:"primaryKey;autoIncrement;column:kode"`
|
||||
Nama string `json:"nama" gorm:"column:nama"`
|
||||
Jenispoly uint `json:"jenispoly" gorm:"column:jenispoly"`
|
||||
}
|
||||
|
||||
func (MPloy) TableName() string {
|
||||
return "m_poly"
|
||||
}
|
||||
@@ -0,0 +1,29 @@
|
||||
package unit
|
||||
|
||||
import (
|
||||
ecore "simrs-vx/internal/domain/base-entities/core"
|
||||
erc "simrs-vx/internal/domain/references/common"
|
||||
"time"
|
||||
)
|
||||
|
||||
type UnitLink struct {
|
||||
ecore.Main
|
||||
Simx_Id uint `json:"simx_id" gorm:"unique"`
|
||||
Simgos_Id uint `json:"simgos_id" gorm:"unique"`
|
||||
}
|
||||
|
||||
type UnitSimxLog struct {
|
||||
ecore.Main
|
||||
Value *string `json:"value"`
|
||||
Date *time.Time `json:"date"`
|
||||
Status erc.ProcessStatusCode `json:"status"`
|
||||
ErrMessage *string `json:"errMessage"`
|
||||
}
|
||||
|
||||
type UnitSimgosLog struct {
|
||||
ecore.Main
|
||||
Value *string `json:"value"`
|
||||
Date *time.Time `json:"date"`
|
||||
Status erc.ProcessStatusCode `json:"status"`
|
||||
ErrMessage *string `json:"errMessage"`
|
||||
}
|
||||
Reference in New Issue
Block a user