Abheek Dhawan
3 years ago
2 changed files with 28 additions and 28 deletions
@ -1,22 +1,22 @@ |
|||||
const mongoose = require("mongoose"); |
const mongoose = require('mongoose'); |
||||
|
|
||||
const generatedRoundSchema = new mongoose.Schema({ |
const generatedRoundSchema = new mongoose.Schema({ |
||||
htmlContent: { |
htmlContent: { |
||||
type: String, |
type: String, |
||||
required: true, |
required: true, |
||||
}, |
}, |
||||
requestedBy: { |
requestedBy: { |
||||
type: String, |
type: String, |
||||
required: true, |
required: true, |
||||
}, |
}, |
||||
authorTag: { |
authorTag: { |
||||
type: String, |
type: String, |
||||
required: true, |
required: true, |
||||
}, |
}, |
||||
timestamp: { |
timestamp: { |
||||
type: String, |
type: String, |
||||
required: true, |
required: true, |
||||
} |
}, |
||||
}); |
}); |
||||
|
|
||||
module.exports = mongoose.model("GeneratedRounds", generatedRoundSchema); |
module.exports = mongoose.model('GeneratedRounds', generatedRoundSchema); |
||||
|
@ -1,14 +1,14 @@ |
|||||
const mongoose = require("mongoose"); |
const mongoose = require('mongoose'); |
||||
|
|
||||
const userScoreSchema = new mongoose.Schema({ |
const userScoreSchema = new mongoose.Schema({ |
||||
authorID: { |
authorID: { |
||||
type: String, |
type: String, |
||||
required: true, |
required: true, |
||||
}, |
}, |
||||
score: { |
score: { |
||||
type: Number, |
type: Number, |
||||
required: true, |
required: true, |
||||
}, |
}, |
||||
}); |
}); |
||||
|
|
||||
module.exports = mongoose.model("UserScore", userScoreSchema); |
module.exports = mongoose.model('UserScore', userScoreSchema); |
||||
|
Loading…
Reference in new issue