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

This commit is contained in:
dpurbosakti
2025-09-17 16:37:39 +07:00
4 changed files with 8 additions and 3 deletions
@@ -11,4 +11,5 @@ type MedicineMixItem struct {
Medicine_Id *uint `json:"medicine_id"`
Medicine *em.Medicine `json:"medicine,omitempty" gorm:"foreignKey:Medicine_Id;references:Id"`
Dose *uint8 `json:"dose"`
Note *string `json:"note" gom:"size:1024"`
}
@@ -8,6 +8,5 @@ import (
type MedicineMix struct {
ecore.Main // adjust this according to the needs
Name string `json:"name" gorm:"size:50"`
Note *string `json:"note" gom:"size:1024"`
MixItems []*emmi.MedicineMixItem `json:"mixItems" gorm:"foreignKey:MedicineMix_Id;references:Id"`
}