-- 테스트 계정 추가 (E2E Playwright 자동 테스트용)
-- 비밀번호: TestAdmin@123456
-- API /api/auth/reset-password로 설정 (마이그레이션에서는 초기 해시만 설정)

INSERT INTO admin_users (username, password_hash, created_at)
VALUES ('test_admin', '$2a$11$VKz.3zR0QFGZxJZQJ/M6w.3XjfQTp5emXyqhT3jrDZWCqYIxJkAOq', NOW())
ON CONFLICT (username) DO UPDATE SET
  password_hash = EXCLUDED.password_hash;

-- 검증
SELECT username, created_at FROM admin_users WHERE username IN ('admin', 'test_admin') ORDER BY username;
