-- Creation of root and backoffice
INSERT INTO applications (name, slug, description) VALUES ('root/backoffice','root_backoffice',"This is the application with no restrictions to all resources");

INSERT INTO permissions (application_id, name, description) VALUES (1, 'root', "No restrictions");

INSERT INTO roles (application_id, name, description) VALUES (1, 'root', "No restrictions");

INSERT INTO role_permissions (role_id, permission_id) VALUES (1,1);

INSERT INTO users (name, last_name) VALUES ('root','root');

INSERT INTO auth_identities (user_id, provider, identifier, password_hash, is_primary, is_verified) VALUES (1,'email','root@root.com','invalid_password_hash',1,1);

INSERT INTO user_roles (user_id, role_id) VALUES (1,1);

INSERT INTO user_permissions (user_id, permission_id) VALUES (1,1);

INSERT INTO user_applications (user_id, application_id) VALUES (1,1);
