<reponame>MNI1996/TIP-Jara-Ibarra-MasDespacioCerebrito
from bson import ObjectId
from mongoengine import StringField, EmbeddedDocument, ObjectIdField, BooleanField


class Answer(EmbeddedDocument):
    id = ObjectIdField(required=True, default=lambda: ObjectId(), primary_key=True)
    player_id = StringField()
    question_option_id = StringField()
    first = BooleanField(default=False)

from bson import ObjectId
from mongoengine import StringField, EmbeddedDocument, ObjectIdField, BooleanField


class Answer(EmbeddedDocument):
    id = ObjectIdField(required=True, default=lambda: ObjectId(), primary_key=True)
    player_id = StringField()
    question_option_id = StringField()
    first = BooleanField(default=False)