Add database

This commit is contained in:
Lucas Schumacher 2023-10-30 13:20:09 -04:00
parent 5e837e68ca
commit 8619c00a20
3 changed files with 9 additions and 0 deletions

1
.gitignore vendored
View File

@ -1,2 +1,3 @@
target
chat.db
chat.db*

1
db.env Normal file
View File

@ -0,0 +1 @@
export DATABASE_URL="sqlite:chat.db"

View 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)
);