--
-- PostgreSQL database dump
--

\restrict h6bd7kGvxEavN2pokB3ndj68pJKRaJXQanRfq1xgOELkeOAc9Wagkc4WNCfcjsu

-- Dumped from database version 18.3 (Ubuntu 18.3-1.pgdg24.04+1)
-- Dumped by pg_dump version 18.3 (Ubuntu 18.3-1.pgdg24.04+1)

SET statement_timeout = 0;
SET lock_timeout = 0;
SET idle_in_transaction_session_timeout = 0;
SET transaction_timeout = 0;
SET client_encoding = 'UTF8';
SET standard_conforming_strings = on;
SELECT pg_catalog.set_config('search_path', '', false);
SET check_function_bodies = false;
SET xmloption = content;
SET client_min_messages = warning;
SET row_security = off;

--
-- Data for Name: users; Type: TABLE DATA; Schema: pgz_sport; Owner: rinet
--

INSERT INTO pgz_sport.users (id, email, full_name, oib, phone, password_hash, google_sub, google_picture, status, email_verified, billing_user_id, preferred_language, last_login, created_at, updated_at) VALUES (1, 'damir@rinet.one', 'Damir Radulić', NULL, NULL, '85fa650a5b0eccda59a31462d3c47b17c006457128463e6f9d1dfef1a58775b8', NULL, NULL, 'active', true, NULL, 'hr', '2026-04-28 20:07:02.031202+02', '2026-04-28 19:45:29.031684+02', '2026-04-28 19:45:29.031684+02');


--
-- Data for Name: audit_events; Type: TABLE DATA; Schema: pgz_sport; Owner: rinet
--

INSERT INTO pgz_sport.audit_events (id, user_id, action, resource_type, resource_id, meta, ip_address, user_agent, ts) VALUES (1, 1, 'init_multitenant', 'system', NULL, '{"sprint": "28apr2026_v3"}', NULL, NULL, '2026-04-28 19:45:29.035228+02');
INSERT INTO pgz_sport.audit_events (id, user_id, action, resource_type, resource_id, meta, ip_address, user_agent, ts) VALUES (2, 1, 'login', NULL, NULL, NULL, NULL, NULL, '2026-04-28 19:59:05.376178+02');
INSERT INTO pgz_sport.audit_events (id, user_id, action, resource_type, resource_id, meta, ip_address, user_agent, ts) VALUES (3, 1, 'login', NULL, NULL, NULL, NULL, NULL, '2026-04-28 20:06:03.826532+02');
INSERT INTO pgz_sport.audit_events (id, user_id, action, resource_type, resource_id, meta, ip_address, user_agent, ts) VALUES (4, 1, 'login', NULL, NULL, NULL, NULL, NULL, '2026-04-28 20:06:31.911253+02');
INSERT INTO pgz_sport.audit_events (id, user_id, action, resource_type, resource_id, meta, ip_address, user_agent, ts) VALUES (5, 1, 'login', NULL, NULL, NULL, NULL, NULL, '2026-04-28 20:07:02.040007+02');
INSERT INTO pgz_sport.audit_events (id, user_id, action, resource_type, resource_id, meta, ip_address, user_agent, ts) VALUES (6, 1, 'upload_invoice', 'invoice_upload', 1, '{"sha": "c428f6c87073e866", "kind": "ulazni", "klub_id": 524}', NULL, NULL, '2026-04-28 20:07:02.100652+02');


--
-- Data for Name: audit_log; Type: TABLE DATA; Schema: pgz_sport; Owner: rinet
--

INSERT INTO pgz_sport.audit_log (id, "timestamp", tablica, operacija, record_id, korisnik, ip, promijenjeno_polje, stara_vrijednost, nova_vrijednost) VALUES (1, '2026-04-25 16:52:36.922732+02', 'klubovi', 'UPDATE', NULL, 'damir', NULL, 'predsjednik', NULL, 'NULL (verifikacija potrebna)');


--
-- Data for Name: roles; Type: TABLE DATA; Schema: pgz_sport; Owner: rinet
--

INSERT INTO pgz_sport.roles (id, code, naziv, opis, permissions, created_at) VALUES (1, 'super_admin', 'Super Admin', 'Pun pristup sistemu', '{"all": true}', '2026-04-28 19:45:28.993151+02');
INSERT INTO pgz_sport.roles (id, code, naziv, opis, permissions, created_at) VALUES (2, 'pgz_admin', 'PGŽ Admin', 'PGŽ-level administracija', '{"pgz_admin": true, "klubovi_view": true, "savezi_admin": true, "proracun_admin": true}', '2026-04-28 19:45:28.995845+02');
INSERT INTO pgz_sport.roles (id, code, naziv, opis, permissions, created_at) VALUES (3, 'savez_admin', 'Savez Admin', 'Administrator saveza', '{"savez_admin": true, "klubovi_savez": true}', '2026-04-28 19:45:28.996447+02');
INSERT INTO pgz_sport.roles (id, code, naziv, opis, permissions, created_at) VALUES (4, 'klub_admin', 'Klub Admin', 'Administrator kluba', '{"klub_admin": true, "forms_submit": true, "clanovi_admin": true, "invoice_admin": true}', '2026-04-28 19:45:28.996848+02');
INSERT INTO pgz_sport.roles (id, code, naziv, opis, permissions, created_at) VALUES (5, 'klub_user', 'Klub User', 'Redovni korisnik kluba (trener, tajnik)', '{"klub_view": true, "clanovi_view": true, "forms_submit": true}', '2026-04-28 19:45:28.997157+02');
INSERT INTO pgz_sport.roles (id, code, naziv, opis, permissions, created_at) VALUES (6, 'clan', 'Član', 'Sportaš/član kluba', '{"self_view": true, "forms_my_submit": true}', '2026-04-28 19:45:28.997444+02');
INSERT INTO pgz_sport.roles (id, code, naziv, opis, permissions, created_at) VALUES (7, 'viewer', 'Viewer', 'Read-only public access', '{"public_view": true}', '2026-04-28 19:45:28.997746+02');


--
-- Data for Name: sys_users; Type: TABLE DATA; Schema: pgz_sport; Owner: rinet
--

INSERT INTO pgz_sport.sys_users (id, email, password_hash, ime, prezime, oib, telefon, user_type, klub_id, savez_id, permissions, aktivan, last_login, failed_login_count, locked_until, auth_provider, google_sub, created_at, updated_at, created_by, note) VALUES (1, 'damir@rinet.one', '5fc66857e7c07f685c6d1a64594983c568628619f273b509ddb3e6b44d0cba11', 'Damir', 'Radulić', NULL, NULL, 'super_admin', NULL, NULL, '{}', true, NULL, 0, NULL, 'local', NULL, '2026-04-28 21:23:00.931158+02', '2026-04-28 21:23:00.931158+02', NULL, NULL);
INSERT INTO pgz_sport.sys_users (id, email, password_hash, ime, prezime, oib, telefon, user_type, klub_id, savez_id, permissions, aktivan, last_login, failed_login_count, locked_until, auth_provider, google_sub, created_at, updated_at, created_by, note) VALUES (2, 'pgz.lukanovic@pgz.hr', '45bbcdc6bbc5af630845f6a1cd1bc3d24aeca58b38d017ae4d9b13c64e0fb5f4', 'Zlatko', 'Lukanović', NULL, NULL, 'pgz_admin', NULL, NULL, '{}', true, NULL, 0, NULL, 'local', NULL, '2026-04-28 21:45:42.429263+02', '2026-04-28 21:45:42.429263+02', NULL, NULL);
INSERT INTO pgz_sport.sys_users (id, email, password_hash, ime, prezime, oib, telefon, user_type, klub_id, savez_id, permissions, aktivan, last_login, failed_login_count, locked_until, auth_provider, google_sub, created_at, updated_at, created_by, note) VALUES (3, 'pgz.djelatnik@pgz.hr', 'd5ddd74b31dfff17de8ee6ec25a8d5f5310326cfb99d64c1822cd17a3372b10f', 'Marija', 'Horvat', NULL, NULL, 'pgz_user', NULL, NULL, '{}', true, NULL, 0, NULL, 'local', NULL, '2026-04-28 21:45:42.429263+02', '2026-04-28 21:45:42.429263+02', NULL, NULL);
INSERT INTO pgz_sport.sys_users (id, email, password_hash, ime, prezime, oib, telefon, user_type, klub_id, savez_id, permissions, aktivan, last_login, failed_login_count, locked_until, auth_provider, google_sub, created_at, updated_at, created_by, note) VALUES (4, 'pgz.finance@pgz.hr', 'e514f457534678f6184923cabe6bc215d3284ebea61bce5ac1974047b5810e19', 'Ivana', 'Babić', NULL, NULL, 'pgz_finance', NULL, NULL, '{}', true, NULL, 0, NULL, 'local', NULL, '2026-04-28 21:45:42.429263+02', '2026-04-28 21:45:42.429263+02', NULL, NULL);
INSERT INTO pgz_sport.sys_users (id, email, password_hash, ime, prezime, oib, telefon, user_type, klub_id, savez_id, permissions, aktivan, last_login, failed_login_count, locked_until, auth_provider, google_sub, created_at, updated_at, created_by, note) VALUES (5, 'zzjz.medical@zzjzpgz.hr', '4b424ae34fd87c560677419dfced9228f339a5e844bad2434ce53c5b536a1984', 'Marko', 'Petković', NULL, NULL, 'pgz_zzjz', NULL, NULL, '{}', true, NULL, 0, NULL, 'local', NULL, '2026-04-28 21:45:42.429263+02', '2026-04-28 21:45:42.429263+02', NULL, NULL);
INSERT INTO pgz_sport.sys_users (id, email, password_hash, ime, prezime, oib, telefon, user_type, klub_id, savez_id, permissions, aktivan, last_login, failed_login_count, locked_until, auth_provider, google_sub, created_at, updated_at, created_by, note) VALUES (6, 'tajnik.hnk@rijeka.hr', 'febbab33206be19b0cc37e62bc68330a0f2f4648bcec27df1eaea492c689d56d', 'Pero', 'Kvaternik', NULL, NULL, 'savez_admin', NULL, 1, '{}', true, NULL, 0, NULL, 'local', NULL, '2026-04-28 21:45:42.429263+02', '2026-04-28 21:45:42.429263+02', NULL, NULL);
INSERT INTO pgz_sport.sys_users (id, email, password_hash, ime, prezime, oib, telefon, user_type, klub_id, savez_id, permissions, aktivan, last_login, failed_login_count, locked_until, auth_provider, google_sub, created_at, updated_at, created_by, note) VALUES (7, 'tajnik.kvarner@kk.hr', 'dd7718a2c5efe8f3ac27bd6259925e11223603b643bfae56d8ab8f189bbe3c77', 'Ana', 'Marković', NULL, NULL, 'klub_admin', NULL, NULL, '{}', true, NULL, 0, NULL, 'local', NULL, '2026-04-28 21:45:42.429263+02', '2026-04-28 21:45:42.429263+02', NULL, NULL);
INSERT INTO pgz_sport.sys_users (id, email, password_hash, ime, prezime, oib, telefon, user_type, klub_id, savez_id, permissions, aktivan, last_login, failed_login_count, locked_until, auth_provider, google_sub, created_at, updated_at, created_by, note) VALUES (8, 'tajnik.zamet@rk.hr', 'cdce1c4405f83116caa34ed6ca1cd1b73a0bca0a0ab443ad73e09ae36c150332', 'Davor', 'Šimunović', NULL, NULL, 'klub_admin', NULL, NULL, '{}', true, NULL, 0, NULL, 'local', NULL, '2026-04-28 21:45:42.429263+02', '2026-04-28 21:45:42.429263+02', NULL, NULL);
INSERT INTO pgz_sport.sys_users (id, email, password_hash, ime, prezime, oib, telefon, user_type, klub_id, savez_id, permissions, aktivan, last_login, failed_login_count, locked_until, auth_provider, google_sub, created_at, updated_at, created_by, note) VALUES (9, 'sportas.test@example.hr', 'dcc140499509d64cd1b954c5efd12f933be898b21360684f33a09892f6febda1', 'Luka', 'Modrić', NULL, NULL, 'klub_clan', NULL, NULL, '{}', true, NULL, 0, NULL, 'local', NULL, '2026-04-28 21:45:42.429263+02', '2026-04-28 21:45:42.429263+02', NULL, NULL);


