Getting there

This commit is contained in:
Marko Korhonen 2020-03-30 14:41:46 +03:00
parent 2c94fe0cab
commit d2dd00c8d4
No known key found for this signature in database
GPG key ID: 911B85FBC6003FE5
14 changed files with 354 additions and 15 deletions

View file

View file

@ -0,0 +1 @@
DROP TABLE users;

View file

@ -0,0 +1,8 @@
table! {
users (id) {
id -> Integer,
username -> Varchar,
is_admin -> Bool,
password_hash -> Varchar,
}
}

View file

@ -0,0 +1,7 @@
CREATE TABLE users (
`id` int NOT NULL AUTO_INCREMENT,
`username` varchar(100) NOT NULL,
`is_admin` boolean NOT NULL,
`password_hash` varchar(128) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;