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({ |
|||
htmlContent: { |
|||
type: String, |
|||
required: true, |
|||
}, |
|||
requestedBy: { |
|||
type: String, |
|||
required: true, |
|||
}, |
|||
authorTag: { |
|||
type: String, |
|||
required: true, |
|||
}, |
|||
timestamp: { |
|||
type: String, |
|||
required: true, |
|||
} |
|||
htmlContent: { |
|||
type: String, |
|||
required: true, |
|||
}, |
|||
requestedBy: { |
|||
type: String, |
|||
required: true, |
|||
}, |
|||
authorTag: { |
|||
type: String, |
|||
required: true, |
|||
}, |
|||
timestamp: { |
|||
type: String, |
|||
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({ |
|||
authorID: { |
|||
type: String, |
|||
required: true, |
|||
}, |
|||
score: { |
|||
type: Number, |
|||
required: true, |
|||
}, |
|||
authorID: { |
|||
type: String, |
|||
required: true, |
|||
}, |
|||
score: { |
|||
type: Number, |
|||
required: true, |
|||
}, |
|||
}); |
|||
|
|||
module.exports = mongoose.model("UserScore", userScoreSchema); |
|||
module.exports = mongoose.model('UserScore', userScoreSchema); |
|||
|
Loading…
Reference in new issue