-- 授权码
CREATE TABLE `oauth_code` (
`create_time` time DEFAULT NULL,
`code` varchar(255) DEFAULT NULL,
`authentication` blob
) ;
-- 客户端
CREATE TABLE `oauth_client_details` (
`client_id` varchar(512) DEFAULT NULL COMMENT '客户端ID',
`resource_ids` varchar(512) DEFAULT NULL COMMENT '资源is',
`client_secret` varchar(512) DEFAULT NULL COMMENT '客户端秘钥',
`scope` varchar(512) DEFAULT NULL COMMENT '范围',
`authorized_grant_types` varchar(512) DEFAULT NULL COMMENT '授权类型',
`web_server_redirect_uri` varchar(512) DEFAULT NULL COMMENT '回调地址',
`authorities` varchar(512) DEFAULT NULL COMMENT '权限',
`access_token_validity` int(11) DEFAULT NULL,
`refresh_token_validity` int(11) DEFAULT NULL,
`additional_information` longtext,
`create_time` timestamp NULL DEFAULT NULL,
`archived` tinyint(4) DEFAULT NULL,
`trusted` tinyint(4) DEFAULT NULL,
`autoapprove` varchar(255) DEFAULT NULL
) ;