diff --git a/1722235300_create_test_table.down.sql b/1722235300_create_test_table.down.sql new file mode 100644 index 0000000..6aaea39 --- /dev/null +++ b/1722235300_create_test_table.down.sql @@ -0,0 +1,5 @@ +create table if not EXISTS ufutx_test ( + id int(10) unsigned not null auto_increment, + name varchar(100) not null comment "姓名", + primary key(id) + ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; \ No newline at end of file diff --git a/1722235300_create_test_table.up.sql b/1722235300_create_test_table.up.sql new file mode 100644 index 0000000..e7b5519 --- /dev/null +++ b/1722235300_create_test_table.up.sql @@ -0,0 +1 @@ +drop table if EXISTS ufutx_test; diff --git a/1722241690_change_square_table.down.sql b/1722241690_change_square_table.down.sql new file mode 100644 index 0000000..e69de29 diff --git a/1722241690_change_square_table.up.sql b/1722241690_change_square_table.up.sql new file mode 100644 index 0000000..997a67f --- /dev/null +++ b/1722241690_change_square_table.up.sql @@ -0,0 +1 @@ +ALTER TABLE `ufutx_dynamic_square` ADD COLUMN `is_speech` tinyint(4) NOT NULL COMMENT '一分钟演讲 0:否 1:是' AFTER `type`; \ No newline at end of file diff --git a/1722318268_create_ufutx_s2_partner_commissions_table.up.sql b/1722318268_create_ufutx_s2_partner_commissions_table.up.sql new file mode 100644 index 0000000..528effb --- /dev/null +++ b/1722318268_create_ufutx_s2_partner_commissions_table.up.sql @@ -0,0 +1,17 @@ +CREATE TABLE `ufutx_s2_partner_commissions` ( + `id` bigint(20) UNSIGNED PRIMARY KEY NOT NULL AUTO_INCREMENT, + `order_id` int(11) NOT NULL COMMENT '订单id', + `order_type` tinyint(3) UNSIGNED NOT NULL DEFAULT '1' COMMENT '订单类型,1=dma,2=商城', + `order_no` varchar(255) NOT NULL COMMENT '订单号', + `user_id` int(11) NOT NULL COMMENT '合伙人id, 即获得佣金的人', + `payment_id` tinyint(3) UNSIGNED NOT NULL DEFAULT '1' COMMENT '支付子商户id', + `role` tinyint(3) NOT NULL DEFAULT '1' COMMENT '合伙在此订单角色,1推荐人,2教练,3副教练,4客服', + `type` tinyint(3) NOT NULL DEFAULT '1' COMMENT '收益类型 1=推荐人收益 2=服务收益', + `amount` bigint(20) NOT NULL COMMENT '佣金金额,单位:分', + `withdrawal_id` int(11) DEFAULT NULL COMMENT '提现id, status=4之后填充', + `unfreeze_at` timestamp NULL DEFAULT NULL COMMENT '佣金解冻时间, 至此时刻state从0变为1', + `remark` varchar(255) DEFAULT NULL COMMENT '备注, 如拒绝理由等', + `status` int(11) NOT NULL DEFAULT '0' COMMENT '0=冻结中,1=可提现,2=提现中,3=被拒,4=已提现', + `created_at` timestamp NULL DEFAULT NULL, + `updated_at` timestamp NULL DEFAULT NULL +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='新合伙人佣金收益表'; \ No newline at end of file diff --git a/1722320154_change_table_square.down.sql b/1722320154_change_table_square.down.sql new file mode 100644 index 0000000..4bcf72f --- /dev/null +++ b/1722320154_change_table_square.down.sql @@ -0,0 +1 @@ +ALTER TABLE `ufutx_dynamic_square` DROP COLUMN `heart_rate`; \ No newline at end of file diff --git a/1722320154_change_table_square.up.sql b/1722320154_change_table_square.up.sql new file mode 100644 index 0000000..eed2026 --- /dev/null +++ b/1722320154_change_table_square.up.sql @@ -0,0 +1 @@ +ALTER TABLE `ufutx_dynamic_square` ADD COLUMN `heart_rate` text NULL COMMENT '心率数据' AFTER `check_mobile`; \ No newline at end of file diff --git a/1722342550_alter_partner_commissions_status.up.sql b/1722342550_alter_partner_commissions_status.up.sql new file mode 100644 index 0000000..566af52 --- /dev/null +++ b/1722342550_alter_partner_commissions_status.up.sql @@ -0,0 +1 @@ +ALTER TABLE `ufutx_s2_partner_commissions` CHANGE `status` `status` INT(11) NOT NULL DEFAULT '0' COMMENT '0=冻结中,1=可提现,2=提现中,3=被拒,4=已提现,5=作废'; \ No newline at end of file