From 2ad0136e69bf3eaccb1f1102359b879291d210ef Mon Sep 17 00:00:00 2001 From: shockrah Date: Mon, 28 Dec 2020 21:56:22 -0800 Subject: [PATCH] JWT Table in mysql, querying with user id's and keeping tokens in string format --- server-api/migrations/2020-12-29-030934_jwt/down.sql | 2 ++ server-api/migrations/2020-12-29-030934_jwt/up.sql | 5 +++++ 2 files changed, 7 insertions(+) create mode 100644 server-api/migrations/2020-12-29-030934_jwt/down.sql create mode 100644 server-api/migrations/2020-12-29-030934_jwt/up.sql diff --git a/server-api/migrations/2020-12-29-030934_jwt/down.sql b/server-api/migrations/2020-12-29-030934_jwt/down.sql new file mode 100644 index 0000000..14ed108 --- /dev/null +++ b/server-api/migrations/2020-12-29-030934_jwt/down.sql @@ -0,0 +1,2 @@ +-- This file should undo anything in `up.sql` +DROP TABLE `jwt`; \ No newline at end of file diff --git a/server-api/migrations/2020-12-29-030934_jwt/up.sql b/server-api/migrations/2020-12-29-030934_jwt/up.sql new file mode 100644 index 0000000..544afe2 --- /dev/null +++ b/server-api/migrations/2020-12-29-030934_jwt/up.sql @@ -0,0 +1,5 @@ +CREATE TABLE IF NOT EXISTS `jwt`( + `id` BIGINT UNSIGNED NOT NULL, + `token` VARCHAR(256) NOT NULL, + PRIMARY KEY (`id`) +); \ No newline at end of file