serial.item
|
Cascading Deletes: Deleting rows from this table will cascade to: serial.issuance, serial.stream. |
|
Deferrable Constraints: The following FK constraints are deferrable — they are checked at transaction end, not statement end: |
Columns
| Column | Type | Nullable | Default | Notes |
|---|---|---|---|---|
id PK |
|
No |
nextval('serial.item_id_seq'::regclass) |
|
creator FK |
|
No |
||
editor FK |
|
No |
||
create_date |
|
No |
now() |
|
edit_date |
|
No |
now() |
|
issuance FK |
|
No |
||
stream FK |
|
No |
||
unit FK |
|
Yes |
||
uri FK |
|
Yes |
||
date_expected |
|
Yes |
||
date_received |
|
Yes |
||
status |
|
Yes |
'Expected'::text |
|
shadowed |
|
No |
false |
Foreign Keys
| Column(s) | References | On Delete | On Update | Deferrable | Constraint |
|---|---|---|---|---|---|
|
NO ACTION |
NO ACTION |
DEFERRED |
|
|
|
NO ACTION |
NO ACTION |
DEFERRED |
|
|
|
CASCADE |
NO ACTION |
DEFERRED |
|
|
|
CASCADE |
NO ACTION |
DEFERRED |
|
|
|
SET NULL |
NO ACTION |
DEFERRED |
|
|
|
SET NULL |
NO ACTION |
DEFERRED |
|
Check Constraints
-
valid_status:CHECK status = ANY (ARRAY['Bindery'::text, 'Bound'::text, 'Claimed'::text, 'Discarded'::text, 'Expected'::text, 'Not Held'::text, 'Not Published'::text, 'Received'::text])
Indexes
| Index | Method | Definition |
|---|---|---|
|
btree |
|
|
btree |
|
|
btree |
|
|
btree |
|
|
btree |
|
|
btree |
|
|
btree |
|