This commit is contained in:
Suvodip
2025-01-31 13:16:19 +05:30
parent 7dda27e86e
commit c2ee394195
3 changed files with 32 additions and 11 deletions

View File

@@ -5,9 +5,9 @@ const gameSchema = new mongoose.Schema({
userId: { type: String, required: true },
gameID: { type: String, required: true },
gameTime: { type: String, required: false },
score: { type: String},
gameStar: { type: Number},
screenshotUrl: { type: String }, // Store the S3 URL of the screenshot
});
score: { type: String },
gameStar: { type: Number },
screenshotUrl: { type: String },
}, { collection: "gameData" });
module.exports = mongoose.model("Game", gameSchema);