MAPG-115 add users table

This commit is contained in:
Bence Pőcze 2020-06-07 21:38:19 +02:00
parent b6f8735da8
commit ed9621d581

View File

@ -0,0 +1,8 @@
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;