# Path: atomicpress/app.py
# DEFAULT_EXTENSIONS = (
#     "atomicpress.ext.importer",
#     "atomicpress.ext.exporter",
#     "atomicpress.ext.ftp",
#     "atomicpress.ext.s3",
#     "atomicpress.ext.prefill",
# )
# DEFAULT_MARKDOWN_EXTENSIONS = [
#     "markdown.extensions.tables",
#     "markdown.extensions.nl2br",
#     "markdown.extensions.fenced_code",
#     "markdown.extensions.headerid"
# ]
# def setup(init_run=False):
# def activate_extensions():
# def activate_theme(theme):
# def run():


import datetime
from .app import db
from sqlalchemy.orm import relationship




tag_association_table = db.Table(
    'tag_association', db.Model.metadata,
    db.Column('left_id', db.Integer, db.ForeignKey('post.id')),
    db.Column('right_id', db.Integer, db.ForeignKey('tag.id'))
)

category_association_table = db.Table(
    'category_association', db.Model.metadata,
    db.Column('left_id', db.Integer, db.ForeignKey('post.id')),
    db.Column('right_id', db.Integer, db.ForeignKey('category.id'))
)


class Blog(db.Model):
    id = db.Column(db.Integer, primary_key=True)
    title = db.Column(db.Text())
    tagline = db.Column(db.Text())
    language = db.Column(db.String(5), default="en-US")

    def __unicode__(self):
        return self.title


class Author(db.Model):
    id = db.Column(db.Integer, primary_key=True)
    login = db.Column(db.String(60))

# Path: atomicpress/app.py
# DEFAULT_EXTENSIONS = (
#     "atomicpress.ext.importer",
#     "atomicpress.ext.exporter",
#     "atomicpress.ext.ftp",
#     "atomicpress.ext.s3",
#     "atomicpress.ext.prefill",
# )
# DEFAULT_MARKDOWN_EXTENSIONS = [
#     "markdown.extensions.tables",
#     "markdown.extensions.nl2br",
#     "markdown.extensions.fenced_code",
#     "markdown.extensions.headerid"
# ]
# def setup(init_run=False):
# def activate_extensions():
# def activate_theme(theme):
# def run():


# Path: atomicpress/models.py
import datetime
from .app import db
from sqlalchemy.orm import relationship





tag_association_table = db.Table(
    'tag_association', db.Model.metadata,
    db.Column('left_id', db.Integer, db.ForeignKey('post.id')),
    db.Column('right_id', db.Integer, db.ForeignKey('tag.id'))
)

category_association_table = db.Table(
    'category_association', db.Model.metadata,
    db.Column('left_id', db.Integer, db.ForeignKey('post.id')),
    db.Column('right_id', db.Integer, db.ForeignKey('category.id'))
)


class Blog(db.Model):
    id = db.Column(db.Integer, primary_key=True)
    title = db.Column(db.Text())
    tagline = db.Column(db.Text())
    language = db.Column(db.String(5), default="en-US")

    def __unicode__(self):
        return self.title


class Author(db.Model):
    id = db.Column(db.Integer, primary_key=True)
    login = db.Column(db.String(60))

    nicename = db.Column(db.String(50))