<filename>backend/models/SesionDoc.py
from mongoengine import *
import datetime
from werkzeug.security import generate_password_hash

DEFAULT_PASSWORD = generate_password_hash('<PASSWORD>@')


class SesionDoc(Document):
    email = EmailField(required=True, max_length=50, unique=True)
    password = StringField(default=<PASSWORD>)
    status = BooleanField(default=False)
    token = StringField(default='')
    create_date = DateField(default=datetime.datetime.now)
    update_date = DateField(default=datetime.datetime.now)

    meta = {'db_alias': 'db_base'}
