z_report.sql 6.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290
  1. --
  2. -- Kingbase database dump
  3. --
  4. -- Dumped from database version 12.1
  5. -- Dumped by sys_dump version 12.1
  6. -- Started on 2024-10-23 14:27:20
  7. SET statement_timeout = 0;
  8. SET lock_timeout = 0;
  9. SET idle_in_transaction_session_timeout = 0;
  10. SET client_encoding = 'GBK';
  11. SET standard_conforming_strings = on;
  12. SELECT pg_catalog.set_config('search_path', 'public', false);
  13. SET check_function_bodies = false;
  14. SET xmloption = content;
  15. SET client_min_messages = warning;
  16. SET row_security = off;
  17. SET default_with_oids = off;
  18. SET default_with_rowid = off;
  19. --
  20. -- TOC entry 45 (class 2615 OID 21511)
  21. -- Name: z_report; Type: SCHEMA; Schema: -; Owner: system
  22. --
  23. CREATE SCHEMA z_report;
  24. ALTER SCHEMA z_report OWNER TO system;
  25. SET default_tablespace = '';
  26. SET default_table_access_method = heap;
  27. --
  28. -- TOC entry 1083 (class 1259 OID 21512)
  29. -- Name: report; Type: TABLE; Schema: z_report; Owner: sysdba
  30. --
  31. SET escape = off;
  32. CREATE TABLE z_report.report (
  33. id varcharbyte NOT NULL,
  34. index_code numeric,
  35. create_worker varcharbyte,
  36. create_time timestamp(6) without time zone,
  37. latest_modify_worker varcharbyte,
  38. latest_modify_time timestamp(6) without time zone,
  39. isvalid numeric,
  40. bz1 varcharbyte,
  41. bz2 varcharbyte,
  42. bz3 varcharbyte,
  43. bz4 varcharbyte,
  44. name varcharbyte,
  45. bz varcharbyte,
  46. report_catalog_id varcharbyte,
  47. datasource_url varcharbyte,
  48. report_mark varcharbyte,
  49. i_enable_save_word_btn integer,
  50. i_enable_save_excel_btn integer
  51. );
  52. ALTER TABLE z_report.report OWNER TO sysdba;
  53. --
  54. -- TOC entry 6728 (class 0 OID 0)
  55. -- Dependencies: 1083
  56. -- Name: COLUMN report.i_enable_save_word_btn; Type: COMMENT; Schema: z_report; Owner: sysdba
  57. --
  58. COMMENT ON COLUMN z_report.report.i_enable_save_word_btn IS '是否启用保存报表为Word按钮';
  59. --
  60. -- TOC entry 6729 (class 0 OID 0)
  61. -- Dependencies: 1083
  62. -- Name: COLUMN report.i_enable_save_excel_btn; Type: COMMENT; Schema: z_report; Owner: sysdba
  63. --
  64. COMMENT ON COLUMN z_report.report.i_enable_save_excel_btn IS '是否启用保存报表为Excel按钮';
  65. --
  66. -- TOC entry 1084 (class 1259 OID 21520)
  67. -- Name: report_catalog; Type: TABLE; Schema: z_report; Owner: sysdba
  68. --
  69. SET escape = off;
  70. CREATE TABLE z_report.report_catalog (
  71. id varcharbyte NOT NULL,
  72. index_code numeric,
  73. create_worker varcharbyte,
  74. create_time timestamp(6) without time zone,
  75. latest_modify_worker varcharbyte,
  76. latest_modify_time timestamp(6) without time zone,
  77. isvalid numeric,
  78. bz1 varcharbyte,
  79. bz2 varcharbyte,
  80. bz3 varcharbyte,
  81. bz4 varcharbyte,
  82. parent_id varcharbyte,
  83. name varcharbyte
  84. );
  85. ALTER TABLE z_report.report_catalog OWNER TO sysdba;
  86. --
  87. -- TOC entry 1085 (class 1259 OID 21528)
  88. -- Name: report_content; Type: TABLE; Schema: z_report; Owner: sysdba
  89. --
  90. SET escape = off;
  91. CREATE TABLE z_report.report_content (
  92. id varcharbyte NOT NULL,
  93. index_code numeric,
  94. create_worker varcharbyte,
  95. create_time timestamp(6) without time zone,
  96. latest_modify_worker varcharbyte,
  97. latest_modify_time timestamp(6) without time zone,
  98. isvalid numeric,
  99. bz1 varcharbyte,
  100. bz2 varcharbyte,
  101. bz3 varcharbyte,
  102. bz4 varcharbyte,
  103. content blob,
  104. report_id varcharbyte
  105. );
  106. ALTER TABLE z_report.report_content OWNER TO sysdba;
  107. --
  108. -- TOC entry 1086 (class 1259 OID 21887)
  109. -- Name: report_data_connection; Type: TABLE; Schema: z_report; Owner: sysdba
  110. --
  111. SET escape = off;
  112. CREATE TABLE z_report.report_data_connection (
  113. id varcharbyte NOT NULL,
  114. index_code numeric,
  115. create_worker varcharbyte,
  116. create_time timestamp(6) without time zone,
  117. latest_modify_worker varcharbyte,
  118. latest_modify_time timestamp(6) without time zone,
  119. isvalid numeric,
  120. bz1 varcharbyte,
  121. bz2 varcharbyte,
  122. bz3 varcharbyte,
  123. bz4 varcharbyte,
  124. name varcharbyte,
  125. connection_driver varcharbyte,
  126. connection_url varcharbyte,
  127. connection_username varcharbyte,
  128. connection_password varcharbyte,
  129. connection_identity varcharbyte
  130. );
  131. ALTER TABLE z_report.report_data_connection OWNER TO sysdba;
  132. --
  133. -- TOC entry 1087 (class 1259 OID 21895)
  134. -- Name: report_datasource; Type: TABLE; Schema: z_report; Owner: sysdba
  135. --
  136. SET escape = off;
  137. CREATE TABLE z_report.report_datasource (
  138. id varcharbyte NOT NULL,
  139. index_code numeric,
  140. create_worker varcharbyte,
  141. create_time timestamp(6) without time zone,
  142. latest_modify_worker varcharbyte,
  143. latest_modify_time timestamp(6) without time zone,
  144. isvalid numeric,
  145. bz1 varcharbyte,
  146. bz2 varcharbyte,
  147. bz3 varcharbyte,
  148. bz4 varcharbyte,
  149. sql blob,
  150. report_id varcharbyte,
  151. name varcharbyte,
  152. report_data_connection_id varcharbyte
  153. );
  154. ALTER TABLE z_report.report_datasource OWNER TO sysdba;
  155. --
  156. -- TOC entry 6717 (class 0 OID 21512)
  157. -- Dependencies: 1083
  158. -- Data for Name: report; Type: TABLE DATA; Schema: z_report; Owner: sysdba
  159. --
  160. --
  161. -- TOC entry 6718 (class 0 OID 21520)
  162. -- Dependencies: 1084
  163. -- Data for Name: report_catalog; Type: TABLE DATA; Schema: z_report; Owner: sysdba
  164. --
  165. --
  166. -- TOC entry 6719 (class 0 OID 21528)
  167. -- Dependencies: 1085
  168. -- Data for Name: report_content; Type: TABLE DATA; Schema: z_report; Owner: sysdba
  169. --
  170. --
  171. -- TOC entry 6720 (class 0 OID 21887)
  172. -- Dependencies: 1086
  173. -- Data for Name: report_data_connection; Type: TABLE DATA; Schema: z_report; Owner: sysdba
  174. --
  175. --
  176. -- TOC entry 6721 (class 0 OID 21895)
  177. -- Dependencies: 1087
  178. -- Data for Name: report_datasource; Type: TABLE DATA; Schema: z_report; Owner: sysdba
  179. --
  180. --
  181. -- TOC entry 6176 (class 2606 OID 21527)
  182. -- Name: report_catalog report_catalog_pkey; Type: CONSTRAINT; Schema: z_report; Owner: sysdba
  183. --
  184. ALTER TABLE ONLY z_report.report_catalog
  185. ADD CONSTRAINT report_catalog_pkey PRIMARY KEY (id);
  186. --
  187. -- TOC entry 6178 (class 2606 OID 21535)
  188. -- Name: report_content report_content_pkey; Type: CONSTRAINT; Schema: z_report; Owner: sysdba
  189. --
  190. ALTER TABLE ONLY z_report.report_content
  191. ADD CONSTRAINT report_content_pkey PRIMARY KEY (id);
  192. --
  193. -- TOC entry 6180 (class 2606 OID 21894)
  194. -- Name: report_data_connection report_data_connection_pkey; Type: CONSTRAINT; Schema: z_report; Owner: sysdba
  195. --
  196. ALTER TABLE ONLY z_report.report_data_connection
  197. ADD CONSTRAINT report_data_connection_pkey PRIMARY KEY (id);
  198. --
  199. -- TOC entry 6182 (class 2606 OID 21902)
  200. -- Name: report_datasource report_datasource_pkey; Type: CONSTRAINT; Schema: z_report; Owner: sysdba
  201. --
  202. ALTER TABLE ONLY z_report.report_datasource
  203. ADD CONSTRAINT report_datasource_pkey PRIMARY KEY (id);
  204. --
  205. -- TOC entry 6174 (class 2606 OID 21519)
  206. -- Name: report report_pkey; Type: CONSTRAINT; Schema: z_report; Owner: sysdba
  207. --
  208. ALTER TABLE ONLY z_report.report
  209. ADD CONSTRAINT report_pkey PRIMARY KEY (id);
  210. --
  211. -- TOC entry 6727 (class 0 OID 0)
  212. -- Dependencies: 45
  213. -- Name: SCHEMA z_report; Type: ACL; Schema: -; Owner: system
  214. --
  215. GRANT ALL ON SCHEMA z_report TO z_report;
  216. -- Completed on 2024-10-23 14:27:21
  217. --
  218. -- Kingbase database dump complete
  219. --