INSERT INTO public.core_permissions (code,permission_name,parent,permission_function,default_child,permission_namespace,"module",permission_description,permission_type,icon,ord,hidden,guest,meta) VALUES
	 ('MCREW','crew',NULL,NULL,'','crew','crew','Module for human resources','MOD','fa-sharp fa-solid fa-skull-crossbones',500,false,false,NULL);
INSERT INTO public.core_permissions (code,permission_name,parent,permission_function,default_child,permission_namespace,"module",permission_description,permission_type,icon,ord,hidden,guest,meta) VALUES 
	('PCRSHFT','crew_shifts','MCREW','getObjects','','crew/shifts','crew','Permission to shifts list section','PAG','fa-regular fa-clock',500,false,false,NULL);
INSERT INTO public.core_permissions (code,permission_name,parent,permission_function,default_child,permission_namespace,"module",permission_description,permission_type,icon,ord,hidden,guest,meta) VALUES
	 ('SSHFTLS','crew_shifts_list','PCRSHFT','','','crew/shifts','crew','Permission to shift list section','SEC','',500,false,false,NULL);
INSERT INTO public.core_permissions (code,permission_name,parent,permission_function,default_child,permission_namespace,"module",permission_description,permission_type,icon,ord,hidden,guest,meta) VALUES
	 ('XSHFTGT','crew_shifts_get','SSHFTLS','getCrewShifts','','crew/shifts','crew','Permission to get shifts','EXE','',500,false,false,NULL);
INSERT INTO public.core_permissions (code,permission_name,parent,permission_function,default_child,permission_namespace,"module",permission_description,permission_type,icon,ord,hidden,guest,meta) VALUES
	 ('XSHFTAD','crew_shifts_add','SSHFTLS','addCrewShifts','','crew/shifts','crew','Permission to add shifts','EXE','',500,false,false,NULL);
INSERT INTO public.core_permissions (code,permission_name,parent,permission_function,default_child,permission_namespace,"module",permission_description,permission_type,icon,ord,hidden,guest,meta) VALUES
	 ('XSHFTUD','crew_shifts_update','SSHFTLS','updCrewShifts','','crew/shifts','crew','Permission to update shifts','EXE','',500,false,false,NULL);
INSERT INTO public.core_permissions (code,permission_name,parent,permission_function,default_child,permission_namespace,"module",permission_description,permission_type,icon,ord,hidden,guest,meta) VALUES
	 ('XSHFTDL','crew_shifts_delete','SSHFTLS','delCrewShifts','','crew/shifts','crew','Permission to delete shifts','EXE','',500,false,false,NULL);
INSERT INTO public.core_permissions (code,permission_name,parent,permission_function,default_child,permission_namespace,"module",permission_description,permission_type,icon,ord,hidden,guest,meta) VALUES
	 ('XSHFTST','crew_shifts_start','SSHFTLS','shiftStart','','crew/shifts','crew','Permission to start shifts','EXE','',500,false,false,NULL);
INSERT INTO public.core_permissions (code,permission_name,parent,permission_function,default_child,permission_namespace,"module",permission_description,permission_type,icon,ord,hidden,guest,meta) VALUES
	 ('XSHFEND','crew_shifts_end','SSHFTLS','shiftEnd','','crew/shifts','crew','Permission to end shifts','EXE','',500,false,false,NULL);
INSERT INTO public.core_permissions (code,permission_name,parent,permission_function,default_child,permission_namespace,"module",permission_description,permission_type,icon,ord,hidden,guest,meta) VALUES
	 ('XSHFTBK','crew_shifts_break','SSHFTLS','shiftBreak','','crew/shifts','crew','Permission to break shifts','EXE','',500,false,false,NULL);

INSERT INTO public.core_permissions (code,permission_name,parent,permission_function,default_child,permission_namespace,"module",permission_description,permission_type,icon,ord,hidden,guest,meta) VALUES
	 ('XSHFTCH','crew_shifts_count_hours','SSHFTLS','countShiftHours','','crew/shifts','crew','Permission to count shift hours','EXE','',500,false,false,NULL);
INSERT INTO public.core_permissions (code,permission_name,parent,permission_function,default_child,permission_namespace,"module",permission_description,permission_type,icon,ord,hidden,guest,meta) VALUES 
	('BSHFTAD','crew_shifts_list_add','SSHFTLS','','','crew/shifts','crew','Permission to shift list add button','BUT','fas fa-plus',500,false,false,NULL);
