Lines 637-642
CREATE TABLE `deletedborrowers` ( -- stores data related to the patrons/borrower
Link Here
|
637 |
`lang` varchar(25) NOT NULL default 'default', -- lang to use to send notices to this patron |
637 |
`lang` varchar(25) NOT NULL default 'default', -- lang to use to send notices to this patron |
638 |
`login_attempts` int(4) default 0, -- number of failed login attemps |
638 |
`login_attempts` int(4) default 0, -- number of failed login attemps |
639 |
`overdrive_auth_token` text default NULL, -- persist OverDrive auth token |
639 |
`overdrive_auth_token` text default NULL, -- persist OverDrive auth token |
|
|
640 |
`primary_contact_method` varchar(45) DEFAULT NULL, -- useful for reporting purposes |
640 |
KEY borrowernumber (borrowernumber), |
641 |
KEY borrowernumber (borrowernumber), |
641 |
KEY `cardnumber` (`cardnumber`), |
642 |
KEY `cardnumber` (`cardnumber`), |
642 |
KEY `sms_provider_id` (`sms_provider_id`) |
643 |
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` text default NULL, -- persist OverDrive auth token |
1677 |
`overdrive_auth_token` text default NULL, -- persist OverDrive auth token |
|
|
1678 |
`lastseen` datetime default NULL, -- last time a patron has been seed (connected at the OPAC or staff interface) |
1679 |
`primary_contact_method` varchar(45) DEFAULT NULL, -- useful for reporting purposes |
1677 |
UNIQUE KEY `cardnumber` (`cardnumber`), |
1680 |
UNIQUE KEY `cardnumber` (`cardnumber`), |
1678 |
PRIMARY KEY `borrowernumber` (`borrowernumber`), |
1681 |
PRIMARY KEY `borrowernumber` (`borrowernumber`), |
1679 |
KEY `categorycode` (`categorycode`), |
1682 |
KEY `categorycode` (`categorycode`), |
Lines 3448-3453
CREATE TABLE IF NOT EXISTS `borrower_modifications` (
Link Here
|
3448 |
`smsalertnumber` varchar(50) DEFAULT NULL, |
3451 |
`smsalertnumber` varchar(50) DEFAULT NULL, |
3449 |
`privacy` int(11) DEFAULT NULL, |
3452 |
`privacy` int(11) DEFAULT NULL, |
3450 |
`extended_attributes` text DEFAULT NULL, |
3453 |
`extended_attributes` text DEFAULT NULL, |
|
|
3454 |
`primary_contact_method` varchar(45) DEFAULT NULL, -- useful for reporting purposes |
3451 |
PRIMARY KEY (`verification_token`,`borrowernumber`), |
3455 |
PRIMARY KEY (`verification_token`,`borrowernumber`), |
3452 |
KEY `verification_token` (`verification_token`), |
3456 |
KEY `verification_token` (`verification_token`), |
3453 |
KEY `borrowernumber` (`borrowernumber`) |
3457 |
KEY `borrowernumber` (`borrowernumber`) |