主要修改: - 添加 star_id 数据隔离字段到 notifications 和 notification_stats 表 - 更新索引包含 star_id - 添加数据一致性保证章节(事务边界、点赞通知防重复唯一约束) - 所有 API 接口参数增加 starID - JSON data 示例增加 star_id 字段 Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
- 设计统一通知表 (notifications) 存储所有通知类型 - 设计通知统计表 (notification_stats) 支持未读数查询 - 定义 Notification Service 职责和 API 接口 - 支持今日/历史 Tab 查询 - 支持未读数统计、通知直达、批量操作 Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>