-- ============================================================================
-- Recognition Feature Migration
-- Add employee recognition support to notifications
-- ============================================================================

-- 1. Add employeesso column to notifications table
-- VARCHAR(100) to support multiple comma-separated 9-digit SSOs
ALTER TABLE notifications ADD COLUMN employeesso VARCHAR(100) NULL;

-- 2. Add Recognition notification type
INSERT INTO notificationtypes (typename, typedescription, typecolor, isactive)
VALUES ('Recognition', 'Employee Achievement Recognition', 'recognition', 1);

-- Verify the changes
SELECT * FROM notificationtypes WHERE typename = 'Recognition';
DESCRIBE notifications;
