feat: colum stock in product
This commit is contained in:
@@ -21,6 +21,7 @@ type Product struct {
|
||||
DeletedAt *time.Time `gorm:"column:deleted_at"`
|
||||
CreatedBy int64 `gorm:"type:int;column:created_by"`
|
||||
UpdatedBy int64 `gorm:"type:int;column:updated_by"`
|
||||
Stock int64 `gorm:"type:int;column:stock"`
|
||||
}
|
||||
|
||||
func (Product) TableName() string {
|
||||
@@ -75,6 +76,7 @@ func (e *ProductDB) ToProduct() *Product {
|
||||
SiteID: e.SiteID,
|
||||
IsSeasonTicket: e.IsSeasonTicket,
|
||||
IsWeekendTicket: e.IsWeekendTicket,
|
||||
Stock: e.Stock,
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user