Table: CartItems
Name: CartItems Comment: Lưu các sản phẩm được thêm vào giỏ hàng
Primary Key
Columns: Id Cluster: false
Indexes[]
Columns | Cluster | Unique |
| id | | true |
Foreign Keys[]
Columns | Ref Table | Ref Columns | Options |
Relationships
Columns | Ref Table | Ref Columns | Options |
| productId | Products | Id | |
Columns[]
Label | Name | Type | Nullable | Default | Comment | Unique |
| Id | id | int auto_increment | false | | | false |
| Product | productId | int | false | | | false |
| Variant Value | variantValueId | int | true | null | | false |
| Cart | cartId | int | false | | | false |
| Quantity | quantity | int | false | | | true |
| Variant | variantIds | varchar | true | null | | false |
| VAT | vat | double | false | 0 | | false |
| Created At | createdAt | datetime | true | null | | false |
| Updated At | updatedAt | datetime | true | null | | false |
| Deleted | deleted | tinyint(1) | true | 0 | | false |