add basic cart

This commit is contained in:
2025-03-03 21:09:47 +01:00
parent 1dc10d61bc
commit 5e22be5074
9 changed files with 373 additions and 4 deletions

12
models/cart.go Normal file
View 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
}