Files
simrsx-be/internal/domain/main-entities/item-price/entity.go
T

17 lines
766 B
Go

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 *uint16 `json:"insuranceCompany_code" gorm:"size:20"`
InsuranceCompany *eic.InsuranceCompany `json:"insuranceCompany,omitempty" gorm:"foreignKey:InsuranceCompany_Code;references:Code"`
}