JWT Table in mysql, querying with user id's and keeping tokens in string format
This commit is contained in:
parent
967782be5f
commit
2ad0136e69
2
server-api/migrations/2020-12-29-030934_jwt/down.sql
Normal file
2
server-api/migrations/2020-12-29-030934_jwt/down.sql
Normal file
@ -0,0 +1,2 @@
|
||||
-- This file should undo anything in `up.sql`
|
||||
DROP TABLE `jwt`;
|
5
server-api/migrations/2020-12-29-030934_jwt/up.sql
Normal file
5
server-api/migrations/2020-12-29-030934_jwt/up.sql
Normal file
@ -0,0 +1,5 @@
|
||||
CREATE TABLE IF NOT EXISTS `jwt`(
|
||||
`id` BIGINT UNSIGNED NOT NULL,
|
||||
`token` VARCHAR(256) NOT NULL,
|
||||
PRIMARY KEY (`id`)
|
||||
);
|
Loading…
Reference in New Issue
Block a user