add migration sql

This commit is contained in:
vanilia
2025-10-21 11:11:49 +07:00
parent 4b1a359b0e
commit 591c49d661
5 changed files with 84 additions and 2 deletions

No files matched your search

@@ -0,0 +1,13 @@
package death_cause
import (
"simrs-vx/internal/domain/base-entities/core"
ee "simrs-vx/internal/domain/main-entities/encounter"
)
type DeathCause struct {
core.Main
Encounter_Id *uint `json:"encounter_id" gorm:"not null"`
Encounter *ee.Encounter `json:"encounter,omitempty" gorm:"foreignKey:Encounter_Id;references:Id"`
Value *string `json:"value"`
}
@@ -8,7 +8,7 @@ import (
common "simrs-vx/internal/domain/references/common"
)
type TherapyEntity struct {
type TherapyProtocol struct {
ecore.Main
Encounter_Id *uint `json:"encounter_id" gorm:"not null"`
Encounter *ee.Encounter `json:"encounter,omitempty" gorm:"foreignKey:Encounter_Id;references:Id"`