CREATE TABLE IF NOT EXISTS settings (
    id INT AUTO_INCREMENT PRIMARY KEY,
    setting_key VARCHAR(100) NOT NULL UNIQUE,
    setting_value TEXT,
    created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
    updated_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP
);

INSERT INTO settings (setting_key, setting_value) VALUES 
('company_name', 'Hospital Management System'),
('company_logo', ''),
('company_favicon', ''),
('company_ctr_no', ''),
('company_registration_no', ''),
('company_address', ''),
('company_phone', ''),
('company_email', ''),
('company_vat_no', '');
