2
0

feat: update cdr info

This commit is contained in:
caiyuchao
2024-12-13 18:53:00 +08:00
parent 65a42dfcaf
commit 7865018df5
27 changed files with 400 additions and 103 deletions

View File

@@ -75,14 +75,14 @@ CREATE TABLE `u_cdr` (
-- ----------------------------
-- Table structure for u_cdr_detail
-- ----------------------------
DROP TABLE IF EXISTS `u_cdr_detail`;
CREATE TABLE `u_cdr_detail` (
DROP TABLE IF EXISTS `u_cdr_history`;
CREATE TABLE `u_cdr_history` (
`id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT 'CDR Detail ID',
`cdr_id` bigint(20) NULL DEFAULT NULL COMMENT 'CDR ID',
`traffic_down` bigint(20) NULL DEFAULT NULL COMMENT 'Downstream traffic (Byte)',
`traffic_up` bigint(20) NULL DEFAULT NULL COMMENT 'Upstream traffic (Byte)',
`start_time` datetime NULL DEFAULT NULL COMMENT 'Start time',
`end_time` datetime NULL DEFAULT NULL COMMENT 'End time',
`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)',
`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',
@@ -90,7 +90,7 @@ CREATE TABLE `u_cdr_detail` (
`update_by` bigint(20) NULL DEFAULT NULL COMMENT 'updater',
`update_time` datetime NULL DEFAULT NULL COMMENT 'update time',
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci COMMENT = '用户平台_话单明细' ROW_FORMAT = DYNAMIC;
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci COMMENT = '用户平台_话单历史' ROW_FORMAT = DYNAMIC;
-- ----------------------------
-- Table structure for u_client
@@ -175,7 +175,6 @@ INSERT INTO `u_dept` VALUES (101, 100, '0,100', 'No.1', 1, 'system', '123456', '
DROP TABLE IF EXISTS `u_device`;
CREATE TABLE `u_device` (
`id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT 'Device ID',
`user_id` bigint(20) NULL DEFAULT NULL COMMENT 'User ID link to u_user',
`device_name` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT 'Device Name',
`device_ip` varchar(16) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT 'Device ip',
`device_mac` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT 'Device mac',