15 lines
482 B
Go
15 lines
482 B
Go
package deviceorderitem
|
|
|
|
import (
|
|
ecore "simrs-vx/internal/domain/base-entities/core"
|
|
ed "simrs-vx/internal/domain/main-entities/device"
|
|
)
|
|
|
|
type DeviceOrderItem struct {
|
|
ecore.Main // adjust this according to the needs
|
|
DeviceOrder_Id *uint `json:"deviceOrder_id"`
|
|
Device_Code *string `json:"device_code"`
|
|
Device *ed.Device `json:"device,omitempty" gorm:"foreignKey:Device_Code;references:Code"`
|
|
Quantity uint8 `json:"quantity"`
|
|
}
|