-- Add techStack field to users table
-- This script should be run manually on the production database

ALTER TABLE users ADD COLUMN techStack VARCHAR(191) NULL COMMENT 'Tech stack for Production department: Backend, Frontend, Full Stack Developer';

-- Add an index for better performance when querying by techStack
CREATE INDEX idx_users_techStack ON users(techStack);

-- Update existing Production department users to have a default techStack if needed
-- (This is optional - you can leave existing users with NULL techStack)
-- UPDATE users SET techStack = 'Full Stack Developer' WHERE department = 'Production' AND techStack IS NULL; 