From d79122f86f0b3f63cd4e7522d4548ed63d894ac7 Mon Sep 17 00:00:00 2001 From: Hankin Date: Fri, 18 Oct 2024 18:21:07 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0battery=5Fhistory?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...able_ufutx_s2_shop_order_add_pay_type.down.sql | 0 ...ate_ufutx_s2_partner_relationship_table.up.sql | 10 ---------- ...nge_ufutx_s2_partner_relationship_table.up.sql | 2 -- 1729245469_create_battery_history.up.sql | 15 +++++++++++++++ 4 files changed, 15 insertions(+), 12 deletions(-) delete mode 100644 1722579383_table_ufutx_s2_shop_order_add_pay_type.down.sql delete mode 100644 1722593882_create_ufutx_s2_partner_relationship_table.up.sql delete mode 100644 1722595868_change_ufutx_s2_partner_relationship_table.up.sql create mode 100644 1729245469_create_battery_history.up.sql diff --git a/1722579383_table_ufutx_s2_shop_order_add_pay_type.down.sql b/1722579383_table_ufutx_s2_shop_order_add_pay_type.down.sql deleted file mode 100644 index e69de29..0000000 diff --git a/1722593882_create_ufutx_s2_partner_relationship_table.up.sql b/1722593882_create_ufutx_s2_partner_relationship_table.up.sql deleted file mode 100644 index e00e40c..0000000 --- a/1722593882_create_ufutx_s2_partner_relationship_table.up.sql +++ /dev/null @@ -1,10 +0,0 @@ -CREATE TABLE `ufutx_s2_partner_relationship` ( - `id` bigint(20) UNSIGNED PRIMARY KEY NOT NULL AUTO_INCREMENT, - `partner_id` bigint(20) NOT NULL COMMENT '合伙人id', - `partner_mobile` bigint(20) NOT NULL COMMENT '合伙人手机号', - `presentee_id` bigint(20) NOT NULL COMMENT '被推荐人id', - `presentee_mobile` bigint(20) NOT NULL COMMENT '被推荐人手机号', - `created_at` timestamp NULL DEFAULT NULL, - `updated_at` timestamp NULL DEFAULT NULL, - `deleted_at` timestamp NULL DEFAULT NULL -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='合伙人推荐关系表'; \ No newline at end of file diff --git a/1722595868_change_ufutx_s2_partner_relationship_table.up.sql b/1722595868_change_ufutx_s2_partner_relationship_table.up.sql deleted file mode 100644 index e9f2af3..0000000 --- a/1722595868_change_ufutx_s2_partner_relationship_table.up.sql +++ /dev/null @@ -1,2 +0,0 @@ -ALTER TABLE `ufutx_s2_partner_relationship` CHANGE `partner_mobile` `partner_mobile` VARCHAR(64) NULL COMMENT '合伙人手机号'; -ALTER TABLE `ufutx_s2_partner_relationship` CHANGE `presentee_mobile` `presentee_mobile` VARCHAR(64) NULL COMMENT '被推荐人手机号'; \ No newline at end of file diff --git a/1729245469_create_battery_history.up.sql b/1729245469_create_battery_history.up.sql new file mode 100644 index 0000000..47d6159 --- /dev/null +++ b/1729245469_create_battery_history.up.sql @@ -0,0 +1,15 @@ +CREATE TABLE `ufutx_battery_history` ( + `id` int(11) unsigned NOT NULL AUTO_INCREMENT, + `band_id` int(11) NOT NULL COMMENT '手环id', + `timestamp` timestamp NULL DEFAULT NULL, + `heart_rate_time` int(11) NOT NULL, + `motor_count` int(11) NOT NULL, + `voltage_mv` int(11) NOT NULL , + `battery_percentag` int(11) NOT NULL , + `monitoring_count` int(11) NOT NULL, + `charging_status` tinyint(1) NOT NULL, + `created_at` timestamp NULL DEFAULT NULL, + `updated_at` timestamp NULL DEFAULT NULL, + PRIMARY KEY (`id`), + KEY `band_id` (`band_id`) USING BTREE +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 ; \ No newline at end of file