feat: add resource library and real image workflow

This commit is contained in:
afei A
2026-03-29 00:24:29 +08:00
parent eeaff269eb
commit 04da401ab4
38 changed files with 3033 additions and 117 deletions

View File

@@ -0,0 +1,25 @@
"""Make order pose_id optional for MVP.
Revision ID: 20260328_0004
Revises: 20260328_0003
Create Date: 2026-03-28 11:08:00.000000
"""
from alembic import op
import sqlalchemy as sa
revision = "20260328_0004"
down_revision = "20260328_0003"
branch_labels = None
depends_on = None
def upgrade() -> None:
with op.batch_alter_table("orders") as batch_op:
batch_op.alter_column("pose_id", existing_type=sa.Integer(), nullable=True)
def downgrade() -> None:
with op.batch_alter_table("orders") as batch_op:
batch_op.alter_column("pose_id", existing_type=sa.Integer(), nullable=False)