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)
| Column | Type | Constraints | Description |
|---|---|---|---|
| id | uuid | primary key | |
| content_type | content_type | not null | |
| content_id | uuid | not null | |
| user_id | uuid | references users.id | |
| signal | vote_signal | not null | |
| score | double | not null | |
| detected_at | timestamptz | not null | |
| reviewed_at | timestamptz |
Indexes (2)
(content_type, content_id)(signal, detected_at)
Relationships
vote_anomalies.user_idreferencesusers.id