19 lines
894 B
Go
19 lines
894 B
Go
package subspecialist_position
|
|
|
|
import (
|
|
ecore "simrs-vx/internal/domain/base-entities/core"
|
|
ee "simrs-vx/internal/domain/main-entities/employee"
|
|
es "simrs-vx/internal/domain/main-entities/subspecialist"
|
|
)
|
|
|
|
type SubspecialistPosition struct {
|
|
ecore.SmallMain // adjust this according to the needs
|
|
Subspecialist_Id *uint16 `json:"subspecialist_id" gorm:"not null"`
|
|
Subspecialist *es.Subspecialist `json:"subspecialist,omitempty" gorm:"foreignKey:Subspecialist_Id;references:Id"`
|
|
Code string `json:"code" gorm:"unique;size:10;not null"`
|
|
Name string `json:"name" gorm:"size:30;not null"`
|
|
HeadStatus bool `json:"headStatus"`
|
|
Employee_Id *uint `json:"employee_id"`
|
|
Employee *ee.Employee `json:"employee,omitempty" gorm:"foreignKey:Employee_Id;references:Id"`
|
|
}
|