INSERT INTO public.core_permissions (code,permission_name,parent,permission_function,default_child,permission_namespace,"module",permission_description,permission_type,icon,ord,hidden,guest,meta) VALUES 
	('BSHFDEL','crew_shifts_list_delete','SSHFTLS','','','crew/shifts','crew','Permission to shift list delete button','BUT','fas fa-trash',500,false,false,NULL);
INSERT INTO public.core_permissions (code,permission_name,parent,permission_function,default_child,permission_namespace,"module",permission_description,permission_type,icon,ord,hidden,guest,meta) VALUES 
	('BSHFTED','crew_shifts_list_edit','SSHFTLS','','','crew/shifts','crew','Permission to shift list edit button','BUT','fas fa-edit',500,false,false,NULL);

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,role_id) VALUES 
	('form','crew_shifts_form','Form to add and edit shifts',false,NULL,'{"form": [[{"id": "name", "cols": 4, "name": "name", "type": "text", "label": "Shift Name", "mandatory": true, "relatedHidden": "id", "additionalClass": "form-control-sm"}, {"id": "start_time", "cols": 2, "name": "start_time", "type": "time", "label": "Start Time", "onchange": "jivaCoreOptions.unsavedData=true;", "mandatory": false, "additionalClass": "form-control-sm"}, {"id": "end_time", "cols": 2, "name": "end_time", "type": "time", "label": "Finish Time", "onchange": "jivaCoreOptions.unsavedData=true;", "mandatory": false, "additionalClass": "form-control-sm"}, {"id": "group_id", "key": "id", "cols": 4, "name": "group_id", "type": "typeahead", "label": "Group", "values": "group_name,group_type", "autofocus": true, "mandatory": false, "createForm": "group_list_form", "valueSearch": "api/v1/user/group/id:", "typeaheadList": "api/v1/group/search/group_name!group_type:", "createEndpoint": "/api/v1/user/group", "additionalClass": "form-control-sm", "createdEntryFields": "group_name,group_email,group_description,group_type", "createEndpointMethod": "post"}]]}',NULL,NULL,NULL,NULL,NULL,NULL,NULL);
INSERT INTO public.core_permissions (code,permission_name,parent,permission_function,default_child,permission_namespace,"module",permission_description,permission_type,icon,ord,hidden,guest,meta) VALUES 
	('BSHFBCK','crew_shifts_edit_back','SSHFTED','','','crew/shifts','crew','Permission to shift back button','BUT','fas fa-arrow-left',500,false,false,NULL);
INSERT INTO public.core_permissions (code,permission_name,parent,permission_function,default_child,permission_namespace,"module",permission_description,permission_type,icon,ord,hidden,guest,meta) VALUES 
	('BSHFSAV','crew_shifts_edit_save','SSHFTED','','','crew/shifts','crew','Permission to shift save button','BUT','fas fa-save',500,false,false,NULL);
INSERT INTO public.core_permissions (code,permission_name,parent,permission_function,default_child,permission_namespace,"module",permission_description,permission_type,icon,ord,hidden,guest,meta) VALUES 
	('PCSLOGS','crew_shift_logs','MCREW','getObjects','','crew/logs','crew','Permission to shift logs list section','PAG','fa-solid fa-user-pen',500,false,false,NULL);
INSERT INTO public.core_permissions (code,permission_name,parent,permission_function,default_child,permission_namespace,"module",permission_description,permission_type,icon,ord,hidden,guest,meta) VALUES 
	('SCSLGLS','crew_shifts_log_list','PCSLOGS','','','crew/logs','crew','Permission to shift logs list section','SEC','',500,false,false,NULL);
INSERT INTO public.core_permissions (code,permission_name,parent,permission_function,default_child,permission_namespace,"module",permission_description,permission_type,icon,ord,hidden,guest,meta) VALUES 
	('SCSLGED','crew_shifts_log_edit','PCSLOGS','','','crew/logs','crew','Permission to shift logs edit section','SEC','',500,false,false,NULL);
INSERT INTO public.core_permissions (code,permission_name,parent,permission_function,default_child,permission_namespace,"module",permission_description,permission_type,icon,ord,hidden,guest,meta) VALUES 
	('BCLGBCK','crew_shifts_log_edit_back','SCSLGED','','','crew/logs','crew','Permission to shift logs back button','BUT','fas fa-arrow-left',500,false,false,NULL);
