feat: update backend scripts and migration tools

This commit is contained in:
nofxai
2025-11-05 06:56:28 +00:00
parent 985f1b1111
commit aecc5e58a1
6 changed files with 455 additions and 59 deletions

View File

@@ -59,7 +59,15 @@ GROUP BY used
ORDER BY used;
"
echo -e "\n📝 未使用的内测码:"
$DOCKER_COMPOSE_CMD exec postgres psql -U nofx -d nofx --pset pager=off -c "
SELECT code
FROM beta_codes
WHERE used = false
ORDER BY created_at DESC;
"
echo -e "\n👥 用户信息:"
$DOCKER_COMPOSE_CMD exec postgres psql -U nofx -d nofx --pset pager=off -c "
SELECT id, email, otp_verified, created_at FROM users ORDER BY created_at;
"
"