Cart
Tables (4)
Cart (Untitled)
- user (Key) — Primary key — NOT NULL
- total_quantity (Field2) — positiveInt
- total_price (Field3) — positiveInt
- updated_at (Field4) — datatime
- id (Field) — int
- product (Key2) — Foreign key → CartItem.product — NOT NULL
- cart (Key22) — Foreign key → CartItem.cart — NOT NULL
CartItem (Untitled2)
- product (Key) — Primary key — NOT NULL
- cart (Key2) — Primary key — NOT NULL
- quantity (Field2)
Product (Untitled3)
- product (Key) — Foreign key → CartItem.product — NOT NULL
- cart (Key2) — Foreign key → CartItem.cart — NOT NULL
User (Untitled4)
- user (Key) — Foreign key → Cart.user — NOT NULL