"""add outcome evaluation fields to trade_setups

Revision ID: 004
Revises: 003
Create Date: 2026-06-10 00:00:00.000000

"""
from typing import Sequence, Union

from alembic import op
import sqlalchemy as sa


# revision identifiers, used by Alembic.
revision: str = "004"
down_revision: Union[str, None] = "003"
branch_labels: Union[str, Sequence[str], None] = None
depends_on: Union[str, Sequence[str], None] = None


def upgrade() -> None:
    op.add_column(
        "trade_setups",
        sa.Column("evaluated_at", sa.DateTime(timezone=True), nullable=True),
    )
    op.add_column(
        "trade_setups",
        sa.Column("outcome_date", sa.Date(), nullable=True),
    )


def downgrade() -> None:
    op.drop_column("trade_setups", "outcome_date")
    op.drop_column("trade_setups", "evaluated_at")
