-- Add new fields to projects table
ALTER TABLE projects 
ADD COLUMN owner_id INT NULL AFTER tenant_id,
ADD COLUMN estimated_completion_date DATE NULL AFTER start_date,
ADD COLUMN type ENUM('Internal', 'SRED') NOT NULL DEFAULT 'Internal' AFTER code,
ADD COLUMN estimated_hours DECIMAL(10,2) NOT NULL DEFAULT 0.00 AFTER type,
ADD CONSTRAINT fk_project_owner FOREIGN KEY (owner_id) REFERENCES employees(id) ON DELETE SET NULL;
