package
Version:
v0.0.0-...-6fa2d18
Opens a new window with list of versions in this module.
Published: Apr 14, 2021
License: MIT
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type Product struct {
gorm.Model
Code string `json:"code"`
Price uint `json:"price"`
Warehouses []*Warehouse `gorm:"many2many:inventory;" json:"warehouses"`
}
type Warehouse struct {
gorm.Model
Address string `json:"address"`
Workers []Worker `json:"workers"`
Products []*Product `gorm:"many2many:inventory;" json:"products"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.