baseline: Clover 独立仓库首次基线提交
将 Clover 从上层产品包旧仓库中独立出来,建立专属版本控制。 当前状态=纵切片端到端已打通(登录→选品→出文出图→审核→下载包), M1文案质量去套路化已验收。此提交作为后续按核销清单逐条修复的基线。 Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
30
backend/app/models/README.md
Normal file
30
backend/app/models/README.md
Normal file
@@ -0,0 +1,30 @@
|
||||
# app/models/
|
||||
|
||||
SQLAlchemy ORM 模型占位,Alembic 001-004 按顺序建:
|
||||
|
||||
## Alembic 001 — 从banana搬3张(改造)
|
||||
- user.py # users(删credits字段)
|
||||
- login_record.py # login_records
|
||||
- user_preference.py # user_preferences(UI设置偏好)
|
||||
|
||||
## Alembic 002 — 多租户基础(全新)
|
||||
- workspace.py # workspaces
|
||||
- workspace_member.py # workspace_members(user+workspace+角色)
|
||||
- user_api_key.py # user_api_keys(Fernet加密,UNIQUE user_id+workspace_id+provider)
|
||||
|
||||
## Alembic 003 — 业务主体7张(全新)
|
||||
- product.py # products(含text_angles/custom_prompt/source/workspace_id)
|
||||
- benchmark_note.py # benchmark_notes
|
||||
- generation_task.py # generation_tasks(状态机+审核字段平铺)
|
||||
- text_candidate.py # text_candidates(source=ai/import双轨)
|
||||
- image_candidate.py # image_candidates
|
||||
- delivery_package.py # delivery_packages
|
||||
- banned_word.py # banned_words(三级level)
|
||||
|
||||
## Alembic 004 — 飞轮(全新)
|
||||
- preference_event.py # preference_events(含data_ownership字段)
|
||||
|
||||
## 铁律
|
||||
- 所有业务表有 workspace_id 字段
|
||||
- generation_tasks 审核字段平铺:review_status/reviewer_id/reviewed_at/reject_reason/approved_at/archived_at
|
||||
- preference_events.signal_weight 初始默认值:选文案+3/选图+3/通过+5/打回-3/重生成-1
|
||||
Reference in New Issue
Block a user