"""add storage models

Revision ID: 54244e85a2ad
Revises: acd9f5a6d982
Create Date: 2023-03-16 13:56:00.267020

"""
from alembic import op
import sqlalchemy as sa


# revision identifiers, used by Alembic.
revision = '54244e85a2ad'
down_revision = 'acd9f5a6d982'
branch_labels = None
depends_on = None


def upgrade():
    # ### commands auto generated by Alembic - please adjust! ###
    op.create_table('import_storage',
    sa.Column('path', sa.Text(), nullable=True),
    sa.Column('id', sa.Integer(), nullable=False),
    sa.PrimaryKeyConstraint('id')
    )
    op.create_table('import_storage_link',
    sa.Column('id', sa.Integer(), nullable=False),
    sa.Column('storage_id', sa.Integer(), nullable=False),
    sa.Column('key', sa.Text(), nullable=True),
    sa.ForeignKeyConstraint(['storage_id'], ['import_storage.id'], ),
    sa.PrimaryKeyConstraint('id')
    )
    # ### end Alembic commands ###


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