From e4026a4e9c1fea637fe3174387a758a63e5eda3b Mon Sep 17 00:00:00 2001 From: Giuliano Sacco Date: Fri, 4 Nov 2022 16:08:39 +0100 Subject: [PATCH] First Activity Model --- Project/models/Activity.model.js | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 Project/models/Activity.model.js diff --git a/Project/models/Activity.model.js b/Project/models/Activity.model.js new file mode 100644 index 0000000..07f0042 --- /dev/null +++ b/Project/models/Activity.model.js @@ -0,0 +1,28 @@ +const { Schema, model } = require("mongoose"); + +const actSchema = new Schema( + { + name: { + type: String, + }, + description: { + type: String, + }, + // type: { + // type: [String], + // }, + // location: { + // type: Location, + // }, + // dates: { + // type: Date, + // } + }, + { + timestamps: true, + } +); + +const Activity = model("Activity", actSchema); + +module.exports = Activity; \ No newline at end of file