Moved middleware/ & schemas/ into api/.

This commit is contained in:
2020-11-24 23:34:13 +01:00
parent 036f6ea499
commit 236c07f3d0
13 changed files with 0 additions and 0 deletions

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);