Columns
| Column | Type | Size | Nulls | Auto | Default | Children | Parents | Comments | |||
|---|---|---|---|---|---|---|---|---|---|---|---|
| borrower_debarment_id | INT | 10 | √ | null |
|
|
unique key for the restriction |
||||
| borrowernumber | INT | 10 | null |
|
|
foreign key for borrowers.borrowernumber for patron who is restricted |
|||||
| expiration | DATE | 10 | √ | NULL |
|
|
expiration date of the restriction |
||||
| type | VARCHAR | 50 | null |
|
|
type of restriction, FK to restriction_types.code |
|||||
| comment | MEDIUMTEXT | 16777215 | √ | NULL |
|
|
comments about the restriction |
||||
| manager_id | INT | 10 | √ | NULL |
|
|
foreign key for borrowers.borrowernumber for the librarian managing the restriction |
||||
| created | TIMESTAMP | 19 | current_timestamp() |
|
|
date the restriction was added |
|||||
| updated | TIMESTAMP | 19 | √ | NULL |
|
|
date the restriction was updated |
Indexes
| Constraint Name | Type | Sort | Column(s) |
|---|---|---|---|
| PRIMARY | Primary key | Asc | borrower_debarment_id |
| borrower_debarments_ibfk_2 | Performance | Asc | type |
| borrowernumber | Performance | Asc | borrowernumber |

