 INSERT INTO `vm_setting` (`id`, `setting`, `bool_val`, `int_val`, `long_val`, `string_val`) VALUES (2, 'version.mid', 0, 0, '0', NULL);
 INSERT INTO `vm_setting` (`id`, `setting`, `bool_val`, `int_val`, `long_val`, `string_val`) VALUES (3, 'version.low', 0, 1, '0', NULL);
 INSERT INTO `vm_setting` (`id`, `setting`, `bool_val`, `int_val`, `long_val`, `string_val`) VALUES (7, 'version.postfix', 0, 0, '0', 'Alpha');
+/*Add Admin user*/
+INSERT INTO `vm_user` (`id`, `username`, `password`, `email`, `first_name`, `last_name`, `locale`, `user_status_id`) VALUES (1, 'admin', '21232f297a57a5a743894a0e4a801fc3', '', 'System', 'Administrator', 'en', 1);
+INSERT INTO `user_has_role` (`user_id`, `role_id`) VALUES (1, 8);
INSERT INTO `user_status` (`id`, `status`, `description`) VALUES (1, 'user.status.active', 'user.status.active.desc');
INSERT INTO `user_status` (`id`, `status`, `description`) VALUES (2, 'user.status.inactive', 'user.status.inactive.desc');
INSERT INTO `user_status` (`id`, `status`, `description`) VALUES (3, 'user.status.locked', 'user.status.locked.desc');
INSERT INTO `user_status` (`id`, `status`, `description`) VALUES (4, 'user.status.aged', 'user.status.aged.desc');
INSERT INTO `vm_user` (`id`, `username`, `password`, `email`, `first_name`, `last_name`, `locale`, `user_status_id`) VALUES (1, 'admin', '21232f297a57a5a743894a0e4a801fc3', '', 'System', 'Administrator', 'en', 1);
INSERT INTO `role` (`id`, `role_name`, `description`) VALUES (1, 'reserved1', 'reserver.desc');
INSERT INTO `role` (`id`, `role_name`, `description`) VALUES (2, 'reserved2', 'reserved2.desc');
INSERT INTO `role` (`id`, `role_name`, `description`) VALUES (3, 'none', 'none.desc');

INSERT INTO `user_right` (`id`, `description`) VALUES (13, 'events.view');
INSERT INTO `user_right` (`id`, `description`) VALUES (14, 'events.management');
INSERT INTO `user_right` (`id`, `description`) VALUES (15, 'system.configuration');
/*Set rights per role*/
INSERT INTO `role_has_right` (`role_id`, `right_id`) VALUES (8, 1);
INSERT INTO `role_has_right` (`role_id`, `right_id`) VALUES (8, 2);
INSERT INTO `role_has_right` (`role_id`, `right_id`) VALUES (8, 3);
