models

package
v0.0.0-...-91ffa7f Latest Latest
Warning

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

Go to latest
Published: May 25, 2019 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Minventory

type Minventory struct {
	M_inventory_id string `gorm:"type:varchar(64);PRIMARY_KEY"`
	Name           string `gorm:"type:varchar(255);"`
}

inventory location

func (Minventory) TableName

func (Minventory) TableName() string

change table name

type MinventoryLine

type MinventoryLine struct {
	M_inventory_line_id int       `gorm:"AUTO_INCREMENT;PRIMARY_KEY"`
	M_inventory_id      string    `gorm:"type:varchar(64);"`
	M_product_id        string    `gorm:"type:varchar(64);"`
	Qty_count           int       `gorm:"type:int"`
	Last_update         time.Time `gorm:"type:datetime"`
}

information all product at inventory

func (MinventoryLine) TableName

func (MinventoryLine) TableName() string

type Mproduct

type Mproduct struct {
	M_product_id string `gorm:"type:varchar(64);PRIMARY_KEY"`
	Name         string `gorm:"type:varchar(255);"`
}

func (Mproduct) TableName

func (Mproduct) TableName() string

change table name

type Tinout

type Tinout struct {
	T_inout_id      int       `gorm:"AUTO_INCREMENT;PRIMARY_KEY"`
	Inout_type      string    `gorm:"type:varchar(3);"`
	M_inventory_id  string    `gorm:"type:varchar(64);"`
	M_product_id    string    `gorm:"type:varchar(64);"`
	T_order_line_id int       `gorm:"type:int"`
	Inout_qty       int       `gorm:"type:int"`
	Inout_date      time.Time `gorm:"type:datetime"`
	Description     string    `gorm:"type:varchar(255)"`
}

Inout product at inventory

func (Tinout) TableName

func (Tinout) TableName() string

type TransformedMinventory

type TransformedMinventory struct {
	M_inventory_id string `json:"m_inventory_id"`
	Name           string `json:"name"`
}

transformedInventory represents a formatted inventory location

type TransformedMproduct

type TransformedMproduct struct {
	M_product_id string `json:"sku"`
	Name         string `json:"product_name"`
}

transformedmProductrepresents a formatted product

Jump to

Keyboard shortcuts

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