automod_matches table
The automod_matches table in the Reddit Clone Database Schema schema has 7 columns, keyed by id, with 1 foreign key to automod_rules.
Every firing, kept so a rule can be tuned against real traffic instead of guesses. matched_value is what actually tripped it, which is the single most useful thing when a rule is catching the wrong thing.
Columns (7)
| Column | Type | Constraints | Description |
|---|---|---|---|
| id | uuid | primary key | |
| rule_id | uuid | not null, references automod_rules.id | |
| content_type | content_type | not null | |
| content_id | uuid | not null | |
| matched_value | varchar(500) | ||
| action_taken | automod_action | not null | |
| created_at | timestamptz | not null |
Indexes (2)
(rule_id, created_at)(content_type, content_id)
Relationships
automod_matches.rule_idreferencesautomod_rules.id