--
-- Data for Name: sys_audit; Type: TABLE DATA; Schema: pgz_sport; Owner: rinet
--

INSERT INTO pgz_sport.sys_audit (id, user_id, user_email, action, target_type, target_id, target_text, payload, ip_address, user_agent, created_at, prev_hash, row_hash, chain_idx) VALUES (1, NULL, NULL, 'lawyer.query', 'sport_lawyer', NULL, 'Kako kategorizirati odbojkaša prema HOO pravilniku?', '{"llm": "deepseek", "hits": 8, "sources": 5}', NULL, NULL, '2026-04-28 21:39:45.81286+02', 'GENESIS_PGZ_SPORT_2026', 'cc82c5087a3570f52dd415777fbd6c089ae012d0eaf5a653a0ab82472f3020ef', 1);
INSERT INTO pgz_sport.sys_audit (id, user_id, user_email, action, target_type, target_id, target_text, payload, ip_address, user_agent, created_at, prev_hash, row_hash, chain_idx) VALUES (2, NULL, NULL, 'lawyer.query', 'sport_lawyer', NULL, 'Koji su uvjeti za sufinanciranje sportskog programa iz proračuna PGŽ?', '{"llm": "deepseek", "hits": 8, "sources": 3}', NULL, NULL, '2026-04-28 21:46:05.779942+02', 'cc82c5087a3570f52dd415777fbd6c089ae012d0eaf5a653a0ab82472f3020ef', 'ae124a80e32f70f9dc791483b8c933a55e9f7af1c7a0d9a54cc10bd8eda2e0e8', 2);
INSERT INTO pgz_sport.sys_audit (id, user_id, user_email, action, target_type, target_id, target_text, payload, ip_address, user_agent, created_at, prev_hash, row_hash, chain_idx) VALUES (3, NULL, NULL, 'lawyer.query', 'sport_lawyer', NULL, 'Kako kategorizirati odbojkaša prema HOO pravilniku?', '{"llm": "deepseek", "hits": 8, "sources": 5}', NULL, NULL, '2026-04-28 21:46:37.649209+02', 'ae124a80e32f70f9dc791483b8c933a55e9f7af1c7a0d9a54cc10bd8eda2e0e8', '86cb095dfa4f3bbc2dd259947c3cef9ea2aa8c4ecf40bf9d0ef30eab3e4dadc5', 3);
INSERT INTO pgz_sport.sys_audit (id, user_id, user_email, action, target_type, target_id, target_text, payload, ip_address, user_agent, created_at, prev_hash, row_hash, chain_idx) VALUES (4, NULL, NULL, 'lawyer.query', 'sport_lawyer', NULL, 'Koji su uvjeti za sufinanciranje sportskog programa iz proračuna PGŽ?', '{"llm": "deepseek", "hits": 8, "sources": 3}', NULL, NULL, '2026-04-28 21:46:47.068418+02', '86cb095dfa4f3bbc2dd259947c3cef9ea2aa8c4ecf40bf9d0ef30eab3e4dadc5', 'b9116496dc8b9cac2e767badabe2c72c423cec1542976e5c4f8dbdad9a6ffbf9', 4);
INSERT INTO pgz_sport.sys_audit (id, user_id, user_email, action, target_type, target_id, target_text, payload, ip_address, user_agent, created_at, prev_hash, row_hash, chain_idx) VALUES (5, NULL, NULL, 'lawyer.query', 'sport_lawyer', NULL, 'Koliko često sportaš mora obaviti liječnički pregled?', '{"llm": "deepseek", "hits": 8, "sources": 3}', NULL, NULL, '2026-04-28 21:46:56.756009+02', 'b9116496dc8b9cac2e767badabe2c72c423cec1542976e5c4f8dbdad9a6ffbf9', '8d3bcc90bbed7af23368f95e863f89b34e78c47113b4fbe847942e4c77778590', 5);
INSERT INTO pgz_sport.sys_audit (id, user_id, user_email, action, target_type, target_id, target_text, payload, ip_address, user_agent, created_at, prev_hash, row_hash, chain_idx) VALUES (6, NULL, NULL, 'lawyer.query', 'sport_lawyer', NULL, 'Što je potrebno za prijavu sportaša u registar HNS-a?', '{"llm": "deepseek", "hits": 8, "sources": 3}', NULL, NULL, '2026-04-28 21:47:04.350552+02', '8d3bcc90bbed7af23368f95e863f89b34e78c47113b4fbe847942e4c77778590', '0ad5b22b886053460a6e18851fa5ef05ac71806b12d11e939fc1c93f936a6a62', 6);
INSERT INTO pgz_sport.sys_audit (id, user_id, user_email, action, target_type, target_id, target_text, payload, ip_address, user_agent, created_at, prev_hash, row_hash, chain_idx) VALUES (7, NULL, NULL, 'lawyer.query', 'sport_lawyer', NULL, 'Koje su obveze tajnika kluba za godišnje izvješće?', '{"llm": "deepseek", "hits": 8, "sources": 3}', NULL, NULL, '2026-04-28 21:47:13.828479+02', '0ad5b22b886053460a6e18851fa5ef05ac71806b12d11e939fc1c93f936a6a62', '5aa179cbae51ddebb02b5ae549b7f233b4967284fd364fd37eb9bf44baeb76c7', 7);
INSERT INTO pgz_sport.sys_audit (id, user_id, user_email, action, target_type, target_id, target_text, payload, ip_address, user_agent, created_at, prev_hash, row_hash, chain_idx) VALUES (8, NULL, NULL, 'lawyer.query', 'sport_lawyer', NULL, 'Tko određuje koeficijent kategorije kluba u PGŽ?', '{"llm": "deepseek", "hits": 8, "sources": 4}', NULL, NULL, '2026-04-28 21:47:23.951591+02', '5aa179cbae51ddebb02b5ae549b7f233b4967284fd364fd37eb9bf44baeb76c7', '1e8d26932869e7f9b90bbc5477746b10e8944e847741dc896181feb768ae4d49', 8);
INSERT INTO pgz_sport.sys_audit (id, user_id, user_email, action, target_type, target_id, target_text, payload, ip_address, user_agent, created_at, prev_hash, row_hash, chain_idx) VALUES (9, NULL, NULL, 'lawyer.query', 'sport_lawyer', NULL, 'Što sadrži program javnih potreba u sportu Grada Rijeke?', '{"llm": "deepseek", "hits": 8, "sources": 4}', NULL, NULL, '2026-04-28 21:47:32.010763+02', '1e8d26932869e7f9b90bbc5477746b10e8944e847741dc896181feb768ae4d49', '7805ef3f6fd232a311a38e2af1a60bc36cbd11007abd3d2faa9a5f989764be70', 9);
INSERT INTO pgz_sport.sys_audit (id, user_id, user_email, action, target_type, target_id, target_text, payload, ip_address, user_agent, created_at, prev_hash, row_hash, chain_idx) VALUES (10, NULL, NULL, 'lawyer.query', 'sport_lawyer', NULL, 'Kakve su sankcije za doping u atletici?', '{"llm": "deepseek", "hits": 8, "sources": 5}', NULL, NULL, '2026-04-28 21:47:39.708735+02', '7805ef3f6fd232a311a38e2af1a60bc36cbd11007abd3d2faa9a5f989764be70', '4ee545b511e94de55d1a5af71cf1058fed682c39289d87b54fddf7301d8ce813', 10);
INSERT INTO pgz_sport.sys_audit (id, user_id, user_email, action, target_type, target_id, target_text, payload, ip_address, user_agent, created_at, prev_hash, row_hash, chain_idx) VALUES (11, NULL, NULL, 'lawyer.query', 'sport_lawyer', NULL, 'Kako kategorizirati odbojkaša prema HOO pravilniku?', '{"llm": "deepseek", "hits": 8, "sources": 5}', NULL, NULL, '2026-04-28 21:47:40.899276+02', '4ee545b511e94de55d1a5af71cf1058fed682c39289d87b54fddf7301d8ce813', '51b8330a091c8b3f17784bf707f7d52c79808fe571269ce08e89957769b3005b', 11);
INSERT INTO pgz_sport.sys_audit (id, user_id, user_email, action, target_type, target_id, target_text, payload, ip_address, user_agent, created_at, prev_hash, row_hash, chain_idx) VALUES (12, NULL, NULL, 'lawyer.query', 'sport_lawyer', NULL, 'Koji su uvjeti za sufinanciranje sportskog programa iz proračuna PGŽ?', '{"llm": "deepseek", "hits": 8, "sources": 3}', NULL, NULL, '2026-04-28 21:47:49.600982+02', '51b8330a091c8b3f17784bf707f7d52c79808fe571269ce08e89957769b3005b', '3394dd1b1b9fcf749a5ffc1351a6202dd954d9e674ea186c15d63dff50097998', 12);
INSERT INTO pgz_sport.sys_audit (id, user_id, user_email, action, target_type, target_id, target_text, payload, ip_address, user_agent, created_at, prev_hash, row_hash, chain_idx) VALUES (13, NULL, NULL, 'lawyer.query', 'sport_lawyer', NULL, 'Koliko često sportaš mora obaviti liječnički pregled?', '{"llm": "deepseek", "hits": 8, "sources": 3}', NULL, NULL, '2026-04-28 21:47:57.331833+02', '3394dd1b1b9fcf749a5ffc1351a6202dd954d9e674ea186c15d63dff50097998', '4e5b8514b9a943fd83e3537eff4066605fc9e38b612879dc36f7ff09a929c91b', 13);
INSERT INTO pgz_sport.sys_audit (id, user_id, user_email, action, target_type, target_id, target_text, payload, ip_address, user_agent, created_at, prev_hash, row_hash, chain_idx) VALUES (14, NULL, NULL, 'lawyer.query', 'sport_lawyer', NULL, 'Što je potrebno za prijavu sportaša u registar HNS-a?', '{"llm": "deepseek", "hits": 8, "sources": 3}', NULL, NULL, '2026-04-28 21:48:04.700253+02', '4e5b8514b9a943fd83e3537eff4066605fc9e38b612879dc36f7ff09a929c91b', '3dda986771ad3aa2314856a635c88d38ff700d3fcf2c608cc4ada0ff16da04cd', 14);
INSERT INTO pgz_sport.sys_audit (id, user_id, user_email, action, target_type, target_id, target_text, payload, ip_address, user_agent, created_at, prev_hash, row_hash, chain_idx) VALUES (15, NULL, NULL, 'lawyer.query', 'sport_lawyer', NULL, 'Koje su obveze tajnika kluba za godišnje izvješće?', '{"llm": "deepseek", "hits": 8, "sources": 3}', NULL, NULL, '2026-04-28 21:48:14.644534+02', '3dda986771ad3aa2314856a635c88d38ff700d3fcf2c608cc4ada0ff16da04cd', '8d3ddcdd1363f1467e5a4cc76caf3e8a93af5629c02f9c3f9924c60743f0e62d', 15);
INSERT INTO pgz_sport.sys_audit (id, user_id, user_email, action, target_type, target_id, target_text, payload, ip_address, user_agent, created_at, prev_hash, row_hash, chain_idx) VALUES (16, NULL, NULL, 'lawyer.query', 'sport_lawyer', NULL, 'Tko određuje koeficijent kategorije kluba u PGŽ?', '{"llm": "deepseek", "hits": 8, "sources": 4}', NULL, NULL, '2026-04-28 21:48:24.08297+02', '8d3ddcdd1363f1467e5a4cc76caf3e8a93af5629c02f9c3f9924c60743f0e62d', 'ce2504a50ff9c50cbed6c51a86e7569c06ff2c71df9ca153dfe39b41364cfa08', 16);
INSERT INTO pgz_sport.sys_audit (id, user_id, user_email, action, target_type, target_id, target_text, payload, ip_address, user_agent, created_at, prev_hash, row_hash, chain_idx) VALUES (17, NULL, NULL, 'lawyer.query', 'sport_lawyer', NULL, 'Što sadrži program javnih potreba u sportu Grada Rijeke?', '{"llm": "deepseek", "hits": 8, "sources": 4}', NULL, NULL, '2026-04-28 21:48:31.975034+02', 'ce2504a50ff9c50cbed6c51a86e7569c06ff2c71df9ca153dfe39b41364cfa08', '45e1e0cf3a70b956e302b34f513d074eb9f961990681c49a1145cb346b509824', 17);
INSERT INTO pgz_sport.sys_audit (id, user_id, user_email, action, target_type, target_id, target_text, payload, ip_address, user_agent, created_at, prev_hash, row_hash, chain_idx) VALUES (18, NULL, NULL, 'lawyer.query', 'sport_lawyer', NULL, 'Kakve su sankcije za doping u atletici?', '{"llm": "deepseek", "hits": 8, "sources": 5}', NULL, NULL, '2026-04-28 21:48:39.350733+02', '45e1e0cf3a70b956e302b34f513d074eb9f961990681c49a1145cb346b509824', '3846ce48e8fa4a0ff9bb042dcfaaee3bad6b9087b063a7a2bb39adf335f54b86', 18);
INSERT INTO pgz_sport.sys_audit (id, user_id, user_email, action, target_type, target_id, target_text, payload, ip_address, user_agent, created_at, prev_hash, row_hash, chain_idx) VALUES (19, NULL, NULL, 'lawyer.query', 'sport_lawyer', NULL, 'Kako kategorizirati odbojkaša prema HOO pravilniku?', '{"llm": "deepseek", "hits": 8, "sources": 5}', NULL, NULL, '2026-04-28 21:48:44.715048+02', '3846ce48e8fa4a0ff9bb042dcfaaee3bad6b9087b063a7a2bb39adf335f54b86', 'ddd196100d1c72ed3af17f78be88c6fe04ce4a208d8877d2555e714ab405b9ac', 19);
INSERT INTO pgz_sport.sys_audit (id, user_id, user_email, action, target_type, target_id, target_text, payload, ip_address, user_agent, created_at, prev_hash, row_hash, chain_idx) VALUES (20, NULL, NULL, 'lawyer.query', 'sport_lawyer', NULL, 'Koji su uvjeti za sufinanciranje sportskog programa iz proračuna PGŽ?', '{"llm": "deepseek", "hits": 8, "sources": 3}', NULL, NULL, '2026-04-28 21:48:55.385108+02', 'ddd196100d1c72ed3af17f78be88c6fe04ce4a208d8877d2555e714ab405b9ac', '74f8507064b98def8f87aac011d6742d95c9c39c8bbe3eed2229e74d39ddaaac', 20);
INSERT INTO pgz_sport.sys_audit (id, user_id, user_email, action, target_type, target_id, target_text, payload, ip_address, user_agent, created_at, prev_hash, row_hash, chain_idx) VALUES (21, NULL, NULL, 'lawyer.query', 'sport_lawyer', NULL, 'Koliko često sportaš mora obaviti liječnički pregled?', '{"llm": "deepseek", "hits": 8, "sources": 3}', NULL, NULL, '2026-04-28 21:49:05.94362+02', '74f8507064b98def8f87aac011d6742d95c9c39c8bbe3eed2229e74d39ddaaac', 'c2a29416d62a9ce4b34909dea5b8b7568be40e4f5632d54c7690f0114cc0e837', 21);
INSERT INTO pgz_sport.sys_audit (id, user_id, user_email, action, target_type, target_id, target_text, payload, ip_address, user_agent, created_at, prev_hash, row_hash, chain_idx) VALUES (22, NULL, NULL, 'lawyer.query', 'sport_lawyer', NULL, 'Što je potrebno za prijavu sportaša u registar HNS-a?', '{"llm": "deepseek", "hits": 8, "sources": 3}', NULL, NULL, '2026-04-28 21:49:13.081573+02', 'c2a29416d62a9ce4b34909dea5b8b7568be40e4f5632d54c7690f0114cc0e837', 'b77322c90763ca697ec06818af1f92df98d4936b3476ea3152e77151fd842be1', 22);
INSERT INTO pgz_sport.sys_audit (id, user_id, user_email, action, target_type, target_id, target_text, payload, ip_address, user_agent, created_at, prev_hash, row_hash, chain_idx) VALUES (23, NULL, NULL, 'lawyer.query', 'sport_lawyer', NULL, 'Koje su obveze tajnika kluba za godišnje izvješće?', '{"llm": "deepseek", "hits": 8, "sources": 3}', NULL, NULL, '2026-04-28 21:49:22.979803+02', 'b77322c90763ca697ec06818af1f92df98d4936b3476ea3152e77151fd842be1', 'dfd86420633a7686ba6420c721c5ea6ae077370bfde237e134955b9abc45516d', 23);
INSERT INTO pgz_sport.sys_audit (id, user_id, user_email, action, target_type, target_id, target_text, payload, ip_address, user_agent, created_at, prev_hash, row_hash, chain_idx) VALUES (24, NULL, NULL, 'lawyer.query', 'sport_lawyer', NULL, 'Tko određuje koeficijent kategorije kluba u PGŽ?', '{"llm": "deepseek", "hits": 8, "sources": 4}', NULL, NULL, '2026-04-28 21:49:29.554985+02', 'dfd86420633a7686ba6420c721c5ea6ae077370bfde237e134955b9abc45516d', 'c5ce4c6836324cd04be7773a1f10e9a0af2b3af792efe9f1531dfa7bf45de3ff', 24);
INSERT INTO pgz_sport.sys_audit (id, user_id, user_email, action, target_type, target_id, target_text, payload, ip_address, user_agent, created_at, prev_hash, row_hash, chain_idx) VALUES (25, NULL, NULL, 'lawyer.query', 'sport_lawyer', NULL, 'Što sadrži program javnih potreba u sportu Grada Rijeke?', '{"llm": "deepseek", "hits": 8, "sources": 4}', NULL, NULL, '2026-04-28 21:49:36.681882+02', 'c5ce4c6836324cd04be7773a1f10e9a0af2b3af792efe9f1531dfa7bf45de3ff', 'd6734e7f18473a57edbb2826d14b394e2f8f7d1514fd6086862fb252ee6c5eab', 25);
INSERT INTO pgz_sport.sys_audit (id, user_id, user_email, action, target_type, target_id, target_text, payload, ip_address, user_agent, created_at, prev_hash, row_hash, chain_idx) VALUES (26, NULL, NULL, 'lawyer.query', 'sport_lawyer', NULL, 'Kakve su sankcije za doping u atletici?', '{"llm": "deepseek", "hits": 8, "sources": 5}', NULL, NULL, '2026-04-28 21:49:43.735169+02', 'd6734e7f18473a57edbb2826d14b394e2f8f7d1514fd6086862fb252ee6c5eab', '710ba3f39e692e93510d7d969ed8a1f6e1f330274596ad2ba747e61170b3724d', 26);
INSERT INTO pgz_sport.sys_audit (id, user_id, user_email, action, target_type, target_id, target_text, payload, ip_address, user_agent, created_at, prev_hash, row_hash, chain_idx) VALUES (27, NULL, NULL, 'lawyer.query', 'sport_lawyer', NULL, 'Kako kategorizirati odbojkaša prema HOO pravilniku?', '{"llm": "deepseek", "hits": 8, "sources": 5}', NULL, NULL, '2026-04-28 21:49:50.701899+02', '710ba3f39e692e93510d7d969ed8a1f6e1f330274596ad2ba747e61170b3724d', '16b7d5261b42a3dfb486a0fde5cde1966ca8d97f3e43da3eb5998c38c5f118b0', 27);
INSERT INTO pgz_sport.sys_audit (id, user_id, user_email, action, target_type, target_id, target_text, payload, ip_address, user_agent, created_at, prev_hash, row_hash, chain_idx) VALUES (28, NULL, NULL, 'lawyer.query', 'sport_lawyer', NULL, 'Koji su uvjeti za sufinanciranje sportskog programa iz proračuna PGŽ?', '{"llm": "deepseek", "hits": 8, "sources": 3}', NULL, NULL, '2026-04-28 21:50:00.114435+02', '16b7d5261b42a3dfb486a0fde5cde1966ca8d97f3e43da3eb5998c38c5f118b0', '0d34a9efdf376c2b8ae1d36aafc58d45a4a3cbee48e8fa5b656a2c55d51c4e22', 28);
INSERT INTO pgz_sport.sys_audit (id, user_id, user_email, action, target_type, target_id, target_text, payload, ip_address, user_agent, created_at, prev_hash, row_hash, chain_idx) VALUES (29, NULL, NULL, 'lawyer.query', 'sport_lawyer', NULL, 'Koliko često sportaš mora obaviti liječnički pregled?', '{"llm": "deepseek", "hits": 8, "sources": 3}', NULL, NULL, '2026-04-28 21:50:07.530646+02', '0d34a9efdf376c2b8ae1d36aafc58d45a4a3cbee48e8fa5b656a2c55d51c4e22', 'e82fff154dc00e541b56066daa209447f389666afc36e5e418b31257de99c8a5', 29);
INSERT INTO pgz_sport.sys_audit (id, user_id, user_email, action, target_type, target_id, target_text, payload, ip_address, user_agent, created_at, prev_hash, row_hash, chain_idx) VALUES (30, NULL, NULL, 'lawyer.query', 'sport_lawyer', NULL, 'Što je potrebno za prijavu sportaša u registar HNS-a?', '{"llm": "deepseek", "hits": 8, "sources": 3}', NULL, NULL, '2026-04-28 21:50:15.009227+02', 'e82fff154dc00e541b56066daa209447f389666afc36e5e418b31257de99c8a5', '72ef9ff9af08c1f887aecee49c54cbf0e142fa24273a8d1007463f37b5f7e2cf', 30);
INSERT INTO pgz_sport.sys_audit (id, user_id, user_email, action, target_type, target_id, target_text, payload, ip_address, user_agent, created_at, prev_hash, row_hash, chain_idx) VALUES (31, NULL, NULL, 'lawyer.query', 'sport_lawyer', NULL, 'Koje su obveze tajnika kluba za godišnje izvješće?', '{"llm": "deepseek", "hits": 8, "sources": 3}', NULL, NULL, '2026-04-28 21:50:24.117512+02', '72ef9ff9af08c1f887aecee49c54cbf0e142fa24273a8d1007463f37b5f7e2cf', 'ba5ab371ed55c7ac24d3e3bf58cd7458bc8cdc5dd8c1bb7f9e9c0a3579ec5438', 31);
INSERT INTO pgz_sport.sys_audit (id, user_id, user_email, action, target_type, target_id, target_text, payload, ip_address, user_agent, created_at, prev_hash, row_hash, chain_idx) VALUES (32, NULL, NULL, 'lawyer.query', 'sport_lawyer', NULL, 'Tko određuje koeficijent kategorije kluba u PGŽ?', '{"llm": "deepseek", "hits": 8, "sources": 4}', NULL, NULL, '2026-04-28 21:50:30.146851+02', 'ba5ab371ed55c7ac24d3e3bf58cd7458bc8cdc5dd8c1bb7f9e9c0a3579ec5438', 'cbec883c514f7b5a8f0c4dbf4570c8fe6fcd08954309d0733046801b1978c806', 32);
INSERT INTO pgz_sport.sys_audit (id, user_id, user_email, action, target_type, target_id, target_text, payload, ip_address, user_agent, created_at, prev_hash, row_hash, chain_idx) VALUES (33, NULL, NULL, 'lawyer.query', 'sport_lawyer', NULL, 'Što sadrži program javnih potreba u sportu Grada Rijeke?', '{"llm": "deepseek", "hits": 8, "sources": 4}', NULL, NULL, '2026-04-28 21:50:39.242714+02', 'cbec883c514f7b5a8f0c4dbf4570c8fe6fcd08954309d0733046801b1978c806', 'a027f04f78b9406894d348a9284e3cfca1c09c1674054796577ff03efa01fbd7', 33);
INSERT INTO pgz_sport.sys_audit (id, user_id, user_email, action, target_type, target_id, target_text, payload, ip_address, user_agent, created_at, prev_hash, row_hash, chain_idx) VALUES (34, NULL, NULL, 'lawyer.query', 'sport_lawyer', NULL, 'Kakve su sankcije za doping u atletici?', '{"llm": "deepseek", "hits": 8, "sources": 5}', NULL, NULL, '2026-04-28 21:50:46.320136+02', 'a027f04f78b9406894d348a9284e3cfca1c09c1674054796577ff03efa01fbd7', 'fde998b810512fc5c50c69e226fd86ecf95dc30c0f38e14014785ac6782a1cab', 34);
INSERT INTO pgz_sport.sys_audit (id, user_id, user_email, action, target_type, target_id, target_text, payload, ip_address, user_agent, created_at, prev_hash, row_hash, chain_idx) VALUES (35, NULL, NULL, 'lawyer.query', 'sport_lawyer', NULL, 'Liječnički pregledi sportaša', '{"llm": "deepseek", "hits": 8, "sources": 3}', NULL, NULL, '2026-04-28 21:53:22.984643+02', 'fde998b810512fc5c50c69e226fd86ecf95dc30c0f38e14014785ac6782a1cab', 'f461d8a89e5bde3250b650b06261f6cdb93bd1b41608a83199a3331937819c1a', 35);
INSERT INTO pgz_sport.sys_audit (id, user_id, user_email, action, target_type, target_id, target_text, payload, ip_address, user_agent, created_at, prev_hash, row_hash, chain_idx) VALUES (36, NULL, NULL, 'schema.test', 'test_table', NULL, 'v6 setup test', '{"schema": "v6", "blockchain": true}', NULL, NULL, '2026-04-28 22:06:50.991864+02', 'f461d8a89e5bde3250b650b06261f6cdb93bd1b41608a83199a3331937819c1a', '6e293e13c1044d687404ade26ffd0208736ac041e5fe90c84b3a071df68d4486', 36);
INSERT INTO pgz_sport.sys_audit (id, user_id, user_email, action, target_type, target_id, target_text, payload, ip_address, user_agent, created_at, prev_hash, row_hash, chain_idx) VALUES (37, NULL, NULL, 'user.klub_link.create', 'sys_user_klub_links', 3, NULL, '{"role": "tajnik", "klub_id": null, "user_id": 2, "savez_id": 10}', NULL, NULL, '2026-04-28 22:20:38.823803+02', '6e293e13c1044d687404ade26ffd0208736ac041e5fe90c84b3a071df68d4486', 'c88cbc0c3de00d32cc1c799f6cf0de6baea9578bd2b88069c5729d03a7a30d19', 37);
INSERT INTO pgz_sport.sys_audit (id, user_id, user_email, action, target_type, target_id, target_text, payload, ip_address, user_agent, created_at, prev_hash, row_hash, chain_idx) VALUES (38, NULL, NULL, 'user.klub_link.create', 'sys_user_klub_links', 4, NULL, '{"role": "tajnik", "klub_id": 174, "user_id": 6, "savez_id": null}', NULL, NULL, '2026-04-28 22:20:38.874401+02', 'c88cbc0c3de00d32cc1c799f6cf0de6baea9578bd2b88069c5729d03a7a30d19', 'de43fd2e5ddc1530ef53f4743a74505be0891e1d536ed4ce965e1c24d1d71ac5', 38);
INSERT INTO pgz_sport.sys_audit (id, user_id, user_email, action, target_type, target_id, target_text, payload, ip_address, user_agent, created_at, prev_hash, row_hash, chain_idx) VALUES (39, NULL, NULL, 'lawyer.query', 'sport_lawyer', NULL, 'Kako kategorizirati odbojkaša?', '{"llm": "deepseek", "hits": 8, "sources": 4}', NULL, NULL, '2026-04-28 22:21:03.197332+02', 'de43fd2e5ddc1530ef53f4743a74505be0891e1d536ed4ce965e1c24d1d71ac5', 'bd0bec24c9cab8174786e3c3b97be88ec025fee492f11a2ac66225b7318ae8dc', 39);
INSERT INTO pgz_sport.sys_audit (id, user_id, user_email, action, target_type, target_id, target_text, payload, ip_address, user_agent, created_at, prev_hash, row_hash, chain_idx) VALUES (40, NULL, NULL, 'lawyer.query', 'sport_lawyer', NULL, 'Koja je cijena po prijeđenom km kod obračuna troškova putnih naloga?', '{"llm": "deepseek", "hits": 6, "sources": 2}', NULL, NULL, '2026-04-28 23:27:16.013163+02', 'bd0bec24c9cab8174786e3c3b97be88ec025fee492f11a2ac66225b7318ae8dc', 'f382b126a7e8f307cfaef40ae529e3213c7f76a2efc64732bada1be0c3327ca0', 40);
INSERT INTO pgz_sport.sys_audit (id, user_id, user_email, action, target_type, target_id, target_text, payload, ip_address, user_agent, created_at, prev_hash, row_hash, chain_idx) VALUES (41, NULL, NULL, 'lawyer.query', 'sport_lawyer', NULL, 'Tko ima pravo na sufinanciranje sporta u PGZ?', '{"llm": "deepseek", "hits": 1, "sources": 0}', NULL, NULL, '2026-04-29 07:08:41.784819+02', 'f382b126a7e8f307cfaef40ae529e3213c7f76a2efc64732bada1be0c3327ca0', '241d1fd9a2f57d3c4556aed0ec700d798e73bd84bc8891bb9bdb21f3466db5a1', 41);
INSERT INTO pgz_sport.sys_audit (id, user_id, user_email, action, target_type, target_id, target_text, payload, ip_address, user_agent, created_at, prev_hash, row_hash, chain_idx) VALUES (42, NULL, NULL, 'lawyer.query', 'sport_lawyer', NULL, 'Pravilnik o kategorizaciji sportaša u Hrvatskom olimpijskom odboru', '{"llm": "deepseek", "hits": 6, "sources": 6}', NULL, NULL, '2026-04-29 07:36:04.01401+02', '241d1fd9a2f57d3c4556aed0ec700d798e73bd84bc8891bb9bdb21f3466db5a1', '92b07a0580ce2ac53b1dddf7a8fad1fec958a56ca534bdcadc60fbfbbb6f735d', 42);
INSERT INTO pgz_sport.sys_audit (id, user_id, user_email, action, target_type, target_id, target_text, payload, ip_address, user_agent, created_at, prev_hash, row_hash, chain_idx) VALUES (43, NULL, NULL, 'lawyer.query', 'sport_lawyer', NULL, 'Pravilnik o kategorizaciji sportaša u Hrvatskom olimpijskom odboru', '{"llm": "deepseek", "hits": 6, "sources": 6}', NULL, NULL, '2026-04-29 07:36:25.317113+02', '92b07a0580ce2ac53b1dddf7a8fad1fec958a56ca534bdcadc60fbfbbb6f735d', '21829d6216333055329c08be815cfe227ba2a342d9088b51a1cc2bad76336a7d', 43);
INSERT INTO pgz_sport.sys_audit (id, user_id, user_email, action, target_type, target_id, target_text, payload, ip_address, user_agent, created_at, prev_hash, row_hash, chain_idx) VALUES (44, NULL, NULL, 'lawyer.query', 'sport_lawyer', NULL, 'Pravilnik o kategorizaciji sportaša HOO', '{"llm": "deepseek", "hits": 5, "sources": 5}', NULL, NULL, '2026-04-29 07:39:10.78041+02', '21829d6216333055329c08be815cfe227ba2a342d9088b51a1cc2bad76336a7d', 'fa9d49a65fea70228e4957c8f7d9907842d26149b81a60d2f3e1a796de0748ae', 44);
INSERT INTO pgz_sport.sys_audit (id, user_id, user_email, action, target_type, target_id, target_text, payload, ip_address, user_agent, created_at, prev_hash, row_hash, chain_idx) VALUES (45, NULL, NULL, 'lawyer.query', 'sport_lawyer', NULL, 'Plan razvoja sporta u Hrvatskoj 2019-2026', '{"llm": "deepseek", "hits": 5, "sources": 5}', NULL, NULL, '2026-04-29 07:39:20.23281+02', 'fa9d49a65fea70228e4957c8f7d9907842d26149b81a60d2f3e1a796de0748ae', '4dd040e7652d775ba53f8845a6ecb9db7edeef3a8daf369b4b9f7bbcf6015e7d', 45);
INSERT INTO pgz_sport.sys_audit (id, user_id, user_email, action, target_type, target_id, target_text, payload, ip_address, user_agent, created_at, prev_hash, row_hash, chain_idx) VALUES (46, NULL, NULL, 'lawyer.query', 'sport_lawyer', NULL, 'Natječaj za sufinanciranje sporta', '{"llm": "deepseek", "hits": 6, "sources": 5}', NULL, NULL, '2026-04-29 07:39:26.785165+02', '4dd040e7652d775ba53f8845a6ecb9db7edeef3a8daf369b4b9f7bbcf6015e7d', '3668482714c78fb0b8c645df80f54a3b2612ebab0f3918708ca56df2647fc41f', 46);


