# 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
    DRAFT = "draft"
    FUTURE = "future"
    PENDING = "pending"
    PRIVATE = "private"
    TRASH = "trash"


class Post(db.Model):
    id = db.Column(db.Integer, primary_key=True)
    parent_id = db.Column(db.Integer, db.ForeignKey('post.id'))
    parent = relationship("Post", remote_side=[id])

    author_id = db.Column(db.Integer, db.ForeignKey('author.id'))
    author = relationship("Author")
    status = db.Column(db.String(20), default=PostStatus.DRAFT)
    type = db.Column(db.String(20), default=PostType.POST)
    guid = db.Column(db.String(255))
    name = db.Column(db.String(200))
    title = db.Column(db.Text())
    excerpt = db.Column(db.Text())
    content = db.Column(db.Text())
    modified = db.Column(db.DateTime, default=datetime.datetime.utcnow)
    date = db.Column(db.DateTime, default=datetime.datetime.utcnow)
    template = db.Column(db.String(255))

    order = db.Column(db.Integer, default=0)
    markdown = db.Column(db.Boolean())
    mime_type = db.Column(db.String(100))
    tags = relationship("Tag",
                        secondary=tag_association_table,

# 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

    DRAFT = "draft"
    FUTURE = "future"
    PENDING = "pending"
    PRIVATE = "private"
    TRASH = "trash"


class Post(db.Model):
    id = db.Column(db.Integer, primary_key=True)
    parent_id = db.Column(db.Integer, db.ForeignKey('post.id'))
    parent = relationship("Post", remote_side=[id])

    author_id = db.Column(db.Integer, db.ForeignKey('author.id'))
    author = relationship("Author")
    status = db.Column(db.String(20), default=PostStatus.DRAFT)
    type = db.Column(db.String(20), default=PostType.POST)
    guid = db.Column(db.String(255))
    name = db.Column(db.String(200))
    title = db.Column(db.Text())
    excerpt = db.Column(db.Text())
    content = db.Column(db.Text())
    modified = db.Column(db.DateTime, default=datetime.datetime.utcnow)
    date = db.Column(db.DateTime, default=datetime.datetime.utcnow)
    template = db.Column(db.String(255))

    order = db.Column(db.Integer, default=0)
    markdown = db.Column(db.Boolean())
    mime_type = db.Column(db.String(100))
    tags = relationship("Tag",
                        secondary=tag_association_table,

                        backref="post")