poll_options table
The poll_options table in the Social Media Database Schema schema has 4 columns, keyed by id, with 1 foreign key to polls. 1 column in poll_votes references it.
Columns (4)
| Column | Type | Constraints | Description |
|---|---|---|---|
| id | uuid | primary key | |
| poll_id | uuid | not null, references polls.id | |
| label | varchar(120) | not null | |
| position | smallint | not null |
Indexes (1)
(poll_id, position)unique
Relationships
poll_options.poll_idreferencespolls.idpoll_votes.poll_option_idreferencespoll_options