Adds cart service skeleton

This commit is contained in:
Sebastian Rindom
2020-01-28 16:24:47 +01:00
parent 8c0f6107a0
commit b16f32f63f

View File

@@ -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