mapguesser/database/migrations/structure/20200606_2352_users.sql

9 lines
279 B
MySQL
Raw Normal View History

2020-06-07 21:38:19 +02:00
CREATE TABLE `users` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`email` varchar(100) NOT NULL,
`password` varchar(60) NOT NULL,
`type` enum('user', 'admin') NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `email` (`email`)
) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4;