from myapp.ext import db


class News(db.Model):
    id = db.Column(
        db.Integer,
        primary_key=True,
        autoincrement=True
    )
    title = db.Column(
        db.String(30),
        index=True
    )
    content = db.Column(
        db.String(100),
        nullable=True
    )