admin_actions table

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

Site staff actions, kept apart from mod_actions because quarantining a community or removing a moderator is not a moderation event inside that community and must not appear in its public log.

Columns (7)

Columns of the admin_actions table
ColumnTypeConstraintsDescription
iduuidprimary key
admin_iduuidnot null, references users.id
actionadmin_action_typenot null
target_typevarchar(40)not null
target_iduuid
reasonvarchar(1000)
created_attimestamptznot null

Indexes (2)

  • (admin_id, created_at)
  • (target_type, target_id)

Relationships

  • admin_actions.admin_id references users.id