--
-- PostgreSQL database dump
--

-- Dumped from database version 12.7
-- Dumped by pg_dump version 12.7

SET statement_timeout = 0;
SET lock_timeout = 0;
SET idle_in_transaction_session_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: cars_log; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.cars_log (id, resource_id, time_log_created, operation, user_id) FROM stdin;
1	1	2022-04-17 22:59:55+03	O	23
\.


--
-- Data for Name: client; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.client (id, user_id, requirements, status, ticket_status, id_metaservice, is_global, is_visible) FROM stdin;
1	1	sgGshHz	A	1	1	t	f
\.


--
-- Data for Name: company; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.company (id, legal_name, provider_id, kpp, ogrn, bank_name, bik, ks, rs, address, id_metaservice, is_global, is_visible, requirements, status, ticket_status) FROM stdin;
1768457325	HfnyHk JKhdymk	2	876753121	7845637495863	HtGdtesgG	983744234	3	5	JhduYdyd	1	t	f	fsdkjh	A	1
\.


--
-- Data for Name: current_cars; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.current_cars (id, resource_id, user_id, order_status, order_id, current_token, doors_output, engine_input, central_lock_input, ignition_input, doors_input, input4, controller_status, signal_gsm, operator_gsm, signal_gps, location, speed, direction, address, battery_level, board_voltage) FROM stdin;
1	1	1	\N	\N	ghjkdgfshkl	C	O	C	O	C	\N	n	100	Мегафон	123	-22.951916, -43.2104872	90	N	Тверская область, город Щёлково, ш	45	12.6
\.


--
-- Data for Name: current_orders; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.current_orders (id, service_id, service_type_id, state, id_metaservice, time_created, time_placed, time_start, time_finish_predicted, time_finish_real, provider_id, receiver_id, client_id, predicted_price, real_price, is_global, is_visible) FROM stdin;
1	1	9	111	1	2022-04-17 01:02:03+03	2022-04-17 01:02:03+03	2022-04-17 01:02:03+03	2022-04-17 01:02:03+03	2022-04-17 01:02:03+03	1	12	2	435.66	546987.88	t	f
\.


--
-- Data for Name: current_timetable; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.current_timetable (id, order_id, service_type_id, provider_id, resource_id, time_start_predicted, time_finished_predicted, gap) FROM stdin;
\.


--
-- Data for Name: documents; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.documents (id, id_metaservice, doctype, expire_date, datalink, user_id, company_id, is_global, is_visible, check_level, check_by, check_date, status, ticket_status) FROM stdin;
1	1	99	2022-04-17	C:\\Folder	1	1	t	f	C	1	2022-04-17 01:02:03+03	A	213
\.


--
-- Data for Name: order_list_log; Type: TABLE DATA; Schema: public; Owner: sharix
--

COPY public.order_list_log (id, payment_transaction_id, service_id, time_placed, time_start, time_finish_predicted, time_finish_real, order_place_start, order_place_predicted, order_place_real, price, provider, receiver, client) FROM stdin;
\.


--
-- Data for Name: orders; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.orders (id, service_id, service_type_id, state, id_metaservice, time_created, time_placed, time_start, time_finish_predicted, time_finish_real, provider_id, receiver_id, client_id, predicted_price, real_price, is_global, is_visible) FROM stdin;
\.


--
-- Data for Name: permissions; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.permissions (id, id_metaservice, id_permission, user_id, is_global, is_visible, check_level, check_by, check_date, status, ticket_status) FROM stdin;
1	1	9	1	t	f	C	1	2022-04-17 01:02:03+03	A	213
\.


--
-- Data for Name: provider; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.provider (id, type, id_company, user_id, requirements, status, ticket_status, id_metaservice, is_global, is_visible, location_type, default_location) FROM stdin;
1	1	1	1	sgGsGgHz	A	1	1	t	f	GhYiy	OIcyY
\.


--
-- Data for Name: relationship; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.relationship (id, user_id_who, user_id_whom, neg_type, id_metaservice, is_global, is_visible, requirements, status, ticket_status) FROM stdin;
1	1	1	2	1	t	f	fsdkjh	A	1
\.


--
-- Data for Name: resource; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.resource (id, type_id, user_id, requirements, status, ticket_status, id_metaservice, is_global, is_visible) FROM stdin;
1	1	1	sgGshHz	A	1	1	t	f
\.


--
-- Data for Name: service; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.service (id, servicetype_id, id_provider, resourse_id, price_alg, price_km, price_min, price_amount, id_metaservice, is_global, is_visible, requirements, status, ticket_status) FROM stdin;
1	1	1	1	sdf87675312-sdfsdf=sfer	212	13	1415	1	t	f	fsdkjh	A	1
\.


--
-- Data for Name: servicetype; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.servicetype (id, caption, description, pricetype, id_metaservice, is_global, is_visible, requirements, status, ticket_status) FROM stdin;
1	HfnyHkJKhdymk	sdf87675312 sdfsdf sfer	12	1	t	f	fsdkjh	A	1
\.


--
-- Data for Name: tickets; Type: TABLE DATA; Schema: public; Owner: sharix
--

COPY public.tickets (id, id_reporter, id_asignee, time_created, time_assigned, time_changed, time_closed, status, description) FROM stdin;
\.


--
-- Data for Name: users; Type: TABLE DATA; Schema: public; Owner: drive
--

COPY public.users (id, name, access, login, password) FROM stdin;
\.


--
-- Name: cars_log_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.cars_log_id_seq', 1, true);


--
-- Name: client_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.client_id_seq', 1, true);


--
-- Name: current_cars_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.current_cars_id_seq', 1, true);


--
-- Name: current_orders_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.current_orders_id_seq', 1, true);


--
-- Name: current_timetable_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.current_timetable_id_seq', 1, false);


--
-- Name: documents_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.documents_id_seq', 1, true);


--
-- Name: order_list_log_id_seq; Type: SEQUENCE SET; Schema: public; Owner: sharix
--

SELECT pg_catalog.setval('public.order_list_log_id_seq', 1, false);


--
-- Name: orders_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.orders_id_seq', 1, false);


--
-- Name: permissions_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.permissions_id_seq', 1, true);


--
-- Name: provider_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.provider_id_seq', 1, true);


--
-- Name: relationship_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.relationship_id_seq', 1, true);


--
-- Name: resource_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.resource_id_seq', 1, true);


--
-- Name: service_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.service_id_seq', 1, true);


--
-- Name: servicetype_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.servicetype_id_seq', 1, true);


--
-- Name: tickets_id_seq; Type: SEQUENCE SET; Schema: public; Owner: sharix
--

SELECT pg_catalog.setval('public.tickets_id_seq', 1, false);


--
-- PostgreSQL database dump complete
--

