Merge pull request #213 from dikstub-rssa/feat/sync-seeder

Feat/sync seeder
This commit is contained in:
vaniliacahya
2025-12-12 10:29:32 +07:00
committed by GitHub
2 changed files with 5 additions and 5 deletions
@@ -7,10 +7,10 @@ import (
) )
type CreateDto struct { type CreateDto struct {
Id *uint `json:"id"` Id *uint `json:"id"`
Installation_Code string `json:"installation_code"` Installation_Code *string `json:"installation_code"`
Code string `json:"code" validate:"maxLength=10"` Code string `json:"code" validate:"maxLength=10"`
Name string `json:"name" validate:"maxLength=50"` Name string `json:"name" validate:"maxLength=50"`
} }
type ReadListDto struct { type ReadListDto struct {
@@ -11,7 +11,7 @@ type Specialist struct {
ecore.SmallMain // adjust this according to the needs ecore.SmallMain // adjust this according to the needs
Code string `json:"code" gorm:"unique;size:20"` Code string `json:"code" gorm:"unique;size:20"`
Name string `json:"name" gorm:"size:50"` Name string `json:"name" gorm:"size:50"`
Installation_Code string `json:"installation_code" gorm:"size:20"` Installation_Code *string `json:"installation_code" gorm:"size:20"`
Installation *ei.Installation `json:"installation,omitempty" gorm:"foreignKey:Installation_Code;references:Code"` Installation *ei.Installation `json:"installation,omitempty" gorm:"foreignKey:Installation_Code;references:Code"`
SpecialistPositions []eub.Basic `json:"specialistPositions,omitempty" gorm:"foreignKey:Specialist_Code;references:Code"` SpecialistPositions []eub.Basic `json:"specialistPositions,omitempty" gorm:"foreignKey:Specialist_Code;references:Code"`
Subspecialists []essb.Basic `json:"subspecialists,omitempty" gorm:"foreignKey:Specialist_Code;references:Code"` Subspecialists []essb.Basic `json:"subspecialists,omitempty" gorm:"foreignKey:Specialist_Code;references:Code"`