package devicepackage

import (
	ecore "simrs-vx/internal/domain/base-entities/core"
	ed "simrs-vx/internal/domain/main-entities/device"
	edp "simrs-vx/internal/domain/main-entities/device-package"
)

type DevicePackageItem struct {
	ecore.Main
	DevicePackage_Code string             `json:"devicePackage_code" gorm:"size:20;not null"`
	DevicePackage      *edp.DevicePackage `json:"devicePackage" gorm:"foreignKey:DevicePackage_Code;references:Code"`
	Device_Code        string             `json:"code" gorm:"size:20;not null"`
	Device             *ed.Device         `json:"device" gorm:"foreignKey:Device_Code;references:Code"`
}
