From b7d07f652e79d604416e17a304e9b7ded39c3933 Mon Sep 17 00:00:00 2001 From: "review512jwy@163.com" <“review512jwy@163.com”> Date: Tue, 23 Jun 2026 16:46:33 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BD=9C=E4=B8=9A=E5=86=85=E5=AE=B9sql?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../db/migration/V100__work_content.sql | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 data-center-business-controller/src/main/resources/db/migration/V100__work_content.sql diff --git a/data-center-business-controller/src/main/resources/db/migration/V100__work_content.sql b/data-center-business-controller/src/main/resources/db/migration/V100__work_content.sql new file mode 100644 index 0000000..6880893 --- /dev/null +++ b/data-center-business-controller/src/main/resources/db/migration/V100__work_content.sql @@ -0,0 +1,16 @@ +CREATE TABLE `dashboard_work_content` ( + `id` bigint NOT NULL AUTO_INCREMENT, + `content` varchar(255) NOT NULL COMMENT '内容', + `sort_order` int DEFAULT 0 COMMENT '同级排序', + `created_at` bigint DEFAULT NULL, + `flag` int DEFAULT 0 COMMENT '0-正常,1-删除', + PRIMARY KEY (`id`) +) ENGINE=InnoDB COMMENT='作业内容'; + +INSERT INTO `dashboard_work_content` (`content`, `sort_order`, `created_at`, `flag`) VALUES + ('受電設備点検(停電含む)', 0, UNIX_TIMESTAMP() * 1000, 0), + ('消防設備点検', 1, UNIX_TIMESTAMP() * 1000, 0), + ('消防訓練', 2, UNIX_TIMESTAMP() * 1000, 0), + ('貯水槽清掃', 3, UNIX_TIMESTAMP() * 1000, 0), + ('防火設備定期検査', 4, UNIX_TIMESTAMP() * 1000, 0); +