From 13b62c8c022cba67fab61a4f8e4884f2d71eb46d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C5=91cze=20Bence?= Date: Sat, 8 Apr 2023 19:07:42 +0200 Subject: [PATCH] RVRNEXT-2 add new db table for oauth tokens --- database/migrations/structure/20230408_1129_oauth.sql | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 database/migrations/structure/20230408_1129_oauth.sql diff --git a/database/migrations/structure/20230408_1129_oauth.sql b/database/migrations/structure/20230408_1129_oauth.sql new file mode 100644 index 0000000..bf66496 --- /dev/null +++ b/database/migrations/structure/20230408_1129_oauth.sql @@ -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;