saveGameScore2

This commit is contained in:
Kar
2024-11-22 17:11:51 +05:30
parent 8ecbe43e6e
commit abcb44ace7
2 changed files with 13 additions and 24 deletions

View File

@@ -4,9 +4,9 @@ const gameSchema = new mongoose.Schema({
gameName: { type: String, required: true },
userId: { type: String, required: true },
gameID: { type: String, required: true },
gameTime: { type: Number, required: true },
score: { type: Number, required: true },
gameStar: { type: Number, required: true },
gameTime: { type: String, required: false },
score: { type: String},
gameStar: { type: Number},
screenshotUrl: { type: String }, // Store the S3 URL of the screenshot
});