Commit Graph

1 Commits

Author SHA1 Message Date
hailin 686bf6c395 fix(schema): 统一 disputes + audit_logs 迁移与实体定义
- 新增 045_align_disputes_audit_logs.sql: ALTER迁移对齐021/022旧schema到实体期望schema
  - disputes: buyer_id→plaintiff_id, seller_id→defendant_id, 添加amount+version列
  - audit_logs: actor_id→admin_id, resource_type→resource, 添加admin_name+result+updated_at+version列
- 将028/029改为no-op (已被045取代)
- Dispute entity: enum类型改为varchar (匹配CHECK约束而非PostgreSQL原生enum)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-23 22:01:20 -08:00