forked from DigiFi/digifi-BankToProductCore
1795db35be
This reverts commit 8bb5ce69e2.
42 lines
1.3 KiB
Python
42 lines
1.3 KiB
Python
"""empty message
|
|
|
|
Revision ID: 86e701febdda
|
|
Revises: eb99c7fb9e09
|
|
Create Date: 2025-04-29 07:59:33.305967
|
|
|
|
"""
|
|
from alembic import op
|
|
import sqlalchemy as sa
|
|
|
|
|
|
# revision identifiers, used by Alembic.
|
|
revision = '86e701febdda'
|
|
down_revision = 'eb99c7fb9e09'
|
|
branch_labels = None
|
|
depends_on = None
|
|
|
|
|
|
def upgrade():
|
|
# ### commands auto generated by Alembic - please adjust! ###
|
|
op.create_table('transaction_offers',
|
|
sa.Column('id', sa.Integer(), autoincrement=True, nullable=False),
|
|
sa.Column('customer_id', sa.String(length=50), nullable=False),
|
|
sa.Column('transaction_id', sa.String(length=50), nullable=False),
|
|
sa.Column('offer_id', sa.String(length=20), nullable=False),
|
|
sa.Column('product_id', sa.String(length=20), nullable=True),
|
|
sa.Column('min_amount', sa.Float(), nullable=False),
|
|
sa.Column('max_amount', sa.Float(), nullable=False),
|
|
sa.Column('eligible_amount', sa.Float(), nullable=True),
|
|
sa.Column('tenor', sa.Integer(), nullable=True),
|
|
sa.Column('created_at', sa.DateTime(), nullable=True),
|
|
sa.Column('updated_at', sa.DateTime(), nullable=True),
|
|
sa.PrimaryKeyConstraint('id')
|
|
)
|
|
# ### end Alembic commands ###
|
|
|
|
|
|
def downgrade():
|
|
# ### commands auto generated by Alembic - please adjust! ###
|
|
op.drop_table('transaction_offers')
|
|
# ### end Alembic commands ###
|