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({
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);

20
models/userScore.js

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