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)

Columns of the wiki_page_editors table
ColumnTypeConstraintsDescription
wiki_page_iduuidnot null, references wiki_pages.id
user_iduuidnot null, references users.id
added_byuuidreferences users.id
added_attimestamptznot null

Relationships

  • wiki_page_editors.wiki_page_id references wiki_pages.id
  • wiki_page_editors.user_id references users.id
  • wiki_page_editors.added_by references users.id