zoukankan      html  css  js  c++  java
  • oauth2的数据库设计

    CREATE TABLE `oauth_client_details` (
    `client_id` varchar(255) NOT NULL,
    `resource_ids` varchar(255) DEFAULT NULL,
    `client_secret` varchar(255) DEFAULT NULL,
    `scope` varchar(255) DEFAULT NULL,
    `authorized_grant_types` varchar(255) DEFAULT NULL,
    `web_server_redirect_uri` varchar(255) DEFAULT NULL,
    `authorities` varchar(255) DEFAULT NULL,
    `access_token_validity` int(11) DEFAULT NULL,
    `refresh_token_validity` int(11) DEFAULT NULL,
    `additional_information` text,
    `create_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
    `archived` tinyint(1) DEFAULT '0',
    `trusted` tinyint(1) DEFAULT '0',
    `autoapprove` varchar(255) DEFAULT 'false',
    PRIMARY KEY (`client_id`)
    ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
    
    CREATE TABLE `oauth_access_token` (
    `create_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
    `token_id` varchar(255) DEFAULT NULL,
    `token` blob,
    `authentication_id` varchar(255) DEFAULT NULL,
    `user_name` varchar(255) DEFAULT NULL,
    `client_id` varchar(255) DEFAULT NULL,
    `authentication` blob,
    `refresh_token` varchar(255) DEFAULT NULL,
    KEY `token_id_index` (`token_id`),
    KEY `authentication_id_index` (`authentication_id`),
    KEY `user_name_index` (`user_name`),
    KEY `client_id_index` (`client_id`),
    KEY `refresh_token_index` (`refresh_token`)
    ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
    
    CREATE TABLE `oauth_code` (
    `create_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
    `code` varchar(255) DEFAULT NULL,
    `authentication` blob,
    KEY `code_index` (`code`)
    ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
    
    CREATE TABLE `oauth_refresh_token` (
    `create_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
    `token_id` varchar(255) DEFAULT NULL,
    `token` blob,
    `authentication` blob,
    KEY `token_id_index` (`token_id`)
    ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
    
    CREATE TABLE `order_traveller` (
    `orderId` varchar(32) NOT NULL DEFAULT '',
    `travellerId` varchar(32) NOT NULL DEFAULT '',
    PRIMARY KEY (`orderId`,`travellerId`),
    KEY `travellerId` (`travellerId`),
    CONSTRAINT `order_traveller_ibfk_1` FOREIGN KEY (`orderId`) REFERENCES `orders` (`id`),
    CONSTRAINT `order_traveller_ibfk_2` FOREIGN KEY (`travellerId`) REFERENCES `traveller` (`id`)
    ) ENGINE=InnoDB DEFAULT CHARSET=utf8;

  • 相关阅读:
    pycharm配置svn
    python发送邮件
    HttpRunner接口自动化测试框架--7.执行测试
    HttpRunner接口自动化测试框架--6.skip跳过用例
    HttpRunner接口自动化测试框架--5.hook机制
    python读取csv文件
    HttpRunner接口自动化测试框架--常见问题
    HttpRunner接口自动化测试框架--4.参数化操作(parameters)
    易错点
    pycharm破解
  • 原文地址:https://www.cnblogs.com/kyousuke/p/13050857.html
Copyright © 2011-2022 走看看