mirror of
https://github.com/simon987/task_tracker.git
synced 2025-12-14 15:29:02 +00:00
Web dashboard, task release, logs api
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
DROP TABLE IF EXISTS workerIdentity, Worker, Project, Task;
|
||||
DROP TYPE IF EXISTS Status;
|
||||
DROP TABLE IF EXISTS workeridentity, Worker, Project, Task, log_entry;
|
||||
DROP TYPE IF EXISTS status;
|
||||
DROP TYPE IF EXISTS loglevel;
|
||||
|
||||
CREATE TYPE status as ENUM (
|
||||
'new',
|
||||
@@ -7,6 +8,10 @@ CREATE TYPE status as ENUM (
|
||||
'closed'
|
||||
);
|
||||
|
||||
CREATE TYPE loglevel as ENUM (
|
||||
'fatal', 'panic', 'error', 'warning', 'info', 'debug', 'trace'
|
||||
);
|
||||
|
||||
CREATE TABLE workerIdentity
|
||||
(
|
||||
id SERIAL PRIMARY KEY,
|
||||
@@ -27,6 +32,7 @@ CREATE TABLE project
|
||||
(
|
||||
id SERIAL PRIMARY KEY,
|
||||
priority INTEGER DEFAULT 0,
|
||||
motd TEXT DEFAULT '',
|
||||
name TEXT UNIQUE,
|
||||
clone_url TEXT,
|
||||
git_repo TEXT UNIQUE,
|
||||
@@ -45,4 +51,12 @@ CREATE TABLE task
|
||||
recipe TEXT
|
||||
);
|
||||
|
||||
CREATE TABLE log_entry
|
||||
(
|
||||
level loglevel,
|
||||
message TEXT,
|
||||
message_data TEXT,
|
||||
timestamp INT
|
||||
);
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user