mirror of
https://github.com/TeaOSLab/EdgeAPI.git
synced 2025-12-27 07:26:36 +08:00
套餐可以设置带宽限制
This commit is contained in:
@@ -111485,7 +111485,7 @@
|
||||
"name": "edgePlans",
|
||||
"engine": "InnoDB",
|
||||
"charset": "utf8mb4_general_ci",
|
||||
"definition": "CREATE TABLE `edgePlans` (\n `id` int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT 'ID',\n `isOn` tinyint(1) unsigned DEFAULT '1' COMMENT '是否启用',\n `name` varchar(255) DEFAULT NULL COMMENT '套餐名',\n `description` varchar(255) DEFAULT NULL COMMENT '套餐简介',\n `clusterId` int(11) unsigned DEFAULT '0' COMMENT '集群ID',\n `trafficLimit` json DEFAULT NULL COMMENT '流量限制',\n `features` json DEFAULT NULL COMMENT '允许的功能',\n `hasFullFeatures` tinyint(1) unsigned DEFAULT '1' COMMENT '是否有完整的功能',\n `trafficPrice` json DEFAULT NULL COMMENT '流量价格设定',\n `bandwidthPrice` json DEFAULT NULL COMMENT '带宽价格',\n `monthlyPrice` decimal(12,2) unsigned DEFAULT '0.00' COMMENT '月付',\n `seasonallyPrice` decimal(12,2) unsigned DEFAULT '0.00' COMMENT '季付',\n `yearlyPrice` decimal(12,2) unsigned DEFAULT '0.00' COMMENT '年付',\n `priceType` varchar(32) DEFAULT NULL COMMENT '价格类型',\n `order` int(11) unsigned DEFAULT '0' COMMENT '排序',\n `state` tinyint(1) unsigned DEFAULT '1' COMMENT '状态',\n `totalServers` int(11) unsigned DEFAULT '1' COMMENT '可以绑定的网站数量',\n `totalServerNamesPerServer` int(255) unsigned DEFAULT '0' COMMENT '每个网站可以绑定的域名数量',\n `totalServerNames` int(255) unsigned DEFAULT '0' COMMENT '总域名数量',\n `monthlyRequests` bigint(20) unsigned DEFAULT '0' COMMENT '每月访问量额度',\n `dailyRequests` bigint(20) unsigned DEFAULT '0' COMMENT '每日访问量额度',\n `dailyWebsocketConnections` bigint(20) unsigned DEFAULT '0' COMMENT '每日Websocket连接数',\n `monthlyWebsocketConnections` bigint(20) unsigned DEFAULT '0' COMMENT '每月Websocket连接数',\n PRIMARY KEY (`id`),\n KEY `state` (`state`)\n) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='用户套餐'",
|
||||
"definition": "CREATE TABLE `edgePlans` (\n `id` int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT 'ID',\n `isOn` tinyint(1) unsigned DEFAULT '1' COMMENT '是否启用',\n `name` varchar(255) DEFAULT NULL COMMENT '套餐名',\n `description` varchar(255) DEFAULT NULL COMMENT '套餐简介',\n `clusterId` int(11) unsigned DEFAULT '0' COMMENT '集群ID',\n `trafficLimit` json DEFAULT NULL COMMENT '流量限制',\n `bandwidthLimitPerNode` json DEFAULT NULL COMMENT '单节点带宽限制',\n `features` json DEFAULT NULL COMMENT '允许的功能',\n `hasFullFeatures` tinyint(1) unsigned DEFAULT '1' COMMENT '是否有完整的功能',\n `trafficPrice` json DEFAULT NULL COMMENT '流量价格设定',\n `bandwidthPrice` json DEFAULT NULL COMMENT '带宽价格',\n `monthlyPrice` decimal(12,2) unsigned DEFAULT '0.00' COMMENT '月付',\n `seasonallyPrice` decimal(12,2) unsigned DEFAULT '0.00' COMMENT '季付',\n `yearlyPrice` decimal(12,2) unsigned DEFAULT '0.00' COMMENT '年付',\n `priceType` varchar(32) DEFAULT NULL COMMENT '价格类型',\n `order` int(11) unsigned DEFAULT '0' COMMENT '排序',\n `state` tinyint(1) unsigned DEFAULT '1' COMMENT '状态',\n `totalServers` int(11) unsigned DEFAULT '1' COMMENT '可以绑定的网站数量',\n `totalServerNamesPerServer` int(255) unsigned DEFAULT '0' COMMENT '每个网站可以绑定的域名数量',\n `totalServerNames` int(255) unsigned DEFAULT '0' COMMENT '总域名数量',\n `monthlyRequests` bigint(20) unsigned DEFAULT '0' COMMENT '每月访问量额度',\n `dailyRequests` bigint(20) unsigned DEFAULT '0' COMMENT '每日访问量额度',\n `dailyWebsocketConnections` bigint(20) unsigned DEFAULT '0' COMMENT '每日Websocket连接数',\n `monthlyWebsocketConnections` bigint(20) unsigned DEFAULT '0' COMMENT '每月Websocket连接数',\n PRIMARY KEY (`id`),\n KEY `state` (`state`)\n) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='用户套餐'",
|
||||
"fields": [
|
||||
{
|
||||
"name": "id",
|
||||
@@ -111511,6 +111511,10 @@
|
||||
"name": "trafficLimit",
|
||||
"definition": "json COMMENT '流量限制'"
|
||||
},
|
||||
{
|
||||
"name": "bandwidthLimitPerNode",
|
||||
"definition": "json COMMENT '单节点带宽限制'"
|
||||
},
|
||||
{
|
||||
"name": "features",
|
||||
"definition": "json COMMENT '允许的功能'"
|
||||
@@ -111592,6 +111596,108 @@
|
||||
],
|
||||
"records": []
|
||||
},
|
||||
{
|
||||
"name": "edgePostCategories",
|
||||
"engine": "InnoDB",
|
||||
"charset": "utf8mb4_general_ci",
|
||||
"definition": "CREATE TABLE `edgePostCategories` (\n `id` int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT 'ID',\n `name` varchar(255) DEFAULT NULL COMMENT '分类名称',\n `isOn` tinyint(1) unsigned DEFAULT '1' COMMENT '是否启用',\n `code` varchar(255) DEFAULT NULL COMMENT '代号',\n `order` int(11) unsigned DEFAULT '0' COMMENT '排序',\n `state` tinyint(1) unsigned DEFAULT '1' COMMENT '分类状态',\n PRIMARY KEY (`id`)\n) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='文章分类'",
|
||||
"fields": [
|
||||
{
|
||||
"name": "id",
|
||||
"definition": "int(11) unsigned auto_increment COMMENT 'ID'"
|
||||
},
|
||||
{
|
||||
"name": "name",
|
||||
"definition": "varchar(255) COMMENT '分类名称'"
|
||||
},
|
||||
{
|
||||
"name": "isOn",
|
||||
"definition": "tinyint(1) unsigned DEFAULT '1' COMMENT '是否启用'"
|
||||
},
|
||||
{
|
||||
"name": "code",
|
||||
"definition": "varchar(255) COMMENT '代号'"
|
||||
},
|
||||
{
|
||||
"name": "order",
|
||||
"definition": "int(11) unsigned DEFAULT '0' COMMENT '排序'"
|
||||
},
|
||||
{
|
||||
"name": "state",
|
||||
"definition": "tinyint(1) unsigned DEFAULT '1' COMMENT '分类状态'"
|
||||
}
|
||||
],
|
||||
"indexes": [
|
||||
{
|
||||
"name": "PRIMARY",
|
||||
"definition": "UNIQUE KEY `PRIMARY` (`id`) USING BTREE"
|
||||
}
|
||||
],
|
||||
"records": []
|
||||
},
|
||||
{
|
||||
"name": "edgePosts",
|
||||
"engine": "InnoDB",
|
||||
"charset": "utf8mb4_general_ci",
|
||||
"definition": "CREATE TABLE `edgePosts` (\n `id` int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT 'ID',\n `categoryId` int(11) unsigned DEFAULT '0' COMMENT '文章分类',\n `type` varchar(255) DEFAULT NULL COMMENT '类型:normal, url',\n `url` varchar(255) DEFAULT NULL COMMENT 'URL',\n `subject` varchar(255) DEFAULT NULL COMMENT '标题',\n `body` longtext COMMENT '内容',\n `createdAt` bigint(11) unsigned DEFAULT '0' COMMENT '创建时间',\n `isPublished` tinyint(1) unsigned DEFAULT '0' COMMENT '是否已发布',\n `publishedAt` bigint(11) unsigned DEFAULT '0' COMMENT '发布时间',\n `productCode` varchar(64) DEFAULT NULL COMMENT '产品代号',\n `state` tinyint(1) unsigned DEFAULT '1' COMMENT '状态',\n PRIMARY KEY (`id`),\n KEY `categoryId` (`categoryId`)\n) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='文章管理'",
|
||||
"fields": [
|
||||
{
|
||||
"name": "id",
|
||||
"definition": "int(11) unsigned auto_increment COMMENT 'ID'"
|
||||
},
|
||||
{
|
||||
"name": "categoryId",
|
||||
"definition": "int(11) unsigned DEFAULT '0' COMMENT '文章分类'"
|
||||
},
|
||||
{
|
||||
"name": "type",
|
||||
"definition": "varchar(255) COMMENT '类型:normal, url'"
|
||||
},
|
||||
{
|
||||
"name": "url",
|
||||
"definition": "varchar(255) COMMENT 'URL'"
|
||||
},
|
||||
{
|
||||
"name": "subject",
|
||||
"definition": "varchar(255) COMMENT '标题'"
|
||||
},
|
||||
{
|
||||
"name": "body",
|
||||
"definition": "longtext COMMENT '内容'"
|
||||
},
|
||||
{
|
||||
"name": "createdAt",
|
||||
"definition": "bigint(11) unsigned DEFAULT '0' COMMENT '创建时间'"
|
||||
},
|
||||
{
|
||||
"name": "isPublished",
|
||||
"definition": "tinyint(1) unsigned DEFAULT '0' COMMENT '是否已发布'"
|
||||
},
|
||||
{
|
||||
"name": "publishedAt",
|
||||
"definition": "bigint(11) unsigned DEFAULT '0' COMMENT '发布时间'"
|
||||
},
|
||||
{
|
||||
"name": "productCode",
|
||||
"definition": "varchar(64) COMMENT '产品代号'"
|
||||
},
|
||||
{
|
||||
"name": "state",
|
||||
"definition": "tinyint(1) unsigned DEFAULT '1' COMMENT '状态'"
|
||||
}
|
||||
],
|
||||
"indexes": [
|
||||
{
|
||||
"name": "PRIMARY",
|
||||
"definition": "UNIQUE KEY `PRIMARY` (`id`) USING BTREE"
|
||||
},
|
||||
{
|
||||
"name": "categoryId",
|
||||
"definition": "KEY `categoryId` (`categoryId`) USING BTREE"
|
||||
}
|
||||
],
|
||||
"records": []
|
||||
},
|
||||
{
|
||||
"name": "edgeProviders",
|
||||
"engine": "InnoDB",
|
||||
|
||||
Reference in New Issue
Block a user