14 lines
447 B
JavaScript
14 lines
447 B
JavaScript
const mongoose = require("mongoose");
|
|
|
|
const gameSchema = new mongoose.Schema({
|
|
gameName: { type: String, required: true },
|
|
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
|
|
});
|
|
|
|
module.exports = mongoose.model("Game", gameSchema);
|