package itemprice

import (
	ecore "simrs-vx/internal/domain/base-entities/core"
	eic "simrs-vx/internal/domain/main-entities/insurance-company"
	ei "simrs-vx/internal/domain/main-entities/item"
)

type ItemPrice struct {
	ecore.Main                                  // adjust this according to the needs
	Item_Id               *uint                 `json:"item_id"`
	Item                  *ei.Item              `json:"item,omitempty" gorm:"foreignKey:Item_Id;references:Id"`
	Price                 float64               `json:"price"`
	InsuranceCompany_Code *string               `json:"insuranceCompany_code" gorm:"size:20"`
	InsuranceCompany      *eic.InsuranceCompany `json:"insuranceCompany,omitempty" gorm:"foreignKey:InsuranceCompany_Code;references:Code"`
}
