package practiceschedule

import (
	ecore "simrs-vx/internal/domain/base-entities/core"
	ed "simrs-vx/internal/domain/main-entities/doctor"
	eu "simrs-vx/internal/domain/main-entities/unit"
	erc "simrs-vx/internal/domain/references/common"
)

type PracticeSchedule struct {
	ecore.Main               // adjust this according to the needs
	Doctor_Code *string      `json:"doctor_code"`
	Doctor      *ed.Doctor   `json:"doctor,omitempty" gorm:"foreignKey:Doctor_Code;references:Code"`
	Unit_Code   *string      `json:"unit_code"`
	Unit        *eu.Unit     `json:"unit,omitempty" gorm:"foreignKey:Unit_Code;references:Code"`
	Day_Code    *erc.DayCode `json:"day_code"`
	StartTime   *string      `json:"startTime" gorm:"size:5"`
	EndTime     *string      `json:"endTime" gorm:"size:5"`
}
