"""Transaction.risk_* attributes

Revision ID: 6cbeabf73caf
Revises: bed939e666c6
Create Date: 2024-11-21 15:13:46.542274

"""

import sqlalchemy as sa
from alembic import op

# Polar Custom Imports

# revision identifiers, used by Alembic.
revision = "6cbeabf73caf"
down_revision = "bed939e666c6"
branch_labels: tuple[str] | None = None
depends_on: tuple[str] | None = None


def upgrade() -> None:
    # ### commands auto generated by Alembic - please adjust! ###
    op.add_column("transactions", sa.Column("risk_level", sa.String(), nullable=True))
    op.add_column("transactions", sa.Column("risk_score", sa.Integer(), nullable=True))
    # ### end Alembic commands ###


def downgrade() -> None:
    # ### commands auto generated by Alembic - please adjust! ###
    op.drop_column("transactions", "risk_score")
    op.drop_column("transactions", "risk_level")
    # ### end Alembic commands ###
