---  ~ 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 token_info
(
    token_info_id         number (38) not null,
    person_gadget_id      number (38) not null,
    user_id               varchar2(50) not null,
    service_name          varchar2(250) null,
    token_name            varchar2(250) null,
    access_token          varchar2(250) not null,
    token_secret          varchar2(250) not null,
    session_handle        varchar2(250) null,
    token_expiration      timestamp null,
    constraint token_info_pk
        primary key(token_info_id)
);

alter table token_info
add constraint token_info_person_gadget_id_fk
foreign key(person_gadget_id)
references person_gadget(person_gadget_id);