mirror of
https://github.com/idanoo/GoScrobble.git
synced 2024-11-25 01:45:15 +00:00
Daniel Mason
fb9ebef49c
- Add ez deploy script - Half implemented JWT refresh tokens, need to finish JS implementation
10 lines
392 B
SQL
10 lines
392 B
SQL
CREATE TABLE IF NOT EXISTS `refresh_tokens` (
|
|
`uuid` BINARY(16) PRIMARY KEY,
|
|
`user` BINARY(16),
|
|
`token` VARCHAR(64) NOT NULL,
|
|
`expiry` DATETIME NOT NULL DEFAULT NOW(),
|
|
KEY `userLookup` (`user`),
|
|
KEY `tokenLookup` (`token`),
|
|
KEY `expiryLookup` (`expiry`),
|
|
FOREIGN KEY (user) REFERENCES users(uuid)
|
|
) DEFAULT CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci; |