"""init

Revision ID: 3e5322b289b4
Revises: 
Create Date: 2022-01-05 12:53:01.077700

"""
from alembic import op
import sqlalchemy as sa
import sqlmodel             # NEW


# revision identifiers, used by Alembic.
revision = '3e5322b289b4'
down_revision = None
branch_labels = None
depends_on = None


def upgrade():
    # ### commands auto generated by Alembic - please adjust! ###
    op.create_table('files',
    sa.Column('name', sqlmodel.sql.sqltypes.AutoString(), nullable=False),
    sa.Column('id', sa.Integer(), nullable=True),
    sa.Column('uuid', sqlmodel.sql.sqltypes.GUID(), nullable=False),
    sa.Column('count_download', sa.Integer(), nullable=True),
    sa.PrimaryKeyConstraint('id')
    )
    op.create_index(op.f('ix_files_count_download'), 'files', ['count_download'], unique=False)
    op.create_index(op.f('ix_files_id'), 'files', ['id'], unique=False)
    op.create_index(op.f('ix_files_name'), 'files', ['name'], unique=False)
    op.create_index(op.f('ix_files_uuid'), 'files', ['uuid'], unique=False)
    # ### end Alembic commands ###


def downgrade():
    # ### commands auto generated by Alembic - please adjust! ###
    op.drop_index(op.f('ix_files_uuid'), table_name='files')
    op.drop_index(op.f('ix_files_name'), table_name='files')
    op.drop_index(op.f('ix_files_id'), table_name='files')
    op.drop_index(op.f('ix_files_count_download'), table_name='files')
    op.drop_table('files')
    # ### end Alembic commands ###

sqlmodel.sql.sqltypes.GUID alembic.op.drop_table alembic.op.f sqlalchemy.PrimaryKeyConstraint sqlalchemy.Integer sqlmodel.sql.sqltypes.AutoString
[((1404, 1426), 'alembic.op.drop_table', 'op.drop_table', (['"""files"""'], {}), "('files')\n", (1417, 1426), False, 'from alembic import op\n'), ((672, 701), 'sqlalchemy.PrimaryKeyConstraint', 'sa.PrimaryKeyConstraint', (['"""id"""'], {}), "('id')\n", (695, 701), True, 'import sqlalchemy as sa\n'), ((728, 759), 'alembic.op.f', 'op.f', (['"""ix_files_count_download"""'], {}), "('ix_files_count_download')\n", (732, 759), False, 'from alembic import op\n'), ((824, 843), 'alembic.op.f', 'op.f', (['"""ix_files_id"""'], {}), "('ix_files_id')\n", (828, 843), False, 'from alembic import op\n'), ((896, 917), 'alembic.op.f', 'op.f', (['"""ix_files_name"""'], {}), "('ix_files_name')\n", (900, 917), False, 'from alembic import op\n'), ((972, 993), 'alembic.op.f', 'op.f', (['"""ix_files_uuid"""'], {}), "('ix_files_uuid')\n", (976, 993), False, 'from alembic import op\n'), ((1166, 1187), 'alembic.op.f', 'op.f', (['"""ix_files_uuid"""'], {}), "('ix_files_uuid')\n", (1170, 1187), False, 'from alembic import op\n'), ((1227, 1248), 'alembic.op.f', 'op.f', (['"""ix_files_name"""'], {}), "('ix_files_name')\n", (1231, 1248), False, 'from alembic import op\n'), ((1288, 1307), 'alembic.op.f', 'op.f', (['"""ix_files_id"""'], {}), "('ix_files_id')\n", (1292, 1307), False, 'from alembic import op\n'), ((1347, 1378), 'alembic.op.f', 'op.f', (['"""ix_files_count_download"""'], {}), "('ix_files_count_download')\n", (1351, 1378), False, 'from alembic import op\n'), ((434, 468), 'sqlmodel.sql.sqltypes.AutoString', 'sqlmodel.sql.sqltypes.AutoString', ([], {}), '()\n', (466, 468), False, 'import sqlmodel\n'), ((507, 519), 'sqlalchemy.Integer', 'sa.Integer', ([], {}), '()\n', (517, 519), True, 'import sqlalchemy as sa\n'), ((559, 587), 'sqlmodel.sql.sqltypes.GUID', 'sqlmodel.sql.sqltypes.GUID', ([], {}), '()\n', (585, 587), False, 'import sqlmodel\n'), ((638, 650), 'sqlalchemy.Integer', 'sa.Integer', ([], {}), '()\n', (648, 650), True, 'import sqlalchemy as sa\n')]