import { Prop, Schema, SchemaFactory } from '@nestjs/mongoose';
import { Document } from 'mongoose';

export enum GameQueueTypes {
  additionalQuestion = 'additional_question',
  giveOutAPrize = 'give_out_a_prize',
  penalty = 'penalty',
  playExtraCard = 'play_extra_card',
  screpaAnounce = 'screpa',
  showresults = 'show_results',
  extra_points = 'extra_points',
  versus = 'versus',
}

export type GameQueueDocument = GameQueue & Document;

@Schema()
export class GameQueue {
  @Prop({ default: false })
  completed: boolean;
  @Prop()
  target: number;
  @Prop()
  type: GameQueueTypes;
  @Prop({ default: ''})
  text: string;
}

export const GameQueueSchema = SchemaFactory.createForClass(GameQueue);
