Skip to content

Assignment

Luke Cassar edited this page Aug 21, 2018 · 3 revisions

To denote the positions and permissions of different users on the platform.

DB Table Schema

Attribute Type
id integer
user_id integer
assignable_type string
assignable_id integer
title string

Validations

Attribute Constraint Value
title presence true
title values (see Possible Assignments in the User Model)

Policies

One User Should only have one 'Event Assignment'

One User Should only have one assignment per TeamProject

Associations

  • One Assignment has only one User.
    • Dependant: Destroy
  • One Assignment has only one Entity.

Permissions

For Assignments to the Competition Instance as GovHack Management Team

Title Create Update Read Destroy
(Admin)
GovHack Management Team

For Assignments to the Competition Instance as Competition Director AND

For Assignments to the Competition Instance as Sponsorship Director AND

For Assignments to the Competition Instance as Chief Judge AND

For Assignments to the Competition Instance as VIP AND

For Assignments to the Competition Instance as GovHack Volunteer

Title Create Update Read Destroy
GovHack Management Team

For Assignments to the Competition Instance as Participant

Title Create Update Read Destroy
GovHack Management Team
(Authenticated User)

For Assignments to the Region Instance as Region Director AND

For Assignments to the Region Instance as Region Support

Title Create Update Read Destroy
GovHack Management Team
(Public User)
Clone this wiki locally