feat: introduced plans pricing
This commit is contained in:
41
alembic/versions/bb542353b092_edited_pricing_added_addons.py
Normal file
41
alembic/versions/bb542353b092_edited_pricing_added_addons.py
Normal file
@@ -0,0 +1,41 @@
|
||||
"""edited pricing + added addons
|
||||
|
||||
Revision ID: bb542353b092
|
||||
Revises: 74bd9cedebdd
|
||||
Create Date: 2026-07-25 00:35:38.927479
|
||||
|
||||
"""
|
||||
from typing import Sequence, Union
|
||||
|
||||
from alembic import op
|
||||
import sqlalchemy as sa
|
||||
|
||||
|
||||
# revision identifiers, used by Alembic.
|
||||
revision: str = 'bb542353b092'
|
||||
down_revision: Union[str, Sequence[str], None] = '74bd9cedebdd'
|
||||
branch_labels: Union[str, Sequence[str], None] = None
|
||||
depends_on: Union[str, Sequence[str], None] = None
|
||||
|
||||
|
||||
def upgrade() -> None:
|
||||
"""Upgrade schema."""
|
||||
# ### commands auto generated by Alembic - please adjust! ###
|
||||
op.create_table('addons',
|
||||
sa.Column('id', sa.TEXT(), nullable=False),
|
||||
sa.Column('name', sa.TEXT(), nullable=False),
|
||||
sa.Column('price', sa.FLOAT(), nullable=False),
|
||||
sa.Column('free_threshold', sa.INTEGER(), nullable=False),
|
||||
sa.PrimaryKeyConstraint('id'),
|
||||
sa.UniqueConstraint('id')
|
||||
)
|
||||
op.create_unique_constraint(None, 'pricing_configs', ['id'])
|
||||
# ### end Alembic commands ###
|
||||
|
||||
|
||||
def downgrade() -> None:
|
||||
"""Downgrade schema."""
|
||||
# ### commands auto generated by Alembic - please adjust! ###
|
||||
op.drop_constraint(None, 'pricing_configs', type_='unique')
|
||||
op.drop_table('addons')
|
||||
# ### end Alembic commands ###
|
||||
Reference in New Issue
Block a user