Commit 70e7b913 authored by EricChen's avatar EricChen

接口管理相关表结构

parent 709fdfbf
-- ----------------------------
-- Table structure for SYS_IF_CONFIG_HEADER_B
-- ----------------------------
CREATE TABLE "SYS_IF_CONFIG_HEADER_B" (
"HEADER_ID" VARCHAR2(255 BYTE) NOT NULL ,
"INTERFACE_CODE" VARCHAR2(30 BYTE) NOT NULL ,
"INTERFACE_TYPE" VARCHAR2(10 BYTE) NOT NULL ,
"DOMAIN_URL" VARCHAR2(200 BYTE) NOT NULL ,
"BODY_HEADER" VARCHAR2(2000 BYTE) ,
"BODY_TAIL" VARCHAR2(2000 BYTE) ,
"NAMESPACE" VARCHAR2(30 BYTE) ,
"REQUEST_METHOD" VARCHAR2(10 BYTE) NOT NULL ,
"REQUEST_FORMAT" VARCHAR2(30 BYTE) NOT NULL ,
"REQUEST_CONTENTTYPE" VARCHAR2(80 BYTE) ,
"REQUEST_ACCEPT" VARCHAR2(80 BYTE) ,
"AUTH_FLAG" VARCHAR2(1 BYTE) NOT NULL ,
"AUTH_USERNAME" VARCHAR2(80 BYTE) ,
"AUTH_PASSWORD" VARCHAR2(200 BYTE) ,
"ENABLE_FLAG" VARCHAR2(1 BYTE) NOT NULL ,
"NAME" VARCHAR2(200 BYTE) NOT NULL ,
"DESCRIPTION" VARCHAR2(255 BYTE) NOT NULL ,
"SYSTEM_TYPE" VARCHAR2(10 BYTE) ,
"MAPPER_CLASS" VARCHAR2(255 BYTE) ,
"OBJECT_VERSION_NUMBER" NUMBER(38) DEFAULT 1 ,
"REQUEST_ID" NUMBER(38) DEFAULT -1 ,
"PROGRAM_ID" NUMBER(38) DEFAULT -1 ,
"CREATED_BY" NUMBER(38) DEFAULT -1 ,
"CREATION_DATE" TIMESTAMP(6) DEFAULT CURRENT_TIMESTAMP ,
"LAST_UPDATED_BY" NUMBER(38) DEFAULT -1 ,
"LAST_UPDATE_DATE" TIMESTAMP(6) DEFAULT CURRENT_TIMESTAMP ,
"LAST_UPDATE_LOGIN" NUMBER(38) DEFAULT -1 ,
"AUTH_TYPE" VARCHAR2(50 BYTE) DEFAULT 'BASIC_AUTH' ,
"AUTH_URL" VARCHAR2(255 BYTE) ,
"ACCESS_TOKEN_URL" VARCHAR2(255 BYTE) ,
"CLIENT_ID" VARCHAR2(255 BYTE) ,
"CLIENT_SECRET" VARCHAR2(255 BYTE) ,
"GRANT_TYPE" VARCHAR2(50 BYTE) ,
"SCOPE" VARCHAR2(100 BYTE) ,
"SOAP_ACTION" VARCHAR2(100 BYTE)
)
LOGGING
NOCOMPRESS
PCTFREE 10
INITRANS 1
STORAGE (
INITIAL 65536
NEXT 1048576
MINEXTENTS 1
MAXEXTENTS 2147483645
BUFFER_POOL DEFAULT
)
PARALLEL 1
NOCACHE
DISABLE ROW MOVEMENT
;
COMMENT ON COLUMN "SYS_IF_CONFIG_HEADER_B"."HEADER_ID" IS 'pk';
COMMENT ON COLUMN "SYS_IF_CONFIG_HEADER_B"."INTERFACE_CODE" IS '系统代码';
COMMENT ON COLUMN "SYS_IF_CONFIG_HEADER_B"."INTERFACE_TYPE" IS '接口类型';
COMMENT ON COLUMN "SYS_IF_CONFIG_HEADER_B"."DOMAIN_URL" IS '系统地址';
COMMENT ON COLUMN "SYS_IF_CONFIG_HEADER_B"."BODY_HEADER" IS 'SOAP报文前缀';
COMMENT ON COLUMN "SYS_IF_CONFIG_HEADER_B"."BODY_TAIL" IS 'SOAP报文后缀';
COMMENT ON COLUMN "SYS_IF_CONFIG_HEADER_B"."NAMESPACE" IS 'SOAP命名空间';
COMMENT ON COLUMN "SYS_IF_CONFIG_HEADER_B"."REQUEST_METHOD" IS '请求方法';
COMMENT ON COLUMN "SYS_IF_CONFIG_HEADER_B"."REQUEST_FORMAT" IS '请求形式';
COMMENT ON COLUMN "SYS_IF_CONFIG_HEADER_B"."REQUEST_CONTENTTYPE" IS '请求报文格式';
COMMENT ON COLUMN "SYS_IF_CONFIG_HEADER_B"."REQUEST_ACCEPT" IS '请求接收类型';
COMMENT ON COLUMN "SYS_IF_CONFIG_HEADER_B"."AUTH_FLAG" IS '是否需要验证';
COMMENT ON COLUMN "SYS_IF_CONFIG_HEADER_B"."AUTH_USERNAME" IS '校验用户名';
COMMENT ON COLUMN "SYS_IF_CONFIG_HEADER_B"."AUTH_PASSWORD" IS '校验密码';
COMMENT ON COLUMN "SYS_IF_CONFIG_HEADER_B"."ENABLE_FLAG" IS '是否有效';
COMMENT ON COLUMN "SYS_IF_CONFIG_HEADER_B"."NAME" IS '系统名称';
COMMENT ON COLUMN "SYS_IF_CONFIG_HEADER_B"."DESCRIPTION" IS '系统描述';
COMMENT ON COLUMN "SYS_IF_CONFIG_HEADER_B"."SYSTEM_TYPE" IS '系统类型';
COMMENT ON COLUMN "SYS_IF_CONFIG_HEADER_B"."MAPPER_CLASS" IS '包装类';
COMMENT ON COLUMN "SYS_IF_CONFIG_HEADER_B"."AUTH_TYPE" IS '校验模式';
COMMENT ON COLUMN "SYS_IF_CONFIG_HEADER_B"."AUTH_URL" IS '取授权码的url';
COMMENT ON COLUMN "SYS_IF_CONFIG_HEADER_B"."ACCESS_TOKEN_URL" IS '获取token的url';
COMMENT ON COLUMN "SYS_IF_CONFIG_HEADER_B"."CLIENT_ID" IS '应用id';
COMMENT ON COLUMN "SYS_IF_CONFIG_HEADER_B"."CLIENT_SECRET" IS '应用secret';
COMMENT ON COLUMN "SYS_IF_CONFIG_HEADER_B"."GRANT_TYPE" IS '授权模式';
COMMENT ON COLUMN "SYS_IF_CONFIG_HEADER_B"."SCOPE" IS '权限范围';
COMMENT ON COLUMN "SYS_IF_CONFIG_HEADER_B"."SOAP_ACTION" IS 'SOAPACTION';
-- ----------------------------
-- Primary Key structure for table SYS_IF_CONFIG_HEADER_B
-- ----------------------------
ALTER TABLE "SYS_IF_CONFIG_HEADER_B" ADD CONSTRAINT "SYS_INTERFACE_HEADER_PK" PRIMARY KEY ("HEADER_ID");
-- ----------------------------
-- Uniques structure for table SYS_IF_CONFIG_HEADER_B
-- ----------------------------
ALTER TABLE "SYS_IF_CONFIG_HEADER_B" ADD CONSTRAINT "SYS_IF_CONFIG_HEADER_U1" UNIQUE ("INTERFACE_CODE") NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
-- ----------------------------
-- Checks structure for table SYS_IF_CONFIG_HEADER_B
-- ----------------------------
\ No newline at end of file
-- ----------------------------
-- Table structure for SYS_IF_CONFIG_HEADER_TL
-- ----------------------------
CREATE TABLE "SYS_IF_CONFIG_HEADER_TL" (
"HEADER_ID" VARCHAR2(255 BYTE) NOT NULL ,
"LANG" VARCHAR2(50 BYTE) NOT NULL ,
"NAME" VARCHAR2(200 BYTE) ,
"DESCRIPTION" VARCHAR2(255 BYTE) ,
"OBJECT_VERSION_NUMBER" NUMBER(38) DEFAULT 1 ,
"REQUEST_ID" NUMBER(38) DEFAULT -1 ,
"PROGRAM_ID" NUMBER(38) DEFAULT -1 ,
"CREATED_BY" NUMBER(38) DEFAULT -1 ,
"CREATION_DATE" TIMESTAMP(6) DEFAULT CURRENT_TIMESTAMP ,
"LAST_UPDATED_BY" NUMBER(38) DEFAULT -1 ,
"LAST_UPDATE_DATE" TIMESTAMP(6) DEFAULT CURRENT_TIMESTAMP ,
"LAST_UPDATE_LOGIN" NUMBER(38) DEFAULT -1
)
LOGGING
NOCOMPRESS
PCTFREE 10
INITRANS 1
STORAGE (
INITIAL 65536
NEXT 1048576
MINEXTENTS 1
MAXEXTENTS 2147483645
BUFFER_POOL DEFAULT
)
PARALLEL 1
NOCACHE
DISABLE ROW MOVEMENT
;
COMMENT ON COLUMN "SYS_IF_CONFIG_HEADER_TL"."HEADER_ID" IS 'pk';
COMMENT ON COLUMN "SYS_IF_CONFIG_HEADER_TL"."LANG" IS '语言';
COMMENT ON COLUMN "SYS_IF_CONFIG_HEADER_TL"."NAME" IS '系统名称';
COMMENT ON COLUMN "SYS_IF_CONFIG_HEADER_TL"."DESCRIPTION" IS '系统描述';
-- ----------------------------
-- Primary Key structure for table SYS_IF_CONFIG_HEADER_TL
-- ----------------------------
ALTER TABLE "SYS_IF_CONFIG_HEADER_TL" ADD CONSTRAINT "PK_SYS_IF_CONFIG_HEADER_TL" PRIMARY KEY ("HEADER_ID", "LANG");
-- ----------------------------
-- Table structure for SYS_IF_CONFIG_LINE_B
-- ----------------------------
CREATE TABLE "SYS_IF_CONFIG_LINE_B" (
"LINE_ID" VARCHAR2(255 BYTE) NOT NULL ,
"HEADER_ID" VARCHAR2(255 BYTE) NOT NULL ,
"LINE_CODE" VARCHAR2(30 BYTE) NOT NULL ,
"IFT_URL" VARCHAR2(200 BYTE) NOT NULL ,
"ENABLE_FLAG" VARCHAR2(1 BYTE) NOT NULL ,
"LINE_NAME" VARCHAR2(50 BYTE) ,
"LINE_DESCRIPTION" VARCHAR2(255 BYTE) ,
"OBJECT_VERSION_NUMBER" NUMBER(38) DEFAULT 1 ,
"REQUEST_ID" NUMBER(38) DEFAULT -1 ,
"PROGRAM_ID" NUMBER(38) DEFAULT -1 ,
"CREATED_BY" NUMBER(38) DEFAULT -1 ,
"CREATION_DATE" TIMESTAMP(6) DEFAULT CURRENT_TIMESTAMP ,
"LAST_UPDATED_BY" NUMBER(38) DEFAULT -1 ,
"LAST_UPDATE_DATE" TIMESTAMP(6) DEFAULT CURRENT_TIMESTAMP ,
"LAST_UPDATE_LOGIN" NUMBER(38) DEFAULT -1
)
LOGGING
NOCOMPRESS
PCTFREE 10
INITRANS 1
STORAGE (
INITIAL 65536
NEXT 1048576
MINEXTENTS 1
MAXEXTENTS 2147483645
BUFFER_POOL DEFAULT
)
PARALLEL 1
NOCACHE
DISABLE ROW MOVEMENT
;
COMMENT ON COLUMN "SYS_IF_CONFIG_LINE_B"."LINE_ID" IS 'pk';
COMMENT ON COLUMN "SYS_IF_CONFIG_LINE_B"."HEADER_ID" IS '行Id';
COMMENT ON COLUMN "SYS_IF_CONFIG_LINE_B"."LINE_CODE" IS '接口代码';
COMMENT ON COLUMN "SYS_IF_CONFIG_LINE_B"."IFT_URL" IS '接口地址';
COMMENT ON COLUMN "SYS_IF_CONFIG_LINE_B"."ENABLE_FLAG" IS '是否有效';
COMMENT ON COLUMN "SYS_IF_CONFIG_LINE_B"."LINE_NAME" IS '接口名称';
COMMENT ON COLUMN "SYS_IF_CONFIG_LINE_B"."LINE_DESCRIPTION" IS '接口描述';
-- ----------------------------
-- Primary Key structure for table SYS_IF_CONFIG_LINE_B
-- ----------------------------
ALTER TABLE "SYS_IF_CONFIG_LINE_B" ADD CONSTRAINT "SYS_INTERFACE_LINE_PK" PRIMARY KEY ("LINE_ID");
-- ----------------------------
-- Table structure for SYS_IF_CONFIG_LINE_TL
-- ----------------------------
CREATE TABLE "SYS_IF_CONFIG_LINE_TL" (
"LINE_ID" VARCHAR2(255 BYTE) NOT NULL ,
"LANG" VARCHAR2(50 BYTE) NOT NULL ,
"LINE_NAME" VARCHAR2(50 BYTE) ,
"LINE_DESCRIPTION" VARCHAR2(255 BYTE) ,
"OBJECT_VERSION_NUMBER" NUMBER(38) DEFAULT 1 ,
"REQUEST_ID" NUMBER(38) DEFAULT -1 ,
"PROGRAM_ID" NUMBER(38) DEFAULT -1 ,
"CREATED_BY" NUMBER(38) DEFAULT -1 ,
"CREATION_DATE" TIMESTAMP(6) DEFAULT CURRENT_TIMESTAMP ,
"LAST_UPDATED_BY" NUMBER(38) DEFAULT -1 ,
"LAST_UPDATE_DATE" TIMESTAMP(6) DEFAULT CURRENT_TIMESTAMP ,
"LAST_UPDATE_LOGIN" NUMBER(38) DEFAULT -1
)
LOGGING
NOCOMPRESS
PCTFREE 10
INITRANS 1
STORAGE (
INITIAL 65536
NEXT 1048576
MINEXTENTS 1
MAXEXTENTS 2147483645
BUFFER_POOL DEFAULT
)
PARALLEL 1
NOCACHE
DISABLE ROW MOVEMENT
;
COMMENT ON COLUMN "SYS_IF_CONFIG_LINE_TL"."LINE_ID" IS 'pk';
COMMENT ON COLUMN "SYS_IF_CONFIG_LINE_TL"."LANG" IS '语言';
COMMENT ON COLUMN "SYS_IF_CONFIG_LINE_TL"."LINE_NAME" IS '接口名称';
COMMENT ON COLUMN "SYS_IF_CONFIG_LINE_TL"."LINE_DESCRIPTION" IS '接口描述';
-- ----------------------------
-- Primary Key structure for table SYS_IF_CONFIG_LINE_TL
-- ----------------------------
ALTER TABLE "SYS_IF_CONFIG_LINE_TL" ADD CONSTRAINT "PK_SYS_IF_CONFIG_LINE_TL" PRIMARY KEY ("LINE_ID", "LANG");
CREATE TABLE "SYS_IF_INVOKE_INBOUND" (
"INBOUND_ID" NUMBER(38) NOT NULL ,
"INTERFACE_NAME" VARCHAR2(255 BYTE) NOT NULL ,
"INTERFACE_URL" VARCHAR2(200 BYTE) NOT NULL ,
"REQUEST_TIME" TIMESTAMP(6) NOT NULL ,
"REQUEST_HEADER_PARAMETER" VARCHAR2(2000 BYTE) ,
"REQUEST_BODY_PARAMETER" CLOB ,
"REQUEST_METHOD" VARCHAR2(10 BYTE) ,
"REQUEST_STATUS" VARCHAR2(10 BYTE) ,
"RESPONSE_CONTENT" CLOB ,
"RESPONSE_TIME" NUMBER(38) ,
"STACKTRACE" CLOB ,
"IP" VARCHAR2(40 BYTE) ,
"REFERER" VARCHAR2(240 BYTE) ,
"USER_AGENT" VARCHAR2(240 BYTE) ,
"OBJECT_VERSION_NUMBER" NUMBER(38) DEFAULT 1 ,
"REQUEST_ID" NUMBER(38) DEFAULT -1 ,
"PROGRAM_ID" NUMBER(38) DEFAULT -1 ,
"CREATED_BY" NUMBER(38) DEFAULT -1 ,
"CREATION_DATE" TIMESTAMP(6) DEFAULT CURRENT_TIMESTAMP ,
"LAST_UPDATED_BY" NUMBER(38) DEFAULT -1 ,
"LAST_UPDATE_DATE" TIMESTAMP(6) DEFAULT CURRENT_TIMESTAMP ,
"LAST_UPDATE_LOGIN" NUMBER(38) DEFAULT -1
)
LOGGING
NOCOMPRESS
PCTFREE 10
INITRANS 1
STORAGE (
INITIAL 65536
NEXT 1048576
MINEXTENTS 1
MAXEXTENTS 2147483645
BUFFER_POOL DEFAULT
)
PARALLEL 1
NOCACHE
DISABLE ROW MOVEMENT
;
COMMENT ON COLUMN "SYS_IF_INVOKE_INBOUND"."INBOUND_ID" IS 'pk';
COMMENT ON COLUMN "SYS_IF_INVOKE_INBOUND"."INTERFACE_NAME" IS '接口名称';
COMMENT ON COLUMN "SYS_IF_INVOKE_INBOUND"."INTERFACE_URL" IS '接口地址';
COMMENT ON COLUMN "SYS_IF_INVOKE_INBOUND"."REQUEST_TIME" IS '请求时间';
COMMENT ON COLUMN "SYS_IF_INVOKE_INBOUND"."REQUEST_HEADER_PARAMETER" IS '请求header参数';
COMMENT ON COLUMN "SYS_IF_INVOKE_INBOUND"."REQUEST_BODY_PARAMETER" IS '请求body参数';
COMMENT ON COLUMN "SYS_IF_INVOKE_INBOUND"."REQUEST_METHOD" IS '请求方式';
COMMENT ON COLUMN "SYS_IF_INVOKE_INBOUND"."REQUEST_STATUS" IS '请求状态';
COMMENT ON COLUMN "SYS_IF_INVOKE_INBOUND"."RESPONSE_CONTENT" IS '响应内容';
COMMENT ON COLUMN "SYS_IF_INVOKE_INBOUND"."RESPONSE_TIME" IS '响应时间';
COMMENT ON COLUMN "SYS_IF_INVOKE_INBOUND"."STACKTRACE" IS '错误堆栈';
COMMENT ON COLUMN "SYS_IF_INVOKE_INBOUND"."IP" IS 'ip地址';
-- ----------------------------
-- Primary Key structure for table SYS_IF_INVOKE_INBOUND
-- ----------------------------
ALTER TABLE "SYS_IF_INVOKE_INBOUND" ADD CONSTRAINT "SYS_IF_INVOKE_INBOUND_PK" PRIMARY KEY ("INBOUND_ID");
-- ----------------------------
-- Indexes structure for table SYS_IF_INVOKE_INBOUND
-- ----------------------------
CREATE INDEX "SYS_IF_INVOKE_INBOUND_N1"
ON "SYS_IF_INVOKE_INBOUND" ("INTERFACE_NAME" ASC)
LOGGING
VISIBLE
PCTFREE 10
INITRANS 2
STORAGE (
INITIAL 65536
NEXT 1048576
MINEXTENTS 1
MAXEXTENTS 2147483645
BUFFER_POOL DEFAULT
);
CREATE INDEX "SYS_IF_INVOKE_INBOUND_N2"
ON "SYS_IF_INVOKE_INBOUND" ("INTERFACE_URL" ASC)
LOGGING
VISIBLE
PCTFREE 10
INITRANS 2
STORAGE (
INITIAL 65536
NEXT 1048576
MINEXTENTS 1
MAXEXTENTS 2147483645
BUFFER_POOL DEFAULT
);
CREATE INDEX "SYS_IF_INVOKE_INBOUND_N3"
ON "SYS_IF_INVOKE_INBOUND" ("REQUEST_TIME" ASC)
LOGGING
VISIBLE
PCTFREE 10
INITRANS 2
STORAGE (
INITIAL 65536
NEXT 1048576
MINEXTENTS 1
MAXEXTENTS 2147483645
BUFFER_POOL DEFAULT
);
CREATE INDEX "SYS_IF_INVOKE_INBOUND_N4"
ON "SYS_IF_INVOKE_INBOUND" ("REQUEST_STATUS" ASC)
LOGGING
VISIBLE
PCTFREE 10
INITRANS 2
STORAGE (
INITIAL 65536
NEXT 1048576
MINEXTENTS 1
MAXEXTENTS 2147483645
BUFFER_POOL DEFAULT
);
CREATE TABLE "SYS_IF_INVOKE_OUTBOUND" (
"OUTBOUND_ID" NUMBER(38) NOT NULL ,
"INTERFACE_NAME" VARCHAR2(255 BYTE) NOT NULL ,
"INTERFACE_URL" VARCHAR2(200 BYTE) NOT NULL ,
"REQUEST_TIME" TIMESTAMP(6) NOT NULL ,
"REQUEST_PARAMETER" CLOB ,
"REQUEST_STATUS" VARCHAR2(10 BYTE) ,
"RESPONSE_CONTENT" CLOB ,
"RESPONSE_TIME" NUMBER(38) ,
"RESPONSE_CODE" VARCHAR2(30 BYTE) ,
"STACKTRACE" CLOB ,
"OBJECT_VERSION_NUMBER" NUMBER(38) DEFAULT 1 ,
"REQUEST_ID" NUMBER(38) DEFAULT -1 ,
"PROGRAM_ID" NUMBER(38) DEFAULT -1 ,
"CREATED_BY" NUMBER(38) DEFAULT -1 ,
"CREATION_DATE" TIMESTAMP(6) DEFAULT CURRENT_TIMESTAMP ,
"LAST_UPDATED_BY" NUMBER(38) DEFAULT -1 ,
"LAST_UPDATE_DATE" TIMESTAMP(6) DEFAULT CURRENT_TIMESTAMP ,
"LAST_UPDATE_LOGIN" NUMBER(38) DEFAULT -1
)
LOGGING
NOCOMPRESS
PCTFREE 10
INITRANS 1
STORAGE (
INITIAL 65536
NEXT 1048576
MINEXTENTS 1
MAXEXTENTS 2147483645
BUFFER_POOL DEFAULT
)
PARALLEL 1
NOCACHE
DISABLE ROW MOVEMENT
;
COMMENT ON COLUMN "SYS_IF_INVOKE_OUTBOUND"."OUTBOUND_ID" IS 'pk';
COMMENT ON COLUMN "SYS_IF_INVOKE_OUTBOUND"."INTERFACE_NAME" IS '接口名称';
COMMENT ON COLUMN "SYS_IF_INVOKE_OUTBOUND"."INTERFACE_URL" IS '接口地址';
COMMENT ON COLUMN "SYS_IF_INVOKE_OUTBOUND"."REQUEST_TIME" IS '请求时间';
COMMENT ON COLUMN "SYS_IF_INVOKE_OUTBOUND"."REQUEST_PARAMETER" IS '请求参数';
COMMENT ON COLUMN "SYS_IF_INVOKE_OUTBOUND"."REQUEST_STATUS" IS '请求状态';
COMMENT ON COLUMN "SYS_IF_INVOKE_OUTBOUND"."RESPONSE_CONTENT" IS '响应内容';
COMMENT ON COLUMN "SYS_IF_INVOKE_OUTBOUND"."RESPONSE_TIME" IS '响应时间';
COMMENT ON COLUMN "SYS_IF_INVOKE_OUTBOUND"."RESPONSE_CODE" IS 'httpCode';
COMMENT ON COLUMN "SYS_IF_INVOKE_OUTBOUND"."STACKTRACE" IS '错误堆栈';
-- ----------------------------
-- Primary Key structure for table SYS_IF_INVOKE_OUTBOUND
-- ----------------------------
ALTER TABLE "SYS_IF_INVOKE_OUTBOUND" ADD CONSTRAINT "SYS_IF_INVOKE_OUTBOUND_PK" PRIMARY KEY ("OUTBOUND_ID");
-- ----------------------------
-- Checks SEQUENCE
-- ----------------------------
CREATE SEQUENCE "SYS_IF_INVOKE_OUTBOUND_S" MINVALUE 1 MAXVALUE 9999999999999999999999999999 INCREMENT BY 1 START WITH 10021 CACHE 20 NOORDER NOCYCLE
-- ----------------------------
-- Indexes structure for table SYS_IF_INVOKE_OUTBOUND
-- ----------------------------
CREATE INDEX "SYS_IF_INVOKE_OUTBOUND_N1"
ON "SYS_IF_INVOKE_OUTBOUND" ("INTERFACE_NAME" ASC)
LOGGING
VISIBLE
PCTFREE 10
INITRANS 2
STORAGE (
INITIAL 65536
NEXT 1048576
MINEXTENTS 1
MAXEXTENTS 2147483645
BUFFER_POOL DEFAULT
);
CREATE INDEX "SYS_IF_INVOKE_OUTBOUND_N2"
ON "SYS_IF_INVOKE_OUTBOUND" ("INTERFACE_URL" ASC)
LOGGING
VISIBLE
PCTFREE 10
INITRANS 2
STORAGE (
INITIAL 65536
NEXT 1048576
MINEXTENTS 1
MAXEXTENTS 2147483645
BUFFER_POOL DEFAULT
);
CREATE INDEX "SYS_IF_INVOKE_OUTBOUND_N3"
ON "SYS_IF_INVOKE_OUTBOUND" ("REQUEST_TIME" ASC)
LOGGING
VISIBLE
PCTFREE 10
INITRANS 2
STORAGE (
INITIAL 65536
NEXT 1048576
MINEXTENTS 1
MAXEXTENTS 2147483645
BUFFER_POOL DEFAULT
);
CREATE INDEX "SYS_IF_INVOKE_OUTBOUND_N4"
ON "SYS_IF_INVOKE_OUTBOUND" ("REQUEST_STATUS" ASC)
LOGGING
VISIBLE
PCTFREE 10
INITRANS 2
STORAGE (
INITIAL 65536
NEXT 1048576
MINEXTENTS 1
MAXEXTENTS 2147483645
BUFFER_POOL DEFAULT
);
CREATE TABLE "SYS_OAUTH_CLIENT_DETAILS" (
"ID" NUMBER(38) NOT NULL ,
"CLIENT_ID" VARCHAR2(100 BYTE) NOT NULL ,
"CLIENT_SECRET" VARCHAR2(256 BYTE) ,
"AUTHORIZED_GRANT_TYPES" VARCHAR2(256 BYTE) NOT NULL ,
"RESOURCE_IDS" VARCHAR2(256 BYTE) DEFAULT 'api-resource' ,
"AUTHORITIES" VARCHAR2(256 BYTE) ,
"AUTO_APPROVE" VARCHAR2(256 BYTE) ,
"SCOPE" VARCHAR2(256 BYTE) ,
"ACCESS_TOKEN_VALIDITY" NUMBER(38) ,
"REFRESH_TOKEN_VALIDITY" NUMBER(38) ,
"WEB_SERVER_REDIRECT_URI" VARCHAR2(2000 BYTE) ,
"ADDITIONAL_INFORMATION" VARCHAR2(4000 BYTE) ,
"OBJECT_VERSION_NUMBER" NUMBER(38) DEFAULT 1 ,
"REQUEST_ID" NUMBER(38) DEFAULT -1 ,
"PROGRAM_ID" NUMBER(38) DEFAULT -1 ,
"CREATED_BY" NUMBER(38) DEFAULT -1 ,
"CREATION_DATE" TIMESTAMP(6) DEFAULT CURRENT_TIMESTAMP ,
"LAST_UPDATED_BY" NUMBER(38) DEFAULT -1 ,
"LAST_UPDATE_DATE" TIMESTAMP(6) DEFAULT CURRENT_TIMESTAMP ,
"LAST_UPDATE_LOGIN" NUMBER(38) DEFAULT -1
)
LOGGING
NOCOMPRESS
PCTFREE 10
INITRANS 1
STORAGE (
INITIAL 65536
NEXT 1048576
MINEXTENTS 1
MAXEXTENTS 2147483645
BUFFER_POOL DEFAULT
)
PARALLEL 1
NOCACHE
DISABLE ROW MOVEMENT
;
COMMENT ON COLUMN "SYS_OAUTH_CLIENT_DETAILS"."ID" IS '表ID,主键,供其他表做外键';
COMMENT ON COLUMN "SYS_OAUTH_CLIENT_DETAILS"."CLIENT_ID" IS '客户端id';
COMMENT ON COLUMN "SYS_OAUTH_CLIENT_DETAILS"."CLIENT_SECRET" IS '客户端密码';
COMMENT ON COLUMN "SYS_OAUTH_CLIENT_DETAILS"."AUTHORIZED_GRANT_TYPES" IS '授权模式';
COMMENT ON COLUMN "SYS_OAUTH_CLIENT_DETAILS"."RESOURCE_IDS" IS '资源ID';
COMMENT ON COLUMN "SYS_OAUTH_CLIENT_DETAILS"."AUTHORITIES" IS '角色信息';
COMMENT ON COLUMN "SYS_OAUTH_CLIENT_DETAILS"."AUTO_APPROVE" IS '自动授权';
COMMENT ON COLUMN "SYS_OAUTH_CLIENT_DETAILS"."SCOPE" IS 'scope';
COMMENT ON COLUMN "SYS_OAUTH_CLIENT_DETAILS"."ACCESS_TOKEN_VALIDITY" IS 'accessToken 失效时间';
COMMENT ON COLUMN "SYS_OAUTH_CLIENT_DETAILS"."REFRESH_TOKEN_VALIDITY" IS 'refreshToken 失效时间';
COMMENT ON COLUMN "SYS_OAUTH_CLIENT_DETAILS"."WEB_SERVER_REDIRECT_URI" IS '授权码模式下的重定向URI';
COMMENT ON COLUMN "SYS_OAUTH_CLIENT_DETAILS"."ADDITIONAL_INFORMATION" IS '自定义信息';
-- ----------------------------
-- Primary Key structure for table SYS_OAUTH_CLIENT_DETAILS
-- ----------------------------
ALTER TABLE "SYS_OAUTH_CLIENT_DETAILS" ADD CONSTRAINT "SYS_OAUTH_CLIENT_DETAILS_PK" PRIMARY KEY ("ID");
-- ----------------------------
-- Uniques structure for table SYS_OAUTH_CLIENT_DETAILS
-- ----------------------------
ALTER TABLE "SYS_OAUTH_CLIENT_DETAILS" ADD CONSTRAINT "SYS_OAUTH_CLIENT_U1" UNIQUE ("CLIENT_ID") NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
-- ----------------------------
-- SEQUENCE
-- ----------------------------
CREATE SEQUENCE "SYS_OAUTH_CLIENT_DETAILS_S" MINVALUE 1 MAXVALUE 9999999999999999999999999999 INCREMENT BY 1 START WITH 10041 CACHE 20 NOORDER NOCYCLE
\ No newline at end of file
CREATE TABLE "SYS_TOKEN_LOGS" (
"ID" NUMBER(38) NOT NULL ,
"USER_ID" NUMBER(38) ,
"CLIENT_ID" VARCHAR2(100 BYTE) NOT NULL ,
"TOKEN" VARCHAR2(1024 BYTE) ,
"TOKEN_ACCESS_TIME" TIMESTAMP(6) ,
"TOKEN_ACCESS_TYPE" VARCHAR2(32 BYTE) ,
"TOKEN_EXPIRES_TIME" TIMESTAMP(6) ,
"REVOKE_FLAG" VARCHAR2(5 BYTE) DEFAULT 'Y' ,
"OBJECT_VERSION_NUMBER" NUMBER(38) DEFAULT 1 ,
"REQUEST_ID" NUMBER(38) DEFAULT -1 ,
"PROGRAM_ID" NUMBER(38) DEFAULT -1 ,
"CREATED_BY" NUMBER(38) DEFAULT -1 ,
"CREATION_DATE" TIMESTAMP(6) DEFAULT CURRENT_TIMESTAMP ,
"LAST_UPDATED_BY" NUMBER(38) DEFAULT -1 ,
"LAST_UPDATE_DATE" TIMESTAMP(6) DEFAULT CURRENT_TIMESTAMP ,
"LAST_UPDATE_LOGIN" NUMBER(38) DEFAULT -1
)
LOGGING
NOCOMPRESS
PCTFREE 10
INITRANS 1
STORAGE (
INITIAL 65536
NEXT 1048576
MINEXTENTS 1
MAXEXTENTS 2147483645
BUFFER_POOL DEFAULT
)
PARALLEL 1
NOCACHE
DISABLE ROW MOVEMENT
;
COMMENT ON COLUMN "SYS_TOKEN_LOGS"."ID" IS '日志ID';
COMMENT ON COLUMN "SYS_TOKEN_LOGS"."USER_ID" IS '用户ID';
COMMENT ON COLUMN "SYS_TOKEN_LOGS"."CLIENT_ID" IS '客户端ID';
COMMENT ON COLUMN "SYS_TOKEN_LOGS"."TOKEN" IS 'token';
COMMENT ON COLUMN "SYS_TOKEN_LOGS"."TOKEN_ACCESS_TIME" IS 'token获取日期';
COMMENT ON COLUMN "SYS_TOKEN_LOGS"."TOKEN_ACCESS_TYPE" IS 'token获取方式';
COMMENT ON COLUMN "SYS_TOKEN_LOGS"."TOKEN_EXPIRES_TIME" IS 'token失效日期';
COMMENT ON COLUMN "SYS_TOKEN_LOGS"."REVOKE_FLAG" IS '是否有效';
-- ----------------------------
-- Primary Key structure for table SYS_TOKEN_LOGS
-- ----------------------------
ALTER TABLE "SYS_TOKEN_LOGS" ADD CONSTRAINT "PK_SYS_TOKEN_LOGS" PRIMARY KEY ("ID");
-- ----------------------------
-- SEQUENCE for table SYS_TOKEN_LOGS
-- ----------------------------
CREATE SEQUENCE "SYS_TOKEN_LOGS_S" MINVALUE 1 MAXVALUE 9999999999999999999999999999 INCREMENT BY 1 START WITH 10041 CACHE 20 NOORDER NOCYCLE
-- ----------------------------
-- Indexes structure for table SYS_TOKEN_LOGS
-- ----------------------------
CREATE INDEX "SYS_TOKEN_LOGS_N1"
ON "SYS_TOKEN_LOGS" ("USER_ID" ASC)
LOGGING
VISIBLE
PCTFREE 10
INITRANS 2
STORAGE (
INITIAL 65536
NEXT 1048576
MINEXTENTS 1
MAXEXTENTS 2147483645
BUFFER_POOL DEFAULT
);
CREATE INDEX "SYS_TOKEN_LOGS_N2"
ON "SYS_TOKEN_LOGS" ("CLIENT_ID" ASC)
LOGGING
VISIBLE
PCTFREE 10
INITRANS 2
STORAGE (
INITIAL 65536
NEXT 1048576
MINEXTENTS 1
MAXEXTENTS 2147483645
BUFFER_POOL DEFAULT
);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment