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)
| Column | Type | Constraints | Description |
|---|---|---|---|
| id | uuid | primary key | |
| admin_id | uuid | not null, references users.id | |
| action | admin_action_type | not null | |
| target_type | varchar(40) | not null | |
| target_id | uuid | ||
| reason | varchar(1000) | ||
| created_at | timestamptz | not null |
Indexes (2)
(admin_id, created_at)(target_type, target_id)
Relationships
admin_actions.admin_idreferencesusers.id