mirror of
https://github.com/idanoo/GoScrobble.git
synced 2024-11-22 08:25:14 +00:00
11 lines
477 B
MySQL
11 lines
477 B
MySQL
|
CREATE TABLE IF NOT EXISTS `users` (
|
||
|
`uuid` BINARY(16) PRIMARY KEY,
|
||
|
`username` VARCHAR(64) NOT NULL,
|
||
|
`password` VARCHAR(60) NOT NULL,
|
||
|
`email` VARCHAR(255) NULL DEFAULT NULL,
|
||
|
`verified` TINYINT(1) NOT NULL DEFAULT 0,
|
||
|
`active` TINYINT(1) NOT NULL DEFAULT 1,
|
||
|
`admin` TINYINT(1) NOT NULL DEFAULT 0,
|
||
|
KEY `usernameLookup` (`username`, `active`),
|
||
|
KEY `emailLookup` (`email`, `active`)
|
||
|
) DEFAULT CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci;
|