ALTER TABLE customer_applications ADD COLUMN approval_level INT DEFAULT 1; ALTER TABLE customer_applications ADD COLUMN current_approver_role_id INT; CREATE TABLE IF NOT EXISTS application_approvals ( id INT AUTO_INCREMENT PRIMARY KEY, application_id INT NOT NULL, approver_id INT NOT NULL, approval_level INT NOT NULL, status VARCHAR(255) NOT NULL, comments TEXT, created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP, FOREIGN KEY (application_id) REFERENCES customer_applications(id), FOREIGN KEY (approver_id) REFERENCES users(id) );