feat: add client sla balances report totals and branding settings

This commit is contained in:
Marco0300
2026-09-01 23:16:34 +02:00
parent 9627da20e1
commit 1a7111c78d
7 changed files with 86 additions and 5 deletions
+8
View File
@@ -32,6 +32,14 @@ CREATE TABLE IF NOT EXISTS users (
FOREIGN KEY (role_id) REFERENCES roles(id)
) ENGINE=InnoDB;
CREATE TABLE IF NOT EXISTS app_settings (
setting_key VARCHAR(80) PRIMARY KEY,
setting_value TEXT NULL,
updated_by BIGINT UNSIGNED NULL,
updated_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
FOREIGN KEY (updated_by) REFERENCES users(id) ON DELETE SET NULL
) ENGINE=InnoDB;
CREATE TABLE IF NOT EXISTS clients (
id BIGINT UNSIGNED AUTO_INCREMENT PRIMARY KEY,
name VARCHAR(190) NOT NULL,
+8
View File
@@ -1,4 +1,12 @@
-- JOBcard additive upgrade for installations created before the current schema.
CREATE TABLE IF NOT EXISTS app_settings (
setting_key VARCHAR(80) PRIMARY KEY,
setting_value TEXT NULL,
updated_by BIGINT UNSIGNED NULL,
updated_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
FOREIGN KEY (updated_by) REFERENCES users(id) ON DELETE SET NULL
) ENGINE=InnoDB;
-- Take a database backup first. Run with the target database selected:
-- mysql --default-character-set=utf8mb4 -u USER -p DATABASE < database/upgrade.sql
-- Resolve duplicate SLA rows before adding the unique client constraint.