--
-- Data for Name: sys_permissions; Type: TABLE DATA; Schema: pgz_sport; Owner: rinet
--

INSERT INTO pgz_sport.sys_permissions (id, code, naziv, opis, kategorija) VALUES (1, 'klub.read.own', 'Pregled vlastitog kluba', NULL, 'klubovi');
INSERT INTO pgz_sport.sys_permissions (id, code, naziv, opis, kategorija) VALUES (2, 'klub.read.all', 'Pregled svih klubova', NULL, 'klubovi');
INSERT INTO pgz_sport.sys_permissions (id, code, naziv, opis, kategorija) VALUES (3, 'klub.edit.own', 'Uređivanje vlastitog kluba', NULL, 'klubovi');
INSERT INTO pgz_sport.sys_permissions (id, code, naziv, opis, kategorija) VALUES (4, 'klub.edit.all', 'Uređivanje svih klubova', NULL, 'klubovi');
INSERT INTO pgz_sport.sys_permissions (id, code, naziv, opis, kategorija) VALUES (5, 'klub.create', 'Stvaranje klubova', NULL, 'klubovi');
INSERT INTO pgz_sport.sys_permissions (id, code, naziv, opis, kategorija) VALUES (6, 'klub.delete', 'Brisanje klubova', NULL, 'klubovi');
INSERT INTO pgz_sport.sys_permissions (id, code, naziv, opis, kategorija) VALUES (7, 'clan.read.own', 'Pregled članova vlastitog kluba', NULL, 'clanovi');
INSERT INTO pgz_sport.sys_permissions (id, code, naziv, opis, kategorija) VALUES (8, 'clan.read.all', 'Pregled članova svih klubova', NULL, 'clanovi');
INSERT INTO pgz_sport.sys_permissions (id, code, naziv, opis, kategorija) VALUES (9, 'clan.edit.own', 'Uređivanje članova vlastitog kluba', NULL, 'clanovi');
INSERT INTO pgz_sport.sys_permissions (id, code, naziv, opis, kategorija) VALUES (10, 'clan.edit.all', 'Uređivanje članova svih klubova', NULL, 'clanovi');
INSERT INTO pgz_sport.sys_permissions (id, code, naziv, opis, kategorija) VALUES (11, 'clan.medical.read', 'Pregled medicinskih podataka', NULL, 'clanovi');
INSERT INTO pgz_sport.sys_permissions (id, code, naziv, opis, kategorija) VALUES (12, 'clan.medical.edit', 'Uređivanje medicinskih podataka', NULL, 'clanovi');
INSERT INTO pgz_sport.sys_permissions (id, code, naziv, opis, kategorija) VALUES (13, 'finance.read.own', 'Pregled financija vlastitog kluba', NULL, 'finance');
INSERT INTO pgz_sport.sys_permissions (id, code, naziv, opis, kategorija) VALUES (14, 'finance.read.all', 'Pregled financija svih klubova', NULL, 'finance');
INSERT INTO pgz_sport.sys_permissions (id, code, naziv, opis, kategorija) VALUES (15, 'finance.edit.own', 'Uređivanje financija vlastitog kluba', NULL, 'finance');
INSERT INTO pgz_sport.sys_permissions (id, code, naziv, opis, kategorija) VALUES (16, 'finance.edit.all', 'Uređivanje financija svih klubova', NULL, 'finance');
INSERT INTO pgz_sport.sys_permissions (id, code, naziv, opis, kategorija) VALUES (17, 'finance.invoice.read', 'Pregled računa', NULL, 'finance');
INSERT INTO pgz_sport.sys_permissions (id, code, naziv, opis, kategorija) VALUES (18, 'finance.invoice.create', 'Stvaranje računa', NULL, 'finance');
INSERT INTO pgz_sport.sys_permissions (id, code, naziv, opis, kategorija) VALUES (19, 'finance.expense.read', 'Pregled putnih naloga', NULL, 'finance');
INSERT INTO pgz_sport.sys_permissions (id, code, naziv, opis, kategorija) VALUES (20, 'finance.expense.create', 'Stvaranje putnih naloga', NULL, 'finance');
INSERT INTO pgz_sport.sys_permissions (id, code, naziv, opis, kategorija) VALUES (21, 'funding.read.own', 'Pregled sufinanciranja vlastitog kluba', NULL, 'funding');
INSERT INTO pgz_sport.sys_permissions (id, code, naziv, opis, kategorija) VALUES (22, 'funding.read.all', 'Pregled sufinanciranja svih klubova', NULL, 'funding');
INSERT INTO pgz_sport.sys_permissions (id, code, naziv, opis, kategorija) VALUES (23, 'funding.approve', 'Odobravanje sufinanciranja', NULL, 'funding');
INSERT INTO pgz_sport.sys_permissions (id, code, naziv, opis, kategorija) VALUES (24, 'manifestacije.read', 'Pregled manifestacija', NULL, 'manifestacije');
INSERT INTO pgz_sport.sys_permissions (id, code, naziv, opis, kategorija) VALUES (25, 'manifestacije.create', 'Stvaranje manifestacija', NULL, 'manifestacije');
INSERT INTO pgz_sport.sys_permissions (id, code, naziv, opis, kategorija) VALUES (26, 'manifestacije.edit', 'Uređivanje manifestacija', NULL, 'manifestacije');
INSERT INTO pgz_sport.sys_permissions (id, code, naziv, opis, kategorija) VALUES (27, 'lijecnicki.read.own', 'Pregled liječničkih vlastitog kluba', NULL, 'medical');
INSERT INTO pgz_sport.sys_permissions (id, code, naziv, opis, kategorija) VALUES (28, 'lijecnicki.read.all', 'Pregled liječničkih svih klubova', NULL, 'medical');
INSERT INTO pgz_sport.sys_permissions (id, code, naziv, opis, kategorija) VALUES (29, 'lijecnicki.edit.own', 'Uređivanje liječničkih vlastitog kluba', NULL, 'medical');
INSERT INTO pgz_sport.sys_permissions (id, code, naziv, opis, kategorija) VALUES (30, 'lijecnicki.edit.all', 'Uređivanje liječničkih svih klubova', NULL, 'medical');
INSERT INTO pgz_sport.sys_permissions (id, code, naziv, opis, kategorija) VALUES (31, 'lijecnicki.specijalisti', 'Upravljanje specijalistima', NULL, 'medical');
INSERT INTO pgz_sport.sys_permissions (id, code, naziv, opis, kategorija) VALUES (32, 'docs.read', 'Pregled pravilnika i dokumenata', NULL, 'docs');
INSERT INTO pgz_sport.sys_permissions (id, code, naziv, opis, kategorija) VALUES (33, 'docs.upload', 'Upload pravilnika', NULL, 'docs');
INSERT INTO pgz_sport.sys_permissions (id, code, naziv, opis, kategorija) VALUES (34, 'docs.delete', 'Brisanje dokumenata', NULL, 'docs');
INSERT INTO pgz_sport.sys_permissions (id, code, naziv, opis, kategorija) VALUES (35, 'ai.chat', 'Korištenje AI asistenta', NULL, 'ai');
INSERT INTO pgz_sport.sys_permissions (id, code, naziv, opis, kategorija) VALUES (36, 'ai.lawyer', 'Korištenje pravnika asistenta', NULL, 'ai');
INSERT INTO pgz_sport.sys_permissions (id, code, naziv, opis, kategorija) VALUES (37, 'ai.advanced', 'Napredne AI funkcije', NULL, 'ai');
INSERT INTO pgz_sport.sys_permissions (id, code, naziv, opis, kategorija) VALUES (38, 'reports.dashboard', 'Pregled dashboarda', NULL, 'reports');
INSERT INTO pgz_sport.sys_permissions (id, code, naziv, opis, kategorija) VALUES (39, 'reports.export', 'Eksport izvješća', NULL, 'reports');
INSERT INTO pgz_sport.sys_permissions (id, code, naziv, opis, kategorija) VALUES (40, 'reports.financial', 'Financijska izvješća', NULL, 'reports');
INSERT INTO pgz_sport.sys_permissions (id, code, naziv, opis, kategorija) VALUES (41, 'reports.forensic', 'Forenzička izvješća', NULL, 'reports');
INSERT INTO pgz_sport.sys_permissions (id, code, naziv, opis, kategorija) VALUES (42, 'admin.users.read', 'Pregled korisnika', NULL, 'admin');
INSERT INTO pgz_sport.sys_permissions (id, code, naziv, opis, kategorija) VALUES (43, 'admin.users.create', 'Stvaranje korisnika', NULL, 'admin');
INSERT INTO pgz_sport.sys_permissions (id, code, naziv, opis, kategorija) VALUES (44, 'admin.users.edit', 'Uređivanje korisnika', NULL, 'admin');
INSERT INTO pgz_sport.sys_permissions (id, code, naziv, opis, kategorija) VALUES (45, 'admin.users.delete', 'Brisanje korisnika', NULL, 'admin');
INSERT INTO pgz_sport.sys_permissions (id, code, naziv, opis, kategorija) VALUES (46, 'admin.permissions', 'Upravljanje dozvolama', NULL, 'admin');
INSERT INTO pgz_sport.sys_permissions (id, code, naziv, opis, kategorija) VALUES (47, 'admin.audit', 'Pregled audit log-a', NULL, 'admin');
INSERT INTO pgz_sport.sys_permissions (id, code, naziv, opis, kategorija) VALUES (48, 'admin.system', 'Sistemska podešavanja', NULL, 'admin');
INSERT INTO pgz_sport.sys_permissions (id, code, naziv, opis, kategorija) VALUES (49, 'natjecanja.read', 'Pregled natjecanja', NULL, 'natjecanja');
INSERT INTO pgz_sport.sys_permissions (id, code, naziv, opis, kategorija) VALUES (50, 'natjecanja.create', 'Stvaranje natjecanja', NULL, 'natjecanja');
INSERT INTO pgz_sport.sys_permissions (id, code, naziv, opis, kategorija) VALUES (51, 'natjecanja.edit', 'Uređivanje natjecanja', NULL, 'natjecanja');
INSERT INTO pgz_sport.sys_permissions (id, code, naziv, opis, kategorija) VALUES (52, 'alerts.read.own', 'Pregled alerta vlastitog kluba', NULL, 'alerts');
INSERT INTO pgz_sport.sys_permissions (id, code, naziv, opis, kategorija) VALUES (53, 'alerts.read.all', 'Pregled svih alerta', NULL, 'alerts');
INSERT INTO pgz_sport.sys_permissions (id, code, naziv, opis, kategorija) VALUES (54, 'alerts.resolve', 'Rješavanje alerta', NULL, 'alerts');


