Skip to content

Relations

Arnav Gupta edited this page May 25, 2020 · 2 revisions

Users

User, Superhero, Agent relationships

  • Everyone who uses this app must be a user.

  • Users are created with oneauth logins

  • Superheroe's have a superhero object in their user object.

  • Agents have an agent object in their user object.

Some people can be both superhero and agent (superheroes can be promoted to agent)

Reporting Structure

  • Every superhero has a handler.
  • Every agent has another agent to report to, unless the agent is commander level.

Missions

Superhero, Mission, Debrief relationships

  • everytime a superhero does a mission, they need to debrief to their agent to claim the points
  • accepted debriefs gets them points
  • agents who are not at commander or director level, can only handle debriefs of superheroes who report to them
  • commander and director only can create/edit/delete missions.
Clone this wiki locally