Merge branch 'migration' of github.com:dikstub-rssa/simrs-be into feat/crud

This commit is contained in:
dpurbosakti
2025-09-01 15:01:18 +07:00
3 changed files with 11 additions and 6 deletions
@@ -2,11 +2,13 @@ package mcusrc
import (
ecore "simrs-vx/internal/domain/base-entities/core"
emsc "simrs-vx/internal/domain/main-entities/mcu-src-category"
)
type McuSrc struct {
ecore.SmallMain // adjust this according to the needs
Code string `json:"code" gorm:"unique;size:20"`
Name string `json:"name" gorm:"size:50"`
CheckupCategory_Code *string `json:"checkupCategory_code" gorm:"size:20"`
ecore.SmallMain // adjust this according to the needs
Code string `json:"code" gorm:"unique;size:20"`
Name string `json:"name" gorm:"size:50"`
CheckupCategory_Code *string `json:"checkupCategory_code" gorm:"size:20"`
CheckupCategory *emsc.McuSrcCategory `json:"checkupCategory,omitempty" gorm:"foreignKey:CheckupCategory_Code;references:Code"`
}