Schemas I think

This commit is contained in:
Kasper Rynning-Tønnesen
2020-01-17 13:36:06 +01:00
parent 6ce917f5d5
commit cdbd2accd0
4 changed files with 49 additions and 0 deletions

View File

@@ -0,0 +1,12 @@
const mongoose = require("mongoose");
const Schema = mongoose.Schema;
const Purchase = new Schema({
date: Date,
blue: Number,
red: Number,
yellow: Number,
green: Number
});
module.exports = Purchase;