You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
354 B
SQL
15 lines
354 B
SQL
CREATE TABLE jobs (
|
|
id INTEGER PRIMARY KEY AUTOINCREMENT,
|
|
job_type INTEGER NOT NULL,
|
|
name VARCHAR(255),
|
|
next_run DATETIME,
|
|
interval INTEGER
|
|
);
|
|
|
|
CREATE TABLE job_states (
|
|
job_id INTEGER,
|
|
key VARCHAR(128) NOT NULL DEFAULT 'default',
|
|
value BLOB,
|
|
PRIMARY KEY (job_id, key),
|
|
FOREIGN KEY (job_id) REFERENCES jobs (id)
|
|
); |