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)

Columns of the automod_matches table
ColumnTypeConstraintsDescription
iduuidprimary key
rule_iduuidnot null, references automod_rules.id
content_typecontent_typenot null
content_iduuidnot null
matched_valuevarchar(500)
action_takenautomod_actionnot null
created_attimestamptznot null

Indexes (2)

  • (rule_id, created_at)
  • (content_type, content_id)

Relationships