Init Project Flexly Estimator

This commit is contained in:
Alexey Dudin
2026-11-03 09:37:44 +03:00
commit 447464c16c
160 changed files with 12779 additions and 0 deletions
+25
View File
@@ -0,0 +1,25 @@
"""engagement model per estimate version
Revision ID: 0002
Revises: 0001
Create Date: 2026-10-31
"""
import sqlalchemy as sa
from alembic import op
revision = "0002"
down_revision = "0001"
branch_labels = None
depends_on = None
def upgrade() -> None:
with op.batch_alter_table("estimate_versions") as batch:
batch.add_column(
sa.Column("engagement", sa.String(20), nullable=False, server_default="fixed_price")
)
def downgrade() -> None:
with op.batch_alter_table("estimate_versions") as batch:
batch.drop_column("engagement")