22 lines
882 B
Go
22 lines
882 B
Go
package item
|
|
|
|
import (
|
|
ecore "simrs-vx/internal/domain/base-entities/core"
|
|
eu "simrs-vx/internal/domain/main-entities/uom"
|
|
|
|
ero "simrs-vx/internal/domain/references/organization"
|
|
)
|
|
|
|
type Item struct {
|
|
ecore.Main // adjust this according to the needs
|
|
Code string `json:"code" gorm:"unique;size:50"`
|
|
Name string `json:"name" gorm:"size:100"`
|
|
ItemGroup_Code ero.ItemGroupCode `json:"itemGroup_code" gorm:"size:15"`
|
|
Uom_Code *string `json:"uom_code" gorm:"size:10"`
|
|
Uom *eu.Uom `json:"uom,omitempty" gorm:"foreignKey:Uom_Code;references:Code"`
|
|
Infra_Code *string `json:"infra_code" gorm:"size:10"`
|
|
Stock *int `json:"stock"`
|
|
BuyingPrice *float64 `json:"buyingPrice"`
|
|
SellingPrice *float64 `json:"settlingPrice"`
|
|
}
|