RVRNEXT-2 add new db table for oauth tokens

This commit is contained in:
Bence Pőcze 2023-04-08 19:07:42 +02:00
parent 364d55a4b2
commit 13b62c8c02
Signed by: bence
GPG Key ID: DC5BD6E95A333E6D

View File

@ -0,0 +1,10 @@
CREATE TABLE `oauth_tokens` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`nonce` varchar(255) CHARACTER SET ascii COLLATE ascii_bin NOT NULL,
`user_id` int(10) unsigned DEFAULT NULL,
`code` varchar(255) CHARACTER SET ascii COLLATE ascii_bin NOT NULL,
`created` timestamp NOT NULL DEFAULT current_timestamp(),
`expires` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
PRIMARY KEY (`id`),
UNIQUE KEY `code` (`code`)
) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4;