-- Creation of init content. Scheme assumed to be empty
-- 
USE `u947463964_etaviaporte` ;

INSERT INTO `roles` (`name`, `description`) VALUES ('owner', 'Owner of the company');
INSERT INTO `roles` (`name`, `description`) VALUES ('manager', 'Manager of the company');
INSERT INTO `roles` (`name`, `description`) VALUES ('driver', 'Driver user type');
INSERT INTO `roles` (`name`, `description`) VALUES ('staff', 'Member of the staff');
INSERT INTO `roles` (`name`, `description`) VALUES ('warehouse', 'Observer type of member');

INSERT INTO `permissions` (`name`, `description`) VALUES ('owner', 'Compatibility with Legacy while refactor in progress');
INSERT INTO `permissions` (`name`, `description`) VALUES ('manager', 'Compatibility with Legacy while refactor in progress');
INSERT INTO `permissions` (`name`, `description`) VALUES ('driver', 'Compatibility with Legacy while refactor in progress');
INSERT INTO `permissions` (`name`, `description`) VALUES ('staff', 'Compatibility with Legacy while refactor in progress');
INSERT INTO `permissions` (`name`, `description`) VALUES ('warehouse', 'Compatibility with Legacy while refactor in progress');

INSERT INTO `role_permissions` (`role_id`, `permission_id`) VALUES (1,1);
INSERT INTO `role_permissions` (`role_id`, `permission_id`) VALUES (2,2);
INSERT INTO `role_permissions` (`role_id`, `permission_id`) VALUES (3,3);
INSERT INTO `role_permissions` (`role_id`, `permission_id`) VALUES (4,4);
INSERT INTO `role_permissions` (`role_id`, `permission_id`) VALUES (5,5);
