Apache-ShenYu网关-data permission table - MySQL数据库表结构设计

yesapi_selector
字段数:13 分类:微服务 使用次数:0

Apache-ShenYu网关-data permission table 是一个MySQL数据库表,表名为 yesapi_selector, 共包含 13 个字段。 所属分类:微服务。 该表提供了完整的字段定义、类型说明、默认值、索引设计和示例数据,可直接用于MySQL数据库建表。

💡 使用方式:复制下方SQL语句到MySQL客户端执行即可创建此表;也可通过果创云一键创建并生成RESTful API接口,免去手动部署。

MySQL数据库表结构设计

第 1-13 条, 共 13 条.
字段名称字段类型字段默认值是否允许为空字段描述索引字段数据示例
plugin_idvarchar(128)plugin id无索引
selector_namevarchar(64)selector name无索引
match_modeint(11)matching mode (0 and 1 or)无索引
selector_typeint(11)type (0, full flow, 1 custom flow)无索引
sort_codeint(11)sort无索引
handlevarchar(1024)processing logic (here for different plug-ins, there will be different fields to identify different processes, all data in JSON format is stored)无索引
enabledtinyint(4)whether to open (0 close, 1 open) 无索引
logedtinyint(4)whether to print the log (0 no print, 1 print) 无索引
continuedtinyint(4)whether to continue execution无索引
match_restfultinyint(4)whether to match restful(0 cache, 1 not cache)无索引
namespace_idvarchar(50)namespace id无索引
date_createdtimestamp(3)create time无索引
date_updatedtimestamp(3)CURRENT_TIMESTAMPupdate time无索引CURRENT_TIMESTAMP

MySQL建表SQL语句

来源:Apache-ShenYu网关-data permission table  |  链接:https://open.yesapi.cn/tablelist/yesapi_selector.html

SQL
-- 数据库大全:Apache-ShenYu网关-data permission table
-- 来源:YesApi.cn
CREATE TABLE `yesapi_selector` (
    `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
    `plugin_id` varchar(128) NOT NULL COMMENT 'plugin id',
    `selector_name` varchar(64) NOT NULL COMMENT 'selector name',
    `match_mode` int(11) NOT NULL COMMENT 'matching mode (0 and 1 or)',
    `selector_type` int(11) NOT NULL COMMENT 'type (0, full flow, 1 custom flow)',
    `sort_code` int(11) NOT NULL COMMENT 'sort',
    `handle` varchar(1024) NOT NULL COMMENT 'processing logic (here for different plug-ins, there will be different fields to identify different processes, all data in JSON format is stored)',
    `enabled` tinyint(4) NOT NULL COMMENT 'whether to open (0 close, 1 open) ',
    `loged` tinyint(4) NOT NULL COMMENT 'whether to print the log (0 no print, 1 print) ',
    `continued` tinyint(4) NOT NULL COMMENT 'whether to continue execution',
    `match_restful` tinyint(4) NOT NULL COMMENT 'whether to match restful(0 cache, 1 not cache)',
    `namespace_id` varchar(50) NOT NULL COMMENT 'namespace id',
    `date_created` timestamp(3) NOT NULL COMMENT 'create time',
    `date_updated` timestamp(3) NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT 'update time',
    PRIMARY KEY (`id`)
) ENGINE=InnoDB COMMENT 'Apache-ShenYu网关-data permission table';

复制后,到数据库执行,即可创建此数据库表。

📖 如何使用 Apache-ShenYu网关-data permission table 数据库表

  1. 手动建表:复制上方SQL语句,在MySQL客户端(如Navicat、phpMyAdmin、命令行)中执行即可
  2. 一键创建:点击「立即免费创建此表」按钮,果创云自动生成表和RESTful API接口
  3. API调用:创建表后,即可通过HTTP接口对数据进行增删改查操作
  4. 二次开发:支持自定义字段、添加业务逻辑、生成小程序/APP后端接口

❓ 常见问题

Q:Apache-ShenYu网关-data permission table表的主键是什么?
A:主键为 id 字段,类型为 bigint(20) unsigned NOT NULL AUTO_INCREMENT,自增无符号整数。
Q:如何在项目中使用这张表?
A:可以直接复制建表SQL到MySQL数据库中执行创建,也可以通过果创云平台一键创建并自动生成RESTful API接口,无需手动部署。
Q:这张表的索引有哪些?
A:仅有主键索引(id)。

猜你喜欢

回到顶部 ↑