hadoop_dw.sql 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259
  1. /*
  2. Navicat MySQL Data Transfer
  3. Source Server : local
  4. Source Server Version : 50613
  5. Source Host : localhost:3306
  6. Source Database : hadoop_dw
  7. Target Server Type : MYSQL
  8. Target Server Version : 50613
  9. File Encoding : 65001
  10. Date: 2019-04-22 02:21:39
  11. */
  12. SET FOREIGN_KEY_CHECKS=0;
  13. -- ----------------------------
  14. -- Table structure for hibernate_sequences
  15. -- ----------------------------
  16. DROP TABLE IF EXISTS `hibernate_sequences`;
  17. CREATE TABLE `hibernate_sequences` (
  18. `sequence_name` varchar(255) NOT NULL,
  19. `next_val` bigint(20) DEFAULT NULL,
  20. PRIMARY KEY (`sequence_name`)
  21. ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
  22. -- ----------------------------
  23. -- Records of hibernate_sequences
  24. -- ----------------------------
  25. -- ----------------------------
  26. -- Table structure for omc_project
  27. -- ----------------------------
  28. DROP TABLE IF EXISTS `omc_project`;
  29. CREATE TABLE `omc_project` (
  30. `id` varchar(255) NOT NULL,
  31. `create_time` datetime DEFAULT NULL,
  32. `create_user` varchar(255) DEFAULT NULL,
  33. `demander` varchar(255) DEFAULT NULL,
  34. `demander_user` varchar(255) DEFAULT NULL,
  35. `description` varchar(255) DEFAULT NULL,
  36. `developer` varchar(255) DEFAULT NULL,
  37. `hadoop_user` varchar(255) DEFAULT NULL,
  38. `name` varchar(255) DEFAULT NULL,
  39. `note` varchar(255) DEFAULT NULL,
  40. `owner_group` varchar(255) DEFAULT NULL,
  41. `update_time` datetime DEFAULT NULL,
  42. `update_user` varchar(255) DEFAULT NULL,
  43. PRIMARY KEY (`id`)
  44. ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
  45. -- ----------------------------
  46. -- Records of omc_project
  47. -- ----------------------------
  48. -- ----------------------------
  49. -- Table structure for omc_project_user_relation
  50. -- ----------------------------
  51. DROP TABLE IF EXISTS `omc_project_user_relation`;
  52. CREATE TABLE `omc_project_user_relation` (
  53. `id` varchar(255) NOT NULL,
  54. `account` varchar(255) DEFAULT NULL,
  55. `create_time` datetime DEFAULT NULL,
  56. `create_user` varchar(255) DEFAULT NULL,
  57. `project` varchar(255) DEFAULT NULL,
  58. `project_role` varchar(255) DEFAULT NULL,
  59. `update_time` datetime DEFAULT NULL,
  60. `update_user` varchar(255) DEFAULT NULL,
  61. PRIMARY KEY (`id`)
  62. ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
  63. -- ----------------------------
  64. -- Records of omc_project_user_relation
  65. -- ----------------------------
  66. -- ----------------------------
  67. -- Table structure for pprt_core_dict
  68. -- ----------------------------
  69. DROP TABLE IF EXISTS `pprt_core_dict`;
  70. CREATE TABLE `pprt_core_dict` (
  71. `class_code` varchar(255) NOT NULL,
  72. `name` varchar(255) DEFAULT NULL,
  73. PRIMARY KEY (`class_code`)
  74. ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
  75. -- ----------------------------
  76. -- Records of pprt_core_dict
  77. -- ----------------------------
  78. INSERT INTO `pprt_core_dict` VALUES ('data.dbtype', '数据库类型');
  79. -- ----------------------------
  80. -- Table structure for pprt_core_dict_code_map
  81. -- ----------------------------
  82. DROP TABLE IF EXISTS `pprt_core_dict_code_map`;
  83. CREATE TABLE `pprt_core_dict_code_map` (
  84. `cid` int(11) NOT NULL,
  85. `class_code` varchar(255) DEFAULT NULL,
  86. `code` varchar(255) DEFAULT NULL,
  87. `name` varchar(255) DEFAULT NULL,
  88. `ord_num` varchar(255) DEFAULT NULL,
  89. `quick_code` varchar(255) DEFAULT NULL,
  90. PRIMARY KEY (`cid`),
  91. KEY `FK543864F0453A2E93` (`class_code`),
  92. CONSTRAINT `FK543864F0453A2E93` FOREIGN KEY (`class_code`) REFERENCES `pprt_core_dict` (`class_code`)
  93. ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
  94. -- ----------------------------
  95. -- Records of pprt_core_dict_code_map
  96. -- ----------------------------
  97. INSERT INTO `pprt_core_dict_code_map` VALUES ('1', 'data.dbtype', 'HIVE', 'hive数据库', '1', 'HIVE');
  98. INSERT INTO `pprt_core_dict_code_map` VALUES ('2', 'data.dbtype', 'MySQL', 'mysql数据库', '2', 'MySQL');
  99. INSERT INTO `pprt_core_dict_code_map` VALUES ('3', 'data.dbtype', 'MsSQL', 'mysql数据库', '3', 'MsSQL');
  100. -- ----------------------------
  101. -- Table structure for pprt_dg_meta_core
  102. -- ----------------------------
  103. DROP TABLE IF EXISTS `pprt_dg_meta_core`;
  104. CREATE TABLE `pprt_dg_meta_core` (
  105. `id` varchar(255) NOT NULL,
  106. `BIZ_DOMAIN` varchar(255) DEFAULT NULL,
  107. `BIZ_NO` varchar(255) DEFAULT NULL,
  108. `CH_NAME` varchar(255) DEFAULT NULL,
  109. `cmt` varchar(255) DEFAULT NULL,
  110. `CRT_DATE` datetime DEFAULT NULL,
  111. `CRT_USER` varchar(255) DEFAULT NULL,
  112. `cycle` varchar(255) DEFAULT NULL,
  113. `DATA_TYPE` varchar(255) DEFAULT NULL,
  114. `DEFAULT_VIEW` varchar(255) DEFAULT NULL,
  115. `entity` varchar(255) DEFAULT NULL,
  116. `FILE_HEADER` varchar(255) DEFAULT NULL,
  117. `FILE_NAME` varchar(255) DEFAULT NULL,
  118. `FMT_RULE` varchar(255) DEFAULT NULL,
  119. `LAST_UPDATE` datetime DEFAULT NULL,
  120. `LAYER` varchar(255) DEFAULT NULL,
  121. `length` int(11) DEFAULT NULL,
  122. `lvel` varchar(255) DEFAULT NULL,
  123. `META_MDL` varchar(255) DEFAULT NULL,
  124. `MGR_TYPE` varchar(255) DEFAULT NULL,
  125. `name` varchar(255) DEFAULT NULL,
  126. `namespace` varchar(255) DEFAULT NULL,
  127. `PREC` int(11) DEFAULT NULL,
  128. `PRT_ID` varchar(255) DEFAULT NULL,
  129. `REF_OBJECT` varchar(255) DEFAULT NULL,
  130. `REMARKS` varchar(255) DEFAULT NULL,
  131. `TENANTID` varchar(255) DEFAULT NULL,
  132. `type` varchar(255) DEFAULT NULL,
  133. `USE_TABLE` varchar(255) DEFAULT NULL,
  134. PRIMARY KEY (`id`)
  135. ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
  136. -- ----------------------------
  137. -- Records of pprt_dg_meta_core
  138. -- ----------------------------
  139. INSERT INTO `pprt_dg_meta_core` VALUES ('4028fc8b6a40d38f016a40d47b3b0000', 'HOST', null, 'test', 'test', '2019-04-22 00:57:08', 'admin', null, null, null, null, null, null, null, '2019-04-22 00:57:08', null, null, null, 'core.BasePackage', null, 'test', 'HOST', null, 'HOST', null, null, null, 'pkg', null);
  140. INSERT INTO `pprt_dg_meta_core` VALUES ('4028fc8b6a40d38f016a40d4afd20001', 'PDM', null, 'test1', 'test1', '2019-04-22 00:57:21', 'admin', null, null, null, null, null, null, null, '2019-04-22 00:57:21', null, null, null, 'core.BasePackage', null, 'test1', 'PDM', null, 'PDM', null, null, null, 'pkg', null);
  141. INSERT INTO `pprt_dg_meta_core` VALUES ('4028fc8b6a40d38f016a40d7d1060002', null, null, '', '', null, null, null, null, null, null, null, null, null, null, null, null, null, 'model.PhysicalModel', null, 'events', null, null, '4028fc8b6a40d38f016a40d4afd20001', null, null, null, null, null);
  142. INSERT INTO `pprt_dg_meta_core` VALUES ('4028fc8b6a40d38f016a40d7d1070003', null, null, 'bar', '', null, null, null, null, null, '{\"nullable\":false, \"pk\":true}', null, null, null, null, null, '20', null, 'model.PhysicalModelClm', null, 'bar', null, '0', '4028fc8b6a40d38f016a40d7d1060002', null, '字符串', null, 'VARCHAR', null);
  143. INSERT INTO `pprt_dg_meta_core` VALUES ('4028fc8b6a40d38f016a40d7d1070004', null, null, 'foo1', '', null, null, null, null, null, '{\"nullable\":true, \"pk\":false}', null, null, null, null, null, '10', null, 'model.PhysicalModelClm', null, 'foo1', null, '2', '4028fc8b6a40d38f016a40d7d1060002', null, '小数', null, 'DECIMAL', null);
  144. INSERT INTO `pprt_dg_meta_core` VALUES ('4028fc8b6a40d38f016a40d7d1070005', null, null, 'foo2', '', null, null, null, null, null, '{\"nullable\":true, \"pk\":false}', null, null, null, null, null, '10', null, 'model.PhysicalModelClm', null, 'foo2', null, '0', '4028fc8b6a40d38f016a40d7d1060002', null, '整型', null, 'INT', null);
  145. INSERT INTO `pprt_dg_meta_core` VALUES ('4028fc8b6a40d38f016a40d91ade0006', 'ITF', null, 'test2', 'test2', '2019-04-22 01:02:11', 'admin', null, null, null, null, null, null, null, '2019-04-22 01:02:11', null, null, null, 'core.BasePackage', null, 'test2', 'ITF', null, 'ITF', null, null, null, 'pkg', null);
  146. INSERT INTO `pprt_dg_meta_core` VALUES ('4028fc8b6a40d38f016a40d9f0170007', 'core.BasePackage', null, 'test3', 'test3', '2019-04-22 01:03:05', 'admin', null, null, null, null, null, null, null, '2019-04-22 01:03:05', null, null, null, 'core.BasePackage', null, 'test3', '4028fc8b6a40d38f016a40d47b3b0000', null, '4028fc8b6a40d38f016a40d47b3b0000', null, null, null, 'pkg', null);
  147. INSERT INTO `pprt_dg_meta_core` VALUES ('4028fc8b6a40d38f016a40e0bdf80008', 'DB', null, null, '', '2019-04-22 01:10:31', 'admin', null, null, null, '{\"DS_TYPE_HIVE\":\"HIVE\",\"host\":\"coop.360lj.com\",\"port\":\"10008\",\"user\":\"zhangsan\",\"pwd\":\"123456789\",\"serverName\":\"test\",\"keytabPath\":\"\",\"krb5ConfigPath\":\"\",\"hadoopHomeDir\":\"\",\"principal\":\"\",\"crtUser\":\"\"}', '', '', null, '2019-04-22 01:10:31', null, null, null, 'phy.DataSource', null, 'ee', null, null, 'DB', null, null, null, 'ds', null);
  148. INSERT INTO `pprt_dg_meta_core` VALUES ('4028fc8b6a40d38f016a40e727230009', null, null, '邀请', '', null, null, null, null, null, null, null, null, null, null, null, null, null, 'model.PhysicalModel', null, 'invites', null, null, '4028fc8b6a40d38f016a40d4afd20001', null, null, null, null, null);
  149. INSERT INTO `pprt_dg_meta_core` VALUES ('4028fc8b6a40d38f016a40e72723000a', null, null, 'bar', '', null, null, null, null, null, '{\"nullable\":false, \"pk\":false}', null, null, null, null, null, '20', null, 'model.PhysicalModelClm', null, 'bar', null, '0', '4028fc8b6a40d38f016a40e727230009', null, 'invites', null, 'VARCHAR', null);
  150. INSERT INTO `pprt_dg_meta_core` VALUES ('4028fc8b6a40d38f016a40e81035000b', null, null, 'foo', '', null, null, null, null, null, '{\"nullable\":false, \"pk\":true}', null, null, null, null, null, '20', null, 'model.PhysicalModelClm', null, 'foo', null, '0', '4028fc8b6a40d38f016a40e727230009', null, '', null, 'INT', null);
  151. -- ----------------------------
  152. -- Table structure for pprt_dg_meta_exprule
  153. -- ----------------------------
  154. DROP TABLE IF EXISTS `pprt_dg_meta_exprule`;
  155. CREATE TABLE `pprt_dg_meta_exprule` (
  156. `code` varchar(255) NOT NULL,
  157. `meta_model` varchar(255) DEFAULT NULL,
  158. `meta_sheet_name` varchar(255) DEFAULT NULL,
  159. PRIMARY KEY (`code`)
  160. ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
  161. -- ----------------------------
  162. -- Records of pprt_dg_meta_exprule
  163. -- ----------------------------
  164. -- ----------------------------
  165. -- Table structure for pprt_dg_meta_meta
  166. -- ----------------------------
  167. DROP TABLE IF EXISTS `pprt_dg_meta_meta`;
  168. CREATE TABLE `pprt_dg_meta_meta` (
  169. `name` varchar(255) NOT NULL,
  170. `CH_NAME` varchar(255) DEFAULT NULL,
  171. `clz` varchar(255) DEFAULT NULL,
  172. `cmt` varchar(255) DEFAULT NULL,
  173. `CRT_DATE` datetime DEFAULT NULL,
  174. `def` varchar(255) DEFAULT NULL,
  175. `SUB_NODE` varchar(255) DEFAULT NULL,
  176. PRIMARY KEY (`name`)
  177. ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
  178. -- ----------------------------
  179. -- Records of pprt_dg_meta_meta
  180. -- ----------------------------
  181. -- ----------------------------
  182. -- Table structure for pprt_dg_meta_rel
  183. -- ----------------------------
  184. DROP TABLE IF EXISTS `pprt_dg_meta_rel`;
  185. CREATE TABLE `pprt_dg_meta_rel` (
  186. `rid` varchar(255) NOT NULL,
  187. `CAL_TYPE` varchar(255) DEFAULT NULL,
  188. `cmt` varchar(255) DEFAULT NULL,
  189. `CRT_DATE` datetime DEFAULT NULL,
  190. `CRT_USER` varchar(255) DEFAULT NULL,
  191. `dest` varchar(255) DEFAULT NULL,
  192. `DEST_NAME` varchar(255) DEFAULT NULL,
  193. `REF_JOB` varchar(255) DEFAULT NULL,
  194. `REL_CND` varchar(255) DEFAULT NULL,
  195. `REL_DTL` varchar(255) DEFAULT NULL,
  196. `REL_TYPE` varchar(255) DEFAULT NULL,
  197. `rgroup` varchar(255) DEFAULT NULL,
  198. `src` varchar(255) DEFAULT NULL,
  199. `SRC_NAME` varchar(255) DEFAULT NULL,
  200. PRIMARY KEY (`rid`)
  201. ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
  202. -- ----------------------------
  203. -- Records of pprt_dg_meta_rel
  204. -- ----------------------------
  205. INSERT INTO `pprt_dg_meta_rel` VALUES ('4028fc8b6a40d38f016a40eaad7e000d', '', 'test', null, null, 'invites', 'bar', null, null, 'ces', '', null, '4028fc8b6a40d38f016a40d7d1060002', 'bar');
  206. INSERT INTO `pprt_dg_meta_rel` VALUES ('4028fc8b6a40d38f016a40ebc829000f', '\"null\"', 'bar', null, null, 'events', 'bar', null, null, '\"null\"', '\"null\"', null, '4028fc8b6a40d38f016a40e727230009', 'bar');
  207. -- ----------------------------
  208. -- Table structure for pprt_dg_para
  209. -- ----------------------------
  210. DROP TABLE IF EXISTS `pprt_dg_para`;
  211. CREATE TABLE `pprt_dg_para` (
  212. `name` varchar(255) NOT NULL,
  213. `cmt` varchar(255) DEFAULT NULL,
  214. `value` varchar(255) DEFAULT NULL,
  215. PRIMARY KEY (`name`)
  216. ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
  217. -- ----------------------------
  218. -- Records of pprt_dg_para
  219. -- ----------------------------
  220. -- ----------------------------
  221. -- Table structure for v_hadoopgroup_project_relation
  222. -- ----------------------------
  223. DROP TABLE IF EXISTS `v_hadoopgroup_project_relation`;
  224. CREATE TABLE `v_hadoopgroup_project_relation` (
  225. `projectId` varchar(255) NOT NULL,
  226. `userGroup` varchar(255) DEFAULT NULL,
  227. `userName` varchar(255) DEFAULT NULL,
  228. PRIMARY KEY (`projectId`)
  229. ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
  230. -- ----------------------------
  231. -- Records of v_hadoopgroup_project_relation
  232. -- ----------------------------