create or replace trigger t_dep_ins
	before insert on departament
		for each row
			begin 
				select s_id_dep.nextval
					into :new.id_dep
					from dual;
			end;
/


create or replace trigger t_equip_ins
	before insert on equipment
		for each row
			begin 
				select s_id_equipment.nextval
					into :new.id_equipment
					from dual;
			end;
/


create or replace trigger t_listop_ins
	before insert on list_of_operation
		for each row
			begin 
				select s_id_listop.nextval
					into :new.id_listop
					from dual;
			end;
/


create or replace trigger t_match_ins
	before insert on match_equip_op
		for each row
			begin 
				select s_id_match.nextval
					into :new.id_match
					from dual;
			end;
/


create or replace trigger t_operation_ins
	before insert on operations
		for each row
			begin 
				select s_id_operation.nextval
					into :new.id_operation
					from dual;
			end;
/


create or replace trigger t_product_ins
	before insert on product
		for each row
			begin 
				select s_id_product.nextval
					into :new.id_product
					from dual;
			end;
/


create or replace trigger t_prodtype_ins
	before insert on products_type
		for each row
			begin 
				select s_id_type.nextval
					into :new.id_type
					from dual;
			end;
/


create or replace trigger t_resource_ins
	before insert on resources
		for each row
			begin 
				select s_id_res.nextval
					into :new.id_res
					from dual;
			end;
/




create or replace trigger t_resus_ins
	before insert on res_usage
		for each row
			begin 
				select s_id_resus.nextval
					into :new.id_resus
					from dual;
			end;
/


create or replace trigger t_staff_ins
	before insert on staff
		for each row
			begin 
				select s_id_staff.nextval
					into :new.id_staff
					from dual;
			end;
/


create or replace trigger t_tp_ins
	before insert on tp
		for each row
			begin 
				select s_id_tp.nextval
					into :new.id_tp
					from dual;
			end;
/


create or replace trigger t_tp_res_ins
	before insert on tp_res_us
		for each row
			begin 
				select s_id_tp_res.nextval
					into :new.id_tp_res
					from dual;
			end;
/

create or replace trigger t_tables_ins
	before insert on tables
		for each row
			begin 
				select s_id_tables.nextval
					into :new.id_tables
					from dual;
			end;
/

create or replace trigger t_fields_ins
	before insert on fields
		for each row
			begin 
				select s_id_fields.nextval
					into :new.id_fields
					from dual;
			end;
/


create or replace trigger t_slots_ins
	before insert on slots
		for each row
			begin 
				select s_id_slots.nextval
					into :new.id_slots
					from dual;
			end;
/


create or replace trigger t_frames_ins
	before insert on frames
		for each row
			begin 
				select s_id_frames.nextval
					into :new.id_frames
					from dual;
			end;
/


create or replace trigger t_slt_to_fr_ins
	before insert on Slots_to_frames
		for each row
			begin 
				select s_id_slt_to_fr.nextval
					into :new.id_fr_slt
					from dual;
			end;
/


create or replace trigger t_frame_exmpl_ins
	before insert on Frame_exmpl
		for each row
			begin 
				select s_id_fr_exmpl.nextval
					into :new.id_fr_exmpl
					from dual;
			end;
/