-- Kool & Saha — create the first administrator.
-- Run once in cPanel > phpMyAdmin > (your database) > SQL, then delete this file.
--
-- Sign in from the app: الملف الشخصي > تسجيل الدخول
--   email    : admin@ks.storismo.com
--   password : KoolSaha#2026
--
-- The hash below is bcrypt; the plain password is never stored.

INSERT INTO users (id, name, email, password_hash, role, lang, created_at, updated_at)
VALUES (
  'u_admin000000000000001',
  'إدارة كل صحة',
  'admin@ks.storismo.com',
  '$2y$10$kQaF1lzbZtueOzYKVfvXweSazQ5xDhSj7y5fZncIHhUl1nl.xP4G.',
  'admin',
  'ar',
  UNIX_TIMESTAMP()*1000,
  UNIX_TIMESTAMP()*1000
)
ON DUPLICATE KEY UPDATE password_hash = VALUES(password_hash), role = 'admin';
