"""Add recent_emails field to folders table

Revision ID: 9a88c7e94083
Revises: a3ad1b9a0e5f
Create Date: 2025-08-05 11:20:32.637203

"""
from alembic import op
import sqlalchemy as sa


# revision identifiers, used by Alembic.
revision = '9a88c7e94083'
down_revision = 'a3ad1b9a0e5f'
branch_labels = None
depends_on = None


def upgrade():
    # ### commands auto generated by Alembic - please adjust! ###
    with op.batch_alter_table('folders', schema=None) as batch_op:
        batch_op.add_column(sa.Column('recent_emails', sa.JSON(), nullable=True))

    # ### end Alembic commands ###


def downgrade():
    # ### commands auto generated by Alembic - please adjust! ###
    with op.batch_alter_table('folders', schema=None) as batch_op:
        batch_op.drop_column('recent_emails')

    # ### end Alembic commands ###
