package nurse

import (
	ecore "simrs-vx/internal/domain/base-entities/core"
	ee "simrs-vx/internal/domain/main-entities/employee"
	ei "simrs-vx/internal/domain/main-entities/infra"
	eu "simrs-vx/internal/domain/main-entities/unit"
)

type Nurse struct {
	ecore.Main               // adjust this according to the needs
	Code        *string      `json:"code" gorm:"unique;size:20"`
	Employee_Id *uint        `json:"employee_id"`
	Employee    *ee.Employee `json:"employee,omitempty" gorm:"foreignKey:Employee_Id;references:Id"`
	IHS_Number  *string      `json:"ihs_number" gorm:"unique;size:20"`
	Unit_Code   *string      `json:"unit_code" gorm:"size:10"`
	Unit        *eu.Unit     `json:"unit,omitempty" gorm:"foreignKey:Unit_Code;references:Code"`
	Infra_Code  *string      `json:"infra_code" gorm:"size:10"`
	Infra       *ei.Infra    `json:"infra,omitempty" gorm:"foreignKey:Infra_Code;references:Code"`
}
