feat: add acknowledged_by and acknowledged_at columns to violations schema
This commit is contained in:
@@ -3,6 +3,7 @@ CREATE TABLE IF NOT EXISTS employees (
|
|||||||
name TEXT NOT NULL,
|
name TEXT NOT NULL,
|
||||||
department TEXT,
|
department TEXT,
|
||||||
supervisor TEXT,
|
supervisor TEXT,
|
||||||
|
notes TEXT,
|
||||||
created_at DATETIME DEFAULT CURRENT_TIMESTAMP
|
created_at DATETIME DEFAULT CURRENT_TIMESTAMP
|
||||||
);
|
);
|
||||||
|
|
||||||
@@ -19,6 +20,8 @@ CREATE TABLE IF NOT EXISTS violations (
|
|||||||
details TEXT,
|
details TEXT,
|
||||||
submitted_by TEXT,
|
submitted_by TEXT,
|
||||||
witness_name TEXT,
|
witness_name TEXT,
|
||||||
|
acknowledged_by TEXT, -- name of person who received the document
|
||||||
|
acknowledged_at TEXT, -- date acknowledged (YYYY-MM-DD)
|
||||||
negated INTEGER NOT NULL DEFAULT 0,
|
negated INTEGER NOT NULL DEFAULT 0,
|
||||||
negated_at DATETIME,
|
negated_at DATETIME,
|
||||||
prior_active_points INTEGER, -- snapshot at time of logging
|
prior_active_points INTEGER, -- snapshot at time of logging
|
||||||
|
|||||||
Reference in New Issue
Block a user