Initial commit: Своя Игра - multiplayer quiz game

This commit is contained in:
Cosmo
2026-03-21 05:00:06 +00:00
commit 1d46ad8b06
80 changed files with 9215 additions and 0 deletions

View File

@@ -0,0 +1,33 @@
import mongoose from 'mongoose';
const questionSchema = new mongoose.Schema({
category: {
type: String,
required: true
},
points: {
type: Number,
required: true,
enum: [100, 200, 300, 400, 500, 200, 400, 600, 800, 1000]
},
question: {
type: String,
required: true
},
answer: {
type: String,
required: true
},
round: {
type: Number,
required: true,
enum: [1, 2],
default: 1
}
}, {
timestamps: true
});
const Question = mongoose.model('Question', questionSchema);
export default Question;