"""Add session_key and session_key_last_four to provider_credentials.

Revision ID: a1b2c3d4e5f9
Revises: f0a1b2c3d4e5
Create Date: 2026-05-21
"""

from __future__ import annotations

import sqlalchemy as sa
from alembic import op

revision = "a1b2c3d4e5f9"
down_revision = "f0a1b2c3d4e5"
branch_labels = None
depends_on = None


def upgrade() -> None:
    op.add_column("provider_credentials", sa.Column("session_key", sa.String(), nullable=True))
    op.add_column("provider_credentials", sa.Column("session_key_last_four", sa.String(), nullable=True))


def downgrade() -> None:
    op.drop_column("provider_credentials", "session_key_last_four")
    op.drop_column("provider_credentials", "session_key")
