text: --
  -- Licensed to the Apache Software Foundation (ASF) under one
  -- or more contributor license agreements. See the NOTICE file
  -- distributed with this work for additional information
  -- regarding copyright ownership. The ASF licenses this file
  -- to you under the Apache License, Version 2.0 (the
  -- "License"); you may not use this file except in compliance
  -- with the License. You may obtain a copy of the License at
  --
  -- http://www.apache.org/licenses/LICENSE-2.0
  --
  -- Unless required by applicable law or agreed to in writing,
  -- software distributed under the License is distributed on an
  -- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  -- KIND, either express or implied. See the License for the
  -- specific language governing permissions and limitations
  -- under the License.
  --
  
  
  CREATE TABLE `oauth_client_details` (
    `client_id` varchar(128) NOT NULL,
    `resource_ids` varchar(256) DEFAULT NULL,
    `client_secret` varchar(256) DEFAULT NULL,
    `scope` varchar(256) DEFAULT NULL,
    `authorized_grant_types` varchar(256) DEFAULT NULL,
    `web_server_redirect_uri` varchar(256) DEFAULT NULL,
    `authorities` varchar(256) DEFAULT NULL,
    `access_token_validity` INT DEFAULT NULL,
    `refresh_token_validity` INT DEFAULT NULL,
    `additional_information` varchar(4096) DEFAULT NULL,
    `autoapprove` BIT(1) NULL DEFAULT NULL,
    PRIMARY KEY (`client_id`)
  )
  COLLATE='utf8mb4_unicode_ci'
  ENGINE=InnoDB
  AUTO_INCREMENT=1;
  
  INSERT INTO `oauth_client_details` (`client_id`, `client_secret`, `scope`, `authorized_grant_types`) VALUES ('community-app', '123', 'all', 'password,refresh_token');
  
  
  CREATE TABLE `oauth_access_token` (
    `token_id` varchar(256) DEFAULT NULL,
    `token` blob,
    `authentication_id` varchar(256) DEFAULT NULL,
    `user_name` varchar(256) DEFAULT NULL,
    `client_id` varchar(256) DEFAULT NULL,
    `authentication` blob,
    `refresh_token` varchar(256) DEFAULT NULL
  )
  COLLATE='utf8mb4_unicode_ci'
  ENGINE=InnoDB
  AUTO_INCREMENT=1;
  
  CREATE TABLE `oauth_refresh_token` (
    `token_id` varchar(256) DEFAULT NULL,
    `token` blob,
    `authentication` blob
  )
  COLLATE='utf8mb4_unicode_ci'
  ENGINE=InnoDB;
  