/*
    This script inserts a default administrator with username 'admin' into the table 'medusa_admin'.
*/

DELETE
FROM medusa_admin
WHERE username = 'admin';

INSERT INTO medusa_admin (username,
                          givenname,
                          surname,
                          roles,
                          pwd_hash,
                          pwd_chg_enf)
VALUES ('admin',
        'IAM',
        'Administrator',
        'superadmin',
        'MedusaPwdHistoryAAAARjE2Mzg0fF1jjOhya0ZuJ5OrHXgSXznOBBLl6eJ70PTdFYerSYPwgrlK1uq6UCzc5cvN8t1xtgc+YBQO8UgWBYhzDgpkQGM=',
        1 /* Password change enforced */
       );
