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

@Schema()
export class Versus {
  @Prop()
  text: string;
  @Prop({ default: false})
  completed: boolean;
  @Prop()
  description: string;
}

export type VersusDocument = Versus & Document;
export const VersusSchema = SchemaFactory.createForClass(Versus);