financial_system/financial_system/database/sql/seed.sql
2026-06-18 13:21:20 +08:00

42 lines
863 B
SQL

-- Financial System seed data.
-- Default superuser:
-- username: admin
-- password: Admin@123456
-- Change the password after first login in production.
USE `financial_system`;
INSERT INTO `users` (
`username`,
`display_name`,
`avatar_url`,
`email`,
`phone`,
`department`,
`position_title`,
`password_hash`,
`role`,
`is_active`,
`created_at`,
`updated_at`
) VALUES (
'admin',
'超级管理员',
'',
'',
'',
'系统管理',
'超级管理员',
'pbkdf2_sha256$260000$b3a9c1TDdorYhXOj4usDsA$BPH38v3hjJ-vj8tGw-senDM5czyhRX-wr_zS8lV4bBo',
'superuser',
TRUE,
NOW(),
NOW()
) ON DUPLICATE KEY UPDATE
`display_name` = VALUES(`display_name`),
`department` = VALUES(`department`),
`position_title` = VALUES(`position_title`),
`role` = VALUES(`role`),
`is_active` = VALUES(`is_active`),
`updated_at` = NOW();