tsl_data-bk-20231225.sql 27 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925
  1. --
  2. -- PostgreSQL database dump
  3. --
  4. -- Dumped from database version 12.10
  5. -- Dumped by pg_dump version 12.10
  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. -- Name: tsl_data; Type: SCHEMA; Schema: -; Owner: postgres
  18. --
  19. CREATE SCHEMA tsl_data;
  20. ALTER SCHEMA tsl_data OWNER TO postgres;
  21. SET default_tablespace = '';
  22. SET default_table_access_method = heap;
  23. --
  24. -- Name: avg_duration; Type: TABLE; Schema: tsl_data; Owner: postgres
  25. --
  26. CREATE TABLE tsl_data.avg_duration (
  27. id bigint NOT NULL,
  28. month_id character varying(6),
  29. city_name character varying(10),
  30. avg_duration double precision NOT NULL,
  31. cteate_time timestamp without time zone
  32. );
  33. ALTER TABLE tsl_data.avg_duration OWNER TO postgres;
  34. --
  35. -- Name: TABLE avg_duration; Type: COMMENT; Schema: tsl_data; Owner: postgres
  36. --
  37. COMMENT ON TABLE tsl_data.avg_duration IS '地市_月_平均处理时长';
  38. --
  39. -- Name: avg_duration_id_seq; Type: SEQUENCE; Schema: tsl_data; Owner: postgres
  40. --
  41. CREATE SEQUENCE tsl_data.avg_duration_id_seq
  42. START WITH 1
  43. INCREMENT BY 1
  44. NO MINVALUE
  45. NO MAXVALUE
  46. CACHE 1;
  47. ALTER TABLE tsl_data.avg_duration_id_seq OWNER TO postgres;
  48. --
  49. -- Name: avg_duration_id_seq; Type: SEQUENCE OWNED BY; Schema: tsl_data; Owner: postgres
  50. --
  51. ALTER SEQUENCE tsl_data.avg_duration_id_seq OWNED BY tsl_data.avg_duration.id;
  52. --
  53. -- Name: cron_task_record; Type: TABLE; Schema: tsl_data; Owner: postgres
  54. --
  55. CREATE TABLE tsl_data.cron_task_record (
  56. id bigint NOT NULL,
  57. create_date timestamp without time zone,
  58. end_status character varying(255),
  59. end_time timestamp without time zone,
  60. last_update_date timestamp without time zone,
  61. start_time timestamp without time zone,
  62. task_info text,
  63. task_name character varying(255),
  64. time_cost bigint
  65. );
  66. ALTER TABLE tsl_data.cron_task_record OWNER TO postgres;
  67. --
  68. -- Name: cron_task_record_id_seq; Type: SEQUENCE; Schema: tsl_data; Owner: postgres
  69. --
  70. ALTER TABLE tsl_data.cron_task_record ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
  71. SEQUENCE NAME tsl_data.cron_task_record_id_seq
  72. START WITH 1
  73. INCREMENT BY 1
  74. NO MINVALUE
  75. NO MAXVALUE
  76. CACHE 1
  77. );
  78. --
  79. -- Name: high_quality_count_day; Type: TABLE; Schema: tsl_data; Owner: postgres
  80. --
  81. CREATE TABLE tsl_data.high_quality_count_day (
  82. id bigint NOT NULL,
  83. month_id character varying(6) NOT NULL,
  84. day_id character varying(2) NOT NULL,
  85. acct_date character varying(30) NOT NULL,
  86. businoareaname character varying(15) NOT NULL,
  87. profes_dep character varying(15) NOT NULL,
  88. big_type_name character varying(60) NOT NULL,
  89. small_type_name character varying(120) NOT NULL,
  90. total_complaints character varying(30),
  91. hotline_complaints character varying(30),
  92. other_complaint character varying(30),
  93. litigation_volume character varying(30),
  94. satisfaction_rate character varying(30),
  95. satisfaction_count character varying(30),
  96. total_evaluation character varying(30),
  97. complaint_satisfied character varying(30),
  98. complaint_satisfied_list character varying(30),
  99. complaint_satisfied_count character varying(30),
  100. complaint_resolution character varying(30),
  101. complaint_resolution_list character varying(30),
  102. complaint_resolution_count character varying(30),
  103. complaint_response character varying(30),
  104. complaint_response_list character varying(30),
  105. complaint_response_count character varying(30),
  106. complaint character varying(30),
  107. fault_satisfaction_rate character varying(30),
  108. fault_satisfaction_list character varying(30),
  109. fault_satisfaction_count character varying(30),
  110. fault_resolution_rate character varying(30),
  111. fault_resolution_list character varying(30),
  112. fault_resolution_count character varying(30),
  113. fault_response_rate character varying(30),
  114. fault_response_list character varying(30),
  115. fault_response_count character varying(30),
  116. cteate_time timestamp without time zone DEFAULT now()
  117. );
  118. ALTER TABLE tsl_data.high_quality_count_day OWNER TO postgres;
  119. --
  120. -- Name: high_quality_count_day_id_seq; Type: SEQUENCE; Schema: tsl_data; Owner: postgres
  121. --
  122. CREATE SEQUENCE tsl_data.high_quality_count_day_id_seq
  123. START WITH 1
  124. INCREMENT BY 1
  125. NO MINVALUE
  126. NO MAXVALUE
  127. CACHE 1;
  128. ALTER TABLE tsl_data.high_quality_count_day_id_seq OWNER TO postgres;
  129. --
  130. -- Name: high_quality_count_day_id_seq; Type: SEQUENCE OWNED BY; Schema: tsl_data; Owner: postgres
  131. --
  132. ALTER SEQUENCE tsl_data.high_quality_count_day_id_seq OWNED BY tsl_data.high_quality_count_day.id;
  133. --
  134. -- Name: high_quality_data; Type: TABLE; Schema: tsl_data; Owner: postgres
  135. --
  136. CREATE TABLE tsl_data.high_quality_data (
  137. id bigint NOT NULL,
  138. area_id character varying(50),
  139. area_name character varying(50),
  140. checked_city character varying(50),
  141. checked_region character varying(50),
  142. checked_region_reason character varying(50),
  143. city_id character varying(50),
  144. city_name character varying(50),
  145. cp_is_ok character varying(50),
  146. cp_satisfaction character varying(50),
  147. cp_timely_contact character varying(50),
  148. create_date timestamp without time zone,
  149. day_id character varying(8) NOT NULL,
  150. last_update_date timestamp without time zone,
  151. no_visit_tag character varying(50),
  152. sheet_no character varying(50) NOT NULL,
  153. checked_city_reason character varying(50)
  154. );
  155. ALTER TABLE tsl_data.high_quality_data OWNER TO postgres;
  156. --
  157. -- Name: high_quality_data_id_seq; Type: SEQUENCE; Schema: tsl_data; Owner: postgres
  158. --
  159. ALTER TABLE tsl_data.high_quality_data ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
  160. SEQUENCE NAME tsl_data.high_quality_data_id_seq
  161. START WITH 1
  162. INCREMENT BY 1
  163. NO MINVALUE
  164. NO MAXVALUE
  165. CACHE 1
  166. );
  167. --
  168. -- Name: high_quality_list_day; Type: TABLE; Schema: tsl_data; Owner: postgres
  169. --
  170. CREATE TABLE tsl_data.high_quality_list_day (
  171. id bigint NOT NULL,
  172. month_id character varying(18),
  173. day_id character varying(6),
  174. contact_id character varying(150),
  175. busino_area_name character varying(90),
  176. busino_prov_name character varying(90),
  177. sheet_no character varying(90),
  178. busi_number character varying(120),
  179. cust_star_name character varying(30),
  180. sheet_type_name character varying(150),
  181. serv_type_name character varying(900),
  182. last_deal_content character varying(4136),
  183. accept_time character varying(150),
  184. archived_time character varying(150),
  185. data_type_name character varying(300),
  186. channel_name character varying(150),
  187. profes_dep character varying(300),
  188. big_type_name character varying(300),
  189. small_type_name character varying(300),
  190. is_dispatch_cloud character varying(30),
  191. accept_channel_name character varying(300),
  192. duty_reason_name character varying(900),
  193. duty_major_name character varying(300),
  194. is_online_complete character varying(15),
  195. is_call_complete character varying(15),
  196. is_cusser_complete character varying(15),
  197. is_distr_complete character varying(15),
  198. caller_number character varying(90),
  199. compl_area_name character varying(60),
  200. compl_prov_name character varying(60),
  201. submit_channel character varying(300),
  202. solved_result_desc character varying(4136),
  203. cust_level_name character varying(300),
  204. busi_type_name character varying(300),
  205. urgent_level_name character varying(300),
  206. important_type_name character varying(300),
  207. is_upgrade character varying(15),
  208. actual_total_len character varying(60),
  209. nature_actual_total_len character varying(60),
  210. cust_satis_desc character varying(300),
  211. auto_is_ok character varying(60),
  212. auto_cust_satis_desc character varying(300),
  213. nonauto_is_ok_name character varying(15),
  214. nonauto_cust_satis_desc character varying(150),
  215. prod_type_name character varying(300),
  216. proc_name character varying(600),
  217. merge_satis_desc character varying(60),
  218. serv_type_name_new character varying(1500),
  219. is_svip_keyman character varying(6),
  220. customer_label character varying(120),
  221. prov_name character varying(180),
  222. area_id character varying(30),
  223. area_name character varying(150),
  224. city_id character varying(60),
  225. city_name character varying(300),
  226. grid_id character varying(60),
  227. grid_name character varying(300),
  228. is_distri_area character varying(15),
  229. cp_satisfaction character varying(60),
  230. cp_is_ok character varying(60),
  231. cp_timely_contact character varying(60),
  232. cp_type character varying(300),
  233. novisit_tag character varying(30),
  234. serv_content character varying(4136),
  235. gis_area character varying(60),
  236. gis_area_name character varying(60),
  237. gis_city character varying(60),
  238. gis_city_name character varying(60),
  239. use_gis character varying(3),
  240. month_date character varying(18),
  241. day_date character varying(6)
  242. );
  243. ALTER TABLE tsl_data.high_quality_list_day OWNER TO postgres;
  244. --
  245. -- Name: high_quality_list_day_id_seq; Type: SEQUENCE; Schema: tsl_data; Owner: postgres
  246. --
  247. CREATE SEQUENCE tsl_data.high_quality_list_day_id_seq
  248. START WITH 1
  249. INCREMENT BY 1
  250. NO MINVALUE
  251. NO MAXVALUE
  252. CACHE 1;
  253. ALTER TABLE tsl_data.high_quality_list_day_id_seq OWNER TO postgres;
  254. --
  255. -- Name: high_quality_list_day_id_seq; Type: SEQUENCE OWNED BY; Schema: tsl_data; Owner: postgres
  256. --
  257. ALTER SEQUENCE tsl_data.high_quality_list_day_id_seq OWNED BY tsl_data.high_quality_list_day.id;
  258. --
  259. -- Name: mobile_complaint_day; Type: TABLE; Schema: tsl_data; Owner: postgres
  260. --
  261. CREATE TABLE tsl_data.mobile_complaint_day (
  262. id bigint NOT NULL,
  263. month_id character varying(6) NOT NULL,
  264. day_id character varying(2) NOT NULL,
  265. acct_date character varying(300) NOT NULL,
  266. sheet_no character varying(150),
  267. is_online_complete character varying(300),
  268. contact_no character varying(300),
  269. busi_no character varying(300),
  270. serv_content character varying(4136),
  271. last_deal_content character varying(4136),
  272. deal_depart_name character varying(300),
  273. deal_opinion character varying(4136),
  274. serv_type character varying(600),
  275. bus_type character varying(300),
  276. duty_reason character varying(600),
  277. accept_channel character varying(300),
  278. submit_channel character varying(300),
  279. compl_area_local character varying(300),
  280. duty_major character varying(300),
  281. product_name character varying(600),
  282. sp_product_code character varying(600),
  283. pre_repair_name character varying(300),
  284. pre_repair_charges character varying(24),
  285. fault_location character varying(300),
  286. cust_level character varying(300),
  287. satisfaction_in_reply character varying(300),
  288. is_ok_in_reply character varying(300),
  289. accept_time character varying(19),
  290. end_time character varying(19),
  291. proce_time character varying(19),
  292. cust_area character varying(300),
  293. is_cust_serv_complete character varying(300),
  294. is_send_sheet_complete character varying(300),
  295. is_repeat character varying(300),
  296. is_upgrade character varying(300),
  297. is_timeout character varying(300),
  298. gis_city character varying(300),
  299. process_nums character varying(24),
  300. deal_depart_name_1 character varying(300),
  301. deal_depart_name_2 character varying(300),
  302. deal_depart_name_3 character varying(300),
  303. first_call_back_time character varying(19),
  304. proce_remark character varying(4136),
  305. duty_major_day character varying(300),
  306. duty_reason_id_day character varying(300),
  307. duty_major_month character varying(300),
  308. duty_reason_id_month character varying(300),
  309. voice_text character varying(4136),
  310. cteate_time timestamp without time zone DEFAULT now()
  311. );
  312. ALTER TABLE tsl_data.mobile_complaint_day OWNER TO postgres;
  313. --
  314. -- Name: mobile_complaint_id_seq; Type: SEQUENCE; Schema: tsl_data; Owner: postgres
  315. --
  316. CREATE SEQUENCE tsl_data.mobile_complaint_id_seq
  317. START WITH 1
  318. INCREMENT BY 1
  319. NO MINVALUE
  320. NO MAXVALUE
  321. CACHE 1;
  322. ALTER TABLE tsl_data.mobile_complaint_id_seq OWNER TO postgres;
  323. --
  324. -- Name: mobile_complaint_id_seq; Type: SEQUENCE OWNED BY; Schema: tsl_data; Owner: postgres
  325. --
  326. ALTER SEQUENCE tsl_data.mobile_complaint_id_seq OWNED BY tsl_data.mobile_complaint_day.id;
  327. --
  328. -- Name: sys_data_dictionary; Type: TABLE; Schema: tsl_data; Owner: postgres
  329. --
  330. CREATE TABLE tsl_data.sys_data_dictionary (
  331. id bigint NOT NULL,
  332. create_date timestamp without time zone,
  333. last_update_date timestamp without time zone,
  334. nick_code character varying(50),
  335. nick_name character varying(100),
  336. real_code character varying(50),
  337. real_name character varying(100),
  338. type character varying(50),
  339. ord integer,
  340. parent_id bigint
  341. );
  342. ALTER TABLE tsl_data.sys_data_dictionary OWNER TO postgres;
  343. --
  344. -- Name: sys_data_dictionary_id_seq1; Type: SEQUENCE; Schema: tsl_data; Owner: postgres
  345. --
  346. ALTER TABLE tsl_data.sys_data_dictionary ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
  347. SEQUENCE NAME tsl_data.sys_data_dictionary_id_seq1
  348. START WITH 1
  349. INCREMENT BY 1
  350. NO MINVALUE
  351. NO MAXVALUE
  352. CACHE 1
  353. );
  354. --
  355. -- Name: target_ts_ratio; Type: TABLE; Schema: tsl_data; Owner: postgres
  356. --
  357. CREATE TABLE tsl_data.target_ts_ratio (
  358. id bigint NOT NULL,
  359. city_name character varying(50) NOT NULL,
  360. create_date timestamp without time zone,
  361. customer_target_ratio double precision NOT NULL,
  362. last_update_date timestamp without time zone,
  363. management_target_ratio double precision NOT NULL,
  364. month_id character varying(8) NOT NULL
  365. );
  366. ALTER TABLE tsl_data.target_ts_ratio OWNER TO postgres;
  367. --
  368. -- Name: target_ts_ratio_id_seq; Type: SEQUENCE; Schema: tsl_data; Owner: postgres
  369. --
  370. ALTER TABLE tsl_data.target_ts_ratio ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
  371. SEQUENCE NAME tsl_data.target_ts_ratio_id_seq
  372. START WITH 1
  373. INCREMENT BY 1
  374. NO MINVALUE
  375. NO MAXVALUE
  376. CACHE 1
  377. );
  378. --
  379. -- Name: task_record; Type: TABLE; Schema: tsl_data; Owner: postgres
  380. --
  381. CREATE TABLE tsl_data.task_record (
  382. id bigint NOT NULL,
  383. create_date timestamp without time zone,
  384. end_status integer,
  385. end_time timestamp without time zone,
  386. last_update_date timestamp without time zone,
  387. start_time timestamp without time zone,
  388. task_info text,
  389. task_name character varying(255),
  390. time_cost bigint
  391. );
  392. ALTER TABLE tsl_data.task_record OWNER TO postgres;
  393. --
  394. -- Name: task_record_id_seq; Type: SEQUENCE; Schema: tsl_data; Owner: postgres
  395. --
  396. ALTER TABLE tsl_data.task_record ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
  397. SEQUENCE NAME tsl_data.task_record_id_seq
  398. START WITH 1
  399. INCREMENT BY 1
  400. NO MINVALUE
  401. NO MAXVALUE
  402. CACHE 1
  403. );
  404. --
  405. -- Name: user_count; Type: TABLE; Schema: tsl_data; Owner: postgres
  406. --
  407. CREATE TABLE tsl_data.user_count (
  408. id bigint NOT NULL,
  409. city_name character varying(50) NOT NULL,
  410. create_date timestamp without time zone,
  411. customer_user_count double precision,
  412. last_update_date timestamp without time zone,
  413. management_user_count double precision,
  414. month_id character varying(8) NOT NULL
  415. );
  416. ALTER TABLE tsl_data.user_count OWNER TO postgres;
  417. --
  418. -- Name: user_count_id_seq; Type: SEQUENCE; Schema: tsl_data; Owner: postgres
  419. --
  420. ALTER TABLE tsl_data.user_count ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
  421. SEQUENCE NAME tsl_data.user_count_id_seq
  422. START WITH 1
  423. INCREMENT BY 1
  424. NO MINVALUE
  425. NO MAXVALUE
  426. CACHE 1
  427. );
  428. --
  429. -- Name: work_flow_basic_data; Type: TABLE; Schema: tsl_data; Owner: postgres
  430. --
  431. CREATE TABLE tsl_data.work_flow_basic_data (
  432. id bigint NOT NULL,
  433. city_id character varying(50),
  434. create_date timestamp without time zone,
  435. kfsn character varying(50) NOT NULL,
  436. last_update_date timestamp without time zone,
  437. region_id character varying(50),
  438. work_flow_create_time timestamp without time zone,
  439. work_flow_update_time timestamp without time zone
  440. );
  441. ALTER TABLE tsl_data.work_flow_basic_data OWNER TO postgres;
  442. --
  443. -- Name: work_flow_basic_data_id_seq; Type: SEQUENCE; Schema: tsl_data; Owner: postgres
  444. --
  445. ALTER TABLE tsl_data.work_flow_basic_data ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
  446. SEQUENCE NAME tsl_data.work_flow_basic_data_id_seq
  447. START WITH 1
  448. INCREMENT BY 1
  449. NO MINVALUE
  450. NO MAXVALUE
  451. CACHE 1
  452. );
  453. --
  454. -- Name: work_flow_basic_data_temp_1703433900116; Type: TABLE; Schema: tsl_data; Owner: postgres
  455. --
  456. CREATE TABLE tsl_data.work_flow_basic_data_temp_1703433900116 (
  457. city_id character varying(50),
  458. kfsn character varying(50) NOT NULL,
  459. region_id character varying(50),
  460. work_flow_create_time timestamp without time zone,
  461. work_flow_update_time timestamp without time zone
  462. );
  463. ALTER TABLE tsl_data.work_flow_basic_data_temp_1703433900116 OWNER TO postgres;
  464. --
  465. -- Name: work_flow_basic_data_temp_1703437500106; Type: TABLE; Schema: tsl_data; Owner: postgres
  466. --
  467. CREATE TABLE tsl_data.work_flow_basic_data_temp_1703437500106 (
  468. city_id character varying(50),
  469. kfsn character varying(50) NOT NULL,
  470. region_id character varying(50),
  471. work_flow_create_time timestamp without time zone,
  472. work_flow_update_time timestamp without time zone
  473. );
  474. ALTER TABLE tsl_data.work_flow_basic_data_temp_1703437500106 OWNER TO postgres;
  475. --
  476. -- Name: work_flow_basic_data_temp_1703441100143; Type: TABLE; Schema: tsl_data; Owner: postgres
  477. --
  478. CREATE TABLE tsl_data.work_flow_basic_data_temp_1703441100143 (
  479. city_id character varying(50),
  480. kfsn character varying(50) NOT NULL,
  481. region_id character varying(50),
  482. work_flow_create_time timestamp without time zone,
  483. work_flow_update_time timestamp without time zone
  484. );
  485. ALTER TABLE tsl_data.work_flow_basic_data_temp_1703441100143 OWNER TO postgres;
  486. --
  487. -- Name: work_flow_basic_data_temp_1703444700110; Type: TABLE; Schema: tsl_data; Owner: postgres
  488. --
  489. CREATE TABLE tsl_data.work_flow_basic_data_temp_1703444700110 (
  490. city_id character varying(50),
  491. kfsn character varying(50) NOT NULL,
  492. region_id character varying(50),
  493. work_flow_create_time timestamp without time zone,
  494. work_flow_update_time timestamp without time zone
  495. );
  496. ALTER TABLE tsl_data.work_flow_basic_data_temp_1703444700110 OWNER TO postgres;
  497. --
  498. -- Name: work_flow_basic_data_temp_1703448300101; Type: TABLE; Schema: tsl_data; Owner: postgres
  499. --
  500. CREATE TABLE tsl_data.work_flow_basic_data_temp_1703448300101 (
  501. city_id character varying(50),
  502. kfsn character varying(50) NOT NULL,
  503. region_id character varying(50),
  504. work_flow_create_time timestamp without time zone,
  505. work_flow_update_time timestamp without time zone
  506. );
  507. ALTER TABLE tsl_data.work_flow_basic_data_temp_1703448300101 OWNER TO postgres;
  508. --
  509. -- Name: work_flow_basic_data_temp_1703451900113; Type: TABLE; Schema: tsl_data; Owner: postgres
  510. --
  511. CREATE TABLE tsl_data.work_flow_basic_data_temp_1703451900113 (
  512. city_id character varying(50),
  513. kfsn character varying(50) NOT NULL,
  514. region_id character varying(50),
  515. work_flow_create_time timestamp without time zone,
  516. work_flow_update_time timestamp without time zone
  517. );
  518. ALTER TABLE tsl_data.work_flow_basic_data_temp_1703451900113 OWNER TO postgres;
  519. --
  520. -- Name: work_flow_basic_data_temp_1703455500188; Type: TABLE; Schema: tsl_data; Owner: postgres
  521. --
  522. CREATE TABLE tsl_data.work_flow_basic_data_temp_1703455500188 (
  523. city_id character varying(50),
  524. kfsn character varying(50) NOT NULL,
  525. region_id character varying(50),
  526. work_flow_create_time timestamp without time zone,
  527. work_flow_update_time timestamp without time zone
  528. );
  529. ALTER TABLE tsl_data.work_flow_basic_data_temp_1703455500188 OWNER TO postgres;
  530. --
  531. -- Name: work_flow_basic_data_temp_1703459100110; Type: TABLE; Schema: tsl_data; Owner: postgres
  532. --
  533. CREATE TABLE tsl_data.work_flow_basic_data_temp_1703459100110 (
  534. city_id character varying(50),
  535. kfsn character varying(50) NOT NULL,
  536. region_id character varying(50),
  537. work_flow_create_time timestamp without time zone,
  538. work_flow_update_time timestamp without time zone
  539. );
  540. ALTER TABLE tsl_data.work_flow_basic_data_temp_1703459100110 OWNER TO postgres;
  541. --
  542. -- Name: work_flow_basic_data_temp_1703462700104; Type: TABLE; Schema: tsl_data; Owner: postgres
  543. --
  544. CREATE TABLE tsl_data.work_flow_basic_data_temp_1703462700104 (
  545. city_id character varying(50),
  546. kfsn character varying(50) NOT NULL,
  547. region_id character varying(50),
  548. work_flow_create_time timestamp without time zone,
  549. work_flow_update_time timestamp without time zone
  550. );
  551. ALTER TABLE tsl_data.work_flow_basic_data_temp_1703462700104 OWNER TO postgres;
  552. --
  553. -- Name: work_flow_basic_data_temp_1703466300104; Type: TABLE; Schema: tsl_data; Owner: postgres
  554. --
  555. CREATE TABLE tsl_data.work_flow_basic_data_temp_1703466300104 (
  556. city_id character varying(50),
  557. kfsn character varying(50) NOT NULL,
  558. region_id character varying(50),
  559. work_flow_create_time timestamp without time zone,
  560. work_flow_update_time timestamp without time zone
  561. );
  562. ALTER TABLE tsl_data.work_flow_basic_data_temp_1703466300104 OWNER TO postgres;
  563. --
  564. -- Name: work_flow_basic_data_temp_1703469900114; Type: TABLE; Schema: tsl_data; Owner: postgres
  565. --
  566. CREATE TABLE tsl_data.work_flow_basic_data_temp_1703469900114 (
  567. city_id character varying(50),
  568. kfsn character varying(50) NOT NULL,
  569. region_id character varying(50),
  570. work_flow_create_time timestamp without time zone,
  571. work_flow_update_time timestamp without time zone
  572. );
  573. ALTER TABLE tsl_data.work_flow_basic_data_temp_1703469900114 OWNER TO postgres;
  574. --
  575. -- Name: work_flow_basic_data_temp_1703473500109; Type: TABLE; Schema: tsl_data; Owner: postgres
  576. --
  577. CREATE TABLE tsl_data.work_flow_basic_data_temp_1703473500109 (
  578. city_id character varying(50),
  579. kfsn character varying(50) NOT NULL,
  580. region_id character varying(50),
  581. work_flow_create_time timestamp without time zone,
  582. work_flow_update_time timestamp without time zone
  583. );
  584. ALTER TABLE tsl_data.work_flow_basic_data_temp_1703473500109 OWNER TO postgres;
  585. --
  586. -- Name: work_flow_basic_data_temp_1703477100107; Type: TABLE; Schema: tsl_data; Owner: postgres
  587. --
  588. CREATE TABLE tsl_data.work_flow_basic_data_temp_1703477100107 (
  589. city_id character varying(50),
  590. kfsn character varying(50) NOT NULL,
  591. region_id character varying(50),
  592. work_flow_create_time timestamp without time zone,
  593. work_flow_update_time timestamp without time zone
  594. );
  595. ALTER TABLE tsl_data.work_flow_basic_data_temp_1703477100107 OWNER TO postgres;
  596. --
  597. -- Name: work_flow_basic_data_temp_1703480700107; Type: TABLE; Schema: tsl_data; Owner: postgres
  598. --
  599. CREATE TABLE tsl_data.work_flow_basic_data_temp_1703480700107 (
  600. city_id character varying(50),
  601. kfsn character varying(50) NOT NULL,
  602. region_id character varying(50),
  603. work_flow_create_time timestamp without time zone,
  604. work_flow_update_time timestamp without time zone
  605. );
  606. ALTER TABLE tsl_data.work_flow_basic_data_temp_1703480700107 OWNER TO postgres;
  607. --
  608. -- Name: work_flow_basic_data_temp_1703484300146; Type: TABLE; Schema: tsl_data; Owner: postgres
  609. --
  610. CREATE TABLE tsl_data.work_flow_basic_data_temp_1703484300146 (
  611. city_id character varying(50),
  612. kfsn character varying(50) NOT NULL,
  613. region_id character varying(50),
  614. work_flow_create_time timestamp without time zone,
  615. work_flow_update_time timestamp without time zone
  616. );
  617. ALTER TABLE tsl_data.work_flow_basic_data_temp_1703484300146 OWNER TO postgres;
  618. --
  619. -- Name: work_flow_basic_data_temp_1703487900106; Type: TABLE; Schema: tsl_data; Owner: postgres
  620. --
  621. CREATE TABLE tsl_data.work_flow_basic_data_temp_1703487900106 (
  622. city_id character varying(50),
  623. kfsn character varying(50) NOT NULL,
  624. region_id character varying(50),
  625. work_flow_create_time timestamp without time zone,
  626. work_flow_update_time timestamp without time zone
  627. );
  628. ALTER TABLE tsl_data.work_flow_basic_data_temp_1703487900106 OWNER TO postgres;
  629. --
  630. -- Name: avg_duration id; Type: DEFAULT; Schema: tsl_data; Owner: postgres
  631. --
  632. ALTER TABLE ONLY tsl_data.avg_duration ALTER COLUMN id SET DEFAULT nextval('tsl_data.avg_duration_id_seq'::regclass);
  633. --
  634. -- Name: high_quality_count_day id; Type: DEFAULT; Schema: tsl_data; Owner: postgres
  635. --
  636. ALTER TABLE ONLY tsl_data.high_quality_count_day ALTER COLUMN id SET DEFAULT nextval('tsl_data.high_quality_count_day_id_seq'::regclass);
  637. --
  638. -- Name: high_quality_list_day id; Type: DEFAULT; Schema: tsl_data; Owner: postgres
  639. --
  640. ALTER TABLE ONLY tsl_data.high_quality_list_day ALTER COLUMN id SET DEFAULT nextval('tsl_data.high_quality_list_day_id_seq'::regclass);
  641. --
  642. -- Name: mobile_complaint_day id; Type: DEFAULT; Schema: tsl_data; Owner: postgres
  643. --
  644. ALTER TABLE ONLY tsl_data.mobile_complaint_day ALTER COLUMN id SET DEFAULT nextval('tsl_data.mobile_complaint_id_seq'::regclass);
  645. --
  646. -- Name: cron_task_record cron_task_record_pkey; Type: CONSTRAINT; Schema: tsl_data; Owner: postgres
  647. --
  648. ALTER TABLE ONLY tsl_data.cron_task_record
  649. ADD CONSTRAINT cron_task_record_pkey PRIMARY KEY (id);
  650. --
  651. -- Name: high_quality_count_day high_quality_count_day_pkey; Type: CONSTRAINT; Schema: tsl_data; Owner: postgres
  652. --
  653. ALTER TABLE ONLY tsl_data.high_quality_count_day
  654. ADD CONSTRAINT high_quality_count_day_pkey PRIMARY KEY (id);
  655. --
  656. -- Name: high_quality_data high_quality_data_pkey; Type: CONSTRAINT; Schema: tsl_data; Owner: postgres
  657. --
  658. ALTER TABLE ONLY tsl_data.high_quality_data
  659. ADD CONSTRAINT high_quality_data_pkey PRIMARY KEY (id);
  660. --
  661. -- Name: high_quality_list_day high_quality_list_day_pkey; Type: CONSTRAINT; Schema: tsl_data; Owner: postgres
  662. --
  663. ALTER TABLE ONLY tsl_data.high_quality_list_day
  664. ADD CONSTRAINT high_quality_list_day_pkey PRIMARY KEY (id);
  665. --
  666. -- Name: mobile_complaint_day mobile_complaint_pkey; Type: CONSTRAINT; Schema: tsl_data; Owner: postgres
  667. --
  668. ALTER TABLE ONLY tsl_data.mobile_complaint_day
  669. ADD CONSTRAINT mobile_complaint_pkey PRIMARY KEY (id);
  670. --
  671. -- Name: user_count month_city_unique; Type: CONSTRAINT; Schema: tsl_data; Owner: postgres
  672. --
  673. ALTER TABLE ONLY tsl_data.user_count
  674. ADD CONSTRAINT month_city_unique UNIQUE (month_id, city_name);
  675. --
  676. -- Name: sys_data_dictionary sys_data_dictionary_pkey1; Type: CONSTRAINT; Schema: tsl_data; Owner: postgres
  677. --
  678. ALTER TABLE ONLY tsl_data.sys_data_dictionary
  679. ADD CONSTRAINT sys_data_dictionary_pkey1 PRIMARY KEY (id);
  680. --
  681. -- Name: target_ts_ratio target_ts_ratio_pkey; Type: CONSTRAINT; Schema: tsl_data; Owner: postgres
  682. --
  683. ALTER TABLE ONLY tsl_data.target_ts_ratio
  684. ADD CONSTRAINT target_ts_ratio_pkey PRIMARY KEY (id);
  685. --
  686. -- Name: task_record task_record_pkey; Type: CONSTRAINT; Schema: tsl_data; Owner: postgres
  687. --
  688. ALTER TABLE ONLY tsl_data.task_record
  689. ADD CONSTRAINT task_record_pkey PRIMARY KEY (id);
  690. --
  691. -- Name: user_count user_count_pkey; Type: CONSTRAINT; Schema: tsl_data; Owner: postgres
  692. --
  693. ALTER TABLE ONLY tsl_data.user_count
  694. ADD CONSTRAINT user_count_pkey PRIMARY KEY (id);
  695. --
  696. -- Name: work_flow_basic_data work_flow_basic_data_pkey; Type: CONSTRAINT; Schema: tsl_data; Owner: postgres
  697. --
  698. ALTER TABLE ONLY tsl_data.work_flow_basic_data
  699. ADD CONSTRAINT work_flow_basic_data_pkey PRIMARY KEY (id);
  700. --
  701. -- Name: sys_data_dictionary fk77q91mf3guu88esemsn77afkd; Type: FK CONSTRAINT; Schema: tsl_data; Owner: postgres
  702. --
  703. ALTER TABLE ONLY tsl_data.sys_data_dictionary
  704. ADD CONSTRAINT fk77q91mf3guu88esemsn77afkd FOREIGN KEY (parent_id) REFERENCES tsl_data.sys_data_dictionary(id);
  705. --
  706. -- PostgreSQL database dump complete
  707. --