- 添加 deletedAt 字段到 AuthorizationRole 聚合根和 Prisma schema - revoke() 方法同时设置 deletedAt,使撤销的记录被软删除 - Repository 所有查询添加 deletedAt: null 过滤条件 - 创建部分唯一索引,只对未删除记录生效 (大厂通用做法) - 支持撤销授权后重新创建相同角色 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| 00000000000000_init | ||
| 20241217_add_soft_delete | ||
| 20241210000001_add_account_sequence | ||
| 20251213151704_add_community_benefit_assessment_fields | ||
| 20251214100000_add_last_month_trees_added | ||
| .gitkeep | ||
| migration_lock.toml | ||