"""Added Purchase Tracker Model

Revision ID: 8d59ef0f837b
Revises: 4541d084c985
Create Date: 2021-11-26 14:01:15.709000

"""
from alembic import op
import sqlalchemy as sa


# revision identifiers, used by Alembic.
revision = '8d59ef0f837b'
down_revision = '4541d084c985'
branch_labels = None
depends_on = None


def upgrade():
    # ### commands auto generated by Alembic - please adjust! ###
    op.create_table('tracker_accounts',
    sa.Column('id', sa.Integer(), nullable=False),
    sa.Column('subject', sa.String(length=255), nullable=False),
    sa.Column('section', sa.String(length=255), nullable=False),
    sa.Column('number', sa.String(length=255), nullable=False),
    sa.Column('creation_date', sa.DateTime(timezone=True), nullable=False),
    sa.Column('staff_id', sa.Integer(), nullable=False),
    sa.Column('desc', sa.String(), nullable=True),
    sa.Column('comment', sa.String(), nullable=True),
    sa.ForeignKeyConstraint(['staff_id'], ['staff_account.id'], ),
    sa.PrimaryKeyConstraint('id')
    )
    op.create_table('tracker_statuses',
    sa.Column('id', sa.Integer(), nullable=False),
    sa.Column('status', sa.String(), nullable=True),
    sa.Column('creation_date', sa.DateTime(timezone=True), nullable=False),
    sa.Column('status_date', sa.DateTime(timezone=True), nullable=False),
    sa.Column('staff_id', sa.Integer(), nullable=False),
    sa.Column('comment', sa.String(), nullable=True),
    sa.ForeignKeyConstraint(['staff_id'], ['staff_account.id'], ),
    sa.PrimaryKeyConstraint('id')
    )
    # ### end Alembic commands ###


def downgrade():
    # ### commands auto generated by Alembic - please adjust! ###
    op.drop_table('tracker_statuses')
    op.drop_table('tracker_accounts')
    # ### end Alembic commands ###

7930fcfbeb888cb5412405fb07ca0bfbbfe50ca5
<mask token>


def upgrade():
    op.create_table('tracker_accounts', sa.Column('id', sa.Integer(),
        nullable=False), sa.Column('subject', sa.String(length=255),
        nullable=False), sa.Column('section', sa.String(length=255),
        nullable=False), sa.Column('number', sa.String(length=255),
        nullable=False), sa.Column('creation_date', sa.DateTime(timezone=
        True), nullable=False), sa.Column('staff_id', sa.Integer(),
        nullable=False), sa.Column('desc', sa.String(), nullable=True), sa.
        Column('comment', sa.String(), nullable=True), sa.
        ForeignKeyConstraint(['staff_id'], ['staff_account.id']), sa.
        PrimaryKeyConstraint('id'))
    op.create_table('tracker_statuses', sa.Column('id', sa.Integer(),
        nullable=False), sa.Column('status', sa.String(), nullable=True),
        sa.Column('creation_date', sa.DateTime(timezone=True), nullable=
        False), sa.Column('status_date', sa.DateTime(timezone=True),
        nullable=False), sa.Column('staff_id', sa.Integer(), nullable=False
        ), sa.Column('comment', sa.String(), nullable=True), sa.
        ForeignKeyConstraint(['staff_id'], ['staff_account.id']), sa.
        PrimaryKeyConstraint('id'))


<mask token>

<mask token>


def upgrade():
    op.create_table('tracker_accounts', sa.Column('id', sa.Integer(),
        nullable=False), sa.Column('subject', sa.String(length=255),
        nullable=False), sa.Column('section', sa.String(length=255),
        nullable=False), sa.Column('number', sa.String(length=255),
        nullable=False), sa.Column('creation_date', sa.DateTime(timezone=
        True), nullable=False), sa.Column('staff_id', sa.Integer(),
        nullable=False), sa.Column('desc', sa.String(), nullable=True), sa.
        Column('comment', sa.String(), nullable=True), sa.
        ForeignKeyConstraint(['staff_id'], ['staff_account.id']), sa.
        PrimaryKeyConstraint('id'))
    op.create_table('tracker_statuses', sa.Column('id', sa.Integer(),
        nullable=False), sa.Column('status', sa.String(), nullable=True),
        sa.Column('creation_date', sa.DateTime(timezone=True), nullable=
        False), sa.Column('status_date', sa.DateTime(timezone=True),
        nullable=False), sa.Column('staff_id', sa.Integer(), nullable=False
        ), sa.Column('comment', sa.String(), nullable=True), sa.
        ForeignKeyConstraint(['staff_id'], ['staff_account.id']), sa.
        PrimaryKeyConstraint('id'))


def downgrade():
    op.drop_table('tracker_statuses')
    op.drop_table('tracker_accounts')

<mask token>
revision = '8d59ef0f837b'
down_revision = '4541d084c985'
branch_labels = None
depends_on = None


