feat(phase8-task202): TemplateClipConfig + EditPlanClip 数据模型 #143

Closed
xiaoxia wants to merge 1 commits from feature/phase8-task202-clip-models into develop

1 Commits

Author SHA1 Message Date
灵应 22bef9688f feat(phase8-task202): TemplateClipConfig + EditPlanClip 数据模型、仓储、迁移与测试
Deploy / Build Production Runtime Images (push) Has been skipped
Deploy / Deploy Production (push) Has been skipped
Deploy / Production Browser E2E (push) Has been skipped
CI/CD Pipeline / Frontend Lint (pull_request) Failing after 191h33m32s
CI/CD Pipeline / Validate Code Quality And Tests (pull_request) Failing after 191h33m35s
Deploy / Deploy Staging (push) Failing after 191h35m54s
CI/CD Pipeline / Frontend Lint (push) Failing after 191h36m27s
CI/CD Pipeline / Validate Code Quality And Tests (push) Failing after 191h36m32s
新增领域实体:
- TemplateClipConfig: 模板片段配置(片段类型、时长范围、文案模板、素材要求、转场效果)
- EditPlanClip: 剪辑计划片段(关联 EditPlan、实际素材、实际文案、排序、状态流转)

新增枚举:
- ClipType: intro/main/transition/outro/title/subtitle
- TransitionEffect: cut/fade/slide_left/slide_right/dissolve/wipe
- EditPlanClipStatus: pending/ready/rendered/failed

新增 ORM 模型:
- TemplateClipConfigModel (template_clip_configs 表)
- EditPlanClipModel (edit_plan_clips 表)

新增仓储:
- SQLAlchemyTemplateClipConfigRepository (list_by_template/create/update/delete/delete_by_template)
- SQLAlchemyEditPlanClipRepository (list_by_plan/create/update/delete/delete_by_plan/count)

新增 Alembic 迁移 017: CREATE TABLE template_clip_configs + edit_plan_clips

单元测试 44 个全部通过
2026-07-01 13:16:12 +08:00