-
Notifications
You must be signed in to change notification settings - Fork 0
Polls Model
Noah Huppert edited this page Jun 16, 2018
·
1 revision
Polls present a set of options which users can vote for. Polls can be attached to squads, events, or cars.
Represents a set of questions users can interact with.
-
owner_type:string- Either
squad,event, orcardepending on if an squad, event or car that owns the poll. - The term "owns" is used to signify that the poll is displayed as part of a squad, event, or car ride. The
creator_idfield below specifies the user who created the poll.
- Either
-
owner_id:int- Id of either squad, event or car depending on
owner_type's value.
- Id of either squad, event or car depending on
-
creator_id:int- Id of user who created poll
Individual option for poll.
-
poll_id:int- Id of poll option is for.
-
order:int- Order in overall poll that option is in
-
name:string- Name of the poll option
-
type:string- Type of poll, put in place to support future more complicated polls
- Currently only valid value is
text
-
data:string- Marshalled data for poll option, interpreted based on
type.
- Marshalled data for poll option, interpreted based on
Vote for poll option by user.
-
user_id:int -
poll_id:int -
poll_option_id:int- Id of poll option they voted for
- Functional Requirements
- Specifications
- User
- Location
- Squad
- Event
- Car
- Image Model