Columns
Column | Type | Size | Nulls | Auto | Default | Children | Parents | Comments | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
edition_editor_id | INT UNSIGNED | 10 | √ | null |
|
|
Id of the editor, who is working on a particular edition. |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
user_id | INT UNSIGNED | 10 | 0 |
|
|
Link to the editor’s user account. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
edition_id | INT UNSIGNED | 10 | 0 |
|
|
This is the id of the edition on which this editor is working. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
may_write | TINYINT UNSIGNED | 3 | 0 |
|
|
Boolean whether this editor has permission to write to the edition. An editor must have read permissions to have write permissions. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
may_lock | TINYINT UNSIGNED | 3 | 0 |
|
|
Boolean whether the editor is allowed to lock the edition. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
may_read | TINYINT UNSIGNED | 3 | 1 |
|
|
Boolean whether the editor is allowed to read the edition. No editors may ever be deleted from an edition, but revoking read access to an editor is the SQE equivalent to fully removing the editor from work on an edition. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
is_admin | TINYINT UNSIGNED | 3 | 0 |
|
|
Boolean whether an editor is an admin. An admin must have read permission. Only an admin may change the permissions of other editors, including revoking admin status (including for herself). Each edition must have at least one admin. Only an admin may publish or delete an edition. |
Indexes
Constraint Name | Type | Sort | Column(s) |
---|---|---|---|
PRIMARY | Primary key | Asc | edition_editor_id |
edition_user_idx | Must be unique | Asc/Asc | edition_id + user_id |
fk_edition_editor_to_user | Performance | Asc | user_id |