mirror of
https://github.com/elyby/oauth2-server.git
synced 2025-01-03 10:41:51 +05:30
Added access_token_expires column to oauth_sessions table
This commit is contained in:
parent
d25ef6bb89
commit
5d012c6cf4
@ -20,13 +20,14 @@ CREATE TABLE `client_endpoints` (
|
|||||||
-- Create syntax for TABLE 'oauth_sessions'
|
-- Create syntax for TABLE 'oauth_sessions'
|
||||||
CREATE TABLE `oauth_sessions` (
|
CREATE TABLE `oauth_sessions` (
|
||||||
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
|
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
|
||||||
`client_id` varchar(32) CHARACTER SET latin1 NOT NULL DEFAULT '',
|
`client_id` varchar(32) NOT NULL DEFAULT '',
|
||||||
`redirect_uri` varchar(250) CHARACTER SET latin1 NOT NULL DEFAULT '',
|
`redirect_uri` varchar(250) NOT NULL DEFAULT '',
|
||||||
`owner_type` enum('user','client') CHARACTER SET latin1 NOT NULL DEFAULT 'user',
|
`owner_type` enum('user','client') NOT NULL DEFAULT 'user',
|
||||||
`owner_id` varchar(255) CHARACTER SET latin1 DEFAULT NULL,
|
`owner_id` varchar(255) DEFAULT NULL,
|
||||||
`auth_code` varchar(40) CHARACTER SET latin1 DEFAULT '',
|
`auth_code` varchar(40) DEFAULT '',
|
||||||
`access_token` varchar(40) CHARACTER SET latin1 DEFAULT '',
|
`access_token` varchar(40) DEFAULT '',
|
||||||
`stage` enum('requested','granted') CHARACTER SET latin1 NOT NULL DEFAULT 'requested',
|
`access_token_expires` int(10) DEFAULT NULL,
|
||||||
|
`stage` enum('requested','granted') NOT NULL DEFAULT 'requested',
|
||||||
`first_requested` int(10) unsigned NOT NULL,
|
`first_requested` int(10) unsigned NOT NULL,
|
||||||
`last_updated` int(10) unsigned NOT NULL,
|
`last_updated` int(10) unsigned NOT NULL,
|
||||||
PRIMARY KEY (`id`),
|
PRIMARY KEY (`id`),
|
||||||
|
Loading…
Reference in New Issue
Block a user