"""empty message Revision ID: 605e46acc08e Revises: Create Date: 2026-09-04 14:52:00.681450 """ from typing import Sequence, Union from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision: str = '605e46acc08e' down_revision: Union[str, Sequence[str], None] = None branch_labels: Union[str, Sequence[str], None] = None depends_on: Union[str, Sequence[str], None] = None def upgrade() -> None: """Upgrade schema.""" # ### commands auto generated by Alembic - please adjust! ### op.create_table('category', sa.Column('id', sa.Integer(), autoincrement=True, nullable=False), sa.Column('name', sa.String(), nullable=False), sa.Column('parent_id', sa.Integer(), nullable=True), sa.ForeignKeyConstraint(['parent_id'], ['category.id'], ), sa.PrimaryKeyConstraint('id'), sa.UniqueConstraint('name', 'parent_id', name='uq_category_name_parent') ) op.create_table('import_b4w', sa.Column('id', sa.Integer(), autoincrement=True, nullable=False), sa.Column('id_b4w', sa.Integer(), nullable=False), sa.Column('account_iban', sa.String(), nullable=False), sa.Column('account_currency', sa.String(length=3), nullable=False), sa.Column('date_valid', sa.Date(), nullable=False), sa.Column('date_book', sa.Date(), nullable=True), sa.Column('amount', sa.Numeric(precision=12, scale=2), nullable=False), sa.Column('amount_currency', sa.String(length=3), nullable=False), sa.Column('sign', sa.Integer(), nullable=False), sa.Column('reference', sa.String(), nullable=True), sa.Column('other_name', sa.String(), nullable=True), sa.Column('other_iban', sa.String(), nullable=True), sa.Column('category_id', sa.Integer(), nullable=True), sa.Column('notes', sa.String(), nullable=True), sa.ForeignKeyConstraint(['category_id'], ['category.id'], ), sa.PrimaryKeyConstraint('id'), sa.UniqueConstraint('id_b4w') ) # ### end Alembic commands ### def downgrade() -> None: """Downgrade schema.""" # ### commands auto generated by Alembic - please adjust! ### op.drop_table('import_b4w') op.drop_table('category') # ### end Alembic commands ###