This commit is contained in:
Adrian Thompson
2020-08-28 17:20:37 +02:00
parent 7b7895728b
commit aea808dae1
3 changed files with 18 additions and 4 deletions

13
schemas/RequestedWine.js Normal file
View File

@@ -0,0 +1,13 @@
const mongoose = require("mongoose");
const Schema = mongoose.Schema;
const RequestedWine = new Schema({
count: Number,
wineId: String,
wine: {
type: Schema.Types.ObjectId,
ref: "Wine"
}
});
module.exports = mongoose.model("RequestedWine", RequestedWine);