from app import db


class Article(db.Document):
    title = db.StringField(required=True)

    def __repr__(self):
        return str(self)

    def __str__(self):
        return 'ID: {} Title: {}'.format(self.id, self.title)

define article document