from .. import db
import datetime

class EventsModel(db.Model):
    """
    [summary]

    Args:
        EventsMixin ([type]): [description]
        db ([type]): [description]
    """
    __tablename__ = "events"

    id = db.Column(db.Integer, primary_key=True)
    #image_file = db.Column(db.String(250))
    created_at = db.Column(db.DateTime(timezone=False),
                           nullable=False, default=datetime.datetime.now())
    contests_challenges_id = db.Column(db.Integer, db.ForeignKey(
        'contests_challenges.id'), nullable=False)
    event = db.Column(db.Text, nullable=True)
    event_text = db.Column(db.Text, nullable=True)
    user_id = db.Column(db.Integer, db.ForeignKey(
        'users.id'), nullable=False)
