Create product cards, display all on products page
This commit is contained in:
7
software/src/data/models/categoryModel.ts
Normal file
7
software/src/data/models/categoryModel.ts
Normal file
@@ -0,0 +1,7 @@
|
||||
export class CategoryModel {
|
||||
id: number = -1
|
||||
name: string = "All"
|
||||
icon: string = "mdi-all-inclusive"
|
||||
createdAt: string = ""
|
||||
updatedAt: string = ""
|
||||
}
|
||||
4
software/src/data/models/filterModel.ts
Normal file
4
software/src/data/models/filterModel.ts
Normal file
@@ -0,0 +1,4 @@
|
||||
export class FilterModel {
|
||||
icon: string
|
||||
name: string
|
||||
}
|
||||
11
software/src/data/models/productModel.ts
Normal file
11
software/src/data/models/productModel.ts
Normal file
@@ -0,0 +1,11 @@
|
||||
export class ProductModel {
|
||||
id: number = -1
|
||||
brand: string = ""
|
||||
name: string = ""
|
||||
categoryId: number = 0
|
||||
price: number = 0
|
||||
discount: number = 0
|
||||
rating: number = 1
|
||||
createdAt: string = ""
|
||||
updatedAt: string = ""
|
||||
}
|
||||
Reference in New Issue
Block a user