INSERT INTO `form` (`id`, `nazov`, `code`)
VALUES
	(210, 'Zamestnanec', 'zamestnanec');

INSERT INTO `form_group` (`id`, `form_id`, `nazov`, `code`, `position`, `poznamka`, `group_type`)
VALUES
	(21001, 210, 'Základné informácie', 'zamestnanec_zakladne_informacie', 10, NULL, 1),
	(21002, 210, 'Práva', 'zamestnanec_prava', 20, NULL, 1),
	(21003, 210, 'Prihlasovacie údaje', 'zamestnanec_prihlasovacie_udaje', 30, NULL, 1);


INSERT INTO `form_element` (`id`, `form_group_id`, `form_element_type_id`, `db_table`, `db_column`, `db_multi_table`, `db_multivalue_table`, `column_title`, `position`, `attribute`, `width`, `height`, `help`, `example`, `direct_to_db`, `required`, `number`, `float_number`, `email`, `css_style`, `css_class`, `javascript`, `direct_multi_label`, `direct_multi_data`, `default_val`, `vdaemon`, `add_empty_option`, `html`, `lang_code`, `read_only`)
VALUES
	(21001, 21001, 1, 'zamestnanec', 'meno', NULL, NULL, 'Meno', 10, NULL, NULL, NULL, NULL, NULL, 1, 1, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL),
	(21002, 21001, 1, 'zamestnanec', 'priezvisko', NULL, NULL, 'Priezvisko', 20, NULL, NULL, NULL, NULL, NULL, 1, 1, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL),
	(21003, 21001, 1, 'zamestnanec', 'mobil', NULL, NULL, 'Mobil', 30, NULL, NULL, NULL, NULL, NULL, 1, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL),
	(21004, 21001, 1, 'zamestnanec', 'email', NULL, NULL, 'E-mail', 40, NULL, NULL, NULL, NULL, NULL, 1, NULL, NULL, NULL, 1, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL),
	(21006, 21002, 6, 'zamestnanec', 'role_id', 'role', NULL, 'Skupina prístupu', 50, NULL, NULL, NULL, NULL, NULL, 1, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 1, 1, NULL, NULL, NULL, NULL, NULL, NULL),
	(21007, 21003, 1, 'zamestnanec', 'login', NULL, NULL, 'Login', 60, NULL, NULL, NULL, NULL, NULL, 1, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL),
	(21008, 21003, 8, 'zamestnanec', 'nove_heslo', NULL, NULL, 'Nové heslo', 70, NULL, 100, NULL, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);

INSERT INTO `log_type` (`nazov`, `code`, `primary_table`)
VALUES
	('Pridanie zamestnanca', 'zamestnanec_pridaj', 'zamestnanec'),
	('Editovanie zamestnanca', 'zamestnanec_edituj', 'zamestnanec'),
	('Zmazanie zamestnanca', 'zamestnanec_zmaz', 'zamestnanec');

INSERT INTO `menu` (`id`, `menu_id`, `nazov`, `page`, `poradie`, `level`, `visibility_type`)
VALUES
	(21000, NULL, 'Zamestnanci', 'zamestnanec', 210, 1, 1),
	(21001, 21000, 'Pridanie zamestnanca', 'zamestnanec_pridaj', 20, 2, 1),
	(21002, 21000, 'Výpis zamestnancov', 'zamestnanec_vypis', 10, 2, 1),
	(21003, 21002, 'Detail zamestnanca', 'zamestnanec_view', 10, 3, 1),
	(21004, 21002, 'Editovanie zamestnanca', 'zamestnanec_edituj', 20, 3, 1),
	(21005, 21002, 'Zmazanie zamestnanca', 'zamestnanec_zmaz', 30, 3, 0);
