From b4ebff8d2a4216dc4aadb4c73e7b567be6da25df Mon Sep 17 00:00:00 2001 From: Lenovo <3110263650@QQ.com> Date: Thu, 21 May 2026 14:20:46 +0800 Subject: [PATCH] =?UTF-8?q?--=20=E5=81=9C=E8=BD=A6=E5=8C=BA=E5=9F=9F?= =?UTF-8?q?=E7=AE=A1=E7=90=86=E7=B3=BB=E7=BB=9F=E6=95=B0=E6=8D=AE=E5=BA=93?= =?UTF-8?q?=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit SET NAMES utf8mb4; SET FOREIGN_KEY_CHECKS = 0; -- ---------------------------- -- Table structure for parking_area -- ---------------------------- DROP TABLE IF EXISTS `parking_area`; CREATE TABLE `parking_area` ( `id` int(11) NOT NULL AUTO_INCREMENT, `area_code` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '区域编码(如A区、B区)', `area_name` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '区域名称', `total_spaces` int(11) NOT NULL DEFAULT 0 COMMENT '总车位数', `used_spaces` int(11) NULL DEFAULT 0 COMMENT '已用车位数', `available_spaces` int(11) NULL DEFAULT 0 COMMENT '可用车位数', `description` varchar(500) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '区域描述', `status` int(11) NULL DEFAULT 1 COMMENT '状态:0-停用,1-启用', `create_time` datetime(0) NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `update_time` datetime(0) NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP(0) COMMENT '更新时间', PRIMARY KEY (`id`) USING BTREE, UNIQUE INDEX `idx_area_code`(`area_code`) USING BTREE, INDEX `idx_area_name`(`area_name`) USING BTREE, INDEX `idx_status`(`status`) USING BTREE ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '停车区域信息表' ROW_FORMAT = Compact; -- ---------------------------- -- Records of parking_area -- ---------------------------- INSERT INTO `parking_area` VALUES (1, 'A', 'A区-地面停车场', 100, 30, 70, '地面普通停车位,靠近商场入口', 1, '2025-05-21 10:00:00', '2025-05-21 10:00:00'); INSERT INTO `parking_area` VALUES (2, 'B', 'B区-地下停车场', 150, 80, 70, '地下带充电桩车位,配备监控系统', 1, '2025-05-21 10:05:00', '2025-05-21 10:05:00'); INSERT INTO `parking_area` VALUES (3, 'C', 'C区-VIP停车场', 50, 10, 40, 'VIP专属停车位,提供代客泊车服务', 1, '2025-05-21 10:10:00', '2025-05-21 10:10:00'); INSERT INTO `parking_area` VALUES (4, 'D', 'D区-临时停车场', 80, 60, 20, '临时停车区域,按小时计费', 1, '2025-05-21 10:15:00', '2025-05-21 10:15:00'); INSERT INTO `parking_area` VALUES (5, 'E', 'E区-残疾人专用', 20, 5, 15, '残疾人专用停车位,靠近电梯口', 1, '2025-05-21 10:20:00', '2025-05-21 10:20:00'); SET FOREIGN_KEY_CHECKS = 1; --- .../parking_area.sql | 36 +++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 parkingmanagement-MyBatisProject/parking_area.sql diff --git a/parkingmanagement-MyBatisProject/parking_area.sql b/parkingmanagement-MyBatisProject/parking_area.sql new file mode 100644 index 0000000..9d279da --- /dev/null +++ b/parkingmanagement-MyBatisProject/parking_area.sql @@ -0,0 +1,36 @@ +-- 停车区域管理系统数据库表 + +SET NAMES utf8mb4; +SET FOREIGN_KEY_CHECKS = 0; + +-- ---------------------------- +-- Table structure for parking_area +-- ---------------------------- +DROP TABLE IF EXISTS `parking_area`; +CREATE TABLE `parking_area` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `area_code` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '区域编码(如A区、B区)', + `area_name` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '区域名称', + `total_spaces` int(11) NOT NULL DEFAULT 0 COMMENT '总车位数', + `used_spaces` int(11) NULL DEFAULT 0 COMMENT '已用车位数', + `available_spaces` int(11) NULL DEFAULT 0 COMMENT '可用车位数', + `description` varchar(500) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '区域描述', + `status` int(11) NULL DEFAULT 1 COMMENT '状态:0-停用,1-启用', + `create_time` datetime(0) NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', + `update_time` datetime(0) NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP(0) COMMENT '更新时间', + PRIMARY KEY (`id`) USING BTREE, + UNIQUE INDEX `idx_area_code`(`area_code`) USING BTREE, + INDEX `idx_area_name`(`area_name`) USING BTREE, + INDEX `idx_status`(`status`) USING BTREE +) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '停车区域信息表' ROW_FORMAT = Compact; + +-- ---------------------------- +-- Records of parking_area +-- ---------------------------- +INSERT INTO `parking_area` VALUES (1, 'A', 'A区-地面停车场', 100, 30, 70, '地面普通停车位,靠近商场入口', 1, '2025-05-21 10:00:00', '2025-05-21 10:00:00'); +INSERT INTO `parking_area` VALUES (2, 'B', 'B区-地下停车场', 150, 80, 70, '地下带充电桩车位,配备监控系统', 1, '2025-05-21 10:05:00', '2025-05-21 10:05:00'); +INSERT INTO `parking_area` VALUES (3, 'C', 'C区-VIP停车场', 50, 10, 40, 'VIP专属停车位,提供代客泊车服务', 1, '2025-05-21 10:10:00', '2025-05-21 10:10:00'); +INSERT INTO `parking_area` VALUES (4, 'D', 'D区-临时停车场', 80, 60, 20, '临时停车区域,按小时计费', 1, '2025-05-21 10:15:00', '2025-05-21 10:15:00'); +INSERT INTO `parking_area` VALUES (5, 'E', 'E区-残疾人专用', 20, 5, 15, '残疾人专用停车位,靠近电梯口', 1, '2025-05-21 10:20:00', '2025-05-21 10:20:00'); + +SET FOREIGN_KEY_CHECKS = 1; \ No newline at end of file