Initial commit
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
import mongoose from "mongoose";
|
||||
|
||||
const menuItemSchema = new mongoose.Schema(
|
||||
{
|
||||
name: { type: String, required: true, trim: true },
|
||||
category: { type: String, required: true, trim: true },
|
||||
description: { type: String, default: "", trim: true },
|
||||
basePrice: { type: Number, required: true, min: 0 }
|
||||
},
|
||||
{ timestamps: true }
|
||||
);
|
||||
|
||||
export const MenuItem = mongoose.model("MenuItem", menuItemSchema);
|
||||
Reference in New Issue
Block a user