--
-- Data for Name: sys_role_permissions; Type: TABLE DATA; Schema: pgz_sport; Owner: rinet
--

INSERT INTO pgz_sport.sys_role_permissions (user_type, permission_code, granted) VALUES ('super_admin', 'klub.read.own', true);
INSERT INTO pgz_sport.sys_role_permissions (user_type, permission_code, granted) VALUES ('super_admin', 'klub.read.all', true);
INSERT INTO pgz_sport.sys_role_permissions (user_type, permission_code, granted) VALUES ('super_admin', 'klub.edit.own', true);
INSERT INTO pgz_sport.sys_role_permissions (user_type, permission_code, granted) VALUES ('super_admin', 'klub.edit.all', true);
INSERT INTO pgz_sport.sys_role_permissions (user_type, permission_code, granted) VALUES ('super_admin', 'klub.create', true);
INSERT INTO pgz_sport.sys_role_permissions (user_type, permission_code, granted) VALUES ('super_admin', 'klub.delete', true);
INSERT INTO pgz_sport.sys_role_permissions (user_type, permission_code, granted) VALUES ('super_admin', 'clan.read.own', true);
INSERT INTO pgz_sport.sys_role_permissions (user_type, permission_code, granted) VALUES ('super_admin', 'clan.read.all', true);
INSERT INTO pgz_sport.sys_role_permissions (user_type, permission_code, granted) VALUES ('super_admin', 'clan.edit.own', true);
INSERT INTO pgz_sport.sys_role_permissions (user_type, permission_code, granted) VALUES ('super_admin', 'clan.edit.all', true);
INSERT INTO pgz_sport.sys_role_permissions (user_type, permission_code, granted) VALUES ('super_admin', 'clan.medical.read', true);
INSERT INTO pgz_sport.sys_role_permissions (user_type, permission_code, granted) VALUES ('super_admin', 'clan.medical.edit', true);
INSERT INTO pgz_sport.sys_role_permissions (user_type, permission_code, granted) VALUES ('super_admin', 'finance.read.own', true);
INSERT INTO pgz_sport.sys_role_permissions (user_type, permission_code, granted) VALUES ('super_admin', 'finance.read.all', true);
INSERT INTO pgz_sport.sys_role_permissions (user_type, permission_code, granted) VALUES ('super_admin', 'finance.edit.own', true);
INSERT INTO pgz_sport.sys_role_permissions (user_type, permission_code, granted) VALUES ('super_admin', 'finance.edit.all', true);
INSERT INTO pgz_sport.sys_role_permissions (user_type, permission_code, granted) VALUES ('super_admin', 'finance.invoice.read', true);
INSERT INTO pgz_sport.sys_role_permissions (user_type, permission_code, granted) VALUES ('super_admin', 'finance.invoice.create', true);
INSERT INTO pgz_sport.sys_role_permissions (user_type, permission_code, granted) VALUES ('super_admin', 'finance.expense.read', true);
INSERT INTO pgz_sport.sys_role_permissions (user_type, permission_code, granted) VALUES ('super_admin', 'finance.expense.create', true);
INSERT INTO pgz_sport.sys_role_permissions (user_type, permission_code, granted) VALUES ('super_admin', 'funding.read.own', true);
INSERT INTO pgz_sport.sys_role_permissions (user_type, permission_code, granted) VALUES ('super_admin', 'funding.read.all', true);
INSERT INTO pgz_sport.sys_role_permissions (user_type, permission_code, granted) VALUES ('super_admin', 'funding.approve', true);
INSERT INTO pgz_sport.sys_role_permissions (user_type, permission_code, granted) VALUES ('super_admin', 'manifestacije.read', true);
INSERT INTO pgz_sport.sys_role_permissions (user_type, permission_code, granted) VALUES ('super_admin', 'manifestacije.create', true);
INSERT INTO pgz_sport.sys_role_permissions (user_type, permission_code, granted) VALUES ('super_admin', 'manifestacije.edit', true);
INSERT INTO pgz_sport.sys_role_permissions (user_type, permission_code, granted) VALUES ('super_admin', 'lijecnicki.read.own', true);
INSERT INTO pgz_sport.sys_role_permissions (user_type, permission_code, granted) VALUES ('super_admin', 'lijecnicki.read.all', true);
INSERT INTO pgz_sport.sys_role_permissions (user_type, permission_code, granted) VALUES ('super_admin', 'lijecnicki.edit.own', true);
INSERT INTO pgz_sport.sys_role_permissions (user_type, permission_code, granted) VALUES ('super_admin', 'lijecnicki.edit.all', true);
INSERT INTO pgz_sport.sys_role_permissions (user_type, permission_code, granted) VALUES ('super_admin', 'lijecnicki.specijalisti', true);
INSERT INTO pgz_sport.sys_role_permissions (user_type, permission_code, granted) VALUES ('super_admin', 'docs.read', true);
INSERT INTO pgz_sport.sys_role_permissions (user_type, permission_code, granted) VALUES ('super_admin', 'docs.upload', true);
INSERT INTO pgz_sport.sys_role_permissions (user_type, permission_code, granted) VALUES ('super_admin', 'docs.delete', true);
INSERT INTO pgz_sport.sys_role_permissions (user_type, permission_code, granted) VALUES ('super_admin', 'ai.chat', true);
INSERT INTO pgz_sport.sys_role_permissions (user_type, permission_code, granted) VALUES ('super_admin', 'ai.lawyer', true);
INSERT INTO pgz_sport.sys_role_permissions (user_type, permission_code, granted) VALUES ('super_admin', 'ai.advanced', true);
INSERT INTO pgz_sport.sys_role_permissions (user_type, permission_code, granted) VALUES ('super_admin', 'reports.dashboard', true);
INSERT INTO pgz_sport.sys_role_permissions (user_type, permission_code, granted) VALUES ('super_admin', 'reports.export', true);
INSERT INTO pgz_sport.sys_role_permissions (user_type, permission_code, granted) VALUES ('super_admin', 'reports.financial', true);
INSERT INTO pgz_sport.sys_role_permissions (user_type, permission_code, granted) VALUES ('super_admin', 'reports.forensic', true);
INSERT INTO pgz_sport.sys_role_permissions (user_type, permission_code, granted) VALUES ('super_admin', 'admin.users.read', true);
INSERT INTO pgz_sport.sys_role_permissions (user_type, permission_code, granted) VALUES ('super_admin', 'admin.users.create', true);
INSERT INTO pgz_sport.sys_role_permissions (user_type, permission_code, granted) VALUES ('super_admin', 'admin.users.edit', true);
INSERT INTO pgz_sport.sys_role_permissions (user_type, permission_code, granted) VALUES ('super_admin', 'admin.users.delete', true);
INSERT INTO pgz_sport.sys_role_permissions (user_type, permission_code, granted) VALUES ('super_admin', 'admin.permissions', true);
INSERT INTO pgz_sport.sys_role_permissions (user_type, permission_code, granted) VALUES ('super_admin', 'admin.audit', true);
INSERT INTO pgz_sport.sys_role_permissions (user_type, permission_code, granted) VALUES ('super_admin', 'admin.system', true);
INSERT INTO pgz_sport.sys_role_permissions (user_type, permission_code, granted) VALUES ('super_admin', 'natjecanja.read', true);
INSERT INTO pgz_sport.sys_role_permissions (user_type, permission_code, granted) VALUES ('super_admin', 'natjecanja.create', true);
INSERT INTO pgz_sport.sys_role_permissions (user_type, permission_code, granted) VALUES ('super_admin', 'natjecanja.edit', true);
INSERT INTO pgz_sport.sys_role_permissions (user_type, permission_code, granted) VALUES ('super_admin', 'alerts.read.own', true);
INSERT INTO pgz_sport.sys_role_permissions (user_type, permission_code, granted) VALUES ('super_admin', 'alerts.read.all', true);
INSERT INTO pgz_sport.sys_role_permissions (user_type, permission_code, granted) VALUES ('super_admin', 'alerts.resolve', true);
INSERT INTO pgz_sport.sys_role_permissions (user_type, permission_code, granted) VALUES ('pgz_admin', 'klub.read.own', true);
INSERT INTO pgz_sport.sys_role_permissions (user_type, permission_code, granted) VALUES ('pgz_admin', 'klub.read.all', true);
INSERT INTO pgz_sport.sys_role_permissions (user_type, permission_code, granted) VALUES ('pgz_admin', 'klub.edit.own', true);
INSERT INTO pgz_sport.sys_role_permissions (user_type, permission_code, granted) VALUES ('pgz_admin', 'klub.edit.all', true);
INSERT INTO pgz_sport.sys_role_permissions (user_type, permission_code, granted) VALUES ('pgz_admin', 'klub.create', true);
INSERT INTO pgz_sport.sys_role_permissions (user_type, permission_code, granted) VALUES ('pgz_admin', 'klub.delete', true);
INSERT INTO pgz_sport.sys_role_permissions (user_type, permission_code, granted) VALUES ('pgz_admin', 'clan.read.own', true);
INSERT INTO pgz_sport.sys_role_permissions (user_type, permission_code, granted) VALUES ('pgz_admin', 'clan.read.all', true);
INSERT INTO pgz_sport.sys_role_permissions (user_type, permission_code, granted) VALUES ('pgz_admin', 'clan.edit.own', true);
INSERT INTO pgz_sport.sys_role_permissions (user_type, permission_code, granted) VALUES ('pgz_admin', 'clan.edit.all', true);
INSERT INTO pgz_sport.sys_role_permissions (user_type, permission_code, granted) VALUES ('pgz_admin', 'clan.medical.read', true);
INSERT INTO pgz_sport.sys_role_permissions (user_type, permission_code, granted) VALUES ('pgz_admin', 'clan.medical.edit', true);
INSERT INTO pgz_sport.sys_role_permissions (user_type, permission_code, granted) VALUES ('pgz_admin', 'finance.read.own', true);
INSERT INTO pgz_sport.sys_role_permissions (user_type, permission_code, granted) VALUES ('pgz_admin', 'finance.read.all', true);
INSERT INTO pgz_sport.sys_role_permissions (user_type, permission_code, granted) VALUES ('pgz_admin', 'finance.edit.own', true);
INSERT INTO pgz_sport.sys_role_permissions (user_type, permission_code, granted) VALUES ('pgz_admin', 'finance.edit.all', true);
INSERT INTO pgz_sport.sys_role_permissions (user_type, permission_code, granted) VALUES ('pgz_admin', 'finance.invoice.read', true);
INSERT INTO pgz_sport.sys_role_permissions (user_type, permission_code, granted) VALUES ('pgz_admin', 'finance.invoice.create', true);
INSERT INTO pgz_sport.sys_role_permissions (user_type, permission_code, granted) VALUES ('pgz_admin', 'finance.expense.read', true);
INSERT INTO pgz_sport.sys_role_permissions (user_type, permission_code, granted) VALUES ('pgz_admin', 'finance.expense.create', true);
INSERT INTO pgz_sport.sys_role_permissions (user_type, permission_code, granted) VALUES ('pgz_admin', 'funding.read.own', true);
INSERT INTO pgz_sport.sys_role_permissions (user_type, permission_code, granted) VALUES ('pgz_admin', 'funding.read.all', true);
INSERT INTO pgz_sport.sys_role_permissions (user_type, permission_code, granted) VALUES ('pgz_admin', 'funding.approve', true);
INSERT INTO pgz_sport.sys_role_permissions (user_type, permission_code, granted) VALUES ('pgz_admin', 'manifestacije.read', true);
INSERT INTO pgz_sport.sys_role_permissions (user_type, permission_code, granted) VALUES ('pgz_admin', 'manifestacije.create', true);
INSERT INTO pgz_sport.sys_role_permissions (user_type, permission_code, granted) VALUES ('pgz_admin', 'manifestacije.edit', true);
INSERT INTO pgz_sport.sys_role_permissions (user_type, permission_code, granted) VALUES ('pgz_admin', 'lijecnicki.read.own', true);
INSERT INTO pgz_sport.sys_role_permissions (user_type, permission_code, granted) VALUES ('pgz_admin', 'lijecnicki.read.all', true);
INSERT INTO pgz_sport.sys_role_permissions (user_type, permission_code, granted) VALUES ('pgz_admin', 'lijecnicki.edit.own', true);
INSERT INTO pgz_sport.sys_role_permissions (user_type, permission_code, granted) VALUES ('pgz_admin', 'lijecnicki.edit.all', true);
INSERT INTO pgz_sport.sys_role_permissions (user_type, permission_code, granted) VALUES ('pgz_admin', 'lijecnicki.specijalisti', true);
INSERT INTO pgz_sport.sys_role_permissions (user_type, permission_code, granted) VALUES ('pgz_admin', 'docs.read', true);
INSERT INTO pgz_sport.sys_role_permissions (user_type, permission_code, granted) VALUES ('pgz_admin', 'docs.upload', true);
INSERT INTO pgz_sport.sys_role_permissions (user_type, permission_code, granted) VALUES ('pgz_admin', 'docs.delete', true);
INSERT INTO pgz_sport.sys_role_permissions (user_type, permission_code, granted) VALUES ('pgz_admin', 'ai.chat', true);
INSERT INTO pgz_sport.sys_role_permissions (user_type, permission_code, granted) VALUES ('pgz_admin', 'ai.lawyer', true);
INSERT INTO pgz_sport.sys_role_permissions (user_type, permission_code, granted) VALUES ('pgz_admin', 'ai.advanced', true);
INSERT INTO pgz_sport.sys_role_permissions (user_type, permission_code, granted) VALUES ('pgz_admin', 'reports.dashboard', true);
INSERT INTO pgz_sport.sys_role_permissions (user_type, permission_code, granted) VALUES ('pgz_admin', 'reports.export', true);
INSERT INTO pgz_sport.sys_role_permissions (user_type, permission_code, granted) VALUES ('pgz_admin', 'reports.financial', true);
INSERT INTO pgz_sport.sys_role_permissions (user_type, permission_code, granted) VALUES ('pgz_admin', 'reports.forensic', true);
INSERT INTO pgz_sport.sys_role_permissions (user_type, permission_code, granted) VALUES ('pgz_admin', 'admin.users.read', true);
INSERT INTO pgz_sport.sys_role_permissions (user_type, permission_code, granted) VALUES ('pgz_admin', 'admin.users.create', true);
INSERT INTO pgz_sport.sys_role_permissions (user_type, permission_code, granted) VALUES ('pgz_admin', 'admin.users.edit', true);
INSERT INTO pgz_sport.sys_role_permissions (user_type, permission_code, granted) VALUES ('pgz_admin', 'admin.users.delete', true);
INSERT INTO pgz_sport.sys_role_permissions (user_type, permission_code, granted) VALUES ('pgz_admin', 'admin.permissions', true);
INSERT INTO pgz_sport.sys_role_permissions (user_type, permission_code, granted) VALUES ('pgz_admin', 'admin.audit', true);
INSERT INTO pgz_sport.sys_role_permissions (user_type, permission_code, granted) VALUES ('pgz_admin', 'admin.system', true);
INSERT INTO pgz_sport.sys_role_permissions (user_type, permission_code, granted) VALUES ('pgz_admin', 'natjecanja.read', true);
INSERT INTO pgz_sport.sys_role_permissions (user_type, permission_code, granted) VALUES ('pgz_admin', 'natjecanja.create', true);
INSERT INTO pgz_sport.sys_role_permissions (user_type, permission_code, granted) VALUES ('pgz_admin', 'natjecanja.edit', true);
INSERT INTO pgz_sport.sys_role_permissions (user_type, permission_code, granted) VALUES ('pgz_admin', 'alerts.read.own', true);
INSERT INTO pgz_sport.sys_role_permissions (user_type, permission_code, granted) VALUES ('pgz_admin', 'alerts.read.all', true);
INSERT INTO pgz_sport.sys_role_permissions (user_type, permission_code, granted) VALUES ('pgz_admin', 'alerts.resolve', true);
INSERT INTO pgz_sport.sys_role_permissions (user_type, permission_code, granted) VALUES ('pgz_user', 'klub.read.all', true);
INSERT INTO pgz_sport.sys_role_permissions (user_type, permission_code, granted) VALUES ('pgz_user', 'clan.read.all', true);
INSERT INTO pgz_sport.sys_role_permissions (user_type, permission_code, granted) VALUES ('pgz_user', 'finance.read.all', true);
INSERT INTO pgz_sport.sys_role_permissions (user_type, permission_code, granted) VALUES ('pgz_user', 'funding.read.all', true);
INSERT INTO pgz_sport.sys_role_permissions (user_type, permission_code, granted) VALUES ('pgz_user', 'manifestacije.read', true);
INSERT INTO pgz_sport.sys_role_permissions (user_type, permission_code, granted) VALUES ('pgz_user', 'lijecnicki.read.all', true);
INSERT INTO pgz_sport.sys_role_permissions (user_type, permission_code, granted) VALUES ('pgz_user', 'docs.read', true);
INSERT INTO pgz_sport.sys_role_permissions (user_type, permission_code, granted) VALUES ('pgz_user', 'ai.chat', true);
INSERT INTO pgz_sport.sys_role_permissions (user_type, permission_code, granted) VALUES ('pgz_user', 'ai.lawyer', true);
INSERT INTO pgz_sport.sys_role_permissions (user_type, permission_code, granted) VALUES ('pgz_user', 'reports.dashboard', true);
INSERT INTO pgz_sport.sys_role_permissions (user_type, permission_code, granted) VALUES ('pgz_user', 'reports.export', true);
INSERT INTO pgz_sport.sys_role_permissions (user_type, permission_code, granted) VALUES ('pgz_user', 'natjecanja.read', true);
INSERT INTO pgz_sport.sys_role_permissions (user_type, permission_code, granted) VALUES ('pgz_user', 'alerts.read.all', true);
INSERT INTO pgz_sport.sys_role_permissions (user_type, permission_code, granted) VALUES ('pgz_finance', 'klub.read.all', true);
INSERT INTO pgz_sport.sys_role_permissions (user_type, permission_code, granted) VALUES ('pgz_finance', 'finance.read.all', true);
INSERT INTO pgz_sport.sys_role_permissions (user_type, permission_code, granted) VALUES ('pgz_finance', 'finance.edit.all', true);
INSERT INTO pgz_sport.sys_role_permissions (user_type, permission_code, granted) VALUES ('pgz_finance', 'finance.invoice.read', true);
INSERT INTO pgz_sport.sys_role_permissions (user_type, permission_code, granted) VALUES ('pgz_finance', 'funding.read.all', true);
INSERT INTO pgz_sport.sys_role_permissions (user_type, permission_code, granted) VALUES ('pgz_finance', 'funding.approve', true);
INSERT INTO pgz_sport.sys_role_permissions (user_type, permission_code, granted) VALUES ('pgz_finance', 'docs.read', true);
INSERT INTO pgz_sport.sys_role_permissions (user_type, permission_code, granted) VALUES ('pgz_finance', 'ai.chat', true);
INSERT INTO pgz_sport.sys_role_permissions (user_type, permission_code, granted) VALUES ('pgz_finance', 'ai.lawyer', true);
INSERT INTO pgz_sport.sys_role_permissions (user_type, permission_code, granted) VALUES ('pgz_finance', 'reports.dashboard', true);
INSERT INTO pgz_sport.sys_role_permissions (user_type, permission_code, granted) VALUES ('pgz_finance', 'reports.export', true);
INSERT INTO pgz_sport.sys_role_permissions (user_type, permission_code, granted) VALUES ('pgz_finance', 'reports.financial', true);
INSERT INTO pgz_sport.sys_role_permissions (user_type, permission_code, granted) VALUES ('pgz_finance', 'reports.forensic', true);
INSERT INTO pgz_sport.sys_role_permissions (user_type, permission_code, granted) VALUES ('pgz_finance', 'alerts.read.all', true);
INSERT INTO pgz_sport.sys_role_permissions (user_type, permission_code, granted) VALUES ('pgz_finance', 'alerts.resolve', true);
INSERT INTO pgz_sport.sys_role_permissions (user_type, permission_code, granted) VALUES ('pgz_zzjz', 'clan.read.all', true);
INSERT INTO pgz_sport.sys_role_permissions (user_type, permission_code, granted) VALUES ('pgz_zzjz', 'clan.medical.read', true);
INSERT INTO pgz_sport.sys_role_permissions (user_type, permission_code, granted) VALUES ('pgz_zzjz', 'clan.medical.edit', true);
INSERT INTO pgz_sport.sys_role_permissions (user_type, permission_code, granted) VALUES ('pgz_zzjz', 'lijecnicki.read.all', true);
INSERT INTO pgz_sport.sys_role_permissions (user_type, permission_code, granted) VALUES ('pgz_zzjz', 'lijecnicki.edit.all', true);
INSERT INTO pgz_sport.sys_role_permissions (user_type, permission_code, granted) VALUES ('pgz_zzjz', 'lijecnicki.specijalisti', true);
INSERT INTO pgz_sport.sys_role_permissions (user_type, permission_code, granted) VALUES ('pgz_zzjz', 'docs.read', true);
INSERT INTO pgz_sport.sys_role_permissions (user_type, permission_code, granted) VALUES ('pgz_zzjz', 'ai.chat', true);
INSERT INTO pgz_sport.sys_role_permissions (user_type, permission_code, granted) VALUES ('pgz_zzjz', 'reports.dashboard', true);
INSERT INTO pgz_sport.sys_role_permissions (user_type, permission_code, granted) VALUES ('savez_admin', 'klub.read.own', true);
INSERT INTO pgz_sport.sys_role_permissions (user_type, permission_code, granted) VALUES ('savez_admin', 'klub.edit.own', true);
INSERT INTO pgz_sport.sys_role_permissions (user_type, permission_code, granted) VALUES ('savez_admin', 'clan.read.own', true);
INSERT INTO pgz_sport.sys_role_permissions (user_type, permission_code, granted) VALUES ('savez_admin', 'clan.edit.own', true);
INSERT INTO pgz_sport.sys_role_permissions (user_type, permission_code, granted) VALUES ('savez_admin', 'finance.read.own', true);
INSERT INTO pgz_sport.sys_role_permissions (user_type, permission_code, granted) VALUES ('savez_admin', 'finance.edit.own', true);
INSERT INTO pgz_sport.sys_role_permissions (user_type, permission_code, granted) VALUES ('savez_admin', 'finance.invoice.read', true);
INSERT INTO pgz_sport.sys_role_permissions (user_type, permission_code, granted) VALUES ('savez_admin', 'finance.invoice.create', true);
INSERT INTO pgz_sport.sys_role_permissions (user_type, permission_code, granted) VALUES ('savez_admin', 'finance.expense.read', true);
INSERT INTO pgz_sport.sys_role_permissions (user_type, permission_code, granted) VALUES ('savez_admin', 'finance.expense.create', true);
INSERT INTO pgz_sport.sys_role_permissions (user_type, permission_code, granted) VALUES ('savez_admin', 'funding.read.own', true);
INSERT INTO pgz_sport.sys_role_permissions (user_type, permission_code, granted) VALUES ('savez_admin', 'manifestacije.read', true);
INSERT INTO pgz_sport.sys_role_permissions (user_type, permission_code, granted) VALUES ('savez_admin', 'manifestacije.create', true);
INSERT INTO pgz_sport.sys_role_permissions (user_type, permission_code, granted) VALUES ('savez_admin', 'manifestacije.edit', true);
INSERT INTO pgz_sport.sys_role_permissions (user_type, permission_code, granted) VALUES ('savez_admin', 'lijecnicki.read.own', true);
INSERT INTO pgz_sport.sys_role_permissions (user_type, permission_code, granted) VALUES ('savez_admin', 'docs.read', true);
INSERT INTO pgz_sport.sys_role_permissions (user_type, permission_code, granted) VALUES ('savez_admin', 'docs.upload', true);
INSERT INTO pgz_sport.sys_role_permissions (user_type, permission_code, granted) VALUES ('savez_admin', 'ai.chat', true);
INSERT INTO pgz_sport.sys_role_permissions (user_type, permission_code, granted) VALUES ('savez_admin', 'ai.lawyer', true);
INSERT INTO pgz_sport.sys_role_permissions (user_type, permission_code, granted) VALUES ('savez_admin', 'reports.dashboard', true);
INSERT INTO pgz_sport.sys_role_permissions (user_type, permission_code, granted) VALUES ('savez_admin', 'reports.export', true);
INSERT INTO pgz_sport.sys_role_permissions (user_type, permission_code, granted) VALUES ('savez_admin', 'natjecanja.read', true);
INSERT INTO pgz_sport.sys_role_permissions (user_type, permission_code, granted) VALUES ('savez_admin', 'natjecanja.create', true);
INSERT INTO pgz_sport.sys_role_permissions (user_type, permission_code, granted) VALUES ('savez_admin', 'natjecanja.edit', true);
INSERT INTO pgz_sport.sys_role_permissions (user_type, permission_code, granted) VALUES ('savez_admin', 'alerts.read.own', true);
INSERT INTO pgz_sport.sys_role_permissions (user_type, permission_code, granted) VALUES ('savez_admin', 'alerts.resolve', true);
INSERT INTO pgz_sport.sys_role_permissions (user_type, permission_code, granted) VALUES ('savez_user', 'klub.read.own', true);
INSERT INTO pgz_sport.sys_role_permissions (user_type, permission_code, granted) VALUES ('savez_user', 'clan.read.own', true);
INSERT INTO pgz_sport.sys_role_permissions (user_type, permission_code, granted) VALUES ('savez_user', 'finance.read.own', true);
INSERT INTO pgz_sport.sys_role_permissions (user_type, permission_code, granted) VALUES ('savez_user', 'funding.read.own', true);
INSERT INTO pgz_sport.sys_role_permissions (user_type, permission_code, granted) VALUES ('savez_user', 'manifestacije.read', true);
INSERT INTO pgz_sport.sys_role_permissions (user_type, permission_code, granted) VALUES ('savez_user', 'docs.read', true);
INSERT INTO pgz_sport.sys_role_permissions (user_type, permission_code, granted) VALUES ('savez_user', 'ai.chat', true);
INSERT INTO pgz_sport.sys_role_permissions (user_type, permission_code, granted) VALUES ('savez_user', 'reports.dashboard', true);
INSERT INTO pgz_sport.sys_role_permissions (user_type, permission_code, granted) VALUES ('savez_user', 'natjecanja.read', true);
INSERT INTO pgz_sport.sys_role_permissions (user_type, permission_code, granted) VALUES ('savez_user', 'alerts.read.own', true);
INSERT INTO pgz_sport.sys_role_permissions (user_type, permission_code, granted) VALUES ('klub_admin', 'klub.read.own', true);
INSERT INTO pgz_sport.sys_role_permissions (user_type, permission_code, granted) VALUES ('klub_admin', 'klub.edit.own', true);
INSERT INTO pgz_sport.sys_role_permissions (user_type, permission_code, granted) VALUES ('klub_admin', 'clan.read.own', true);
INSERT INTO pgz_sport.sys_role_permissions (user_type, permission_code, granted) VALUES ('klub_admin', 'clan.edit.own', true);
INSERT INTO pgz_sport.sys_role_permissions (user_type, permission_code, granted) VALUES ('klub_admin', 'clan.medical.read', true);
INSERT INTO pgz_sport.sys_role_permissions (user_type, permission_code, granted) VALUES ('klub_admin', 'finance.read.own', true);
INSERT INTO pgz_sport.sys_role_permissions (user_type, permission_code, granted) VALUES ('klub_admin', 'finance.edit.own', true);
INSERT INTO pgz_sport.sys_role_permissions (user_type, permission_code, granted) VALUES ('klub_admin', 'finance.invoice.read', true);
INSERT INTO pgz_sport.sys_role_permissions (user_type, permission_code, granted) VALUES ('klub_admin', 'finance.invoice.create', true);
INSERT INTO pgz_sport.sys_role_permissions (user_type, permission_code, granted) VALUES ('klub_admin', 'finance.expense.read', true);
INSERT INTO pgz_sport.sys_role_permissions (user_type, permission_code, granted) VALUES ('klub_admin', 'finance.expense.create', true);
INSERT INTO pgz_sport.sys_role_permissions (user_type, permission_code, granted) VALUES ('klub_admin', 'funding.read.own', true);
INSERT INTO pgz_sport.sys_role_permissions (user_type, permission_code, granted) VALUES ('klub_admin', 'manifestacije.read', true);
INSERT INTO pgz_sport.sys_role_permissions (user_type, permission_code, granted) VALUES ('klub_admin', 'lijecnicki.read.own', true);
INSERT INTO pgz_sport.sys_role_permissions (user_type, permission_code, granted) VALUES ('klub_admin', 'lijecnicki.edit.own', true);
INSERT INTO pgz_sport.sys_role_permissions (user_type, permission_code, granted) VALUES ('klub_admin', 'docs.read', true);
INSERT INTO pgz_sport.sys_role_permissions (user_type, permission_code, granted) VALUES ('klub_admin', 'docs.upload', true);
INSERT INTO pgz_sport.sys_role_permissions (user_type, permission_code, granted) VALUES ('klub_admin', 'ai.chat', true);
INSERT INTO pgz_sport.sys_role_permissions (user_type, permission_code, granted) VALUES ('klub_admin', 'ai.lawyer', true);
INSERT INTO pgz_sport.sys_role_permissions (user_type, permission_code, granted) VALUES ('klub_admin', 'reports.dashboard', true);
INSERT INTO pgz_sport.sys_role_permissions (user_type, permission_code, granted) VALUES ('klub_admin', 'reports.export', true);
INSERT INTO pgz_sport.sys_role_permissions (user_type, permission_code, granted) VALUES ('klub_admin', 'natjecanja.read', true);
INSERT INTO pgz_sport.sys_role_permissions (user_type, permission_code, granted) VALUES ('klub_admin', 'alerts.read.own', true);
INSERT INTO pgz_sport.sys_role_permissions (user_type, permission_code, granted) VALUES ('klub_admin', 'alerts.resolve', true);
INSERT INTO pgz_sport.sys_role_permissions (user_type, permission_code, granted) VALUES ('klub_user', 'klub.read.own', true);
INSERT INTO pgz_sport.sys_role_permissions (user_type, permission_code, granted) VALUES ('klub_user', 'clan.read.own', true);
INSERT INTO pgz_sport.sys_role_permissions (user_type, permission_code, granted) VALUES ('klub_user', 'finance.read.own', true);
INSERT INTO pgz_sport.sys_role_permissions (user_type, permission_code, granted) VALUES ('klub_user', 'manifestacije.read', true);
INSERT INTO pgz_sport.sys_role_permissions (user_type, permission_code, granted) VALUES ('klub_user', 'docs.read', true);
INSERT INTO pgz_sport.sys_role_permissions (user_type, permission_code, granted) VALUES ('klub_user', 'ai.chat', true);
INSERT INTO pgz_sport.sys_role_permissions (user_type, permission_code, granted) VALUES ('klub_user', 'reports.dashboard', true);
INSERT INTO pgz_sport.sys_role_permissions (user_type, permission_code, granted) VALUES ('klub_user', 'natjecanja.read', true);
INSERT INTO pgz_sport.sys_role_permissions (user_type, permission_code, granted) VALUES ('klub_user', 'alerts.read.own', true);
INSERT INTO pgz_sport.sys_role_permissions (user_type, permission_code, granted) VALUES ('klub_clan', 'klub.read.own', true);
INSERT INTO pgz_sport.sys_role_permissions (user_type, permission_code, granted) VALUES ('klub_clan', 'clan.read.own', true);
INSERT INTO pgz_sport.sys_role_permissions (user_type, permission_code, granted) VALUES ('klub_clan', 'docs.read', true);
INSERT INTO pgz_sport.sys_role_permissions (user_type, permission_code, granted) VALUES ('klub_clan', 'ai.chat', true);
INSERT INTO pgz_sport.sys_role_permissions (user_type, permission_code, granted) VALUES ('guest', 'klub.read.all', true);
INSERT INTO pgz_sport.sys_role_permissions (user_type, permission_code, granted) VALUES ('guest', 'manifestacije.read', true);


