2 -- PostgreSQL database dump
5 \restrict 7ORcvckz8vcHkck0VJfFbdyNwzkfePflTJHwaai2zf5AmjJ4Kqo25TYwtJcNjsN
7 -- Dumped from database version 13.23 (Debian 13.23-0+deb11u3)
8 -- Dumped by pg_dump version 13.23 (Debian 13.23-0+deb11u3)
10 SET statement_timeout = 0;
12 SET idle_in_transaction_session_timeout = 0;
13 SET client_encoding = 'UTF8';
14 SET standard_conforming_strings = on;
15 SELECT pg_catalog.set_config('search_path', '', false);
16 SET check_function_bodies = false;
17 SET xmloption = content;
18 SET client_min_messages = warning;
19 SET row_security = off;
22 -- Name: auth; Type: SCHEMA; Schema: -; Owner: kivitendo
28 ALTER SCHEMA auth OWNER TO kivitendo;
30 SET default_tablespace = '';
32 SET default_table_access_method = heap;
35 -- Name: clients; Type: TABLE; Schema: auth; Owner: kivitendo
38 CREATE TABLE auth.clients (
42 dbport integer DEFAULT 5432 NOT NULL,
45 dbpasswd text NOT NULL,
46 is_default boolean DEFAULT false NOT NULL,
47 task_server_user_id integer
51 ALTER TABLE auth.clients OWNER TO kivitendo;
54 -- Name: clients_groups; Type: TABLE; Schema: auth; Owner: kivitendo
57 CREATE TABLE auth.clients_groups (
58 client_id integer NOT NULL,
59 group_id integer NOT NULL
63 ALTER TABLE auth.clients_groups OWNER TO kivitendo;
66 -- Name: clients_id_seq; Type: SEQUENCE; Schema: auth; Owner: kivitendo
69 CREATE SEQUENCE auth.clients_id_seq
77 ALTER TABLE auth.clients_id_seq OWNER TO kivitendo;
80 -- Name: clients_id_seq; Type: SEQUENCE OWNED BY; Schema: auth; Owner: kivitendo
83 ALTER SEQUENCE auth.clients_id_seq OWNED BY auth.clients.id;
87 -- Name: clients_users; Type: TABLE; Schema: auth; Owner: kivitendo
90 CREATE TABLE auth.clients_users (
91 client_id integer NOT NULL,
92 user_id integer NOT NULL
96 ALTER TABLE auth.clients_users OWNER TO kivitendo;
99 -- Name: group_id_seq; Type: SEQUENCE; Schema: auth; Owner: kivitendo
102 CREATE SEQUENCE auth.group_id_seq
110 ALTER TABLE auth.group_id_seq OWNER TO kivitendo;
113 -- Name: group; Type: TABLE; Schema: auth; Owner: kivitendo
116 CREATE TABLE auth."group" (
117 id integer DEFAULT nextval('auth.group_id_seq'::regclass) NOT NULL,
123 ALTER TABLE auth."group" OWNER TO kivitendo;
126 -- Name: group_rights; Type: TABLE; Schema: auth; Owner: kivitendo
129 CREATE TABLE auth.group_rights (
130 group_id integer NOT NULL,
131 "right" text NOT NULL,
132 granted boolean NOT NULL
136 ALTER TABLE auth.group_rights OWNER TO kivitendo;
139 -- Name: master_rights; Type: TABLE; Schema: auth; Owner: kivitendo
142 CREATE TABLE auth.master_rights (
144 "position" integer NOT NULL,
146 description text NOT NULL,
147 category boolean DEFAULT false NOT NULL
151 ALTER TABLE auth.master_rights OWNER TO kivitendo;
154 -- Name: master_rights_id_seq; Type: SEQUENCE; Schema: auth; Owner: kivitendo
157 CREATE SEQUENCE auth.master_rights_id_seq
165 ALTER TABLE auth.master_rights_id_seq OWNER TO kivitendo;
168 -- Name: master_rights_id_seq; Type: SEQUENCE OWNED BY; Schema: auth; Owner: kivitendo
171 ALTER SEQUENCE auth.master_rights_id_seq OWNED BY auth.master_rights.id;
175 -- Name: schema_info; Type: TABLE; Schema: auth; Owner: kivitendo
178 CREATE TABLE auth.schema_info (
181 itime timestamp without time zone DEFAULT now()
185 ALTER TABLE auth.schema_info OWNER TO kivitendo;
188 -- Name: session; Type: TABLE; Schema: auth; Owner: kivitendo
191 CREATE TABLE auth.session (
194 mtime timestamp without time zone,
199 ALTER TABLE auth.session OWNER TO kivitendo;
202 -- Name: session_content; Type: TABLE; Schema: auth; Owner: kivitendo
205 CREATE TABLE auth.session_content (
206 session_id text NOT NULL,
207 sess_key text NOT NULL,
213 ALTER TABLE auth.session_content OWNER TO kivitendo;
216 -- Name: user_id_seq; Type: SEQUENCE; Schema: auth; Owner: kivitendo
219 CREATE SEQUENCE auth.user_id_seq
227 ALTER TABLE auth.user_id_seq OWNER TO kivitendo;
230 -- Name: user; Type: TABLE; Schema: auth; Owner: kivitendo
233 CREATE TABLE auth."user" (
234 id integer DEFAULT nextval('auth.user_id_seq'::regclass) NOT NULL,
240 ALTER TABLE auth."user" OWNER TO kivitendo;
243 -- Name: user_config; Type: TABLE; Schema: auth; Owner: kivitendo
246 CREATE TABLE auth.user_config (
247 user_id integer NOT NULL,
248 cfg_key text NOT NULL,
253 ALTER TABLE auth.user_config OWNER TO kivitendo;
256 -- Name: user_group; Type: TABLE; Schema: auth; Owner: kivitendo
259 CREATE TABLE auth.user_group (
260 user_id integer NOT NULL,
261 group_id integer NOT NULL
265 ALTER TABLE auth.user_group OWNER TO kivitendo;
268 -- Name: clients id; Type: DEFAULT; Schema: auth; Owner: kivitendo
271 ALTER TABLE ONLY auth.clients ALTER COLUMN id SET DEFAULT nextval('auth.clients_id_seq'::regclass);
275 -- Name: master_rights id; Type: DEFAULT; Schema: auth; Owner: kivitendo
278 ALTER TABLE ONLY auth.master_rights ALTER COLUMN id SET DEFAULT nextval('auth.master_rights_id_seq'::regclass);
282 -- Data for Name: clients; Type: TABLE DATA; Schema: auth; Owner: kivitendo
285 COPY auth.clients (id, name, dbhost, dbport, dbname, dbuser, dbpasswd, is_default, task_server_user_id) FROM stdin;
286 1 firma localhost 5432 firma kivitendo kivitendo t \N
291 -- Data for Name: clients_groups; Type: TABLE DATA; Schema: auth; Owner: kivitendo
294 COPY auth.clients_groups (client_id, group_id) FROM stdin;
300 -- Data for Name: clients_users; Type: TABLE DATA; Schema: auth; Owner: kivitendo
303 COPY auth.clients_users (client_id, user_id) FROM stdin;
309 -- Data for Name: group; Type: TABLE DATA; Schema: auth; Owner: kivitendo
312 COPY auth."group" (id, name, description) FROM stdin;
313 1 Vollzugriff Vollzugriff
318 -- Data for Name: group_rights; Type: TABLE DATA; Schema: auth; Owner: kivitendo
321 COPY auth.group_rights (group_id, "right", granted) FROM stdin;
322 1 customer_vendor_edit t
323 1 customer_vendor_all_edit t
324 1 part_service_assembly_edit t
325 1 part_service_assembly_details t
329 1 project_edit_view_invoices_permission t
330 1 show_extra_record_tab_customer t
331 1 show_extra_record_tab_vendor t
332 1 requirement_spec_edit t
333 1 sales_quotation_edit t
336 1 sales_delivery_order_edit t
339 1 sales_letter_edit t
341 1 sales_edit_prices t
342 1 show_ar_transactions t
344 1 delivery_value_report t
345 1 sales_letter_report t
347 1 request_quotation_edit t
348 1 purchase_order_edit t
349 1 purchase_delivery_order_edit t
350 1 vendor_invoice_edit t
351 1 purchase_letter_edit t
352 1 purchase_all_edit t
353 1 purchase_edit_prices t
354 1 show_ap_transactions t
355 1 purchase_letter_report t
357 1 warehouse_contents t
358 1 warehouse_management t
367 1 advance_turnover_tax_return t
372 1 custom_data_export_designer t
375 1 email_employee_readall f
377 1 display_admin_link f
381 1 time_recording_show_all t
382 1 time_recording_edit_all t
384 1 request_quotation_view t
385 1 sales_invoice_view t
386 1 purchase_invoice_view t
387 1 sales_delivery_order_view t
388 1 purchase_delivery_order_view t
389 1 sales_quotation_view t
390 1 purchase_order_view t
392 1 sales_reclamation_edit t
393 1 purchase_reclamation_edit t
394 1 custom_data_report t
395 1 sales_financial_controlling t
396 1 part_service_assembly_edit_prices t
397 1 sales_order_item_search t
399 1 sales_order_reports_amounts t
400 1 purchase_order_reports_amounts t
401 1 customer_report_view t
402 1 vendor_report_view t
403 1 contact_person_report_view t
408 -- Data for Name: master_rights; Type: TABLE DATA; Schema: auth; Owner: kivitendo
411 COPY auth.master_rights (id, "position", name, description, category) FROM stdin;
412 1 100 master_data Master Data t
413 2 200 customer_vendor_edit Create customers and vendors. Edit all vendors. Edit only customers where salesman equals employee (login) f
414 3 300 customer_vendor_all_edit Create customers and vendors. Edit all vendors. Edit all customers f
415 4 400 part_service_assembly_edit Create and edit parts, services, assemblies f
416 5 500 part_service_assembly_details Show details and reports of parts, services, assemblies f
417 6 600 project_edit Create and edit projects f
419 8 800 requirement_spec_edit Create and edit requirement specs f
420 9 900 sales_quotation_edit Create and edit sales quotations f
421 10 1000 sales_order_edit Create and edit sales orders f
422 11 1100 sales_delivery_order_edit Create and edit sales delivery orders f
423 12 1200 invoice_edit Create and edit invoices and credit notes f
424 13 1300 dunning_edit Create and edit dunnings f
425 14 1400 sales_letter_edit Edit sales letters f
426 15 1500 sales_all_edit View/edit all employees sales documents f
427 17 1700 show_ar_transactions Show AR transactions as part of AR invoice report f
428 18 1800 delivery_plan Show delivery plan f
429 19 1900 delivery_value_report Show delivery value report f
430 20 2000 sales_letter_report Show sales letters report f
432 22 2200 request_quotation_edit Create and edit RFQs f
433 23 2300 purchase_order_edit Create and edit purchase orders f
434 24 2400 purchase_delivery_order_edit Create and edit purchase delivery orders f
435 25 2500 vendor_invoice_edit Create and edit vendor invoices f
436 26 2600 show_ap_transactions Show AP transactions as part of AP invoice report f
437 27 2700 warehouse Warehouse management t
438 28 2800 warehouse_contents View warehouse content f
439 29 2900 warehouse_management Warehouse management f
440 30 3000 general_ledger_cash General ledger and cash t
441 32 3200 datev_export DATEV Export f
442 33 3300 cash Receipt, payment, reconciliation f
443 34 3400 bank_transaction Bank transactions f
444 35 3500 reports Reports t
445 36 3600 report All reports f
446 37 3700 advance_turnover_tax_return Advance turnover tax return f
447 38 3800 batch_printing_category Batch Printing t
448 39 3900 batch_printing Batch Printing f
449 31 3100 general_ledger AP/AR Aging & Journal f
450 16 1600 sales_edit_prices Edit prices and discount (if not used, textfield is ONLY set readonly) f
451 50 2050 import_ar Import AR from Scanner or Email f
452 52 2550 purchase_letter_edit Edit purchase letters f
453 53 2650 purchase_letter_report Show purchase letters report f
454 55 3130 gl_transactions General Ledger Transaction f
455 56 3150 ar_transactions AR Transactions f
456 57 3170 ap_transactions AP Transactions f
457 51 2680 import_ap Import AP from Scanner or Email f
458 58 550 assembly_edit Always edit assembly items (user can change/delete items even if assemblies are already produced) f
459 61 950 shop_order Get shoporders f
460 63 610 show_extra_record_tab_customer Show record tab in customer f
461 64 611 show_extra_record_tab_vendor Show record tab in vendor f
462 65 602 project_edit_view_invoices_permission Projects: edit the list of employees allowed to view invoices f
463 66 2560 purchase_all_edit View/edit all employees purchase documents f
464 67 2570 purchase_edit_prices Edit prices and discount (if not used, textfield is ONLY set readonly) f
465 40 5000 configuration Configuration t
466 41 5100 config Change kivitendo installation settings (most entries in the 'System' menu) f
467 42 5200 admin Client administration: configuration, editing templates, task server control, background jobs (remaining entries in the 'System' menu) f
468 43 5300 others Others t
469 44 5400 email_bcc May set the BCC field when sending emails f
470 69 4300 time_recording Create, edit and list time recordings f
471 46 5600 display_admin_link Show administration link f
472 47 6000 all_drafts_edit Edit all drafts f
473 70 4320 time_recording_show_all List time recordings of all staff members f
474 71 4340 time_recording_edit_all Edit time recordings of all staff members f
475 54 5750 record_links Linked Records f
476 59 5275 custom_data_export_designer Custom data export f
477 62 5250 edit_shop_config Create and edit webshops f
478 68 4000 productivity_category Productivity t
479 45 4100 productivity Productivity (TODO list, Follow-Ups) f
480 48 4200 email_journal E-Mail-Journal f
481 49 4250 email_employee_readall Read all employee e-mails f
482 60 580 shop_part_edit Create and edit shopparts f
483 72 5220 developer See various menu entries intended for developers f
484 73 560 assortment_edit Always edit assortment items (user can change/delete items even if assortments are already used) f
485 74 910 sales_quotation_view View sales quotations f
486 75 1010 sales_order_view View sales orders f
487 76 1110 sales_delivery_order_view View sales delivery orders f
488 77 1210 sales_invoice_view View sales invoices and credit notes f
489 78 2210 request_quotation_view View RFQs f
490 79 2310 purchase_order_view View purchase orders f
491 80 2410 purchase_delivery_order_view View purchase delivery orders f
492 81 2510 purchase_invoice_view View purchase invoices f
493 82 1150 sales_reclamation_edit Create and edit sales reclamation f
494 83 2450 purchase_reclamation_edit Create and edit purchase reclamation f
495 84 3720 custom_data_report May use Custom Data Report at all f
496 85 1760 sales_financial_controlling Show sales financial controlling f
497 86 410 part_service_assembly_edit_prices Edit prices for parts, services, assemblies f
498 87 1750 sales_order_item_search Show sales order item search f
499 88 1770 sales_report Show sales report f
500 89 1015 sales_order_reports_amounts Show sales order reports with amounts (and links to open documents) f
501 90 2315 purchase_order_reports_amounts Show purchase order reports with amounts (and links to open documents) f
502 91 310 customer_report_view View customer report f
503 92 320 vendor_report_view View vendor report f
504 93 330 contact_person_report_view View contact person report f
509 -- Data for Name: schema_info; Type: TABLE DATA; Schema: auth; Owner: kivitendo
512 COPY auth.schema_info (tag, login, itime) FROM stdin;
513 add_api_token admin 2018-11-30 19:52:50.606337
514 add_batch_printing_to_full_access admin 2018-11-30 19:52:50.612204
515 auth_schema_normalization_1 admin 2018-11-30 19:52:50.679835
516 password_hashing admin 2018-11-30 19:52:50.757564
517 remove_menustyle_v4 admin 2018-11-30 19:52:50.787919
518 remove_menustyle_xml admin 2018-11-30 19:52:50.79445
519 session_content_auto_restore admin 2018-11-30 19:52:50.799888
520 release_3_0_0 admin 2018-11-30 19:52:50.831311
521 clients admin 2018-11-30 19:52:50.877394
522 clients_webdav admin 2018-11-30 19:52:50.98643
523 foreign_key_constraints_on_delete admin 2018-11-30 19:52:50.993769
524 release_3_2_0 admin 2018-11-30 19:52:51.066536
525 add_master_rights admin 2018-11-30 19:52:51.076355
526 bank_transaction_rights admin 2018-11-30 19:52:51.158372
527 delivery_plan_rights admin 2018-11-30 19:52:51.184635
528 delivery_process_value admin 2018-11-30 19:52:51.192706
529 details_and_report_of_parts admin 2018-11-30 19:52:51.221993
530 productivity_rights admin 2018-11-30 19:52:51.232101
531 requirement_spec_rights admin 2018-11-30 19:52:51.255307
532 rights_for_showing_ar_and_ap_transactions admin 2018-11-30 19:52:51.262267
533 sales_letter_rights admin 2018-11-30 19:52:51.2917
534 release_3_3_0 admin 2018-11-30 19:52:51.296489
535 client_task_server admin 2018-11-30 19:52:51.304536
536 remove_insecurely_hashed_passwords admin 2018-11-30 19:52:51.33197
537 session_content_primary_key admin 2018-11-30 19:52:51.339007
538 release_3_4_0 admin 2018-11-30 19:52:51.368148
539 master_rights_position_gaps admin 2021-01-16 23:27:44.749094
540 all_drafts_edit admin 2021-01-16 23:27:44.847437
541 mail_journal_rights admin 2021-01-16 23:27:44.899515
542 other_file_sources admin 2021-01-16 23:27:44.931875
543 purchase_letter_rights admin 2021-01-16 23:27:44.946762
544 record_links_rights admin 2021-01-16 23:27:44.964905
545 split_transaction_rights admin 2021-01-16 23:27:44.984987
546 other_file_sources2 admin 2021-01-16 23:27:45.030195
547 rename_general_ledger_rights admin 2021-01-16 23:27:45.043693
548 release_3_5_0 admin 2021-01-16 23:27:45.066912
549 assembly_edit_right admin 2021-01-16 23:27:45.095898
550 custom_data_export_rights admin 2021-01-16 23:27:45.120899
551 webshop_api_rights admin 2021-01-16 23:27:45.140731
552 webshop_api_rights_2 admin 2021-01-16 23:27:45.167397
553 release_3_5_1 admin 2021-01-16 23:27:45.175067
554 release_3_5_2 admin 2021-01-16 23:27:45.183556
555 customer_vendor_record_extra_tab_rights admin 2021-01-16 23:27:45.189809
556 release_3_5_3 admin 2021-01-16 23:27:45.19872
557 rights_for_viewing_project_specific_invoices admin 2021-01-16 23:27:45.210894
558 release_3_5_4 admin 2021-01-16 23:27:45.21948
559 right_purchase_all_edit admin 2021-01-16 23:27:45.227773
560 rights_sales_purchase_edit_prices admin 2021-01-16 23:27:45.256678
561 master_rights_positions_fix admin 2021-01-16 23:27:45.267954
562 release_3_5_5 admin 2021-01-16 23:27:45.285413
563 release_3_5_6 admin 2021-01-16 23:27:45.313788
564 release_3_5_6_1 admin 2021-01-16 23:27:45.326867
565 right_productivity_as_category admin 2023-12-16 23:40:01.312572
566 right_time_recording admin 2023-12-16 23:40:01.391342
567 rights_time_recording_show_edit_all admin 2023-12-16 23:40:01.402884
568 release_3_5_7 admin 2023-12-16 23:40:01.417409
569 move_shop_part_edit_right admin 2023-12-16 23:40:01.422614
570 right_develop admin 2023-12-16 23:40:01.429334
571 right_assortment_edit admin 2023-12-16 23:40:01.43762
572 release_3_5_8 admin 2023-12-16 23:40:01.445316
573 convert_columns_to_html_for_sending_html_emails admin 2023-12-16 23:40:01.453269
574 release_3_6_0 admin 2023-12-16 23:40:01.460452
575 rights_view_docs admin 2023-12-16 23:40:01.466624
576 release_3_6_1 admin 2023-12-16 23:40:01.504979
577 rights_for_reclamation admin 2026-04-24 23:21:20.921849
578 release_3_7_0 admin 2026-04-24 23:21:21.063779
579 release_3_8_0 admin 2026-04-24 23:21:21.069875
580 release_3_9_0 admin 2026-04-24 23:21:21.077871
581 right_custom_data_report admin 2026-04-24 23:21:21.08353
582 right_financial_controlling admin 2026-04-24 23:21:21.165759
583 right_part_master_data_prices admin 2026-04-24 23:21:21.176266
584 right_sales_order_item_search admin 2026-04-24 23:21:21.187545
585 right_sales_report admin 2026-04-24 23:21:21.198104
586 rights_order_reports_amounts admin 2026-04-24 23:21:21.208217
587 rights_view_cv_report admin 2026-04-24 23:21:21.226621
588 rights_view_cp_report admin 2026-04-24 23:21:21.237947
589 release_3_9_1 admin 2026-04-24 23:21:21.246782
590 set_all_users_to_design40 admin 2026-04-24 23:21:21.253369
591 release_3_9_2 admin 2026-04-24 23:21:21.260221
596 -- Data for Name: session; Type: TABLE DATA; Schema: auth; Owner: kivitendo
599 COPY auth.session (id, ip_address, mtime, api_token) FROM stdin;
600 5b7fa09a8133611fb5d808e8ab3aade3 127.0.0.1 2026-04-24 23:22:03.159092 7a18b42b57b7f86f45fec836318b2d79
605 -- Data for Name: session_content; Type: TABLE DATA; Schema: auth; Owner: kivitendo
608 COPY auth.session_content (session_id, sess_key, sess_value, auto_restore) FROM stdin;
609 5b7fa09a8133611fb5d808e8ab3aade3 session_auth_status_root --- 0\n \N
610 5b7fa09a8133611fb5d808e8ab3aade3 session_auth_status_user --- 0\n \N
611 5b7fa09a8133611fb5d808e8ab3aade3 client_id --- 1\n \N
612 5b7fa09a8133611fb5d808e8ab3aade3 login --- michael\n \N
617 -- Data for Name: user; Type: TABLE DATA; Schema: auth; Owner: kivitendo
620 COPY auth."user" (id, login, password) FROM stdin;
621 1 michael {PBKDF2}eb582ba54e6c4aefdf12345026c9e4eb8e:42f75af3ca486e0de3e9d6e655d1db0f0e8122b0040f3f64ac92ff683e89a1ed
626 -- Data for Name: user_config; Type: TABLE DATA; Schema: auth; Owner: kivitendo
629 COPY auth.user_config (user_id, cfg_key, cfg_value) FROM stdin;
630 1 mandatory_departments 0
632 1 numberformat 1.000,00
638 1 dateformat dd.mm.yy
643 1 stylesheet design40.css
648 -- Data for Name: user_group; Type: TABLE DATA; Schema: auth; Owner: kivitendo
651 COPY auth.user_group (user_id, group_id) FROM stdin;
657 -- Name: clients_id_seq; Type: SEQUENCE SET; Schema: auth; Owner: kivitendo
660 SELECT pg_catalog.setval('auth.clients_id_seq', 1, true);
664 -- Name: group_id_seq; Type: SEQUENCE SET; Schema: auth; Owner: kivitendo
667 SELECT pg_catalog.setval('auth.group_id_seq', 1, true);
671 -- Name: master_rights_id_seq; Type: SEQUENCE SET; Schema: auth; Owner: kivitendo
674 SELECT pg_catalog.setval('auth.master_rights_id_seq', 93, true);
678 -- Name: user_id_seq; Type: SEQUENCE SET; Schema: auth; Owner: kivitendo
681 SELECT pg_catalog.setval('auth.user_id_seq', 1, true);
685 -- Name: clients clients_dbhost_dbport_dbname_key; Type: CONSTRAINT; Schema: auth; Owner: kivitendo
688 ALTER TABLE ONLY auth.clients
689 ADD CONSTRAINT clients_dbhost_dbport_dbname_key UNIQUE (dbhost, dbport, dbname);
693 -- Name: clients_groups clients_groups_pkey; Type: CONSTRAINT; Schema: auth; Owner: kivitendo
696 ALTER TABLE ONLY auth.clients_groups
697 ADD CONSTRAINT clients_groups_pkey PRIMARY KEY (client_id, group_id);
701 -- Name: clients clients_name_key; Type: CONSTRAINT; Schema: auth; Owner: kivitendo
704 ALTER TABLE ONLY auth.clients
705 ADD CONSTRAINT clients_name_key UNIQUE (name);
709 -- Name: clients clients_pkey; Type: CONSTRAINT; Schema: auth; Owner: kivitendo
712 ALTER TABLE ONLY auth.clients
713 ADD CONSTRAINT clients_pkey PRIMARY KEY (id);
717 -- Name: clients_users clients_users_pkey; Type: CONSTRAINT; Schema: auth; Owner: kivitendo
720 ALTER TABLE ONLY auth.clients_users
721 ADD CONSTRAINT clients_users_pkey PRIMARY KEY (client_id, user_id);
725 -- Name: group group_name_key; Type: CONSTRAINT; Schema: auth; Owner: kivitendo
728 ALTER TABLE ONLY auth."group"
729 ADD CONSTRAINT group_name_key UNIQUE (name);
733 -- Name: group group_pkey; Type: CONSTRAINT; Schema: auth; Owner: kivitendo
736 ALTER TABLE ONLY auth."group"
737 ADD CONSTRAINT group_pkey PRIMARY KEY (id);
741 -- Name: group_rights group_rights_pkey; Type: CONSTRAINT; Schema: auth; Owner: kivitendo
744 ALTER TABLE ONLY auth.group_rights
745 ADD CONSTRAINT group_rights_pkey PRIMARY KEY (group_id, "right");
749 -- Name: master_rights master_rights_name_key; Type: CONSTRAINT; Schema: auth; Owner: kivitendo
752 ALTER TABLE ONLY auth.master_rights
753 ADD CONSTRAINT master_rights_name_key UNIQUE (name);
757 -- Name: master_rights master_rights_pkey; Type: CONSTRAINT; Schema: auth; Owner: kivitendo
760 ALTER TABLE ONLY auth.master_rights
761 ADD CONSTRAINT master_rights_pkey PRIMARY KEY (id);
765 -- Name: schema_info schema_info_pkey; Type: CONSTRAINT; Schema: auth; Owner: kivitendo
768 ALTER TABLE ONLY auth.schema_info
769 ADD CONSTRAINT schema_info_pkey PRIMARY KEY (tag);
773 -- Name: session_content session_content_pkey; Type: CONSTRAINT; Schema: auth; Owner: kivitendo
776 ALTER TABLE ONLY auth.session_content
777 ADD CONSTRAINT session_content_pkey PRIMARY KEY (session_id, sess_key);
781 -- Name: session session_pkey; Type: CONSTRAINT; Schema: auth; Owner: kivitendo
784 ALTER TABLE ONLY auth.session
785 ADD CONSTRAINT session_pkey PRIMARY KEY (id);
789 -- Name: user_config user_config_pkey; Type: CONSTRAINT; Schema: auth; Owner: kivitendo
792 ALTER TABLE ONLY auth.user_config
793 ADD CONSTRAINT user_config_pkey PRIMARY KEY (user_id, cfg_key);
797 -- Name: user_group user_group_pkey; Type: CONSTRAINT; Schema: auth; Owner: kivitendo
800 ALTER TABLE ONLY auth.user_group
801 ADD CONSTRAINT user_group_pkey PRIMARY KEY (user_id, group_id);
805 -- Name: user user_login_key; Type: CONSTRAINT; Schema: auth; Owner: kivitendo
808 ALTER TABLE ONLY auth."user"
809 ADD CONSTRAINT user_login_key UNIQUE (login);
813 -- Name: user user_pkey; Type: CONSTRAINT; Schema: auth; Owner: kivitendo
816 ALTER TABLE ONLY auth."user"
817 ADD CONSTRAINT user_pkey PRIMARY KEY (id);
821 -- Name: clients_groups clients_groups_client_id_fkey; Type: FK CONSTRAINT; Schema: auth; Owner: kivitendo
824 ALTER TABLE ONLY auth.clients_groups
825 ADD CONSTRAINT clients_groups_client_id_fkey FOREIGN KEY (client_id) REFERENCES auth.clients(id) ON DELETE CASCADE;
829 -- Name: clients_groups clients_groups_group_id_fkey; Type: FK CONSTRAINT; Schema: auth; Owner: kivitendo
832 ALTER TABLE ONLY auth.clients_groups
833 ADD CONSTRAINT clients_groups_group_id_fkey FOREIGN KEY (group_id) REFERENCES auth."group"(id) ON DELETE CASCADE;
837 -- Name: clients clients_task_server_user_id_fkey; Type: FK CONSTRAINT; Schema: auth; Owner: kivitendo
840 ALTER TABLE ONLY auth.clients
841 ADD CONSTRAINT clients_task_server_user_id_fkey FOREIGN KEY (task_server_user_id) REFERENCES auth."user"(id);
845 -- Name: clients_users clients_users_client_id_fkey; Type: FK CONSTRAINT; Schema: auth; Owner: kivitendo
848 ALTER TABLE ONLY auth.clients_users
849 ADD CONSTRAINT clients_users_client_id_fkey FOREIGN KEY (client_id) REFERENCES auth.clients(id) ON DELETE CASCADE;
853 -- Name: clients_users clients_users_user_id_fkey; Type: FK CONSTRAINT; Schema: auth; Owner: kivitendo
856 ALTER TABLE ONLY auth.clients_users
857 ADD CONSTRAINT clients_users_user_id_fkey FOREIGN KEY (user_id) REFERENCES auth."user"(id) ON DELETE CASCADE;
861 -- Name: group_rights group_rights_group_id_fkey; Type: FK CONSTRAINT; Schema: auth; Owner: kivitendo
864 ALTER TABLE ONLY auth.group_rights
865 ADD CONSTRAINT group_rights_group_id_fkey FOREIGN KEY (group_id) REFERENCES auth."group"(id) ON DELETE CASCADE;
869 -- Name: session_content session_content_session_id_fkey; Type: FK CONSTRAINT; Schema: auth; Owner: kivitendo
872 ALTER TABLE ONLY auth.session_content
873 ADD CONSTRAINT session_content_session_id_fkey FOREIGN KEY (session_id) REFERENCES auth.session(id) ON DELETE CASCADE;
877 -- Name: user_config user_config_user_id_fkey; Type: FK CONSTRAINT; Schema: auth; Owner: kivitendo
880 ALTER TABLE ONLY auth.user_config
881 ADD CONSTRAINT user_config_user_id_fkey FOREIGN KEY (user_id) REFERENCES auth."user"(id) ON DELETE CASCADE;
885 -- Name: user_group user_group_group_id_fkey; Type: FK CONSTRAINT; Schema: auth; Owner: kivitendo
888 ALTER TABLE ONLY auth.user_group
889 ADD CONSTRAINT user_group_group_id_fkey FOREIGN KEY (group_id) REFERENCES auth."group"(id) ON DELETE CASCADE;
893 -- Name: user_group user_group_user_id_fkey; Type: FK CONSTRAINT; Schema: auth; Owner: kivitendo
896 ALTER TABLE ONLY auth.user_group
897 ADD CONSTRAINT user_group_user_id_fkey FOREIGN KEY (user_id) REFERENCES auth."user"(id) ON DELETE CASCADE;
901 -- PostgreSQL database dump complete
904 \unrestrict 7ORcvckz8vcHkck0VJfFbdyNwzkfePflTJHwaai2zf5AmjJ4Kqo25TYwtJcNjsN