15 lines
462 B
Go
15 lines
462 B
Go
package specialist
|
|
|
|
import (
|
|
ecore "simrs-vx/internal/domain/base-entities/core"
|
|
eu "simrs-vx/internal/domain/main-entities/unit"
|
|
)
|
|
|
|
type Specialist struct {
|
|
ecore.SmallMain // adjust this according to the needs
|
|
Code string `json:"code" gorm:"unique;size:10"`
|
|
Name string `json:"name" gorm:"size:50"`
|
|
Unit_Id *uint16 `json:"unit_id"`
|
|
Unit *eu.Unit `json:"unit,omitempty" gorm:"foreignKey:Unit_Id"`
|
|
}
|