Deprixa Plus — Technical Architecture · Dynamic Settings Store
Application settings (company info, branding, locale, notification preferences) are stored in a settings table as key-value pairs. This allows runtime configuration without modifying code or environment files.
sql Copy
CREATE TABLE settings ( id BIGINT UNSIGNED AUTO_INCREMENT PRIMARY KEY, key VARCHAR(255) NOT NULL UNIQUE, value TEXT, type ENUM('string','boolean','json','integer') DEFAULT 'string', group VARCHAR(100) DEFAULT 'general', created_at TIMESTAMP, updated_at TIMESTAMP );
Settings are read with a typed helper and cached in Redis:
php Copy
// Get a setting value with a default setting('company.name', 'My Company');
// Set a setting setting(['company.name' => 'Deprixa Plus Corp']);
// Flush settings cache (called automatically on save) Cache::forget('app_settings');