wiki_page_editors table
The wiki_page_editors table in the Reddit Clone Database Schema schema has 4 columns, with 3 foreign keys to wiki_pages and users.
Per-page editor grants, which is what wiki_permission alone cannot express: a sub can lock the wiki generally and still open one page to two people.
Columns (4)
| Column | Type | Constraints | Description |
|---|---|---|---|
| wiki_page_id | uuid | not null, references wiki_pages.id | |
| user_id | uuid | not null, references users.id | |
| added_by | uuid | references users.id | |
| added_at | timestamptz | not null |
Relationships
wiki_page_editors.wiki_page_idreferenceswiki_pages.idwiki_page_editors.user_idreferencesusers.idwiki_page_editors.added_byreferencesusers.id