vbdsm_powergov.sql 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566
  1. -- MySQL dump 10.13 Distrib 5.6.40, for Linux (x86_64)
  2. --
  3. -- Host: 127.0.0.1 Database: vbdsm_powergov
  4. -- ------------------------------------------------------
  5. -- Server version 5.6.40-log
  6. /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
  7. /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
  8. /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
  9. /*!40101 SET NAMES utf8 */;
  10. /*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
  11. /*!40103 SET TIME_ZONE='+00:00' */;
  12. /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
  13. /*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
  14. /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
  15. /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
  16. --
  17. -- Current Database: `vbdsm_powergov`
  18. --
  19. CREATE DATABASE /*!32312 IF NOT EXISTS*/ `vbdsm_powergov` /*!40100 DEFAULT CHARACTER SET utf8 */;
  20. USE `vbdsm_powergov`;
  21. --
  22. -- Table structure for table `t_airtemp`
  23. --
  24. DROP TABLE IF EXISTS `t_airtemp`;
  25. /*!40101 SET @saved_cs_client = @@character_set_client */;
  26. /*!40101 SET character_set_client = utf8 */;
  27. CREATE TABLE `t_airtemp` (
  28. `cityId` int(10) NOT NULL COMMENT '区域编号',
  29. `getDate` int(8) NOT NULL COMMENT '日期',
  30. `maxTemp` int(4) DEFAULT NULL COMMENT '最高温度',
  31. `minTemp` int(4) DEFAULT NULL COMMENT '最低温度',
  32. PRIMARY KEY (`cityId`,`getDate`)
  33. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='区域气温表';
  34. /*!40101 SET character_set_client = @saved_cs_client */;
  35. --
  36. -- Table structure for table `t_city_date_m`
  37. --
  38. DROP TABLE IF EXISTS `t_city_date_m`;
  39. /*!40101 SET @saved_cs_client = @@character_set_client */;
  40. /*!40101 SET character_set_client = utf8 */;
  41. CREATE TABLE `t_city_date_m` (
  42. `id` bigint(20) NOT NULL AUTO_INCREMENT,
  43. `province` int(12) NOT NULL COMMENT '县区编码',
  44. `city` int(12) NOT NULL COMMENT '县区编码',
  45. `getDate` int(8) NOT NULL,
  46. `mmin` decimal(14,2) DEFAULT NULL COMMENT '最小值',
  47. `minTime` bigint(18) DEFAULT NULL COMMENT '最小值时间',
  48. `mmax` decimal(14,2) DEFAULT NULL COMMENT '最大值',
  49. `maxTime` bigint(18) DEFAULT NULL COMMENT '最大值时间',
  50. `mavg` decimal(14,2) DEFAULT NULL COMMENT '平均值',
  51. PRIMARY KEY (`id`,`province`,`city`,`getDate`),
  52. UNIQUE KEY `city_date_index` (`city`,`getDate`) USING BTREE
  53. ) ENGINE=InnoDB AUTO_INCREMENT=3965834 DEFAULT CHARSET=utf8 COMMENT='市日最值';
  54. /*!40101 SET character_set_client = @saved_cs_client */;
  55. --
  56. -- Table structure for table `t_city_month_m`
  57. --
  58. DROP TABLE IF EXISTS `t_city_month_m`;
  59. /*!40101 SET @saved_cs_client = @@character_set_client */;
  60. /*!40101 SET character_set_client = utf8 */;
  61. CREATE TABLE `t_city_month_m` (
  62. `id` bigint(20) NOT NULL AUTO_INCREMENT,
  63. `province` int(12) NOT NULL COMMENT '县区编码',
  64. `city` int(12) NOT NULL COMMENT '县区编码',
  65. `year` int(4) NOT NULL,
  66. `month` int(2) NOT NULL,
  67. `mmin` decimal(14,2) DEFAULT NULL COMMENT '最小值',
  68. `minTime` bigint(18) DEFAULT NULL COMMENT '最小值时间',
  69. `mmax` decimal(14,2) DEFAULT NULL COMMENT '最大值',
  70. `maxTime` bigint(18) DEFAULT NULL COMMENT '最大值时间',
  71. `mavg` decimal(14,2) DEFAULT NULL COMMENT '平均值',
  72. PRIMARY KEY (`id`),
  73. UNIQUE KEY `city_month` (`city`,`year`,`month`) USING BTREE
  74. ) ENGINE=InnoDB AUTO_INCREMENT=135523 DEFAULT CHARSET=utf8 COMMENT='市月最值';
  75. /*!40101 SET character_set_client = @saved_cs_client */;
  76. --
  77. -- Table structure for table `t_city_online`
  78. --
  79. DROP TABLE IF EXISTS `t_city_online`;
  80. /*!40101 SET @saved_cs_client = @@character_set_client */;
  81. /*!40101 SET character_set_client = utf8 */;
  82. CREATE TABLE `t_city_online` (
  83. `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '自增编号',
  84. `province` int(10) NOT NULL COMMENT '省份编码',
  85. `city` int(10) NOT NULL COMMENT '城市编码',
  86. `getTime` bigint(18) NOT NULL COMMENT '得到数据时间',
  87. `p` decimal(14,2) DEFAULT NULL COMMENT '数据值',
  88. PRIMARY KEY (`id`),
  89. UNIQUE KEY `city_online_index` (`city`,`getTime`) USING BTREE
  90. ) ENGINE=InnoDB AUTO_INCREMENT=144123998 DEFAULT CHARSET=utf8 COMMENT='市实时负荷';
  91. /*!40101 SET character_set_client = @saved_cs_client */;
  92. --
  93. -- Table structure for table `t_company_date_m`
  94. --
  95. DROP TABLE IF EXISTS `t_company_date_m`;
  96. /*!40101 SET @saved_cs_client = @@character_set_client */;
  97. /*!40101 SET character_set_client = utf8 */;
  98. CREATE TABLE `t_company_date_m` (
  99. `companyId` bigint(20) NOT NULL COMMENT '企业编号',
  100. `getDate` int(8) NOT NULL COMMENT 'yyyyMMdd',
  101. `mmin` decimal(14,2) DEFAULT NULL COMMENT '最小值',
  102. `minTime` bigint(18) DEFAULT NULL COMMENT '最小值时间yyyyMMddHHmmss',
  103. `mmax` decimal(14,2) DEFAULT NULL COMMENT '最大值',
  104. `maxTime` bigint(18) DEFAULT NULL COMMENT '最大值时间yyyyMMddHHmmss',
  105. `mavg` decimal(14,2) DEFAULT NULL COMMENT '平均值',
  106. PRIMARY KEY (`companyId`,`getDate`)
  107. ) ENGINE=InnoDB DEFAULT CHARSET=latin1 COMMENT='企业日最值';
  108. /*!40101 SET character_set_client = @saved_cs_client */;
  109. --
  110. -- Table structure for table `t_company_date_ruikang`
  111. --
  112. DROP TABLE IF EXISTS `t_company_date_ruikang`;
  113. /*!40101 SET @saved_cs_client = @@character_set_client */;
  114. /*!40101 SET character_set_client = utf8 */;
  115. CREATE TABLE `t_company_date_ruikang` (
  116. `companyId` bigint(20) NOT NULL COMMENT '企业编号',
  117. `getDate` int(8) NOT NULL COMMENT '得到数据时间yyyyMMdd',
  118. `tpe` decimal(12,3) DEFAULT NULL COMMENT '每日电量,乘过ct,pt后的值',
  119. PRIMARY KEY (`companyId`,`getDate`)
  120. ) ENGINE=InnoDB DEFAULT CHARSET=latin1 COMMENT='瑞康企业每日电量表';
  121. /*!40101 SET character_set_client = @saved_cs_client */;
  122. --
  123. -- Table structure for table `t_company_date_ruikang_forecast`
  124. --
  125. DROP TABLE IF EXISTS `t_company_date_ruikang_forecast`;
  126. /*!40101 SET @saved_cs_client = @@character_set_client */;
  127. /*!40101 SET character_set_client = utf8 */;
  128. CREATE TABLE `t_company_date_ruikang_forecast` (
  129. `companyId` bigint(20) NOT NULL COMMENT '企业编号',
  130. `getDate` int(8) NOT NULL COMMENT '预测数据时间yyyyMMdd',
  131. `tpe` decimal(12,3) DEFAULT NULL COMMENT '预测每日电量,乘过ct,pt后的值',
  132. PRIMARY KEY (`companyId`,`getDate`)
  133. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='瑞康企业日数据预测表';
  134. /*!40101 SET character_set_client = @saved_cs_client */;
  135. --
  136. -- Table structure for table `t_company_fgp`
  137. --
  138. DROP TABLE IF EXISTS `t_company_fgp`;
  139. /*!40101 SET @saved_cs_client = @@character_set_client */;
  140. /*!40101 SET character_set_client = utf8 */;
  141. CREATE TABLE `t_company_fgp` (
  142. `id` bigint(20) NOT NULL AUTO_INCREMENT,
  143. `companyId` bigint(20) NOT NULL COMMENT '企业编号',
  144. `getDate` int(8) NOT NULL COMMENT '得到数据时间',
  145. `ftpe` decimal(14,2) DEFAULT NULL COMMENT '峰电量',
  146. `gtpe` decimal(14,2) DEFAULT NULL COMMENT '谷电量',
  147. `ptpe` decimal(14,2) DEFAULT NULL COMMENT '平电量',
  148. `jtpe` decimal(14,2) DEFAULT NULL COMMENT '尖峰电量',
  149. PRIMARY KEY (`id`),
  150. UNIQUE KEY `cid_getDate_index` (`companyId`,`getDate`) USING BTREE
  151. ) ENGINE=InnoDB AUTO_INCREMENT=108008436 DEFAULT CHARSET=utf8 COMMENT='企业日电量';
  152. /*!40101 SET character_set_client = @saved_cs_client */;
  153. --
  154. -- Table structure for table `t_company_online`
  155. --
  156. DROP TABLE IF EXISTS `t_company_online`;
  157. /*!40101 SET @saved_cs_client = @@character_set_client */;
  158. /*!40101 SET character_set_client = utf8 */;
  159. CREATE TABLE `t_company_online` (
  160. `id` bigint(20) NOT NULL AUTO_INCREMENT,
  161. `companyId` bigint(20) NOT NULL COMMENT '企业编号',
  162. `getTime` bigint(18) NOT NULL COMMENT '得到数据时间',
  163. `p` decimal(20,2) DEFAULT NULL COMMENT '负荷数据值',
  164. PRIMARY KEY (`id`),
  165. UNIQUE KEY `index_companyId_getTime` (`companyId`,`getTime`) USING BTREE,
  166. KEY `getTime` (`getTime`) USING BTREE
  167. ) ENGINE=InnoDB AUTO_INCREMENT=1933224655 DEFAULT CHARSET=utf8 COMMENT='企业实时负荷';
  168. /*!40101 SET character_set_client = @saved_cs_client */;
  169. --
  170. -- Table structure for table `t_district_date_fgp`
  171. --
  172. DROP TABLE IF EXISTS `t_district_date_fgp`;
  173. /*!40101 SET @saved_cs_client = @@character_set_client */;
  174. /*!40101 SET character_set_client = utf8 */;
  175. CREATE TABLE `t_district_date_fgp` (
  176. `id` bigint(20) NOT NULL AUTO_INCREMENT,
  177. `province` int(12) NOT NULL COMMENT '县区编码',
  178. `city` int(12) NOT NULL COMMENT '县区编码',
  179. `district` int(12) NOT NULL COMMENT '县区编码',
  180. `getDate` int(8) NOT NULL,
  181. `ftpe` decimal(14,2) DEFAULT NULL COMMENT '峰电量',
  182. `gtpe` decimal(14,2) DEFAULT NULL COMMENT '谷电量',
  183. `ptpe` decimal(14,2) DEFAULT NULL COMMENT '谷电量',
  184. `jtpe` decimal(14,2) DEFAULT NULL COMMENT '尖峰电量',
  185. PRIMARY KEY (`id`,`province`,`city`,`district`,`getDate`),
  186. UNIQUE KEY `district_index` (`province`,`city`,`district`,`getDate`) USING BTREE
  187. ) ENGINE=InnoDB AUTO_INCREMENT=7609429 DEFAULT CHARSET=utf8 COMMENT='县区日电量';
  188. /*!40101 SET character_set_client = @saved_cs_client */;
  189. --
  190. -- Table structure for table `t_district_date_m`
  191. --
  192. DROP TABLE IF EXISTS `t_district_date_m`;
  193. /*!40101 SET @saved_cs_client = @@character_set_client */;
  194. /*!40101 SET character_set_client = utf8 */;
  195. CREATE TABLE `t_district_date_m` (
  196. `id` bigint(20) NOT NULL AUTO_INCREMENT,
  197. `province` int(12) NOT NULL COMMENT '县区编码',
  198. `city` int(12) NOT NULL COMMENT '县区编码',
  199. `district` int(12) NOT NULL COMMENT '县区编码',
  200. `getDate` int(8) NOT NULL,
  201. `mmin` decimal(14,2) DEFAULT NULL COMMENT '最小值',
  202. `minTime` bigint(18) DEFAULT NULL COMMENT '最小值时间',
  203. `mmax` decimal(14,2) DEFAULT NULL COMMENT '最大值',
  204. `maxTime` bigint(18) DEFAULT NULL COMMENT '最大值时间',
  205. `mavg` decimal(14,2) DEFAULT NULL COMMENT '平均值',
  206. PRIMARY KEY (`id`,`province`,`city`,`district`,`getDate`),
  207. UNIQUE KEY `district_date_index` (`district`,`getDate`) USING BTREE
  208. ) ENGINE=InnoDB AUTO_INCREMENT=10899338 DEFAULT CHARSET=utf8 COMMENT='县区日最值';
  209. /*!40101 SET character_set_client = @saved_cs_client */;
  210. --
  211. -- Table structure for table `t_district_month_m`
  212. --
  213. DROP TABLE IF EXISTS `t_district_month_m`;
  214. /*!40101 SET @saved_cs_client = @@character_set_client */;
  215. /*!40101 SET character_set_client = utf8 */;
  216. CREATE TABLE `t_district_month_m` (
  217. `id` bigint(20) NOT NULL AUTO_INCREMENT,
  218. `province` int(12) NOT NULL COMMENT '县区编码',
  219. `city` int(12) NOT NULL COMMENT '县区编码',
  220. `district` int(12) NOT NULL COMMENT '县区编码',
  221. `year` int(4) NOT NULL,
  222. `month` int(2) NOT NULL,
  223. `mmin` decimal(14,2) DEFAULT NULL COMMENT '最小值',
  224. `minTime` bigint(18) DEFAULT NULL COMMENT '最小值时间',
  225. `mmax` decimal(14,2) DEFAULT NULL COMMENT '最大值',
  226. `maxTime` bigint(18) DEFAULT NULL COMMENT '最大值时间',
  227. `mavg` decimal(14,2) DEFAULT NULL COMMENT '平均值',
  228. PRIMARY KEY (`id`),
  229. UNIQUE KEY `district_month_index` (`district`,`year`,`month`) USING BTREE
  230. ) ENGINE=InnoDB AUTO_INCREMENT=356161 DEFAULT CHARSET=utf8 COMMENT='县区月最值';
  231. /*!40101 SET character_set_client = @saved_cs_client */;
  232. --
  233. -- Table structure for table `t_district_online`
  234. --
  235. DROP TABLE IF EXISTS `t_district_online`;
  236. /*!40101 SET @saved_cs_client = @@character_set_client */;
  237. /*!40101 SET character_set_client = utf8 */;
  238. CREATE TABLE `t_district_online` (
  239. `id` bigint(20) NOT NULL AUTO_INCREMENT,
  240. `province` int(12) NOT NULL COMMENT '县区编码',
  241. `city` int(12) NOT NULL COMMENT '县区编码',
  242. `district` int(12) NOT NULL COMMENT '县区编码',
  243. `getTime` bigint(18) NOT NULL,
  244. `p` decimal(14,2) DEFAULT NULL COMMENT '负荷值',
  245. PRIMARY KEY (`id`),
  246. UNIQUE KEY `district_online_index` (`district`,`getTime`) USING BTREE
  247. ) ENGINE=InnoDB AUTO_INCREMENT=352231815 DEFAULT CHARSET=utf8 COMMENT='县区实时负荷';
  248. /*!40101 SET character_set_client = @saved_cs_client */;
  249. --
  250. -- Table structure for table `t_holidays`
  251. --
  252. DROP TABLE IF EXISTS `t_holidays`;
  253. /*!40101 SET @saved_cs_client = @@character_set_client */;
  254. /*!40101 SET character_set_client = utf8 */;
  255. CREATE TABLE `t_holidays` (
  256. `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '编号',
  257. `start` varchar(18) DEFAULT NULL COMMENT '日期',
  258. `htype` int(11) DEFAULT NULL COMMENT '类型(1:周末、2:春节、3:清明节 4:劳动节 5:端午节、 6:中秋节 7:国庆节、 8:其它,默认为1)',
  259. `color` varchar(12) DEFAULT NULL,
  260. `title` varchar(12) DEFAULT NULL,
  261. PRIMARY KEY (`id`)
  262. ) ENGINE=InnoDB AUTO_INCREMENT=78 DEFAULT CHARSET=utf8;
  263. /*!40101 SET character_set_client = @saved_cs_client */;
  264. --
  265. -- Table structure for table `t_industry_energy`
  266. --
  267. DROP TABLE IF EXISTS `t_industry_energy`;
  268. /*!40101 SET @saved_cs_client = @@character_set_client */;
  269. /*!40101 SET character_set_client = utf8 */;
  270. CREATE TABLE `t_industry_energy` (
  271. `id` int(11) NOT NULL AUTO_INCREMENT,
  272. `city` int(12) NOT NULL COMMENT '城市编码',
  273. `industry` bigint(20) NOT NULL COMMENT '行业1',
  274. `productId` bigint(20) DEFAULT NULL,
  275. `getDate` int(12) NOT NULL COMMENT '日期',
  276. `tpe` decimal(14,2) NOT NULL COMMENT '用电量',
  277. `price` decimal(12,3) DEFAULT NULL,
  278. PRIMARY KEY (`id`),
  279. UNIQUE KEY `industry_energy_index` (`city`,`industry`,`getDate`,`productId`) USING BTREE
  280. ) ENGINE=InnoDB AUTO_INCREMENT=39549689 DEFAULT CHARSET=utf8 COMMENT='行业日用电量';
  281. /*!40101 SET character_set_client = @saved_cs_client */;
  282. --
  283. -- Table structure for table `t_industry_price`
  284. --
  285. DROP TABLE IF EXISTS `t_industry_price`;
  286. /*!40101 SET @saved_cs_client = @@character_set_client */;
  287. /*!40101 SET character_set_client = utf8 */;
  288. CREATE TABLE `t_industry_price` (
  289. `id` bigint(11) NOT NULL AUTO_INCREMENT COMMENT '自动编号',
  290. `cityId` bigint(20) DEFAULT NULL COMMENT '行业区域编号',
  291. `industry` bigint(20) DEFAULT NULL COMMENT '行业编号',
  292. `productId` bigint(20) DEFAULT NULL COMMENT '产品编号',
  293. `startDate` int(11) DEFAULT NULL COMMENT '开始日期',
  294. `price` decimal(12,3) DEFAULT NULL COMMENT '价格',
  295. PRIMARY KEY (`id`)
  296. ) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8;
  297. /*!40101 SET character_set_client = @saved_cs_client */;
  298. --
  299. -- Table structure for table `t_industry_product`
  300. --
  301. DROP TABLE IF EXISTS `t_industry_product`;
  302. /*!40101 SET @saved_cs_client = @@character_set_client */;
  303. /*!40101 SET character_set_client = utf8 */;
  304. CREATE TABLE `t_industry_product` (
  305. `id` bigint(11) NOT NULL AUTO_INCREMENT COMMENT '编号',
  306. `cityId` bigint(12) DEFAULT NULL COMMENT '区域编号',
  307. `industry` bigint(20) DEFAULT NULL COMMENT '行业',
  308. `year` int(11) DEFAULT NULL COMMENT '年份',
  309. `productId` bigint(11) DEFAULT NULL COMMENT '产品编号',
  310. `minVal` decimal(12,3) DEFAULT NULL COMMENT '最小值(万千瓦时)',
  311. `maxVal` decimal(12,3) DEFAULT NULL COMMENT '最大值(万千瓦时)',
  312. `punit` decimal(12,3) DEFAULT NULL COMMENT '产品单耗',
  313. `capacity` decimal(12,3) DEFAULT NULL COMMENT '产品产能',
  314. PRIMARY KEY (`id`)
  315. ) ENGINE=InnoDB AUTO_INCREMENT=24 DEFAULT CHARSET=utf8;
  316. /*!40101 SET character_set_client = @saved_cs_client */;
  317. --
  318. -- Table structure for table `t_monitor_date_ruikang_forecast`
  319. --
  320. DROP TABLE IF EXISTS `t_monitor_date_ruikang_forecast`;
  321. /*!40101 SET @saved_cs_client = @@character_set_client */;
  322. /*!40101 SET character_set_client = utf8 */;
  323. CREATE TABLE `t_monitor_date_ruikang_forecast` (
  324. `terminalId` varchar(20) NOT NULL COMMENT '监测点编号',
  325. `getDate` int(8) NOT NULL COMMENT '预测数据时间yyyyMMdd',
  326. `tpe` decimal(12,3) DEFAULT NULL COMMENT '预测每日电量',
  327. PRIMARY KEY (`terminalId`,`getDate`)
  328. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='瑞康监测点日数据预测表';
  329. /*!40101 SET character_set_client = @saved_cs_client */;
  330. --
  331. -- Table structure for table `t_parks_date_m`
  332. --
  333. DROP TABLE IF EXISTS `t_parks_date_m`;
  334. /*!40101 SET @saved_cs_client = @@character_set_client */;
  335. /*!40101 SET character_set_client = utf8 */;
  336. CREATE TABLE `t_parks_date_m` (
  337. `id` bigint(20) NOT NULL AUTO_INCREMENT,
  338. `parkId` int(12) NOT NULL COMMENT '园区编码',
  339. `getDate` int(8) NOT NULL,
  340. `mmin` decimal(14,2) DEFAULT NULL COMMENT '最小值',
  341. `minTime` bigint(18) DEFAULT NULL COMMENT '最小值时间',
  342. `mmax` decimal(14,2) DEFAULT NULL COMMENT '最大值',
  343. `maxTime` bigint(18) DEFAULT NULL COMMENT '最大值时间',
  344. `mavg` decimal(14,2) DEFAULT NULL COMMENT '平均值',
  345. PRIMARY KEY (`id`,`parkId`,`getDate`),
  346. UNIQUE KEY `park_date_index` (`parkId`,`getDate`) USING BTREE
  347. ) ENGINE=InnoDB AUTO_INCREMENT=77270 DEFAULT CHARSET=utf8 COMMENT='园区日最值';
  348. /*!40101 SET character_set_client = @saved_cs_client */;
  349. --
  350. -- Table structure for table `t_parks_month_m`
  351. --
  352. DROP TABLE IF EXISTS `t_parks_month_m`;
  353. /*!40101 SET @saved_cs_client = @@character_set_client */;
  354. /*!40101 SET character_set_client = utf8 */;
  355. CREATE TABLE `t_parks_month_m` (
  356. `id` bigint(20) NOT NULL AUTO_INCREMENT,
  357. `parkId` int(12) NOT NULL COMMENT '园区编码',
  358. `year` int(4) NOT NULL,
  359. `month` int(2) NOT NULL,
  360. `mmin` decimal(14,2) DEFAULT NULL COMMENT '最小值',
  361. `minTime` bigint(18) DEFAULT NULL COMMENT '最小值时间',
  362. `mmax` decimal(14,2) DEFAULT NULL COMMENT '最大值',
  363. `maxTime` bigint(18) DEFAULT NULL COMMENT '最大值时间',
  364. `mavg` decimal(14,2) DEFAULT NULL COMMENT '平均值',
  365. PRIMARY KEY (`id`,`parkId`,`year`,`month`),
  366. UNIQUE KEY `park_year_month` (`parkId`,`year`,`month`) USING BTREE
  367. ) ENGINE=InnoDB AUTO_INCREMENT=3601 DEFAULT CHARSET=utf8 COMMENT='园区日最值';
  368. /*!40101 SET character_set_client = @saved_cs_client */;
  369. --
  370. -- Table structure for table `t_parks_online`
  371. --
  372. DROP TABLE IF EXISTS `t_parks_online`;
  373. /*!40101 SET @saved_cs_client = @@character_set_client */;
  374. /*!40101 SET character_set_client = utf8 */;
  375. CREATE TABLE `t_parks_online` (
  376. `id` bigint(20) NOT NULL AUTO_INCREMENT,
  377. `parkId` bigint(10) DEFAULT NULL COMMENT '园区编码',
  378. `getTime` bigint(18) DEFAULT NULL COMMENT '得到数据时间',
  379. `p` decimal(20,0) DEFAULT NULL COMMENT '数据值',
  380. PRIMARY KEY (`id`),
  381. UNIQUE KEY `park_online_index` (`parkId`,`getTime`) USING BTREE
  382. ) ENGINE=InnoDB AUTO_INCREMENT=3710218 DEFAULT CHARSET=utf8 COMMENT='园区实时负荷';
  383. /*!40101 SET character_set_client = @saved_cs_client */;
  384. --
  385. -- Table structure for table `t_powerplant_fgp`
  386. --
  387. DROP TABLE IF EXISTS `t_powerplant_fgp`;
  388. /*!40101 SET @saved_cs_client = @@character_set_client */;
  389. /*!40101 SET character_set_client = utf8 */;
  390. CREATE TABLE `t_powerplant_fgp` (
  391. `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '编号',
  392. `province` int(12) DEFAULT NULL COMMENT '省份编码',
  393. `city` int(12) DEFAULT NULL COMMENT '城市编码',
  394. `district` int(12) DEFAULT NULL COMMENT '县区编码',
  395. `companyId` int(12) DEFAULT NULL COMMENT '企业编号',
  396. `getDate` int(8) DEFAULT NULL COMMENT '得到数据时间',
  397. `dtype` int(1) DEFAULT '1' COMMENT '电厂类型(1:自备电厂、2:公共电厂、3:风电、4:太阳能)',
  398. `ftpe` decimal(12,2) DEFAULT NULL COMMENT '峰电量',
  399. `ptpe` decimal(12,2) DEFAULT NULL COMMENT '平电量',
  400. `gtpe` decimal(12,2) DEFAULT NULL COMMENT '谷电量',
  401. `jtpe` decimal(12,2) DEFAULT NULL COMMENT '尖峰电量',
  402. PRIMARY KEY (`id`),
  403. UNIQUE KEY `companyId_getDate_index` (`companyId`,`getDate`,`dtype`) USING BTREE
  404. ) ENGINE=InnoDB AUTO_INCREMENT=8348 DEFAULT CHARSET=utf8 COMMENT='电厂日电量';
  405. /*!40101 SET character_set_client = @saved_cs_client */;
  406. --
  407. -- Table structure for table `t_province_date_info`
  408. --
  409. DROP TABLE IF EXISTS `t_province_date_info`;
  410. /*!40101 SET @saved_cs_client = @@character_set_client */;
  411. /*!40101 SET character_set_client = utf8 */;
  412. CREATE TABLE `t_province_date_info` (
  413. `id` bigint(20) NOT NULL AUTO_INCREMENT,
  414. `province` int(11) DEFAULT NULL,
  415. `getDate` int(11) DEFAULT NULL,
  416. `etotal` float(14,2) DEFAULT NULL COMMENT '总发电量(万千瓦时)',
  417. `ewind` float(14,2) DEFAULT NULL COMMENT '风发电量(万千瓦时)',
  418. `ewater` float(14,2) DEFAULT NULL COMMENT '水发电量(万千瓦时)',
  419. `epv` float(14,2) DEFAULT NULL COMMENT '光伏发电量(万千瓦时)',
  420. `usetotal` float(14,2) DEFAULT NULL COMMENT '总用电量(万千瓦时)',
  421. `esupply` float(14,2) DEFAULT NULL COMMENT '供电量(万千瓦时)',
  422. `eline` float(14,2) DEFAULT NULL COMMENT '联络线送出电量(万千瓦时)',
  423. `edc` float(14,2) DEFAULT NULL COMMENT '直流送出电量(万千瓦时)',
  424. PRIMARY KEY (`id`),
  425. UNIQUE KEY `province_date_info_index` (`province`,`getDate`) USING BTREE
  426. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='省日发/用电量信息';
  427. /*!40101 SET character_set_client = @saved_cs_client */;
  428. --
  429. -- Table structure for table `t_province_date_m`
  430. --
  431. DROP TABLE IF EXISTS `t_province_date_m`;
  432. /*!40101 SET @saved_cs_client = @@character_set_client */;
  433. /*!40101 SET character_set_client = utf8 */;
  434. CREATE TABLE `t_province_date_m` (
  435. `id` bigint(20) NOT NULL AUTO_INCREMENT,
  436. `province` int(12) NOT NULL COMMENT '县区编码',
  437. `getDate` int(8) NOT NULL,
  438. `mmin` decimal(14,2) DEFAULT NULL COMMENT '最小值',
  439. `minTime` bigint(18) DEFAULT NULL COMMENT '最小值时间',
  440. `mmax` decimal(14,2) DEFAULT NULL COMMENT '最大值',
  441. `maxTime` bigint(18) DEFAULT NULL COMMENT '最大值时间',
  442. `mavg` decimal(14,2) DEFAULT NULL COMMENT '平均值',
  443. `gnhfh` decimal(14,2) DEFAULT NULL COMMENT '高能耗负荷',
  444. `djlfh` decimal(14,2) DEFAULT NULL COMMENT '电解铝负荷',
  445. PRIMARY KEY (`id`,`province`,`getDate`),
  446. UNIQUE KEY `province_date_index` (`province`,`getDate`) USING BTREE
  447. ) ENGINE=InnoDB AUTO_INCREMENT=994084 DEFAULT CHARSET=utf8 COMMENT='省日最值';
  448. /*!40101 SET character_set_client = @saved_cs_client */;
  449. --
  450. -- Table structure for table `t_province_month_m`
  451. --
  452. DROP TABLE IF EXISTS `t_province_month_m`;
  453. /*!40101 SET @saved_cs_client = @@character_set_client */;
  454. /*!40101 SET character_set_client = utf8 */;
  455. CREATE TABLE `t_province_month_m` (
  456. `id` bigint(20) NOT NULL AUTO_INCREMENT,
  457. `province` int(12) NOT NULL COMMENT '县区编码',
  458. `year` int(4) NOT NULL,
  459. `month` int(2) NOT NULL,
  460. `mmin` decimal(14,2) DEFAULT NULL COMMENT '最小值',
  461. `minTime` bigint(18) DEFAULT NULL COMMENT '最小值时间',
  462. `mmax` decimal(14,2) DEFAULT NULL COMMENT '最大值',
  463. `maxTime` bigint(18) DEFAULT NULL COMMENT '最大值时间',
  464. `mavg` decimal(14,2) DEFAULT NULL COMMENT '平均值',
  465. PRIMARY KEY (`id`,`province`,`year`,`month`),
  466. UNIQUE KEY `province_month_index` (`province`,`year`,`month`) USING BTREE
  467. ) ENGINE=InnoDB AUTO_INCREMENT=33396 DEFAULT CHARSET=utf8 COMMENT='省月最值';
  468. /*!40101 SET character_set_client = @saved_cs_client */;
  469. --
  470. -- Table structure for table `t_province_online`
  471. --
  472. DROP TABLE IF EXISTS `t_province_online`;
  473. /*!40101 SET @saved_cs_client = @@character_set_client */;
  474. /*!40101 SET character_set_client = utf8 */;
  475. CREATE TABLE `t_province_online` (
  476. `id` bigint(20) NOT NULL AUTO_INCREMENT,
  477. `province` int(10) DEFAULT NULL COMMENT '省份编码',
  478. `getTime` bigint(18) DEFAULT NULL COMMENT '得到数据时间',
  479. `p` decimal(12,2) DEFAULT NULL COMMENT '数据值',
  480. PRIMARY KEY (`id`),
  481. UNIQUE KEY `province_online_index` (`province`,`getTime`) USING BTREE
  482. ) ENGINE=InnoDB AUTO_INCREMENT=45188740 DEFAULT CHARSET=utf8 COMMENT='省实时负荷';
  483. /*!40101 SET character_set_client = @saved_cs_client */;
  484. --
  485. -- Table structure for table `t_resident_water`
  486. --
  487. DROP TABLE IF EXISTS `t_resident_water`;
  488. /*!40101 SET @saved_cs_client = @@character_set_client */;
  489. /*!40101 SET character_set_client = utf8 */;
  490. CREATE TABLE `t_resident_water` (
  491. `id` bigint(20) NOT NULL AUTO_INCREMENT,
  492. `accounts` bigint(20) NOT NULL COMMENT '用户账户',
  493. `getDate` int(8) NOT NULL COMMENT '得到数据时间',
  494. `waterNum` decimal(14,2) DEFAULT NULL COMMENT '用水量',
  495. PRIMARY KEY (`id`,`accounts`,`getDate`)
  496. ) ENGINE=InnoDB AUTO_INCREMENT=79 DEFAULT CHARSET=utf8 COMMENT='居民日用水量';
  497. /*!40101 SET character_set_client = @saved_cs_client */;
  498. /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
  499. /*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
  500. /*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
  501. /*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
  502. /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
  503. /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
  504. /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
  505. /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
  506. -- Dump completed on 2022-01-12 11:11:27