INSERT INTO public.core_assets (asset_type,asset_name,description,custom,asset_innerhtml,asset_parameters,asset_code,before_trigger,after_trigger,failure_rollback,exec_order,meta) VALUES
	 ('columns','core_users_fields','Columns for table users',false,NULL,'[{"field": "id", "title": "table_core_users_id", "width": 77, "hozAlign": "center"}, {"field": "username", "title": "table_core_users_username"}, {"field": "email", "title": "table_core_users_email"}, {"field": "language", "title": "table_core_users_language"}, {"field": "organization", "title": "table_core_users_organization"}]',NULL,NULL,NULL,NULL,NULL,NULL);

-- 
INSERT INTO core_permissions (code,permission_name,parent,permission_function,default_child,permission_namespace,"module",permission_description,permission_type,icon,ord,hidden,guest,meta) VALUES
	 ('BADMUES','administration_users_edit_save_button','SADMUSE','',NULL,'administration/users','administration','Button to save user details','EXE','fa-solid fa-floppy-disk',1135,false,false,NULL);
INSERT INTO core_permissions (code,permission_name,parent,permission_function,default_child,permission_namespace,"module",permission_description,permission_type,icon,ord,hidden,guest,meta) VALUES
	 ('BADMUEC','administration_users_edit_cancel','SADMUSE','',NULL,'administration/users','administration','Button cancel in user details','EXE','fa-solid fa-xmark',1135,false,false,NULL);
INSERT INTO core_permissions (code,permission_name,parent,permission_function,default_child,permission_namespace,"module",permission_description,permission_type,icon,ord,hidden,guest,meta) VALUES
	 ('BADMUET','administration_users_edit_deletetoken','SADMUSE','',NULL,'administration/users','administration','Button to delete user token','EXE','fa-solid fa-trash-can',1135,false,false,NULL);
INSERT INTO core_permissions (code,permission_name,parent,permission_function,default_child,permission_namespace,"module",permission_description,permission_type,icon,ord,hidden,guest,meta) VALUES
	 ('BADMUCT','administration_users_edit_createtoken','SADMUSE','',NULL,'administration/users','administration','Button to create user token','EXE','fa-solid fa-user-secret',1135,false,false,NULL);

-- 
INSERT INTO public.core_user_role_has_permission (role_id,permission_code) VALUES
	 (2,'BADMUES'),
	 (2,'BADMUEC'),
	 (2,'BADMUCT'),
	 (2,'BADMUET');