package medicationitem

import (
	"time"

	ecore "simrs-vx/internal/domain/base-entities/core"
	emi "simrs-vx/internal/domain/main-entities/medication-item"
	en "simrs-vx/internal/domain/main-entities/nurse"
)

type MedicationItemDist struct {
	ecore.Main                            // adjust this according to the needs
	MedicationItem_Id *uint               `json:"medicationItem_id"`
	MedicationItem    *emi.MedicationItem `json:"medicationItem,omitempty" gorm:"foreignKey:MedicationItem_Id;references:Id"`
	DateTime          *time.Time          `json:"dateTime"`
	Remain            float64             `json:"remain"`
	Nurse_Code        *string             `json:"nurse_code"`
	Nurse             *en.Nurse           `json:"nurse,omitempty" gorm:"foreignKey:Nurse_Code;references:Code"`
}
