增加battery_history
This commit is contained in:
parent
ad7cff23d5
commit
d79122f86f
@ -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='合伙人推荐关系表';
|
@ -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 '被推荐人手机号';
|
15
1729245469_create_battery_history.up.sql
Normal file
15
1729245469_create_battery_history.up.sql
Normal file
@ -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 ;
|
Loading…
Reference in New Issue
Block a user