fix: 调整余额扣费功能
This commit is contained in:
13
sql/upgrade/1.0.10/upgrade.sql
Normal file
13
sql/upgrade/1.0.10/upgrade.sql
Normal file
@@ -0,0 +1,13 @@
|
||||
SET NAMES utf8mb4;
|
||||
SET FOREIGN_KEY_CHECKS = 0;
|
||||
|
||||
ALTER TABLE `wfc_user_db`.`u_cdr_history`
|
||||
ADD COLUMN `use_type` tinyint(4) NULL COMMENT 'use id' AFTER `duration`,
|
||||
ADD COLUMN `use_id` bigint(20) NULL COMMENT 'use type' AFTER `use_type`
|
||||
|
||||
ALTER TABLE `wfc_user_db`.`u_client`
|
||||
ADD COLUMN `active` tinyint(1) NULL COMMENT 'Whether the client is online' AFTER `client_mac`,
|
||||
ADD COLUMN `use_type` tinyint(4) NULL COMMENT 'use type' AFTER `active`,
|
||||
ADD COLUMN `use_id` bigint(20) NULL COMMENT 'use id' AFTER `use_type`
|
||||
|
||||
SET FOREIGN_KEY_CHECKS = 1;
|
||||
@@ -188,6 +188,9 @@ CREATE TABLE `u_cdr_history` (
|
||||
`start_time` bigint(20) NULL DEFAULT NULL COMMENT 'Start time',
|
||||
`end_time` bigint(20) NULL DEFAULT NULL COMMENT 'End time',
|
||||
`duration` bigint(20) NULL DEFAULT NULL COMMENT 'Duration(s)',
|
||||
`active` tinyint(1) DEFAULT NULL COMMENT 'Whether the client is online',
|
||||
`use_type` tinyint(4) DEFAULT NULL COMMENT 'use type',
|
||||
`use_id` bigint(20) DEFAULT NULL COMMENT 'use id',
|
||||
`del_flag` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '0' COMMENT 'delete flag',
|
||||
`create_by` bigint(20) NULL DEFAULT NULL COMMENT 'creater',
|
||||
`create_time` datetime NULL DEFAULT NULL COMMENT 'create time',
|
||||
@@ -211,6 +214,8 @@ CREATE TABLE `u_client` (
|
||||
`client_name` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT 'Client Name',
|
||||
`client_device_type` varchar(16) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT 'Client device type',
|
||||
`client_mac` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT 'Client mac address',
|
||||
`use_type` tinyint(4) DEFAULT NULL COMMENT 'use type',
|
||||
`use_id` bigint(20) DEFAULT NULL COMMENT 'use id',
|
||||
`del_flag` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '0' COMMENT 'delete flag',
|
||||
`create_by` bigint(20) NULL DEFAULT NULL COMMENT 'creater',
|
||||
`create_time` datetime NULL DEFAULT NULL COMMENT 'create time',
|
||||
|
||||
Reference in New Issue
Block a user