Archived
style and backend models fix
This commit is contained in:
1 parent
bc7cbfe11c
commit
1c768bbdea
6 files changed
+77
-22060
No files matched your search
@@ -2,10 +2,30 @@ const mongoose = require("mongoose");
|
||||
const schema = mongoose.Schema;
|
||||
|
||||
const eventSchema = new schema({
|
||||
mess: {
|
||||
name: {
|
||||
type: String,
|
||||
required: false,
|
||||
}
|
||||
},
|
||||
type: {
|
||||
type: Number,
|
||||
required: false,
|
||||
},
|
||||
date: {
|
||||
type: String,
|
||||
required: false,
|
||||
},
|
||||
time: {
|
||||
type: Number,
|
||||
required: false,
|
||||
},
|
||||
lat: {
|
||||
type: Number,
|
||||
required: false,
|
||||
},
|
||||
lon: {
|
||||
type: Number,
|
||||
required: false,
|
||||
},
|
||||
});
|
||||
|
||||
module.exports = mongoose.model("events", eventSchema);
|
||||
module.exports = mongoose.model("events", eventSchema);
|
||||
Reference in new issue
Block a user