Columns
Column | Type | Size | Nulls | Auto | Default | Children | Parents | Comments | |||
---|---|---|---|---|---|---|---|---|---|---|---|
serial | 10 | √ | nextval('author_author_id_seq'::regclass) |
|
|
PK. Unique ID for each author (or editor). Generated by the database |
|||||
person_id | int4 | 10 | null |
|
|
FK. ID for each author. Links to the person table. |
|||||
reference_id | int4 | 10 | null |
|
|
FK. ID of the reference_work. Links to the reference_work table. |
|||||
int4 | 10 | √ | null |
|
|
Records the position of each author |
|||||
timestamp_created | timestamptz | 35,6 | now() |
|
|
||||||
timestamp_modified | timestamptz | 35,6 | √ | now() |
|
|
|||||
bool | 1 | √ | null |
|
|
Whether or not the person is an author (t) or an editor (f). Added in Phase 2 to accommodate editors. |
Indexes
Constraint Name | Type | Sort | Column(s) |
---|---|---|---|
author_id | Primary key | Asc | author_id |
author_person_id_idx | Performance | Asc | person_id |
author_reference_id_author_id_key | Must be unique | Asc/Asc/Asc | reference_id + author_id + is_author |
author_reference_id_author_position_key | Must be unique | Asc/Asc/Asc | reference_id + author_position + is_author |
author_reference_id_idx | Performance | Asc | reference_id |