poll_options table

The poll_options table in the Reddit Clone Database Schema schema has 5 columns, keyed by id, with 1 foreign key to polls. 1 column in poll_votes references it.

Columns (5)

Columns of the poll_options table
ColumnTypeConstraintsDescription
iduuidprimary key
post_iduuidnot null, references polls.post_id
textvarchar(200)not null
vote_countintegernot null
positionsmallintnot null

Indexes (1)

  • (post_id, position)

Relationships