new file: backend/src/migrations/006_seed_admin.sql
This commit is contained in:
6
backend/src/migrations/006_seed_admin.sql
Normal file
6
backend/src/migrations/006_seed_admin.sql
Normal file
@@ -0,0 +1,6 @@
|
||||
-- Create default superadmin user (admin/admin)
|
||||
-- Password should be changed after first login!
|
||||
|
||||
INSERT INTO users (username, password_hash, role, is_superadmin)
|
||||
VALUES ('admin', '$2b$10$cYj5vFnPIqWDngjGf9guG.b.L2itqRbvcTPqxHPZIWtUHfT353L7W', 'admin', true)
|
||||
ON CONFLICT (username) DO NOTHING;
|
||||
Reference in New Issue
Block a user