inventory

package
v0.0.0-...-176ebac Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 5, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type StoreIn

type StoreIn struct {
	gorm.Model
	ID           string         `gorm:"primaryKey;autoIncrement;"`
	UserID       string         `gorm:"type:uuid"`
	StoreInItems []*StoreInItem `gorm:"foreignKey:StoreInID"`
}

func (*StoreIn) Create

func (m *StoreIn) Create(ctx context.Context) error

type StoreInItem

type StoreInItem struct {
	gorm.Model
	ID          uint `gorm:"primarykey;autoIncrement"`
	Index       int
	StoreInID   string `gorm:"type:uuid"`
	CommodityID string `gorm:"type:uuid"`
	Price       int
	Quantity    float64
}

func (*StoreInItem) Validate

func (m *StoreInItem) Validate() error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL