Add cron jobs (#60)

* feat: finish up cron jobs

* feat: clean up
This commit is contained in:
Jayden Pyles
2025-04-24 22:03:28 -05:00
committed by GitHub
parent 186b4a0231
commit 3475d66995
21 changed files with 717 additions and 16 deletions

View File

@@ -17,4 +17,14 @@ CREATE TABLE IF NOT EXISTS users (
full_name STRING,
disabled BOOLEAN
);
CREATE TABLE IF NOT EXISTS cron_jobs (
id STRING PRIMARY KEY NOT NULL,
user_email STRING NOT NULL,
job_id STRING NOT NULL,
cron_expression STRING NOT NULL,
time_created DATETIME NOT NULL,
time_updated DATETIME NOT NULL,
FOREIGN KEY (job_id) REFERENCES jobs(id)
);
"""