Register and login and assign jwt token
This commit is contained in:
10
api/drizzle/0001_peaceful_carnage.sql
Normal file
10
api/drizzle/0001_peaceful_carnage.sql
Normal file
@@ -0,0 +1,10 @@
|
||||
CREATE TABLE `users` (
|
||||
`id` int AUTO_INCREMENT NOT NULL,
|
||||
`email` varchar(255) NOT NULL,
|
||||
`password` varchar(255) NOT NULL,
|
||||
`role` varchar(255) NOT NULL DEFAULT 'user',
|
||||
`name` varchar(255) NOT NULL,
|
||||
`address` text,
|
||||
CONSTRAINT `users_id` PRIMARY KEY(`id`),
|
||||
CONSTRAINT `users_email_unique` UNIQUE(`email`)
|
||||
);
|
||||
Reference in New Issue
Block a user