28 lines
688 B
TypeScript
28 lines
688 B
TypeScript
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',
|
|
}
|
|
|
|
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);
|