feat: 产品协同留言板 — ProductMessage 模型 + API + 迁移

- 新增 ProductMessage 模型,挂载在 products.id(ON DELETE CASCADE)
- GET/POST /products/{id}/messages 接口
- 注册到 Alembic 自动发现
This commit is contained in:
2026-08-10 17:37:01 +08:00
parent e326f8d311
commit b14773f81b
3 changed files with 67 additions and 0 deletions

View File

@ -6,6 +6,7 @@ from app.models.task import Task, TaskRecord
from app.models.task_log import TaskLog
from app.models.notification import Notification
from app.models.app_version import AppVersion
from app.models.message import ProductMessage
__all__ = [
"Base",
"ProductionOrder",
@ -15,4 +16,5 @@ __all__ = [
"TaskLog",
"Notification",
"AppVersion",
"ProductMessage",
]