Files
Neo-ZQYY/db/zqyy_app/seeds/admin_web_seed.sql

19 lines
730 B
SQL
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
-- =============================================================================
-- 种子数据Web 管理后台默认管理员账号
-- 数据库zqyy_app
-- 关联需求Requirements 1.1(用户认证)
-- =============================================================================
-- 默认密码admin123bcrypt hashcost=12
-- 生产环境部署后务必立即修改密码
-- =============================================================================
INSERT INTO admin_users (username, password_hash, display_name, site_id, is_active)
VALUES (
'admin',
'$2b$12$2MTWlJKL0HTgHIkv5Rmpie2pQ9PkeJu0iciLbzPEpPcA94ZakIQzq',
'默认管理员',
1,
TRUE
)
ON CONFLICT (username) DO NOTHING;