mirror of
https://git.waldn.net/git/knotteye/satyr.git
synced 2025-12-22 10:12:20 +00:00
Hooked up server.ts to database, it now validates, redirects, and records based on database queries.
Added setup script for database. Added database.ts to create and manage a pool of connections. Possibly abstracting query logic in the future. Updated controller to instantiate database.ts.
This commit is contained in:
11
db_setup.sql
Normal file
11
db_setup.sql
Normal file
@@ -0,0 +1,11 @@
|
||||
CREATE USER 'satyr'@'localhost' IDENTIFIED BY 'password';
|
||||
CREATE DATABASE satyr_db;
|
||||
GRANT ALL PRIVILEGES ON satyr_db.* TO 'satyr'@'localhost';
|
||||
USE satyr_db;
|
||||
CREATE TABLE users(
|
||||
username VARCHAR(25),
|
||||
password_hash BINARY(60),
|
||||
stream_key CHAR(20),
|
||||
record_flag TINYINT,
|
||||
is_mod TINYINT
|
||||
);
|
||||
Reference in New Issue
Block a user