-- Run this in phpMyAdmin after importing schema.sql.
-- Login: admin@example.com
-- Password: admin123
-- Change the email and password before using this in production.
INSERT INTO Admins
  (name, email, passwordHash, token, permissions, isSuper, createdAt, updatedAt)
VALUES
  (
    'Main Admin',
    'admin@example.com',
    SHA2(CONCAT('license-manager', ':', 'admin123'), 256),
    REPLACE(UUID(), '-', ''),
    JSON_ARRAY('overview', 'sites', 'products', 'licenses', 'trades', 'reports', 'admins'),
    1,
    CURRENT_TIMESTAMP,
    CURRENT_TIMESTAMP
  );