package
Version:
v0.0.0-...-aca1c39
Opens a new window with list of versions in this module.
Published: Jan 6, 2024
License: MIT
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type Inventory struct {
Id int64 `json:"id" gorm:"primaryKey"`
Name string `json:"name"`
Description string `json:"description"`
CreatedAt time.Time `json:"createdAt"`
UpdatedAt time.Time `json:"updatedAt"`
ProductItems []ProductItem
}
type ProductItem struct {
Id uuid.UUID `json:"id" gorm:"primaryKey"`
ProductId uuid.UUID `json:"productId"`
Count int32 `json:"count"`
CreatedAt time.Time `json:"createdAt"`
UpdatedAt time.Time `json:"updatedAt"`
InventoryId int64
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.