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.
14 lines
340 B
SQL
14 lines
340 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 FOREIGN KEY REFERENCES jobs (id),
|
|
key VARCHAR(128) NOT NULL DEFAULT 'default',
|
|
value BLOB,
|
|
PRIMARY KEY (job_id, key)
|
|
); |