-- Migration: Add position column and indexes for todo items and template items

ALTER TABLE todo_items
  ADD COLUMN position INT NOT NULL DEFAULT 0,
  ADD INDEX idx_todo_items_position (position);

ALTER TABLE todo_template_items
  ADD COLUMN position INT NOT NULL DEFAULT 0,
  ADD INDEX idx_template_items_position (position);
