Lines 642-647
CREATE TABLE `deletedborrowers` ( -- stores data related to the patrons/borrower
Link Here
|
642 |
`lang` varchar(25) NOT NULL default 'default', -- lang to use to send notices to this patron |
642 |
`lang` varchar(25) NOT NULL default 'default', -- lang to use to send notices to this patron |
643 |
`login_attempts` int(4) default 0, -- number of failed login attemps |
643 |
`login_attempts` int(4) default 0, -- number of failed login attemps |
644 |
`overdrive_auth_token` MEDIUMTEXT default NULL, -- persist OverDrive auth token |
644 |
`overdrive_auth_token` MEDIUMTEXT default NULL, -- persist OverDrive auth token |
|
|
645 |
`primary_contact_method` varchar(45) DEFAULT NULL, -- useful for reporting purposes |
645 |
KEY borrowernumber (borrowernumber), |
646 |
KEY borrowernumber (borrowernumber), |
646 |
KEY `cardnumber` (`cardnumber`), |
647 |
KEY `cardnumber` (`cardnumber`), |
647 |
KEY `sms_provider_id` (`sms_provider_id`) |
648 |
KEY `sms_provider_id` (`sms_provider_id`) |
Lines 1674-1679
CREATE TABLE `borrowers` ( -- this table includes information about your patrons
Link Here
|
1674 |
`lang` varchar(25) NOT NULL default 'default', -- lang to use to send notices to this patron |
1675 |
`lang` varchar(25) NOT NULL default 'default', -- lang to use to send notices to this patron |
1675 |
`login_attempts` int(4) default 0, -- number of failed login attemps |
1676 |
`login_attempts` int(4) default 0, -- number of failed login attemps |
1676 |
`overdrive_auth_token` MEDIUMTEXT default NULL, -- persist OverDrive auth token |
1677 |
`overdrive_auth_token` MEDIUMTEXT default NULL, -- persist OverDrive auth token |
|
|
1678 |
`primary_contact_method` varchar(45) DEFAULT NULL, -- useful for reporting purposes |
1677 |
UNIQUE KEY `cardnumber` (`cardnumber`), |
1679 |
UNIQUE KEY `cardnumber` (`cardnumber`), |
1678 |
PRIMARY KEY `borrowernumber` (`borrowernumber`), |
1680 |
PRIMARY KEY `borrowernumber` (`borrowernumber`), |
1679 |
KEY `categorycode` (`categorycode`), |
1681 |
KEY `categorycode` (`categorycode`), |
Lines 3484-3489
CREATE TABLE IF NOT EXISTS `borrower_modifications` (
Link Here
|
3484 |
`privacy` int(11) DEFAULT NULL, |
3486 |
`privacy` int(11) DEFAULT NULL, |
3485 |
`extended_attributes` MEDIUMTEXT DEFAULT NULL, |
3487 |
`extended_attributes` MEDIUMTEXT DEFAULT NULL, |
3486 |
`gdpr_proc_consent` datetime, -- data processing consent |
3488 |
`gdpr_proc_consent` datetime, -- data processing consent |
|
|
3489 |
`primary_contact_method` varchar(45) DEFAULT NULL, -- useful for reporting purposes |
3487 |
PRIMARY KEY (`verification_token` (191),`borrowernumber`), |
3490 |
PRIMARY KEY (`verification_token` (191),`borrowernumber`), |
3488 |
KEY `verification_token` (`verification_token` (191)), |
3491 |
KEY `verification_token` (`verification_token` (191)), |
3489 |
KEY `borrowernumber` (`borrowernumber`) |
3492 |
KEY `borrowernumber` (`borrowernumber`) |