diff options
author | JoelHMikael <joel.h.kronqvist@gmail.com> | 2022-01-08 16:49:37 +0200 |
---|---|---|
committer | JoelHMikael <joel.h.kronqvist@gmail.com> | 2022-01-08 16:49:37 +0200 |
commit | 24709fa862636702fd0430e832463b751fce323e (patch) | |
tree | 8bd4eabbf2c7fe4525f66bfe55e3c47994214d79 /README.md | |
parent | 4e5fe4711fe46a6af740aadbf23bde86bb5acf69 (diff) | |
download | LYLLRuoka-24709fa862636702fd0430e832463b751fce323e.tar.gz LYLLRuoka-24709fa862636702fd0430e832463b751fce323e.zip |
Parsing the shifts (not classes) to the database + some GUI improvements
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 18 |
1 files changed, 18 insertions, 0 deletions
@@ -4,6 +4,24 @@ Readme coming soon! ## Setup If you want to set up the server, you will have to get a SSL certificate or generate one yourself. If you want to run a dedicated server that can update, you also need to add the cron jobs from crontab\_add. You must create a MySQL DB and give its login info in ../dblogin.txt. The database should have the following tables set up: +CREATE TABLE shiftnames ( + day INT, + id INT, + name VARCHAR(128) NOT NULL, + PRIMARY KEY (day, id) +); +CREATE TABLE classes ( + course VARCHAR(6) PRIMARY KEY, + class VARCHAR(4) +); +CREATE TABLE shifts ( + day INT, + shift INT, + course VARCHAR(6), + teacher VARCHAR(4), + class VARCHAR(4), + PRIMARY KEY (day, course) +); CREATE TABLE devs ( id INT PRIMARY KEY AUTO_INCREMENT, name VARCHAR(30) NOT NULL, |