Adds cart service skeleton
This commit is contained in:
@@ -1,20 +0,0 @@
|
||||
/*******************************************************************************
|
||||
* models/cart-item.js
|
||||
*
|
||||
******************************************************************************/
|
||||
import { BaseModel } from "../interfaces"
|
||||
|
||||
class CartItemModel extends BaseModel {
|
||||
static modelName = "CartItem"
|
||||
static schema = {
|
||||
type: {
|
||||
type: String,
|
||||
enum: ["product", "bundle"],
|
||||
default: "product",
|
||||
required: true,
|
||||
},
|
||||
quantity: { type: Number, min: 0, required: true },
|
||||
}
|
||||
}
|
||||
|
||||
export default CartItemModel
|
||||
Reference in New Issue
Block a user