@@ -0,0 +1,30 @@
+import mongoose from "mongoose";
+
+const recipeSchema new mongoose.Schema({
+ ingredients: [{
+ user: {
+ type: mongoose.Schema.Types.ObjectId,
+ ref: "users"
+ },
+ name: {
+ type: String,
+ required: true
+ quantity: {
+ type: Number,
+ units: {
+ item: {
+ }
+ }],
+ steps: [String],
+ notes: String
+});
+export default mongoose.model("recipes", recipeSchema);