Browse Source

Fix formatting of models

pull/25/head
Abheek Dhawan 3 years ago
parent
commit
f3ae5047f4
Signed by: abheekd GPG Key ID: 7BE81B8C14475B67
  1. 36
      models/generateRound.js
  2. 20
      models/userScore.js

36
models/generateRound.js

@ -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);

20
models/userScore.js

@ -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…
Cancel
Save