feat: add package db
This commit is contained in:
@@ -705,4 +705,46 @@ CREATE TABLE `sys_user_role` (
|
|||||||
INSERT INTO `sys_user_role` VALUES (1, 1);
|
INSERT INTO `sys_user_role` VALUES (1, 1);
|
||||||
INSERT INTO `sys_user_role` VALUES (2, 2);
|
INSERT INTO `sys_user_role` VALUES (2, 2);
|
||||||
|
|
||||||
|
DROP TABLE IF EXISTS `sys_package`;
|
||||||
|
CREATE TABLE `sys_package` (
|
||||||
|
`id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键',
|
||||||
|
`rate_limit_id` bigint(20) DEFAULT NULL COMMENT '带宽限速ID',
|
||||||
|
`package_name` varchar(64) DEFAULT NULL COMMENT '套餐名称',
|
||||||
|
`period_num` int(11) DEFAULT NULL COMMENT '有效期数',
|
||||||
|
`period_type` varchar(32) DEFAULT NULL COMMENT '有效期类型',
|
||||||
|
`price` decimal(18,4) DEFAULT NULL COMMENT '价格',
|
||||||
|
`traffic` bigint(20) DEFAULT NULL COMMENT '流量',
|
||||||
|
`duration` bigint(20) DEFAULT NULL COMMENT '时长',
|
||||||
|
`client_num` int(11) DEFAULT NULL COMMENT '在线设备数',
|
||||||
|
`remark` varchar(500) DEFAULT NULL COMMENT '备注',
|
||||||
|
`rate_limit_enable` tinyint(1) DEFAULT '0' COMMENT '带宽是否限制',
|
||||||
|
`traffic_enable` tinyint(1) DEFAULT '0' COMMENT '流量是否限制',
|
||||||
|
`duration_enable` tinyint(1) DEFAULT '0' COMMENT '时长是否限制',
|
||||||
|
`client_num_enable` tinyint(1) DEFAULT '0' COMMENT '在线设备数是否限制',
|
||||||
|
`package_enable` tinyint(1) DEFAULT '0' COMMENT '套餐是否启用',
|
||||||
|
`del_flag` tinyint(1) DEFAULT '0' COMMENT '删除标志(0存在 1删除)',
|
||||||
|
`create_by` bigint(20) DEFAULT NULL COMMENT '创建人',
|
||||||
|
`create_time` datetime DEFAULT NULL COMMENT '创建时间',
|
||||||
|
`update_by` bigint(20) DEFAULT NULL COMMENT '更新人',
|
||||||
|
`update_time` datetime DEFAULT NULL COMMENT '更新时间',
|
||||||
|
PRIMARY KEY (`id`)
|
||||||
|
) ENGINE=InnoDB AUTO_INCREMENT=1869677552538566658 DEFAULT CHARSET=utf8mb4 COMMENT='客户平台-套餐表';
|
||||||
|
|
||||||
|
DROP TABLE IF EXISTS `sys_rate_limit`;
|
||||||
|
CREATE TABLE `sys_rate_limit` (
|
||||||
|
`id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键',
|
||||||
|
`rate_limit_name` varchar(32) DEFAULT NULL COMMENT '限速名称',
|
||||||
|
`down_limit` bigint(20) DEFAULT NULL COMMENT '下行限速',
|
||||||
|
`down_limit_enable` tinyint(1) DEFAULT '0' COMMENT '下行限速启用',
|
||||||
|
`up_limit` bigint(20) DEFAULT NULL COMMENT '上行限速',
|
||||||
|
`up_limit_enable` tinyint(1) DEFAULT '0' COMMENT '上行限速启用',
|
||||||
|
`del_flag` tinyint(1) DEFAULT '0' COMMENT '删除标志(0存在 1删除)',
|
||||||
|
`create_by` bigint(20) DEFAULT NULL COMMENT '创建人',
|
||||||
|
`create_time` datetime DEFAULT NULL COMMENT '创建时间',
|
||||||
|
`update_by` bigint(20) DEFAULT NULL COMMENT '更新人',
|
||||||
|
`update_time` datetime DEFAULT NULL COMMENT '更新时间',
|
||||||
|
PRIMARY KEY (`id`)
|
||||||
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='客户平台-带宽限速表';
|
||||||
|
|
||||||
|
|
||||||
SET FOREIGN_KEY_CHECKS = 1;
|
SET FOREIGN_KEY_CHECKS = 1;
|
||||||
|
|||||||
Reference in New Issue
Block a user