-- Create user_board_settings table
CREATE TABLE IF NOT EXISTS user_board_settings (
  id SERIAL PRIMARY KEY,
  user_id INTEGER NOT NULL,
  board_id INTEGER NOT NULL,
  column_order JSON DEFAULT NULL,
  hidden_columns JSON DEFAULT NULL,
  isDeleted BOOLEAN NOT NULL DEFAULT FALSE,
  updatedAt TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP
);
CREATE INDEX IF NOT EXISTS user_board_settings_user_idx ON user_board_settings(user_id);
CREATE INDEX IF NOT EXISTS user_board_settings_board_idx ON user_board_settings(board_id);
