"""Add regular_price and oe_list_price fields to Product

Revision ID: 20251107_163500_add_regular_price_and_oe_list_price
Revises: 20251107_153000_product_attributes_nutrition
Create Date: 2025-11-07 16:35:00.000000

"""
from alembic import op
import sqlalchemy as sa


# revision identifiers, used by Alembic.
revision = "20251107_163500_add_regular_price_and_oe_list_price"
down_revision = "20251107_153000_product_attributes_nutrition"
branch_labels = None
depends_on = None


def upgrade():
    op.add_column('products', sa.Column('regular_price', sa.Numeric(12, 2), nullable=True))
    op.add_column('products', sa.Column('regular_price_currency', sa.String(length=16), nullable=True))
    op.add_column('products', sa.Column('regular_price_raw', sa.String(length=128), nullable=True))
    op.add_column('products', sa.Column('oe_list_price', sa.Numeric(12, 2), nullable=True))


def downgrade():
    op.drop_column('products', 'oe_list_price')
    op.drop_column('products', 'regular_price_raw')
    op.drop_column('products', 'regular_price_currency')
    op.drop_column('products', 'regular_price')
