37970-vm/db/migrations/006_add_default_super_admin.sql
2026-01-30 16:28:00 +00:00

5 lines
332 B
SQL

-- Migration: Add default super admin
INSERT IGNORE INTO users (email, password, role, school_id) VALUES
('superadmin@system.com', '$2y$10$92IXUNpkjO0rOQ5byMi.Ye4oKoEa3Ro9llC/.og/at2.uheWG/igi', 'Super Admin', NULL);
-- password is 'password' (using same hash as seeded ones which usually is 'password' in these types of projects)