9 lines
279 B
SQL
9 lines
279 B
SQL
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;
|