Teams

ProDepends: auth

Enable team management, roles and permissions for your application’s users.

Syntax

$ vela enable teams

The teams module creates the necessary database tables and code for team management, including team creation, team members, roles, invitations and more.

Ownership and permissions

Once enabled, teams can be used as a target for ownership and permissions using the special current_team field type. Members of a team can access data associated with the team.

$ vela generate scaffold projects title:string team:current_team

Database tables

Enabling teams creates the following database tables:

teams
team_memberships
team_invites
team_invite_links

A team_users view is created alongside them, exposing team membership as a queryable collection.