diff --git a/CreateDB.sql b/CreateDB.sql index 883dc84..60299cd 100644 --- a/CreateDB.sql +++ b/CreateDB.sql @@ -1,8 +1,8 @@ DROP TABLE IF EXISTS `Room`; CREATE TABLE `Room` ( `room_id` VARCHAR(64) NOT NULL PRIMARY KEY, - `date_created` TIMESTAMP DEFAULT CURRENT_TIME, - `last_modified` TIMESTAMP DEFAULT CURRENT_TIME, + `date_created` TIMESTAMP DEFAULT CURRENT_TIMESTAMP, + `last_modified` TIMESTAMP DEFAULT CURRENT_TIMESTAMP, -- Can be null if no owner `owner` VARCHAR(64), -- array of hw_ids of users allowed. Always includes the owner. Null for public @@ -22,9 +22,9 @@ CREATE TABLE `Headset` ( `current_room` VARCHAR(64) DEFAULT "0", -- changes relatively often. Generated by the headset `pairing_code` INT, - `date_created` TIMESTAMP DEFAULT CURRENT_TIME, + `date_created` TIMESTAMP DEFAULT CURRENT_TIMESTAMP, -- the last time this headset was actually seen - `last_used` TIMESTAMP DEFAULT CURRENT_TIME, + `last_used` TIMESTAMP DEFAULT CURRENT_TIMESTAMP, `user_color` VARCHAR(9), `user_name` VARCHAR(64), `avatar_url` VARCHAR(128), @@ -38,7 +38,7 @@ CREATE TABLE `APIKey` ( -- 0 is all access, higher is less -- 10 is for headset clients `auth_level` INT, - `date_created` TIMESTAMP DEFAULT CURRENT_TIME, - `last_used` TIMESTAMP DEFAULT CURRENT_TIME, + `date_created` TIMESTAMP DEFAULT CURRENT_TIMESTAMP, + `last_used` TIMESTAMP DEFAULT CURRENT_TIMESTAMP, `uses` INT DEFAULT 0 ); \ No newline at end of file diff --git a/run_flask_server.sh b/run_flask_server.sh new file mode 100644 index 0000000..5be828c --- /dev/null +++ b/run_flask_server.sh @@ -0,0 +1,6 @@ +#!/bin/bash + +export FLASK_APP="velconnect" +export FLASK_ENV=development +source env/bin/activate +flask run diff --git a/static_website/index.html b/static_website/index.html index 78e5485..6bae204 100644 --- a/static_website/index.html +++ b/static_website/index.html @@ -10,7 +10,7 @@ - +