- Projects:
  Create unique indices instead of constraints
  because we need the coalesce(parent_id,0).