diff --git a/sql/Database ERD.drawio b/sql/Database ERD.drawio index 394399f7..8f55c09e 100644 --- a/sql/Database ERD.drawio +++ b/sql/Database ERD.drawio @@ -1,6 +1,6 @@ - + @@ -981,7 +981,8 @@ - + + @@ -1015,7 +1016,7 @@ - + @@ -1095,6 +1096,19 @@ + + + + + + + + + + + + + @@ -1168,7 +1182,7 @@ - + @@ -1217,57 +1231,57 @@ - + - + - + - + - + - + - + - + - + - + - + - + - + @@ -1275,143 +1289,143 @@ - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + @@ -1419,7 +1433,7 @@ - + diff --git a/sql/Database ERD.png b/sql/Database ERD.png index 8389ec86..17903e22 100644 Binary files a/sql/Database ERD.png and b/sql/Database ERD.png differ diff --git a/sql/initdb_master.sql b/sql/initdb_master.sql index 20eb052f..0eafc396 100644 --- a/sql/initdb_master.sql +++ b/sql/initdb_master.sql @@ -267,6 +267,7 @@ CREATE TABLE DBPREFIXfilters( issued_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP, match_action VARCHAR(45) NOT NULL DEFAULT 'replace', match_detail TEXT NOT NULL, + is_active BOOL NOT NULL, CONSTRAINT filters_staff_id_fk FOREIGN KEY(staff_id) REFERENCES DBPREFIXstaff(id) ON DELETE SET NULL diff --git a/sql/initdb_mysql.sql b/sql/initdb_mysql.sql index 19aefc48..639bdc20 100644 --- a/sql/initdb_mysql.sql +++ b/sql/initdb_mysql.sql @@ -267,6 +267,7 @@ CREATE TABLE DBPREFIXfilters( issued_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP, match_action VARCHAR(45) NOT NULL DEFAULT 'replace', match_detail TEXT NOT NULL, + is_active BOOL NOT NULL, CONSTRAINT filters_staff_id_fk FOREIGN KEY(staff_id) REFERENCES DBPREFIXstaff(id) ON DELETE SET NULL diff --git a/sql/initdb_postgres.sql b/sql/initdb_postgres.sql index 41a059cb..1ecbedb4 100644 --- a/sql/initdb_postgres.sql +++ b/sql/initdb_postgres.sql @@ -267,6 +267,7 @@ CREATE TABLE DBPREFIXfilters( issued_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP, match_action VARCHAR(45) NOT NULL DEFAULT 'replace', match_detail TEXT NOT NULL, + is_active BOOL NOT NULL, CONSTRAINT filters_staff_id_fk FOREIGN KEY(staff_id) REFERENCES DBPREFIXstaff(id) ON DELETE SET NULL diff --git a/sql/initdb_sqlite3.sql b/sql/initdb_sqlite3.sql index e92ff8e9..52b43c49 100644 --- a/sql/initdb_sqlite3.sql +++ b/sql/initdb_sqlite3.sql @@ -267,6 +267,7 @@ CREATE TABLE DBPREFIXfilters( issued_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP, match_action VARCHAR(45) NOT NULL DEFAULT 'replace', match_detail TEXT NOT NULL, + is_active BOOL NOT NULL, CONSTRAINT filters_staff_id_fk FOREIGN KEY(staff_id) REFERENCES DBPREFIXstaff(id) ON DELETE SET NULL