mirror of
https://github.com/idanoo/GoScrobble.git
synced 2024-11-24 17:35:16 +00:00
10 lines
392 B
MySQL
10 lines
392 B
MySQL
|
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;
|