vote_anomalies table

The vote_anomalies table in the Reddit Clone Database Schema schema has 8 columns, keyed by id, with 1 foreign key to users.

Vote manipulation detection output. It is a table and not a boolean because the interesting question is always WHICH signal fired and how strongly, and because a false positive has to be reviewable.

Columns (8)

Columns of the vote_anomalies table
ColumnTypeConstraintsDescription
iduuidprimary key
content_typecontent_typenot null
content_iduuidnot null
user_iduuidreferences users.id
signalvote_signalnot null
scoredoublenot null
detected_attimestamptznot null
reviewed_attimestamptz

Indexes (2)

  • (content_type, content_id)
  • (signal, detected_at)

Relationships

  • vote_anomalies.user_id references users.id