jwt stuff works now

This commit is contained in:
Marko Korhonen 2020-04-02 20:07:03 +03:00
parent e24fa12251
commit 87cc8ac794
No known key found for this signature in database
GPG key ID: 911B85FBC6003FE5
7 changed files with 285 additions and 2 deletions

View file

@ -1,6 +1,6 @@
CREATE TABLE users (
`id` int NOT NULL AUTO_INCREMENT,
`username` varchar(100) NOT NULL,
`username` varchar(100) UNIQUE NOT NULL,
`is_admin` boolean NOT NULL,
`password_hash` varchar(128) NOT NULL,
PRIMARY KEY (`id`)