Columns
Column | Type | Size | Nulls | Auto | Default | Children | Parents | Comments | ||
---|---|---|---|---|---|---|---|---|---|---|
serial | 10 | √ | nextval('author_author_id_seq'::regclass) |
|
|
PK. Unique ID for each author. 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 |
|
|
The position of the author in the author list |
||||
timestamp_created | timestamptz | 35,6 | now() |
|
|
|||||
timestamp_modified | timestamptz | 35,6 | √ | now() |
|
|
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 | reference_id + author_id |
author_reference_id_author_position_key | Must be unique | Asc/Asc | reference_id + author_position |
author_reference_id_idx | Performance | Asc | reference_id |