--
-- Data for Name: sys_sessions; Type: TABLE DATA; Schema: pgz_sport; Owner: rinet
--



--
-- Data for Name: sys_user_klub_links; Type: TABLE DATA; Schema: pgz_sport; Owner: rinet
--

INSERT INTO pgz_sport.sys_user_klub_links (id, user_id, klub_id, savez_id, role, primary_link, od_datuma, do_datuma, aktivan, granted_by, granted_at, note) VALUES (3, 2, NULL, 10, 'tajnik', true, NULL, NULL, true, NULL, '2026-04-28 22:20:38.823803+02', NULL);
INSERT INTO pgz_sport.sys_user_klub_links (id, user_id, klub_id, savez_id, role, primary_link, od_datuma, do_datuma, aktivan, granted_by, granted_at, note) VALUES (4, 6, 174, NULL, 'tajnik', false, NULL, NULL, true, NULL, '2026-04-28 22:20:38.874401+02', NULL);


--
-- Data for Name: sys_user_permissions; Type: TABLE DATA; Schema: pgz_sport; Owner: rinet
--



--
-- Data for Name: user_klub_links; Type: TABLE DATA; Schema: pgz_sport; Owner: rinet
--



--
-- Data for Name: user_roles; Type: TABLE DATA; Schema: pgz_sport; Owner: rinet
--

