New basket table, add empty state on basket page, new BasketItemModel

This commit is contained in:
2024-09-09 19:47:46 +02:00
parent 6ff577ece1
commit 7ebc3c1c77
14 changed files with 190 additions and 68 deletions

View File

@@ -0,0 +1,10 @@
export class BasketItemModel {
productId: number = -1
brand: string = ""
name: string = ""
categoryName: string = ""
categoryIcon: string = ""
price: number = 0
discount: number = 0
quantity: number = 1
}

View File

@@ -0,0 +1,6 @@
export class OrderedItemModel {
orderId: number = -1
productId: number = -1
quantity: number = 1
totalPrice: number = 0
}

View File

@@ -7,7 +7,6 @@ export class ProductModel {
price: number = 0
discount: number = 0
rating: number = 1
nrOfArticles: number = 2
imageUrl: string = ""
createdAt: string = ""
updatedAt: string = ""