zxpark_local1203.sql 32 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454
  1. /*
  2. Navicat MySQL Data Transfer
  3. Source Server : 127.0.0.1
  4. Source Server Version : 50638
  5. Source Host : 127.0.0.1:20000
  6. Source Database : zxpark_local
  7. Target Server Type : MYSQL
  8. Target Server Version : 50638
  9. File Encoding : 65001
  10. Date: 2018-12-03 09:56:33
  11. */
  12. SET FOREIGN_KEY_CHECKS=0;
  13. -- ----------------------------
  14. -- Table structure for garageproperties
  15. -- ----------------------------
  16. DROP TABLE IF EXISTS `garageproperties`;
  17. CREATE TABLE `garageproperties` (
  18. `garageID` int(8) NOT NULL AUTO_INCREMENT,
  19. `paymentSchemeID` int(8) NOT NULL COMMENT '收费策略',
  20. `totalBookableSpace` int(4) NOT NULL DEFAULT '0' COMMENT '可预约车位总数',
  21. `currentBookableSpace` int(4) NOT NULL DEFAULT '0' COMMENT '当前可预约车位数',
  22. `garageCapacity` int(4) NOT NULL DEFAULT '0' COMMENT '车库容量',
  23. `garageFreeSpace` int(4) NOT NULL DEFAULT '0' COMMENT '当前剩余车位数',
  24. PRIMARY KEY (`garageID`)
  25. ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4;
  26. -- ----------------------------
  27. -- Records of garageproperties
  28. -- ----------------------------
  29. INSERT INTO `garageproperties` VALUES ('1', '1', '20', '19', '200', '180');
  30. -- ----------------------------
  31. -- Table structure for manager
  32. -- ----------------------------
  33. DROP TABLE IF EXISTS `manager`;
  34. CREATE TABLE `manager` (
  35. `managerID` int(10) NOT NULL AUTO_INCREMENT,
  36. `managerPassword` varchar(50) NOT NULL,
  37. `managerTel` varchar(11) NOT NULL,
  38. `managerName` varchar(50) NOT NULL,
  39. `roleID` int(8) NOT NULL,
  40. PRIMARY KEY (`managerID`),
  41. KEY `manager_ibfk_1` (`roleID`),
  42. CONSTRAINT `manager_ibfk_1` FOREIGN KEY (`roleID`) REFERENCES `role` (`roleID`)
  43. ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
  44. -- ----------------------------
  45. -- Records of manager
  46. -- ----------------------------
  47. -- ----------------------------
  48. -- Table structure for monthcardrecords
  49. -- ----------------------------
  50. DROP TABLE IF EXISTS `monthcardrecords`;
  51. CREATE TABLE `monthcardrecords` (
  52. `monthCardRecordsID` int(8) NOT NULL AUTO_INCREMENT,
  53. `monthCardType` int(1) unsigned zerofill NOT NULL COMMENT '月卡类型,0无,1体验,2月,3季度,4半年,5年',
  54. `numberPlate` char(8) NOT NULL COMMENT '车牌号',
  55. `garageID` int(4) NOT NULL,
  56. `monthCardDetail` varchar(50) DEFAULT NULL,
  57. `startTime` varchar(50) NOT NULL,
  58. `endTime` varchar(50) NOT NULL,
  59. PRIMARY KEY (`monthCardRecordsID`),
  60. KEY `monthCardRecords_ibfk_1` (`numberPlate`),
  61. KEY `monthCardRecords_ibfk_2` (`garageID`),
  62. CONSTRAINT `monthcardrecords_ibfk_1` FOREIGN KEY (`numberPlate`) REFERENCES `vehicle` (`numberPlate`)
  63. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
  64. -- ----------------------------
  65. -- Records of monthcardrecords
  66. -- ----------------------------
  67. -- ----------------------------
  68. -- Table structure for numberplatemapping
  69. -- ----------------------------
  70. DROP TABLE IF EXISTS `numberplatemapping`;
  71. CREATE TABLE `numberplatemapping` (
  72. `numberPlateHeader` varchar(5) NOT NULL,
  73. `mappedString` char(2) NOT NULL,
  74. PRIMARY KEY (`numberPlateHeader`)
  75. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
  76. -- ----------------------------
  77. -- Records of numberplatemapping
  78. -- ----------------------------
  79. INSERT INTO `numberplatemapping` VALUES ('云', '07');
  80. INSERT INTO `numberplatemapping` VALUES ('京', '01');
  81. INSERT INTO `numberplatemapping` VALUES ('使', '32');
  82. INSERT INTO `numberplatemapping` VALUES ('冀', '05');
  83. INSERT INTO `numberplatemapping` VALUES ('吉', '23');
  84. INSERT INTO `numberplatemapping` VALUES ('学', '35');
  85. INSERT INTO `numberplatemapping` VALUES ('宁', '30');
  86. INSERT INTO `numberplatemapping` VALUES ('川', '29');
  87. INSERT INTO `numberplatemapping` VALUES ('挂', '34');
  88. INSERT INTO `numberplatemapping` VALUES ('新', '13');
  89. INSERT INTO `numberplatemapping` VALUES ('晋', '21');
  90. INSERT INTO `numberplatemapping` VALUES ('桂', '18');
  91. INSERT INTO `numberplatemapping` VALUES ('沪', '03');
  92. INSERT INTO `numberplatemapping` VALUES ('津', '02');
  93. INSERT INTO `numberplatemapping` VALUES ('浙', '15');
  94. INSERT INTO `numberplatemapping` VALUES ('渝', '04');
  95. INSERT INTO `numberplatemapping` VALUES ('港', '37');
  96. INSERT INTO `numberplatemapping` VALUES ('湘', '10');
  97. INSERT INTO `numberplatemapping` VALUES ('澳', '38');
  98. INSERT INTO `numberplatemapping` VALUES ('琼', '31');
  99. INSERT INTO `numberplatemapping` VALUES ('甘', '19');
  100. INSERT INTO `numberplatemapping` VALUES ('皖', '11');
  101. INSERT INTO `numberplatemapping` VALUES ('粤', '26');
  102. INSERT INTO `numberplatemapping` VALUES ('苏', '14');
  103. INSERT INTO `numberplatemapping` VALUES ('蒙', '20');
  104. INSERT INTO `numberplatemapping` VALUES ('藏', '28');
  105. INSERT INTO `numberplatemapping` VALUES ('警', '36');
  106. INSERT INTO `numberplatemapping` VALUES ('豫', '06');
  107. INSERT INTO `numberplatemapping` VALUES ('贵', '25');
  108. INSERT INTO `numberplatemapping` VALUES ('赣', '16');
  109. INSERT INTO `numberplatemapping` VALUES ('辽', '08');
  110. INSERT INTO `numberplatemapping` VALUES ('鄂', '17');
  111. INSERT INTO `numberplatemapping` VALUES ('闽', '24');
  112. INSERT INTO `numberplatemapping` VALUES ('陕', '22');
  113. INSERT INTO `numberplatemapping` VALUES ('青', '27');
  114. INSERT INTO `numberplatemapping` VALUES ('领', '33');
  115. INSERT INTO `numberplatemapping` VALUES ('鲁', '12');
  116. INSERT INTO `numberplatemapping` VALUES ('黑', '09');
  117. -- ----------------------------
  118. -- Table structure for orderrecords
  119. -- ----------------------------
  120. DROP TABLE IF EXISTS `orderrecords`;
  121. CREATE TABLE `orderrecords` (
  122. `orderRecordsID` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT '预约记录id',
  123. `userID` int(8) NOT NULL COMMENT '用户id',
  124. `numberPlate` char(8) NOT NULL COMMENT '车牌号',
  125. `garageID` int(4) NOT NULL,
  126. `bookParkTime` varchar(50) DEFAULT NULL COMMENT '预约时间',
  127. `cancelBookTime` varchar(50) DEFAULT NULL COMMENT '取消预约时间',
  128. `bookFetchTime` varchar(50) DEFAULT NULL,
  129. `bookHour` int(2) unsigned DEFAULT NULL COMMENT '预约时长',
  130. `bookPrice` int(11) unsigned zerofill DEFAULT NULL COMMENT '价格',
  131. `bookState` int(1) unsigned zerofill NOT NULL COMMENT '是否超过预约时间,默认0预停开始,1预停超时,2预取开始,3预取超时,4订单支付完成',
  132. PRIMARY KEY (`orderRecordsID`),
  133. KEY `orderRecords_ibfk_3` (`garageID`),
  134. KEY `orderRecords_ibfk_1` (`userID`),
  135. KEY `orderRecords_ibfk_2` (`numberPlate`),
  136. CONSTRAINT `orderrecords_ibfk_1` FOREIGN KEY (`numberPlate`) REFERENCES `vehicle` (`numberPlate`)
  137. ) ENGINE=InnoDB AUTO_INCREMENT=50 DEFAULT CHARSET=utf8mb4;
  138. -- ----------------------------
  139. -- Records of orderrecords
  140. -- ----------------------------
  141. INSERT INTO `orderrecords` VALUES ('1', '1', '鄂A12345', '1', '2018-11-07 16:21:02', null, null, '1', '00000000003', '4');
  142. INSERT INTO `orderrecords` VALUES ('2', '8', '苏B56789', '1', '2018-11-14 23:30:22', null, null, '3', null, '0');
  143. INSERT INTO `orderrecords` VALUES ('3', '8', '鄂A12345', '1', '2018-11-14 23:36:19', null, null, '3', null, '0');
  144. INSERT INTO `orderrecords` VALUES ('4', '8', '苏B56789', '1', '2018-11-15 00:51:07', null, null, '3', null, '0');
  145. INSERT INTO `orderrecords` VALUES ('5', '8', '苏B56789', '1', '2018-11-15 01:08:10', null, null, '3', null, '0');
  146. INSERT INTO `orderrecords` VALUES ('6', '8', '苏B56789', '1', '2018-11-13 17:42:49', null, null, '3', null, '0');
  147. INSERT INTO `orderrecords` VALUES ('7', '8', '鄂A12345', '1', '2018-11-13 17:59:43', null, null, '3', null, '0');
  148. INSERT INTO `orderrecords` VALUES ('8', '8', '苏B56789', '1', '2018-11-13 18:14:30', null, null, '3', null, '0');
  149. INSERT INTO `orderrecords` VALUES ('9', '8', '苏B56789', '1', '2018-11-13 18:16:21', null, null, '3', null, '0');
  150. INSERT INTO `orderrecords` VALUES ('10', '8', '苏B56789', '1', '2018-11-13 18:21:36', null, null, '3', null, '0');
  151. INSERT INTO `orderrecords` VALUES ('11', '8', '苏B56789', '1', '2018-11-15 09:15:08', null, null, '3', null, '0');
  152. INSERT INTO `orderrecords` VALUES ('12', '8', '鄂A12345', '1', '2018-11-21 08:46:55', null, null, '3', null, '0');
  153. INSERT INTO `orderrecords` VALUES ('13', '8', '桂K88888', '1', '2018-11-21 14:00:52', null, null, '3', null, '0');
  154. INSERT INTO `orderrecords` VALUES ('14', '8', '桂K88888', '1', '2018-11-23 14:08:14', null, null, '2', null, '0');
  155. INSERT INTO `orderrecords` VALUES ('15', '8', '桂K88888', '1', '2018-11-23 15:23:22', null, null, '3', null, '0');
  156. INSERT INTO `orderrecords` VALUES ('16', '8', '桂K88888', '1', '2018-11-23 16:16:24', null, null, '3', null, '0');
  157. INSERT INTO `orderrecords` VALUES ('17', '8', '桂K88888', '1', '2018-11-23 16:19:06', null, null, '3', null, '0');
  158. INSERT INTO `orderrecords` VALUES ('18', '8', '桂K88888', '1', '2018-11-23 16:28:13', null, null, '3', null, '0');
  159. INSERT INTO `orderrecords` VALUES ('19', '8', '桂K88888', '1', '2018-11-23 16:31:15', null, null, '3', null, '0');
  160. INSERT INTO `orderrecords` VALUES ('20', '8', '桂K88888', '1', '2018-11-23 16:40:05', null, null, '3', null, '0');
  161. INSERT INTO `orderrecords` VALUES ('21', '8', '桂K88888', '1', '2018-11-23 16:42:51', null, null, '3', null, '0');
  162. INSERT INTO `orderrecords` VALUES ('22', '8', '桂K88888', '1', '2018-11-23 16:49:59', null, null, '3', null, '0');
  163. INSERT INTO `orderrecords` VALUES ('23', '8', '桂K88888', '1', '2018-11-27 13:51:44', null, null, '3', null, '0');
  164. INSERT INTO `orderrecords` VALUES ('24', '8', '苏B56789', '1', '2018-11-27 13:56:21', null, null, '3', null, '0');
  165. INSERT INTO `orderrecords` VALUES ('25', '8', '鄂A12345', '1', '2018-11-27 13:57:18', null, null, '3', null, '0');
  166. INSERT INTO `orderrecords` VALUES ('30', '8', '鄂A19999', '1', '2018-11-27 14:31:47', null, null, '3', null, '0');
  167. INSERT INTO `orderrecords` VALUES ('31', '8', '鄂A19999', '1', '2018-11-27 14:34:30', null, null, '3', null, '0');
  168. INSERT INTO `orderrecords` VALUES ('32', '8', '苏B56789', '1', '2018-11-27 14:37:32', null, null, '3', null, '0');
  169. INSERT INTO `orderrecords` VALUES ('33', '8', '桂K88888', '1', '2018-11-28 14:56:13', null, null, '2', null, '0');
  170. INSERT INTO `orderrecords` VALUES ('34', '8', '桂K88888', '1', '2018-11-28 15:52:04', null, null, '3', null, '0');
  171. INSERT INTO `orderrecords` VALUES ('35', '8', '桂K88888', '1', '2018-11-28 15:57:23', null, null, '3', null, '0');
  172. INSERT INTO `orderrecords` VALUES ('36', '8', '桂K88888', '1', '2018-11-28 15:59:19', null, null, '3', null, '0');
  173. INSERT INTO `orderrecords` VALUES ('37', '8', '桂K88888', '1', '2018-11-28 16:05:15', null, null, '3', null, '0');
  174. INSERT INTO `orderrecords` VALUES ('38', '8', '桂K88888', '1', '2018-11-28 16:08:34', null, null, '3', null, '0');
  175. INSERT INTO `orderrecords` VALUES ('39', '8', '桂K88888', '1', '2018-11-28 17:01:32', null, null, '3', null, '0');
  176. INSERT INTO `orderrecords` VALUES ('40', '8', '桂K88888', '1', '2018-11-28 17:16:23', null, null, '3', null, '0');
  177. INSERT INTO `orderrecords` VALUES ('41', '8', '桂K88888', '1', '2018-11-28 17:32:59', null, null, '3', null, '0');
  178. INSERT INTO `orderrecords` VALUES ('42', '8', '桂K88888', '1', '2018-11-28 18:05:59', null, null, '3', null, '0');
  179. INSERT INTO `orderrecords` VALUES ('43', '8', '桂K88888', '1', '2018-11-29 10:28:43', null, null, '3', null, '0');
  180. INSERT INTO `orderrecords` VALUES ('44', '8', '桂K88888', '1', '2018-11-29 10:42:13', null, null, '3', null, '0');
  181. INSERT INTO `orderrecords` VALUES ('45', '8', '桂K88888', '1', '2018-11-29 11:01:50', null, null, '3', null, '0');
  182. INSERT INTO `orderrecords` VALUES ('46', '8', '苏B56789', '1', '2018-11-29 11:43:52', null, null, '3', null, '0');
  183. INSERT INTO `orderrecords` VALUES ('47', '28', '桂K88888', '1', '2018-11-29 14:31:49', null, null, '1', null, '0');
  184. INSERT INTO `orderrecords` VALUES ('48', '28', '桂K88888', '1', '2018-11-29 14:55:50', null, null, '1', null, '0');
  185. INSERT INTO `orderrecords` VALUES ('49', '8', '桂K88888', '1', '2018-12-01 16:04:59', null, null, '3', null, '0');
  186. -- ----------------------------
  187. -- Table structure for parkingrecords
  188. -- ----------------------------
  189. DROP TABLE IF EXISTS `parkingrecords`;
  190. CREATE TABLE `parkingrecords` (
  191. `parkingRecordsID` int(11) NOT NULL AUTO_INCREMENT COMMENT '订单ID',
  192. `userID` int(8) NOT NULL COMMENT '用户ID',
  193. `numberPlate` char(8) NOT NULL COMMENT '车牌号',
  194. `parkingSpaceID` int(4) NOT NULL COMMENT '车位ID',
  195. `garageID` int(4) NOT NULL COMMENT '车库ID',
  196. `parkingRecordsState` int(11) NOT NULL COMMENT '订单状态',
  197. `realParkTime` varchar(50) DEFAULT NULL COMMENT '实际停车时间',
  198. `realGetTime` varchar(50) DEFAULT NULL COMMENT '实际取车时间',
  199. `receiptNum` int(8) DEFAULT NULL COMMENT '流水号',
  200. `parkingPrice` int(11) DEFAULT NULL COMMENT '价格',
  201. `paymentStatus` int(4) DEFAULT '0' COMMENT '支付状态',
  202. PRIMARY KEY (`parkingRecordsID`),
  203. KEY `r_userID` (`userID`) USING BTREE,
  204. KEY `r_parkingSpaceID` (`parkingSpaceID`) USING BTREE,
  205. KEY `r_garageID` (`garageID`) USING BTREE,
  206. KEY `r_numberPlate` (`numberPlate`) USING BTREE,
  207. CONSTRAINT `parkingrecords_ibfk_1` FOREIGN KEY (`parkingSpaceID`) REFERENCES `parkingspace` (`parkingSpaceID`),
  208. CONSTRAINT `parkingrecords_ibfk_2` FOREIGN KEY (`numberPlate`) REFERENCES `vehicle` (`numberPlate`)
  209. ) ENGINE=InnoDB AUTO_INCREMENT=97 DEFAULT CHARSET=utf8mb4 COMMENT='停车记录表\r\n订单状态 :1表示预约,2表示预约订单被取消,3表示正在停车(车已入库),4表示预约取车,5表示付款没有取车,6表示取车并付款';
  210. -- ----------------------------
  211. -- Records of parkingrecords
  212. -- ----------------------------
  213. INSERT INTO `parkingrecords` VALUES ('2', '1', '鄂A12233', '1', '1', '6', '2018-05-18 10:48:22', '2018-09-21 13:58:44', '11221122', '233', '0');
  214. INSERT INTO `parkingrecords` VALUES ('5', '1', '苏B56789', '1', '1', '3', '2018-09-26 11:56:23', null, '1622026', null, '0');
  215. INSERT INTO `parkingrecords` VALUES ('8', '1', '苏B56789', '1', '1', '3', '2018-09-26 12:10:37', null, '1622026', null, '0');
  216. INSERT INTO `parkingrecords` VALUES ('9', '1', '苏B56789', '1', '1', '3', '2018-09-26 13:44:25', null, '1622026', null, '0');
  217. INSERT INTO `parkingrecords` VALUES ('10', '1', '苏B56789', '1', '1', '3', '2018-09-26 13:47:00', null, '1622026', null, '0');
  218. INSERT INTO `parkingrecords` VALUES ('11', '1', '苏B56789', '1', '1', '3', '2018-09-26 14:00:08', null, '1624203', null, '0');
  219. INSERT INTO `parkingrecords` VALUES ('12', '8', '苏B56789', '1', '1', '3', '2018-09-26 14:58:34', null, '1494417', null, '0');
  220. INSERT INTO `parkingrecords` VALUES ('13', '8', '苏B56789', '1', '1', '3', '2018-09-26 16:21:05', null, '1345361', null, '0');
  221. INSERT INTO `parkingrecords` VALUES ('14', '8', '苏B56789', '1', '1', '3', '2018-09-26 16:26:00', null, '1180161', null, '0');
  222. INSERT INTO `parkingrecords` VALUES ('15', '1', '苏B56789', '1', '1', '6', '2018-09-26 16:29:16', '2018-09-27 10:18:59', '1527193', '40', '0');
  223. INSERT INTO `parkingrecords` VALUES ('16', '8', '苏B56789', '1', '1', '6', '2018-09-27 10:44:45', '2018-09-27 11:12:34', '1002214', '5', '0');
  224. INSERT INTO `parkingrecords` VALUES ('17', '8', '苏B56789', '1', '1', '6', '2018-09-27 13:57:59', '2018-09-27 15:02:42', '1472774', '5', '0');
  225. INSERT INTO `parkingrecords` VALUES ('18', '8', '苏B56789', '1', '1', '6', '2018-09-27 16:17:24', '2018-09-27 16:40:34', '1044488', '5', '0');
  226. INSERT INTO `parkingrecords` VALUES ('19', '8', '苏B56789', '1', '1', '6', '2018-09-28 09:36:49', '2018-09-28 09:43:40', '1145362', '5', '0');
  227. INSERT INTO `parkingrecords` VALUES ('20', '8', '苏B56789', '1', '1', '6', '2018-09-28 10:01:09', '2018-09-28 10:17:07', '1732795', '5', '0');
  228. INSERT INTO `parkingrecords` VALUES ('21', '8', '苏B56789', '1', '1', '3', '2018-09-28 13:44:43', null, '1508983', null, '0');
  229. INSERT INTO `parkingrecords` VALUES ('22', '8', '桂K88888', '1', '1', '6', '2018-09-30 10:13:48', '2018-09-30 10:50:41', '1313380', '5', '0');
  230. INSERT INTO `parkingrecords` VALUES ('25', '8', '桂K88888', '1', '1', '3', '2018-09-30 10:59:45', null, '1542033', null, '0');
  231. INSERT INTO `parkingrecords` VALUES ('26', '8', '桂K88888', '1', '1', '6', '2018-09-30 11:10:01', '2018-09-30 11:11:22', '1789265', '5', '0');
  232. INSERT INTO `parkingrecords` VALUES ('27', '8', '桂K88888', '1', '1', '6', '2018-09-30 13:54:21', '2018-09-30 13:56:10', '1303863', '5', '0');
  233. INSERT INTO `parkingrecords` VALUES ('28', '8', '桂K88888', '1', '1', '6', '2018-09-30 14:09:12', '2018-09-30 14:10:11', '1791456', '5', '0');
  234. INSERT INTO `parkingrecords` VALUES ('29', '8', '桂K88888', '1', '1', '6', '2018-09-30 15:03:59', '2018-09-30 15:04:54', '1363018', '5', '0');
  235. INSERT INTO `parkingrecords` VALUES ('30', '8', '桂K88888', '1', '1', '6', '2018-09-30 15:15:41', '2018-09-30 15:16:19', '1713154', '5', '0');
  236. INSERT INTO `parkingrecords` VALUES ('31', '8', '桂K88888', '1', '1', '6', '2018-09-30 15:23:53', '2018-09-30 15:24:34', '1073471', '5', '0');
  237. INSERT INTO `parkingrecords` VALUES ('32', '8', '桂K88888', '1', '1', '6', '2018-09-30 15:29:57', '2018-09-30 15:30:30', '1787452', '5', '0');
  238. INSERT INTO `parkingrecords` VALUES ('33', '8', '桂K88888', '1', '1', '6', '2018-09-30 15:40:31', '2018-09-30 15:41:13', '1905061', '5', '0');
  239. INSERT INTO `parkingrecords` VALUES ('34', '8', '桂K88888', '1', '1', '6', '2018-09-30 16:02:56', '2018-09-30 16:06:32', '1615494', '5', '0');
  240. INSERT INTO `parkingrecords` VALUES ('35', '1', '桂K88888', '1', '1', '3', '2018-09-30 16:09:23', null, '1195242', null, '0');
  241. INSERT INTO `parkingrecords` VALUES ('36', '8', '桂K88888', '1', '1', '6', '2018-09-30 17:48:30', '2018-09-30 17:49:34', '1266260', '5', '0');
  242. INSERT INTO `parkingrecords` VALUES ('37', '8', '苏B56789', '1', '1', '6', '2018-10-18 18:10:04', '2018-10-18 18:12:07', '1112262', '3', '0');
  243. INSERT INTO `parkingrecords` VALUES ('38', '1', '苏B56789', '1', '1', '3', '2018-10-24 15:23:58', null, '1228329', null, '0');
  244. INSERT INTO `parkingrecords` VALUES ('39', '1', '桂K88888', '1', '1', '3', '2018-10-26 19:18:14', null, '1742459', null, '0');
  245. INSERT INTO `parkingrecords` VALUES ('40', '1', '冀E5942Z', '1', '1', '6', '2018-10-29 16:27:45', '2018-10-29 16:59:21', '1203521', '3', '0');
  246. INSERT INTO `parkingrecords` VALUES ('41', '28', '冀E5942Z', '1', '1', '3', '2018-10-29 17:44:41', null, '0', null, '0');
  247. INSERT INTO `parkingrecords` VALUES ('42', '28', '冀E5942Z', '1', '1', '6', '2018-10-29 18:03:01', '2018-10-29 18:09:18', '1128960', '3', '0');
  248. INSERT INTO `parkingrecords` VALUES ('43', '1', '桂K88888', '1', '1', '6', '2018-10-30 09:54:11', '2018-10-30 10:04:06', '1841507', '3', '2');
  249. INSERT INTO `parkingrecords` VALUES ('44', '1', '桂K88888', '1', '1', '3', '2018-10-30 10:55:06', null, '0', null, '0');
  250. INSERT INTO `parkingrecords` VALUES ('45', '1', '桂K88888', '1', '1', '6', '2018-10-30 14:28:56', '2018-10-30 14:34:01', '1403530', '3', '2');
  251. INSERT INTO `parkingrecords` VALUES ('46', '1', '桂K88888', '1', '1', '6', '2018-10-30 15:17:07', '2018-10-30 15:17:34', '1668397', '3', '2');
  252. INSERT INTO `parkingrecords` VALUES ('47', '1', '桂K88888', '1', '1', '6', '2018-10-30 16:45:56', '2018-12-01 15:45:17', '1809574', '1440', '2');
  253. INSERT INTO `parkingrecords` VALUES ('48', '28', '桂K88888', '1', '1', '6', '2018-10-30 16:59:00', '2018-10-31 12:15:34', '1424288', '30', '2');
  254. INSERT INTO `parkingrecords` VALUES ('49', '28', '桂K88888', '1', '1', '6', '2018-10-31 12:22:27', '2018-10-31 14:36:03', '1417303', '9', '0');
  255. INSERT INTO `parkingrecords` VALUES ('50', '28', '桂K88888', '1', '1', '6', '2018-10-31 15:03:34', '2018-10-31 15:04:30', '1908614', '0', '0');
  256. INSERT INTO `parkingrecords` VALUES ('51', '28', '桂K888S8', '1', '1', '6', '2018-10-31 16:36:14', '2018-11-02 14:51:49', '1803570', '30', '2');
  257. INSERT INTO `parkingrecords` VALUES ('52', '28', '桂K88888', '1', '1', '6', '2018-10-31 16:45:57', '2018-10-31 16:48:50', '1403631', '0', '0');
  258. INSERT INTO `parkingrecords` VALUES ('53', '1', '冀E5942Z', '1', '1', '3', '2018-11-01 12:01:37', null, '0', null, '0');
  259. INSERT INTO `parkingrecords` VALUES ('54', '1', '冀E5942Z', '1', '1', '6', '2018-11-01 18:22:49', '2018-11-02 14:43:36', '1357863', '30', '0');
  260. INSERT INTO `parkingrecords` VALUES ('55', '1', '冀E5942Z', '1', '1', '6', '2018-11-02 11:13:44', '2018-11-02 13:53:12', '1542039', '9', '2');
  261. INSERT INTO `parkingrecords` VALUES ('56', '1', '冀E5942Z', '1', '1', '6', '2018-11-02 13:46:50', '2018-11-02 13:51:40', '1512420', '0', '2');
  262. INSERT INTO `parkingrecords` VALUES ('57', '1', '冀E5942Z', '1', '1', '6', '2018-11-02 16:28:57', '2018-12-01 15:45:17', '1809574', '1440', '2');
  263. INSERT INTO `parkingrecords` VALUES ('58', '1', '冀E5942Z', '1', '1', '6', '2018-11-02 17:05:20', '2018-11-02 17:37:32', '1319356', '0', '2');
  264. INSERT INTO `parkingrecords` VALUES ('59', '1', '桂K88888', '1', '1', '3', '2018-11-02 17:05:38', null, '0', null, '0');
  265. INSERT INTO `parkingrecords` VALUES ('60', '1', '桂K88888', '1', '1', '3', '2018-11-02 17:17:05', null, '0', null, '0');
  266. INSERT INTO `parkingrecords` VALUES ('61', '1', '桂K88888', '1', '1', '6', '2018-11-02 17:31:17', '2018-11-02 17:55:24', '1014233', '0', '2');
  267. INSERT INTO `parkingrecords` VALUES ('62', '1', '冀E5942Z', '1', '1', '6', '2018-11-02 17:33:28', '2018-11-02 17:37:32', '1319356', '0', '2');
  268. INSERT INTO `parkingrecords` VALUES ('63', '1', '桂K88888', '1', '1', '6', '2018-11-02 17:33:35', '2018-11-02 17:37:54', '1697756', '0', '2');
  269. INSERT INTO `parkingrecords` VALUES ('64', '1', '桂K88888', '1', '1', '3', '2018-11-06 16:21:23', null, '0', null, '0');
  270. INSERT INTO `parkingrecords` VALUES ('65', '1', '桂K88888', '1', '1', '6', '2018-11-06 16:38:38', '2018-11-06 16:49:22', '1323758', '0', '2');
  271. INSERT INTO `parkingrecords` VALUES ('66', '1', '桂K88888', '1', '1', '3', '2018-11-07 16:21:02', null, '1143459', null, '0');
  272. INSERT INTO `parkingrecords` VALUES ('67', '1', '桂K88888', '1', '1', '6', '2018-11-19 16:44:46', '2018-11-19 16:56:16', '1681655', '0', '2');
  273. INSERT INTO `parkingrecords` VALUES ('68', '1', '桂K88888', '1', '1', '3', '2018-11-20 17:34:10', null, '1875784', null, '0');
  274. INSERT INTO `parkingrecords` VALUES ('69', '1', '桂K88888', '1', '1', '6', '2018-11-20 17:57:53', '2018-11-21 18:05:33', '1934622', '45', '2');
  275. INSERT INTO `parkingrecords` VALUES ('70', '1', '桂K88888', '1', '1', '6', '2018-11-20 18:19:34', '2018-11-22 16:47:29', '1406008', '55', '2');
  276. INSERT INTO `parkingrecords` VALUES ('71', '1', '桂K88888', '1', '1', '3', '2018-11-21 16:31:34', null, '1855999', null, '0');
  277. INSERT INTO `parkingrecords` VALUES ('72', '1', '桂K88888', '1', '1', '6', '2018-11-21 16:54:53', '2018-11-22 17:05:35', '1949669', '40', '2');
  278. INSERT INTO `parkingrecords` VALUES ('73', '1', '桂K88888', '1', '1', '6', '2018-11-21 17:34:32', '2018-11-22 17:16:48', '1460653', '40', '2');
  279. INSERT INTO `parkingrecords` VALUES ('74', '1', '桂K88888', '1', '1', '6', '2018-11-21 17:42:08', '2018-11-22 17:56:27', '1831761', '45', '2');
  280. INSERT INTO `parkingrecords` VALUES ('75', '1', '桂K88888', '1', '1', '3', '2018-11-21 17:43:48', null, '1735393', null, '0');
  281. INSERT INTO `parkingrecords` VALUES ('76', '1', '桂K88888', '1', '1', '3', '2018-11-23 14:24:08', null, '1243846', null, '0');
  282. INSERT INTO `parkingrecords` VALUES ('77', '1', '桂K88888', '1', '1', '6', '2018-11-28 15:02:29', '2018-11-28 15:46:07', '19904197', '0', '2');
  283. INSERT INTO `parkingrecords` VALUES ('78', '8', '桂K88888', '1', '1', '6', '2018-11-28 16:36:06', '2018-11-29 09:25:59', '11693929', '45', '2');
  284. INSERT INTO `parkingrecords` VALUES ('79', '8', '桂K88888', '1', '1', '6', '2018-11-28 17:14:34', '2018-11-29 09:28:05', '13000056', '45', '2');
  285. INSERT INTO `parkingrecords` VALUES ('80', '8', '桂K88888', '1', '1', '6', '2018-11-28 17:29:54', '2018-11-30 17:26:45', '11353354', '90', '2');
  286. INSERT INTO `parkingrecords` VALUES ('81', '1', '桂K88888', '1', '1', '6', '2018-11-28 18:03:08', '2018-11-30 17:26:45', '11353354', '90', '2');
  287. INSERT INTO `parkingrecords` VALUES ('82', '8', '桂K88888', '1', '1', '3', '2018-11-28 18:26:03', null, '13286054', null, '0');
  288. INSERT INTO `parkingrecords` VALUES ('83', '8', '桂K88888', '1', '1', '3', '2018-11-29 11:05:18', null, '11080629', null, '0');
  289. INSERT INTO `parkingrecords` VALUES ('84', '8', '桂K88888', '1', '1', '6', '2018-11-29 11:11:55', '2018-11-29 11:29:02', '18217415', '0', '2');
  290. INSERT INTO `parkingrecords` VALUES ('85', '28', '桂K88888', '1', '1', '3', '2018-11-29 11:33:24', null, '16495655', null, '0');
  291. INSERT INTO `parkingrecords` VALUES ('86', '28', '桂K88888', '1', '1', '3', '2018-11-29 14:36:16', null, '18009734', null, '0');
  292. INSERT INTO `parkingrecords` VALUES ('87', '1', '桂K88888', '1', '1', '3', '2018-11-29 14:45:24', null, '11726712', null, '0');
  293. INSERT INTO `parkingrecords` VALUES ('88', '1', '桂K88888', '1', '1', '3', '2018-11-29 14:47:29', null, '17828365', null, '0');
  294. INSERT INTO `parkingrecords` VALUES ('89', '1', '桂K88888', '1', '1', '3', '2018-11-29 14:49:02', null, '14255689', null, '0');
  295. INSERT INTO `parkingrecords` VALUES ('90', '28', '桂K88888', '1', '1', '3', '2018-11-29 14:53:02', null, '19620689', null, '0');
  296. INSERT INTO `parkingrecords` VALUES ('91', '28', '桂K88888', '1', '1', '3', '2018-11-29 14:58:19', null, '10596443', null, '0');
  297. INSERT INTO `parkingrecords` VALUES ('92', '1', '桂K88888', '1', '1', '6', '2018-11-30 16:43:12', '2018-11-30 17:23:57', '19137507', '0', '2');
  298. INSERT INTO `parkingrecords` VALUES ('93', '1', '桂K88888', '1', '1', '3', '2018-11-30 17:08:29', null, '16495655', null, '0');
  299. INSERT INTO `parkingrecords` VALUES ('94', '1', '桂K88888', '1', '1', '3', '2018-11-30 17:11:20', null, '17211871', null, '0');
  300. INSERT INTO `parkingrecords` VALUES ('95', '1', '桂K88888', '1', '1', '6', '2018-12-01 15:41:59', '2018-12-01 15:45:17', '1809574', '1440', '2');
  301. INSERT INTO `parkingrecords` VALUES ('96', '8', '桂K88888', '1', '1', '6', '2018-12-01 16:07:43', '2018-12-01 16:18:09', '10744640', '0', '2');
  302. -- ----------------------------
  303. -- Table structure for parkingspace
  304. -- ----------------------------
  305. DROP TABLE IF EXISTS `parkingspace`;
  306. CREATE TABLE `parkingspace` (
  307. `parkingSpaceID` int(4) NOT NULL AUTO_INCREMENT COMMENT '车位ID',
  308. `parkingSpaceName` varchar(8) DEFAULT NULL COMMENT '车位编号',
  309. `parkingSpaceX` int(11) NOT NULL COMMENT '车位坐标X',
  310. `parkingSpaceY` int(11) NOT NULL COMMENT '车位坐标Y',
  311. `parkingSpaceZ` int(11) NOT NULL COMMENT '车位坐标Z',
  312. `parkingSpaceState` int(1) NOT NULL COMMENT '车位状态。0空闲,1占用,2已预约',
  313. PRIMARY KEY (`parkingSpaceID`)
  314. ) ENGINE=InnoDB AUTO_INCREMENT=5407 DEFAULT CHARSET=utf8mb4 COMMENT='车位信息表\r\n车位状态0表示空闲,1表示占用';
  315. -- ----------------------------
  316. -- Records of parkingspace
  317. -- ----------------------------
  318. INSERT INTO `parkingspace` VALUES ('1', 'a1', '0', '0', '0', '0');
  319. -- ----------------------------
  320. -- Table structure for paymentscheme
  321. -- ----------------------------
  322. DROP TABLE IF EXISTS `paymentscheme`;
  323. CREATE TABLE `paymentscheme` (
  324. `paymentSchemeID` int(8) NOT NULL AUTO_INCREMENT,
  325. `schemeType` int(2) unsigned NOT NULL COMMENT '策略类型。1按时,2按天,3按时间段',
  326. `freeTime` int(4) NOT NULL COMMENT '单位:分钟',
  327. `firstChargeTime` int(4) NOT NULL COMMENT '首段收费时间,单位:分钟',
  328. `firstCharge` int(3) NOT NULL COMMENT '首段费用',
  329. `chargeInterval` int(4) NOT NULL COMMENT '间隔收费时间,单位:分钟',
  330. `intervalCharge` int(3) NOT NULL COMMENT '间隔收费单价',
  331. `upperBound` int(5) NOT NULL COMMENT '每日停车收费上限',
  332. `eachCharge` int(4) NOT NULL COMMENT '按次收费,每次费用',
  333. `overnightCharge` int(3) NOT NULL COMMENT '按次收费,加收过夜费',
  334. `startChargeTime` varchar(30) NOT NULL COMMENT '按时间段收费,起始时间',
  335. `endChargeTime` varchar(30) NOT NULL COMMENT '按时间段收费,终止时间',
  336. `chargeStandard` int(4) NOT NULL COMMENT '按时间段收费,每小时费用',
  337. `monthCardCharge` int(4) NOT NULL COMMENT '月卡办理价格',
  338. `seasonCardCharge` int(4) NOT NULL COMMENT '季卡办理价格',
  339. `halfYearCardCharge` int(4) NOT NULL COMMENT '半年卡办理价格',
  340. `yearCardCharge` int(4) NOT NULL COMMENT '年卡办理价格',
  341. `bookCharge` int(4) NOT NULL COMMENT '预约小时费用',
  342. PRIMARY KEY (`paymentSchemeID`)
  343. ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4;
  344. -- ----------------------------
  345. -- Records of paymentscheme
  346. -- ----------------------------
  347. INSERT INTO `paymentscheme` VALUES ('1', '1', '1', '1', '3', '1', '3', '45', '25', '15', '8:30:00', '23:30:00', '6', '288', '588', '888', '1288', '4');
  348. -- ----------------------------
  349. -- Table structure for permission
  350. -- ----------------------------
  351. DROP TABLE IF EXISTS `permission`;
  352. CREATE TABLE `permission` (
  353. `permissionID` int(8) NOT NULL AUTO_INCREMENT,
  354. `permissionName` varchar(50) NOT NULL,
  355. PRIMARY KEY (`permissionID`)
  356. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
  357. -- ----------------------------
  358. -- Records of permission
  359. -- ----------------------------
  360. -- ----------------------------
  361. -- Table structure for role
  362. -- ----------------------------
  363. DROP TABLE IF EXISTS `role`;
  364. CREATE TABLE `role` (
  365. `roleID` int(8) NOT NULL,
  366. `roleName` varchar(30) NOT NULL COMMENT '角色名',
  367. PRIMARY KEY (`roleID`)
  368. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
  369. -- ----------------------------
  370. -- Records of role
  371. -- ----------------------------
  372. -- ----------------------------
  373. -- Table structure for rolepermissionrelation
  374. -- ----------------------------
  375. DROP TABLE IF EXISTS `rolepermissionrelation`;
  376. CREATE TABLE `rolepermissionrelation` (
  377. `roleID` int(8) NOT NULL,
  378. `permissionID` int(8) NOT NULL,
  379. PRIMARY KEY (`roleID`),
  380. KEY `rolePermissionRelation` (`permissionID`),
  381. CONSTRAINT `rolepermissionrelation_ibfk_1` FOREIGN KEY (`permissionID`) REFERENCES `permission` (`permissionID`),
  382. CONSTRAINT `rolepermissionrelation_ibfk_2` FOREIGN KEY (`roleID`) REFERENCES `role` (`roleID`)
  383. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
  384. -- ----------------------------
  385. -- Records of rolepermissionrelation
  386. -- ----------------------------
  387. -- ----------------------------
  388. -- Table structure for vehicle
  389. -- ----------------------------
  390. DROP TABLE IF EXISTS `vehicle`;
  391. CREATE TABLE `vehicle` (
  392. `numberPlate` char(8) NOT NULL COMMENT '车牌号',
  393. `vehicleTypeID` int(8) DEFAULT '0' COMMENT '车型ID',
  394. `vehicleTypeConfirm` int(1) NOT NULL DEFAULT '0' COMMENT '车型确认状态',
  395. `vehicleTypeChange` int(1) NOT NULL DEFAULT '5' COMMENT '车型可修改次数',
  396. `parkingSpaceID` int(4) DEFAULT NULL COMMENT '车位ID',
  397. `garageID` int(4) DEFAULT NULL COMMENT '车库ID',
  398. `vehiclepParkState` int(1) NOT NULL DEFAULT '0' COMMENT '车辆停车状态,0未停入,1停入,2停车中,3取车中,4停车预约,5预约取车',
  399. `orderRecordsID` int(10) unsigned DEFAULT NULL COMMENT '预约记录id',
  400. `parkingRecordsID` int(11) DEFAULT NULL COMMENT '停车记录ID',
  401. `frontwheelbase` int(11) NOT NULL DEFAULT '0' COMMENT '前轮轮距',
  402. `rearwheelbase` int(11) NOT NULL DEFAULT '0' COMMENT '后轮轮距',
  403. `monthCardType` int(1) unsigned zerofill NOT NULL DEFAULT '0' COMMENT '月卡类型,0无,1体验,2月,3季度,4半年,5年',
  404. `monthCardTime` varchar(50) DEFAULT NULL COMMENT '月卡到期时间',
  405. PRIMARY KEY (`numberPlate`),
  406. KEY `vehicleTypeID` (`vehicleTypeID`) USING BTREE,
  407. KEY `parkingSpaceID` (`parkingSpaceID`) USING BTREE,
  408. KEY `parkingRecordsID` (`parkingRecordsID`) USING BTREE,
  409. KEY `v_garageID` (`garageID`) USING BTREE,
  410. KEY `vehicle_ibfk_5` (`orderRecordsID`),
  411. CONSTRAINT `vehicle_ibfk_1` FOREIGN KEY (`parkingRecordsID`) REFERENCES `parkingrecords` (`parkingRecordsID`),
  412. CONSTRAINT `vehicle_ibfk_2` FOREIGN KEY (`parkingSpaceID`) REFERENCES `parkingspace` (`parkingSpaceID`),
  413. CONSTRAINT `vehicle_ibfk_5` FOREIGN KEY (`orderRecordsID`) REFERENCES `orderrecords` (`orderRecordsID`)
  414. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='车辆信息表\r\n停车状态:0表示未停车,1表示已停车,2表示用户已经发送停车指令但系统还未处理,3表示用户已经发送取车指令但系统还未处理,4表示用户已经发送预约停车指令,5表示用户已经发送预约取车指令\r\n车型确认状态:0表示未确认,1表示已确认。';
  415. -- ----------------------------
  416. -- Records of vehicle
  417. -- ----------------------------
  418. INSERT INTO `vehicle` VALUES ('冀E5942Z', null, '0', '5', null, null, '0', null, '58', '0', '0', '0', null);
  419. INSERT INTO `vehicle` VALUES ('桂K88888', null, '0', '5', null, null, '0', '49', '96', '0', '0', '0', null);
  420. INSERT INTO `vehicle` VALUES ('桂K888S8', null, '0', '5', null, null, '0', null, '51', '0', '0', '0', null);
  421. INSERT INTO `vehicle` VALUES ('苏B56789', null, '0', '5', null, null, '4', '46', '38', '0', '0', '0', null);
  422. INSERT INTO `vehicle` VALUES ('鄂A11111', '3', '0', '5', null, null, '0', null, null, '0', '0', '0', '');
  423. INSERT INTO `vehicle` VALUES ('鄂A12233', null, '0', '5', null, null, '1', null, null, '0', '0', '0', '');
  424. INSERT INTO `vehicle` VALUES ('鄂A12345', '2', '0', '5', null, null, '4', '25', null, '0', '0', '0', '');
  425. INSERT INTO `vehicle` VALUES ('鄂A19999', '0', '0', '5', null, null, '4', '31', null, '0', '0', '0', null);
  426. INSERT INTO `vehicle` VALUES ('鄂A22222', null, '0', '5', null, null, '0', null, null, '0', '0', '0', null);