INSERT INTO pgz_sport.user_roles (id, user_id, role_id, scope_type, scope_id, granted_by, granted_at, expires_at, active) VALUES (1, 1, 1, 'global', NULL, 1, '2026-04-28 19:45:29.033006+02', NULL, true);


--
-- Data for Name: user_sessions; Type: TABLE DATA; Schema: pgz_sport; Owner: rinet
--

INSERT INTO pgz_sport.user_sessions (id, user_id, token_hash, device_info, ip_address, created_at, expires_at, revoked) VALUES (1, 1, '8028fc0086d422e283835cf6a25927bf82d9e7c40cd78bb1002f9f17ee63376c', NULL, NULL, '2026-04-28 19:59:05.356182+02', '2026-05-28 19:59:05.347181+02', false);
INSERT INTO pgz_sport.user_sessions (id, user_id, token_hash, device_info, ip_address, created_at, expires_at, revoked) VALUES (2, 1, '1ad362058d122e2e2bb835f3582b00d171307176ec06dbe111cedead6d000bc2', NULL, NULL, '2026-04-28 20:06:03.802726+02', '2026-05-28 20:06:03.792923+02', false);
INSERT INTO pgz_sport.user_sessions (id, user_id, token_hash, device_info, ip_address, created_at, expires_at, revoked) VALUES (3, 1, 'bb66527853b5e67b0210593ad38b5425f36878cf180bde609eca8879167822ff', NULL, NULL, '2026-04-28 20:06:31.889351+02', '2026-05-28 20:06:31.88142+02', false);
INSERT INTO pgz_sport.user_sessions (id, user_id, token_hash, device_info, ip_address, created_at, expires_at, revoked) VALUES (4, 1, 'b9dde5175bf4586342650c3c7c77999e3e5700618044d63e1eba20eb87231344', NULL, NULL, '2026-04-28 20:07:02.022031+02', '2026-05-28 20:07:02.013891+02', false);


