import os
import datetime

from app import app, db


class Hint(db.Model):
    __tablename__ = 'hints'
    id = db.Column(db.Integer, primary_key=True)
    description = db.Column(db.Text)
    is_open = db.Column(db.Boolean)
    problem_id = db.Column(db.Integer, db.ForeignKey('problems.id'))

    def __repr__(self):
        return '<Hint %r>' % (self.description)

    def __init__(self, description='', is_open=False, problem=None):
        self.description = description
        self.is_open = is_open
        self.problem = problem
[((9, 9, 9, 48), 'app.db.Column', 'db.Column', (), '', False, 'from app import app, db\n'), ((10, 18, 10, 36), 'app.db.Column', 'db.Column', ({(10, 28, 10, 35): 'db.Text'}, {}), '(db.Text)', False, 'from app import app, db\n'), ((11, 14, 11, 35), 'app.db.Column', 'db.Column', ({(11, 24, 11, 34): 'db.Boolean'}, {}), '(db.Boolean)', False, 'from app import app, db\n'), ((12, 39, 12, 67), 'app.db.ForeignKey', 'db.ForeignKey', ({(12, 53, 12, 66): '"""problems.id"""'}, {}), "('problems.id')", False, 'from app import app, db\n')]