baseline: Clover 独立仓库首次基线提交

将 Clover 从上层产品包旧仓库中独立出来,建立专属版本控制。
当前状态=纵切片端到端已打通(登录→选品→出文出图→审核→下载包),
M1文案质量去套路化已验收。此提交作为后续按核销清单逐条修复的基线。

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
yangqianqian
2026-06-16 11:30:22 +08:00
commit 6a2632da70
253 changed files with 27467 additions and 0 deletions

View File

@@ -0,0 +1,33 @@
"""add need_product_image to generation_tasks
Revision ID: 007
Revises: 006
Create Date: 2026-06-08
本次产品是否入镜开关True=必须产品参考图(无图禁生成,不降级)False=允许纯文生图。
默认 True铁律生图优先带产品参考图
"""
from alembic import op
import sqlalchemy as sa
revision = "007"
down_revision = "006"
branch_labels = None
depends_on = None
def upgrade():
op.add_column(
"generation_tasks",
sa.Column(
"need_product_image",
sa.Boolean(),
nullable=False,
server_default=sa.true(),
comment="本次产品是否入镜:True需产品图(无图禁生成不降级)/False允许纯文生图",
),
)
def downgrade():
op.drop_column("generation_tasks", "need_product_image")