16 lines
659 B
Go
16 lines
659 B
Go
package doctor
|
|
|
|
import (
|
|
ecore "simrs-vx/internal/domain/base-entities/core"
|
|
ee "simrs-vx/internal/domain/main-entities/employee"
|
|
ei "simrs-vx/internal/domain/main-entities/installation"
|
|
)
|
|
|
|
type Registration struct {
|
|
ecore.Main // adjust this according to the needs
|
|
Employee_Id uint `json:"employee_id"`
|
|
Employee *ee.Employee `json:"employee,omitempty" gorm:"foreignKey:Employee_Id;references:Id"`
|
|
Installation_Code string `json:"installation_code" gorm:"size:20"`
|
|
Installation *ei.Installation `json:"installation,omitempty" gorm:"foreignKey:Installation_Code;references:Code"`
|
|
}
|