author

3784 rows


Description

Links reference_work to person (authors)

Columns

Column Type Size Nulls Auto Default Children Parents Comments
author_id 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
person.person_id person_author_fk R

FK. ID for each author. Links to the person table.

reference_id int4 10 null
reference_work.reference_id reference_work_author_fk R

FK. ID of the reference_work. Links to the reference_work table.

author_position int4 10 null

Records the position of each author

timestamp_created timestamptz 35,6 now()
timestamp_modified timestamptz 35,6 now()
is_author 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

Relationships