10 lines
No EOL
307 B
SQL
10 lines
No EOL
307 B
SQL
-- Add is_admin column to users table
|
|
ALTER TABLE users ADD COLUMN is_admin BOOLEAN DEFAULT FALSE;
|
|
|
|
-- Create index for faster admin lookups
|
|
CREATE INDEX idx_user_is_admin ON users(is_admin);
|
|
|
|
-- Set the first user as admin for testing
|
|
UPDATE users
|
|
SET is_admin = TRUE
|
|
WHERE email = 'shaivkamat@2many.ca'; |