--
-- Name: audit_events_id_seq; Type: SEQUENCE SET; Schema: pgz_sport; Owner: rinet
--

SELECT pg_catalog.setval('pgz_sport.audit_events_id_seq', 6, true);


--
-- Name: audit_log_id_seq; Type: SEQUENCE SET; Schema: pgz_sport; Owner: rinet
--

SELECT pg_catalog.setval('pgz_sport.audit_log_id_seq', 1, true);


--
-- Name: roles_id_seq; Type: SEQUENCE SET; Schema: pgz_sport; Owner: rinet
--

SELECT pg_catalog.setval('pgz_sport.roles_id_seq', 7, true);


--
-- Name: sys_audit_id_seq; Type: SEQUENCE SET; Schema: pgz_sport; Owner: rinet
--

SELECT pg_catalog.setval('pgz_sport.sys_audit_id_seq', 46, true);


--
-- Name: sys_permissions_id_seq; Type: SEQUENCE SET; Schema: pgz_sport; Owner: rinet
--

SELECT pg_catalog.setval('pgz_sport.sys_permissions_id_seq', 54, true);


--
-- Name: sys_sessions_id_seq; Type: SEQUENCE SET; Schema: pgz_sport; Owner: rinet
--

SELECT pg_catalog.setval('pgz_sport.sys_sessions_id_seq', 1, false);


