MAPG-115 add users table
This commit is contained in:
parent
b6f8735da8
commit
ed9621d581
8
database/migrations/structure/20200606_2352_users.sql
Normal file
8
database/migrations/structure/20200606_2352_users.sql
Normal 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;
|
Loading…
Reference in New Issue
Block a user