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

14
api/schemas/Attendee.js Normal file
View File

@@ -0,0 +1,14 @@
const mongoose = require("mongoose");
const Schema = mongoose.Schema;
const Attendee = new Schema({
name: String,
phoneNumber: String,
green: Number,
blue: Number,
red: Number,
yellow: Number,
winner: Boolean
});
module.exports = mongoose.model("Attendee", Attendee);