add basic cart
This commit is contained in:
12
models/cart.go
Normal file
12
models/cart.go
Normal file
@@ -0,0 +1,12 @@
|
||||
package models
|
||||
|
||||
import (
|
||||
"gorm.io/gorm"
|
||||
)
|
||||
|
||||
type CartItem struct {
|
||||
gorm.Model
|
||||
SessionId string `gorm:"index"`
|
||||
ShopItemId int `gorm:"index"`
|
||||
Quantity int
|
||||
}
|
||||
Reference in New Issue
Block a user