19 lines
542 B
Go
19 lines
542 B
Go
package base
|
|
|
|
import (
|
|
ecore "simrs-vx/internal/domain/base-entities/core"
|
|
ed "simrs-vx/internal/domain/main-entities/doctor"
|
|
)
|
|
|
|
type Basic struct {
|
|
ecore.Main // adjust this according to the needs
|
|
Encounter_Id *uint `json:"encounter_id"`
|
|
Doctor_Id *uint `json:"doctor_id"`
|
|
Doctor *ed.Doctor `json:"doctor,omitempty" gorm:"foreignKey:Doctor_Id;references:Id"`
|
|
AllocatedVisitCount *int `json:"allocatedVisitCount"`
|
|
}
|
|
|
|
func (Basic) TableName() string {
|
|
return "Rehab"
|
|
}
|