stock request table created
This commit is contained in:
20
models/stockrequest.go
Normal file
20
models/stockrequest.go
Normal file
@@ -0,0 +1,20 @@
|
||||
package models
|
||||
|
||||
import "time"
|
||||
|
||||
type StockRequest struct {
|
||||
Requestid int `json:"requestid" gorm:"primaryKey;autoIncrement;column:requestid"`
|
||||
Tenantid int `json:"tenantid" gorm:"column:tenantid"`
|
||||
Locationid int `json:"locationid" gorm:"column:locationid"`
|
||||
Productid int `json:"productid" gorm:"column:productid"`
|
||||
Productname string `json:"productname" gorm:"->"`
|
||||
Productimage string `json:"productimage" gorm:"->"`
|
||||
Qty int `json:"qty" gorm:"column:qty"`
|
||||
Status string `json:"status" gorm:"column:status;default:Pending"`
|
||||
Created time.Time `json:"created" gorm:"column:created;autoCreateTime"`
|
||||
Updated time.Time `json:"updated" gorm:"column:updated;autoUpdateTime"`
|
||||
}
|
||||
|
||||
func (StockRequest) TableName() string {
|
||||
return "stockrequests"
|
||||
}
|
||||
Reference in New Issue
Block a user