Add database
This commit is contained in:
parent
5e837e68ca
commit
8619c00a20
1
.gitignore
vendored
1
.gitignore
vendored
@ -1,2 +1,3 @@
|
|||||||
target
|
target
|
||||||
chat.db
|
chat.db
|
||||||
|
chat.db*
|
||||||
|
|||||||
7
migrations/0001_user_table.sql
Normal file
7
migrations/0001_user_table.sql
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
create table users (
|
||||||
|
-- id INT NOT NULL AUTO_INCREMENT,
|
||||||
|
username VARCHAR NOT NULL UNIQUE,
|
||||||
|
password TEXT NOT NULL,
|
||||||
|
admin BOOLEAN NOT NULL DEFAULT FALSE,
|
||||||
|
PRIMARY KEY (username)
|
||||||
|
);
|
||||||
Loading…
x
Reference in New Issue
Block a user