add migration sql
This commit is contained in:
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"`
|
||||
|
||||
Reference in New Issue
Block a user