fix(identity-service): 修复 GENESIS 种子用户 migration - 移除不存在的 created_at 列

- 修复 migration 失败问题:user_accounts 表只有 registered_at 和 updated_at,没有 created_at
- 保持 user_id = 1 用于系统种子用户(GENESIS 推荐码)
- 普通用户从 user_id = 10 开始

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
hailin 2025-12-20 21:18:57 -08:00
parent ac8eb6d38d
commit 0c94b966b0
1 changed files with 0 additions and 2 deletions

View File

@ -18,7 +18,6 @@ INSERT INTO "user_accounts" (
"kyc_status",
"status",
"registered_at",
"created_at",
"updated_at"
) VALUES (
1, -- 使用预留的系统账号 ID
@ -29,7 +28,6 @@ INSERT INTO "user_accounts" (
'NOT_VERIFIED',
'ACTIVE',
NOW(),
NOW(),
NOW()
) ON CONFLICT (user_id) DO NOTHING; -- 如果已存在则跳过