Changed init functions to be more consistent.

Added setup script and templates for config and database setup.
Fixed typo in tsconfig.
This commit is contained in:
knotteye
2019-09-26 14:43:24 -05:00
parent d1cd2815e4
commit 085dd02148
13 changed files with 90 additions and 28 deletions

11
install/db_template.sql Normal file
View File

@@ -0,0 +1,11 @@
CREATE USER '<dbuser>'@'<dbclient>' IDENTIFIED BY '<dbpass>';
CREATE DATABASE <dbname>;
GRANT ALL PRIVILEGES ON <dbname>.* TO '<dbuser>'@'<dbclient>';
USE <dbname>;
CREATE TABLE users(
username VARCHAR(25),
password_hash BINARY(60),
stream_key CHAR(20),
record_flag TINYINT,
is_mod TINYINT
);