Feature: Plans of planning teams 

Description 

A plan is made for an employee or for a planning team, exactly one of them: createPlan and updatePlan take teamId instead of employeeId, and a plan names its team. A team plan holds work the team has taken on before anybody is planned on it; it counts against no member's time. listPlans filters by teamId, and people read the plans of the teams they lead or belong to besides their own.

Impact 

The column resource_plan.employee_id becomes nullable and team_id is added by a migration. Deleting a team deletes its plans; the plans of its members stay.