/*
    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',
        'MedusaPwdHistoryAAAAYSRhcmdvbjJpZCR2PTE5JG09MTk0NTYsdD0yLHA9MSRJZ214enpweUxqRW1ldVZHeWcwdGVnJGRRdS9NRGpybzF6SDFpcy9lenRjWnBMT3FURUZjSGo3SFl4K3d2emZDU2s=',
        1 /* Password change enforced */
       );
