mongodb implementation

This commit is contained in:
Maciej Kotowski committed 2021-10-01 21:19:02 +02:00
1 parent 3e62017db9
commit 90094b9594
5 files changed
+139 -44

No files matched your search

+11
View File
@@ -0,0 +1,11 @@
const mongoose = require("mongoose");
const schema = mongoose.Schema;
const eventSchema = new schema({
mess: {
type: String,
required: false,
}
});
module.exports = mongoose.model("events", eventSchema);