sharix_open_testdata.sql 9.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339
  1. --
  2. -- PostgreSQL database dump
  3. --
  4. -- Dumped from database version 12.7
  5. -- Dumped by pg_dump version 12.7
  6. SET statement_timeout = 0;
  7. SET lock_timeout = 0;
  8. SET idle_in_transaction_session_timeout = 0;
  9. SET client_encoding = 'UTF8';
  10. SET standard_conforming_strings = on;
  11. SELECT pg_catalog.set_config('search_path', '', false);
  12. SET check_function_bodies = false;
  13. SET xmloption = content;
  14. SET client_min_messages = warning;
  15. SET row_security = off;
  16. --
  17. -- Data for Name: cars_log; Type: TABLE DATA; Schema: public; Owner: postgres
  18. --
  19. COPY public.cars_log (id, resource_id, time_log_created, operation, user_id) FROM stdin;
  20. 1 1 2022-04-17 22:59:55+03 O 23
  21. \.
  22. --
  23. -- Data for Name: metauser; Type: TABLE DATA; Schema: public; Owner: postgres
  24. --
  25. COPY public.metauser (id, email, name, surname, phone, password) FROM stdin;
  26. \.
  27. --
  28. -- Data for Name: metaservice; Type: TABLE DATA; Schema: public; Owner: postgres
  29. --
  30. COPY public.metaservice (id, metaservicename, legalname, representative) FROM stdin;
  31. \.
  32. --
  33. -- Data for Name: tickets; Type: TABLE DATA; Schema: public; Owner: postgres
  34. --
  35. COPY public.tickets (id, id_reporter, id_asignee, time_created, time_assigned, time_changed, time_closed, status, description) FROM stdin;
  36. \.
  37. --
  38. -- Data for Name: client; Type: TABLE DATA; Schema: public; Owner: postgres
  39. --
  40. COPY public.client (id, user_id, requirements, status, ticket_status, id_metaservice, is_global, is_visible) FROM stdin;
  41. \.
  42. --
  43. -- Data for Name: company; Type: TABLE DATA; Schema: public; Owner: postgres
  44. --
  45. COPY public.company (id, legal_name, repr_id, kpp, ogrn, bank_name, bik, ks, rs, address, id_metaservice, is_global, is_visible, requirements, status, ticket_status) FROM stdin;
  46. \.
  47. --
  48. -- Data for Name: current_cars; Type: TABLE DATA; Schema: public; Owner: postgres
  49. --
  50. 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;
  51. 1 1 1 \N \N ghjkdgfshkl C O C O C \N n 100 Мегафон 123 -22.951916, -43.2104872 90 N Тверская область, город Щёлково, ш 45 12.6
  52. \.
  53. --
  54. -- Data for Name: provider; Type: TABLE DATA; Schema: public; Owner: postgres
  55. --
  56. 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;
  57. \.
  58. --
  59. -- Data for Name: resource; Type: TABLE DATA; Schema: public; Owner: postgres
  60. --
  61. COPY public.resource (id, type_id, user_id, requirements, status, ticket_status, id_metaservice, is_global, is_visible) FROM stdin;
  62. \.
  63. --
  64. -- Data for Name: servicetype; Type: TABLE DATA; Schema: public; Owner: postgres
  65. --
  66. COPY public.servicetype (id, caption, description, pricetype, id_metaservice, is_global, is_visible, requirements, status, ticket_status) FROM stdin;
  67. \.
  68. --
  69. -- Data for Name: service; Type: TABLE DATA; Schema: public; Owner: postgres
  70. --
  71. 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;
  72. \.
  73. --
  74. -- Data for Name: current_orders; Type: TABLE DATA; Schema: public; Owner: postgres
  75. --
  76. 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;
  77. \.
  78. --
  79. -- Data for Name: current_resources; Type: TABLE DATA; Schema: public; Owner: postgres
  80. --
  81. COPY public.current_resources (id, resource_id, operation, user_id, current_token, state) FROM stdin;
  82. \.
  83. --
  84. -- Data for Name: current_timetable; Type: TABLE DATA; Schema: public; Owner: postgres
  85. --
  86. COPY public.current_timetable (id, order_id, service_type_id, provider_id, resource_id, time_start_predicted, time_finished_predicted, gap) FROM stdin;
  87. \.
  88. --
  89. -- Data for Name: document; Type: TABLE DATA; Schema: public; Owner: postgres
  90. --
  91. COPY public.document (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;
  92. \.
  93. --
  94. -- Data for Name: order_list_log; Type: TABLE DATA; Schema: public; Owner: postgres
  95. --
  96. COPY public.order_list_log (id, payment_transaction_id, service_id, service_type_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;
  97. \.
  98. --
  99. -- Data for Name: orders; Type: TABLE DATA; Schema: public; Owner: postgres
  100. --
  101. 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;
  102. \.
  103. --
  104. -- Data for Name: permissions; Type: TABLE DATA; Schema: public; Owner: postgres
  105. --
  106. 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;
  107. \.
  108. --
  109. -- Data for Name: relationship; Type: TABLE DATA; Schema: public; Owner: postgres
  110. --
  111. COPY public.relationship (id, user_id_who, user_id_whom, neg_type, id_metaservice, is_global, is_visible, requirements, status, ticket_status) FROM stdin;
  112. \.
  113. --
  114. -- Data for Name: resource_log; Type: TABLE DATA; Schema: public; Owner: postgres
  115. --
  116. COPY public.resource_log (id, resource_id, operation, user_id) FROM stdin;
  117. \.
  118. --
  119. -- Data for Name: user_to_metaservice; Type: TABLE DATA; Schema: public; Owner: postgres
  120. --
  121. COPY public.user_to_metaservice (id, user_id, id_metaservice, is_active, status) FROM stdin;
  122. \.
  123. --
  124. -- Name: cars_log_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
  125. --
  126. SELECT pg_catalog.setval('public.cars_log_id_seq', 1, true);
  127. --
  128. -- Name: client_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
  129. --
  130. SELECT pg_catalog.setval('public.client_id_seq', 1, false);
  131. --
  132. -- Name: company_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
  133. --
  134. SELECT pg_catalog.setval('public.company_id_seq', 1, false);
  135. --
  136. -- Name: current_cars_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
  137. --
  138. SELECT pg_catalog.setval('public.current_cars_id_seq', 1, true);
  139. --
  140. -- Name: current_orders_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
  141. --
  142. SELECT pg_catalog.setval('public.current_orders_id_seq', 1, false);
  143. --
  144. -- Name: current_resources_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
  145. --
  146. SELECT pg_catalog.setval('public.current_resources_id_seq', 1, false);
  147. --
  148. -- Name: current_timetable_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
  149. --
  150. SELECT pg_catalog.setval('public.current_timetable_id_seq', 1, false);
  151. --
  152. -- Name: document_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
  153. --
  154. SELECT pg_catalog.setval('public.document_id_seq', 1, false);
  155. --
  156. -- Name: metaservice_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
  157. --
  158. SELECT pg_catalog.setval('public.metaservice_id_seq', 1, false);
  159. --
  160. -- Name: metauser_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
  161. --
  162. SELECT pg_catalog.setval('public.metauser_id_seq', 1, false);
  163. --
  164. -- Name: order_list_log_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
  165. --
  166. SELECT pg_catalog.setval('public.order_list_log_id_seq', 1, false);
  167. --
  168. -- Name: orders_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
  169. --
  170. SELECT pg_catalog.setval('public.orders_id_seq', 1, false);
  171. --
  172. -- Name: permissions_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
  173. --
  174. SELECT pg_catalog.setval('public.permissions_id_seq', 1, false);
  175. --
  176. -- Name: provider_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
  177. --
  178. SELECT pg_catalog.setval('public.provider_id_seq', 1, false);
  179. --
  180. -- Name: relationship_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
  181. --
  182. SELECT pg_catalog.setval('public.relationship_id_seq', 1, false);
  183. --
  184. -- Name: resource_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
  185. --
  186. SELECT pg_catalog.setval('public.resource_id_seq', 1, false);
  187. --
  188. -- Name: resource_log_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
  189. --
  190. SELECT pg_catalog.setval('public.resource_log_id_seq', 1, false);
  191. --
  192. -- Name: service_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
  193. --
  194. SELECT pg_catalog.setval('public.service_id_seq', 1, false);
  195. --
  196. -- Name: servicetype_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
  197. --
  198. SELECT pg_catalog.setval('public.servicetype_id_seq', 1, false);
  199. --
  200. -- Name: tickets_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
  201. --
  202. SELECT pg_catalog.setval('public.tickets_id_seq', 1, false);
  203. --
  204. -- Name: user_to_metaservice_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
  205. --
  206. SELECT pg_catalog.setval('public.user_to_metaservice_id_seq', 1, false);
  207. --
  208. -- PostgreSQL database dump complete
  209. --