from extensions import db
from datetime import datetime


class Thought(db.Document):
    dys_thought = db.StringField(required=True)
    user = db.StringField(required=True)
    rational = db.StringField(required=False)
    distress = db.IntField(required=True)
    distortion = db.StringField(required=True)
    timestamp = db.StringField(required=True, default=datetime.now())