def upgrade():
    op.create_table('tracker_accounts', sa.Column('id', sa.Integer(),
        nullable=False), sa.Column('subject', sa.String(length=255),
        nullable=False), sa.Column('section', sa.String(length=255),
        nullable=False), sa.Column('number', sa.String(length=255),
        nullable=False), sa.Column('creation_date', sa.DateTime(timezone=
        True), nullable=False), sa.Column('staff_id', sa.Integer(),
        nullable=False), sa.Column('desc', sa.String(), nullable=True), sa.
        Column('comment', sa.String(), nullable=True), sa.
        ForeignKeyConstraint(['staff_id'], ['staff_account.id']), sa.
        PrimaryKeyConstraint('id'))
    op.create_table('tracker_statuses', sa.Column('id', sa.Integer(),
        nullable=False), sa.Column('status', sa.String(), nullable=True),
        sa.Column('creation_date', sa.DateTime(timezone=True), nullable=
        False), sa.Column('status_date', sa.DateTime(timezone=True),
        nullable=False), sa.Column('staff_id', sa.Integer(), nullable=False
        ), sa.Column('comment', sa.String(), nullable=True), sa.
        ForeignKeyConstraint(['staff_id'], ['staff_account.id']), sa.
        PrimaryKeyConstraint('id'))


def downgrade():
    op.drop_table('tracker_statuses')
    op.drop_table('tracker_accounts')

<mask token>
from alembic import op
import sqlalchemy as sa
revision = '8d59ef0f837b'
down_revision = '4541d084c985'
branch_labels = None
depends_on = None


def upgrade():
    op.create_table('tracker_accounts', sa.Column('id', sa.Integer(),
        nullable=False), sa.Column('subject', sa.String(length=255),
        nullable=False), sa.Column('section', sa.String(length=255),
        nullable=False), sa.Column('number', sa.String(length=255),
        nullable=False), sa.Column('creation_date', sa.DateTime(timezone=
        True), nullable=False), sa.Column('staff_id', sa.Integer(),
        nullable=False), sa.Column('desc', sa.String(), nullable=True), sa.
        Column('comment', sa.String(), nullable=True), sa.
        ForeignKeyConstraint(['staff_id'], ['staff_account.id']), sa.
        PrimaryKeyConstraint('id'))
    op.create_table('tracker_statuses', sa.Column('id', sa.Integer(),
        nullable=False), sa.Column('status', sa.String(), nullable=True),
        sa.Column('creation_date', sa.DateTime(timezone=True), nullable=
        False), sa.Column('status_date', sa.DateTime(timezone=True),
        nullable=False), sa.Column('staff_id', sa.Integer(), nullable=False
        ), sa.Column('comment', sa.String(), nullable=True), sa.
        ForeignKeyConstraint(['staff_id'], ['staff_account.id']), sa.
        PrimaryKeyConstraint('id'))


def downgrade():
    op.drop_table('tracker_statuses')
    op.drop_table('tracker_accounts')

"""Added Purchase Tracker Model

Revision ID: 8d59ef0f837b
Revises: 4541d084c985
Create Date: 2021-11-26 14:01:15.709000

"""
from alembic import op
import sqlalchemy as sa


# revision identifiers, used by Alembic.
revision = '8d59ef0f837b'
down_revision = '4541d084c985'
branch_labels = None
depends_on = None


def upgrade():
    # ### commands auto generated by Alembic - please adjust! ###
    op.create_table('tracker_accounts',
    sa.Column('id', sa.Integer(), nullable=False),
    sa.Column('subject', sa.String(length=255), nullable=False),
    sa.Column('section', sa.String(length=255), nullable=False),
    sa.Column('number', sa.String(length=255), nullable=False),
    sa.Column('creation_date', sa.DateTime(timezone=True), nullable=False),
    sa.Column('staff_id', sa.Integer(), nullable=False),
    sa.Column('desc', sa.String(), nullable=True),
    sa.Column('comment', sa.String(), nullable=True),
    sa.ForeignKeyConstraint(['staff_id'], ['staff_account.id'], ),
    sa.PrimaryKeyConstraint('id')
    )
    op.create_table('tracker_statuses',
    sa.Column('id', sa.Integer(), nullable=False),
    sa.Column('status', sa.String(), nullable=True),
    sa.Column('creation_date', sa.DateTime(timezone=True), nullable=False),
    sa.Column('status_date', sa.DateTime(timezone=True), nullable=False),
    sa.Column('staff_id', sa.Integer(), nullable=False),
    sa.Column('comment', sa.String(), nullable=True),
    sa.ForeignKeyConstraint(['staff_id'], ['staff_account.id'], ),
    sa.PrimaryKeyConstraint('id')
    )
    # ### end Alembic commands ###


def downgrade():
    # ### commands auto generated by Alembic - please adjust! ###
    op.drop_table('tracker_statuses')
    op.drop_table('tracker_accounts')
    # ### end Alembic commands ###
