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
	 ('XDNSADD','duty_news_add','SDNSETD','addDutyNews','','duty/news','duty','Permission to add news','EXE','',1,false,false,NULL),
	 ('SDNSADM','duty_news_admin','PDUTNWS','','','duty/news ','duty','Section to view duty admin section ','SEC','',1,false,false,NULL),
	 ('BDNSADM','duty_news_admin_view','SDNWSVW','','','duty/news','duty','Permission to news admin button','BUT','fa-solid fa-user-tie',1,false,false,NULL),
	 ('SDNSETD','duty_news_edit','PDUTNWS','','','duty/news','duty','Permission to news edit section','SEC','',1,false,false,NULL),
	 ('BDNSBAK','duty_news_edit_back','SDNSADM','','','duty/news','duty','Permission to news admin back button','BUT','fas fa-arrow-left',1,false,false,NULL),
	 ('BDNSBCK','duty_news_edit_back_to_table','SDNSETD','','','duty/news','duty','Permsion to news back button','BUT','fas fa-arrow-left',1,false,false,NULL),
	 ('BDNSSAV','duty_news_edit_save','SDNSETD','','','duty/news','duty','Permission to news save button','BUT','fas fa-save',1,false,false,NULL),
	 ('XDNSUPD','duty_news_upd','SDNSETD','updDutyNews','','duty/news','duty','Permission to update news','EXE','',1,false,false,NULL),
	 ('SDNWSVW','duty_news_view','PDUTNWS','','','duty/news','duty','Sections to view duty news','SEC','',1,false,false,NULL),
	 ('BDNSADD','duty_news_view_add','SDNSADM','','','duty/news','duty','Permission to add news buttin','BUT','fas fa-plus',1,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
	 ('BDNSEDT','duty_news_view_edit','SDNSADM','','','duty/news','duty','Permission to edit news button','BUT','fas fa-edit',1,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','duty_news_form','Form for duty news',false,NULL,'{"form": [[{"id": "date", "cols": 3, "name": "date", "type": "date", "label": "form_duty_news_date", "mandatory": false}, {"id": "title", "cols": 3, "name": "title", "type": "text", "label": "form_duty_news_title", "mandatory": false}, {"id": "text", "cols": 3, "name": "text", "type": "textarea", "label": "form_duty_news_text", "mandatory": false}]]}',NULL,NULL,NULL,NULL,NULL,NULL,NULL);
ALTER TABLE public.duty_news ADD user_id int8 NULL;