--
-- Name: sys_user_klub_links_id_seq; Type: SEQUENCE SET; Schema: pgz_sport; Owner: rinet
--

SELECT pg_catalog.setval('pgz_sport.sys_user_klub_links_id_seq', 4, true);


--
-- Name: sys_users_id_seq; Type: SEQUENCE SET; Schema: pgz_sport; Owner: rinet
--

SELECT pg_catalog.setval('pgz_sport.sys_users_id_seq', 9, true);


--
-- Name: user_klub_links_id_seq; Type: SEQUENCE SET; Schema: pgz_sport; Owner: rinet
--

SELECT pg_catalog.setval('pgz_sport.user_klub_links_id_seq', 1, false);


--
-- Name: user_roles_id_seq; Type: SEQUENCE SET; Schema: pgz_sport; Owner: rinet
--

SELECT pg_catalog.setval('pgz_sport.user_roles_id_seq', 1, true);


--
-- Name: user_sessions_id_seq; Type: SEQUENCE SET; Schema: pgz_sport; Owner: rinet
--

SELECT pg_catalog.setval('pgz_sport.user_sessions_id_seq', 4, true);


--
-- Name: users_id_seq; Type: SEQUENCE SET; Schema: pgz_sport; Owner: rinet
--

SELECT pg_catalog.setval('pgz_sport.users_id_seq', 1, true);


--
-- PostgreSQL database dump complete
--

\unrestrict h6bd7kGvxEavN2pokB3ndj68pJKRaJXQanRfq1xgOELkeOAc9Wagkc4WNCfcjsu

