Columns
| Column | Type | Size | Nulls | Auto | Default | Children | Parents | Comments | ||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| reserve_id | INT | 10 | √ | null |
|
|
primary key |
|||||||
| borrowernumber | INT | 10 | 0 |
|
|
foreign key from the borrowers table defining which patron this hold is for |
||||||||
| reservedate | DATE | 10 | √ | NULL |
|
|
the date the hold was placed |
|||||||
| biblionumber | INT | 10 | 0 |
|
|
foreign key from the biblio table defining which bib record this hold is on |
||||||||
| deleted_biblionumber | INT | 10 | √ | NULL |
|
|
links the hold to the deleted bibliographic record (deletedbiblio.biblionumber) |
|||||||
| item_group_id | INT | 10 | √ | NULL |
|
|
foreign key from the item_groups table defining if this is an item group level hold |
|||||||
| branchcode | VARCHAR | 10 | null |
|
|
foreign key from the branches table defining which branch the patron wishes to pick this hold up at |
||||||||
| desk_id | INT | 10 | √ | NULL |
|
|
foreign key from the desks table defining which desk the patron should pick this hold up at |
|||||||
| notificationdate | DATE | 10 | √ | NULL |
|
|
currently unused |
|||||||
| reminderdate | DATE | 10 | √ | NULL |
|
|
currently unused |
|||||||
| cancellationdate | DATE | 10 | √ | NULL |
|
|
the date this hold was cancelled |
|||||||
| cancellation_reason | VARCHAR | 80 | √ | NULL |
|
|
optional authorised value CANCELLATION_REASON |
|||||||
| reservenotes | LONGTEXT | 2147483647 | √ | NULL |
|
|
notes related to this hold |
|||||||
| priority | SMALLINT | 5 | 1 |
|
|
where in the queue the patron sits |
||||||||
| found | VARCHAR | 1 | √ | NULL |
|
|
a one letter code defining what the status is of the hold is after it has been confirmed |
|||||||
| timestamp | TIMESTAMP | 19 | current_timestamp() |
|
|
the date and time this hold was last updated |
||||||||
| itemnumber | INT | 10 | √ | NULL |
|
|
foreign key from the items table defining the specific item the patron has placed on hold or the item this hold was filled with |
|||||||
| waitingdate | DATE | 10 | √ | NULL |
|
|
the date the item was marked as waiting for the patron at the library |
|||||||
| expirationdate | DATE | 10 | √ | NULL |
|
|
the date the hold expires (calculated value) |
|||||||
| patron_expiration_date | DATE | 10 | √ | NULL |
|
|
the date the hold expires - usually the date entered by the patron to say they don’t need the hold after a certain date |
|||||||
| lowestPriority | TINYINT | 3 | 0 |
|
|
|||||||||
| suspend | TINYINT | 3 | 0 |
|
|
|||||||||
| suspend_until | DATETIME | 19 | √ | NULL |
|
|
||||||||
| itemtype | VARCHAR | 10 | √ | NULL |
|
|
If record level hold, the optional itemtype of the item the patron is requesting |
|||||||
| item_level_hold | TINYINT | 3 | 0 |
|
|
Is the hold placed at item level |
||||||||
| non_priority | TINYINT | 3 | 0 |
|
|
Is this a non priority hold |
||||||||
| hold_group_id | INT UNSIGNED | 10 | √ | NULL |
|
|
The id of a group of titles reservations fulfilled when one title is picked |
Indexes
| Constraint Name | Type | Sort | Column(s) |
|---|---|---|---|
| reserves_s_pk | Primary key | Asc | reserve_id |
| biblionumber | Performance | Asc | biblionumber |
| borrowernumber | Performance | Asc | borrowernumber |
| branchcode | Performance | Asc | branchcode |
| desk_id | Performance | Asc | desk_id |
| itemnumber | Performance | Asc | itemnumber |
| itemtype | Performance | Asc | itemtype |
| PRIMARY | Must be unique | Asc | reserve_id |
| priorityfoundidx | Performance | Asc/Asc | priority + found |
| reserves_ibfk_hg | Performance | Asc | hold_group_id |
| reserves_ibfk_ig | Performance | Asc | item_group_id |



