diff --git a/src/sql/database.sql b/src/sql/database.sql index 69454b7a..0c218795 100644 --- a/src/sql/database.sql +++ b/src/sql/database.sql @@ -20,13 +20,14 @@ CREATE TABLE `client_endpoints` ( -- Create syntax for TABLE 'oauth_sessions' CREATE TABLE `oauth_sessions` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, - `client_id` varchar(32) CHARACTER SET latin1 NOT NULL DEFAULT '', - `redirect_uri` varchar(250) CHARACTER SET latin1 NOT NULL DEFAULT '', - `owner_type` enum('user','client') CHARACTER SET latin1 NOT NULL DEFAULT 'user', - `owner_id` varchar(255) CHARACTER SET latin1 DEFAULT NULL, - `auth_code` varchar(40) CHARACTER SET latin1 DEFAULT '', - `access_token` varchar(40) CHARACTER SET latin1 DEFAULT '', - `stage` enum('requested','granted') CHARACTER SET latin1 NOT NULL DEFAULT 'requested', + `client_id` varchar(32) NOT NULL DEFAULT '', + `redirect_uri` varchar(250) NOT NULL DEFAULT '', + `owner_type` enum('user','client') NOT NULL DEFAULT 'user', + `owner_id` varchar(255) DEFAULT NULL, + `auth_code` varchar(40) DEFAULT '', + `access_token` varchar(40) DEFAULT '', + `access_token_expires` int(10) DEFAULT NULL, + `stage` enum('requested','granted') NOT NULL DEFAULT 'requested', `first_requested` int(10) unsigned NOT NULL, `last_updated` int(10) unsigned NOT NULL, PRIMARY KEY (`id`),