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;
