rwadurian/backend/services/authorization-service/prisma/migrations
hailin 29df9955f9 feat(authorization): 实现软删除支持撤销后重新授权
- 添加 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>
2025-12-17 07:43:30 -08:00
..
00000000000000_init feat(profile): integrate referral and authorization APIs for profile page 2025-12-09 01:57:39 -08:00
20241217_add_soft_delete feat(authorization): 实现软删除支持撤销后重新授权 2025-12-17 07:43:30 -08:00
20241210000001_add_account_sequence fix: 修复多个服务的 accountSequence 类型和推荐关系 bug 2025-12-12 12:29:11 -08:00
20251213151704_add_community_benefit_assessment_fields feat(authorization-service): 实现社区权益月度考核及级联激活/停用功能 2025-12-13 07:23:46 -08:00
20251214100000_add_last_month_trees_added feat(authorization-service): 实现月度考核数据存档机制(方案B) 2025-12-13 20:39:16 -08:00
.gitkeep feat(authorization-service): Implement complete authorization service with DDD architecture 2025-12-01 06:30:07 -08:00
migration_lock.toml feat(authorization-service): 实现社区权益月度考核及级联激活/停用功能 2025-12-13 07:23:46 -08:00