corrections in stockrequest table
This commit is contained in:
@@ -470,3 +470,12 @@ type SalesSummaryResponse struct {
|
||||
ChartData []SalesSummaryChartData `json:"chartData"`
|
||||
TopLocations []SalesSummaryTopLocation `json:"topLocations"`
|
||||
}
|
||||
|
||||
type TimeSeriesData struct {
|
||||
Label string `json:"label"`
|
||||
Orders int `json:"orders"`
|
||||
Revenue float64 `json:"revenue"`
|
||||
Cancelled int `json:"cancelled"`
|
||||
Delivered int `json:"delivered"`
|
||||
Activeskus int `json:"activeskus"`
|
||||
}
|
||||
|
||||
@@ -5,10 +5,12 @@ import "time"
|
||||
type StockRequest struct {
|
||||
Requestid int `json:"requestid" gorm:"primaryKey;autoIncrement;column:requestid"`
|
||||
Tenantid int `json:"tenantid" gorm:"column:tenantid"`
|
||||
Tenantname string `json:"tenantname" gorm:"column:tenantname"`
|
||||
Locationid int `json:"locationid" gorm:"column:locationid"`
|
||||
Locationname string `json:"locationname" gorm:"column:locationname"`
|
||||
Productid int `json:"productid" gorm:"column:productid"`
|
||||
Productname string `json:"productname" gorm:"->"`
|
||||
Productimage string `json:"productimage" gorm:"->"`
|
||||
Productname string `json:"productname" gorm:"column:productname"`
|
||||
Productimage string `json:"productimage" gorm:"column:productimage"`
|
||||
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"`
|
||||
|
||||
Reference in New Issue
Block a user