Lines 619-624
CREATE TABLE `deletedborrowers` ( -- stores data related to the patrons/borrower
Link Here
|
619 |
`privacy` integer(11) DEFAULT '1' NOT NULL, -- patron/borrower's privacy settings related to their reading history KEY `borrowernumber` (`borrowernumber`), |
619 |
`privacy` integer(11) DEFAULT '1' NOT NULL, -- patron/borrower's privacy settings related to their reading history KEY `borrowernumber` (`borrowernumber`), |
620 |
`privacy_guarantor_checkouts` tinyint(1) NOT NULL DEFAULT '0', -- controls if relatives can see this patron's checkouts |
620 |
`privacy_guarantor_checkouts` tinyint(1) NOT NULL DEFAULT '0', -- controls if relatives can see this patron's checkouts |
621 |
`updated_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, -- time of last change could be useful for synchronization with external systems (among others) |
621 |
`updated_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, -- time of last change could be useful for synchronization with external systems (among others) |
|
|
622 |
`primary_contact_method` varchar(45) DEFAULT NULL, -- useful for reporting purposes |
622 |
KEY borrowernumber (borrowernumber), |
623 |
KEY borrowernumber (borrowernumber), |
623 |
KEY `cardnumber` (`cardnumber`), |
624 |
KEY `cardnumber` (`cardnumber`), |
624 |
KEY `sms_provider_id` (`sms_provider_id`) |
625 |
KEY `sms_provider_id` (`sms_provider_id`) |
Lines 3376-3381
CREATE TABLE IF NOT EXISTS `borrower_modifications` (
Link Here
|
3376 |
`altcontactphone` varchar(50) DEFAULT NULL, |
3377 |
`altcontactphone` varchar(50) DEFAULT NULL, |
3377 |
`smsalertnumber` varchar(50) DEFAULT NULL, |
3378 |
`smsalertnumber` varchar(50) DEFAULT NULL, |
3378 |
`privacy` int(11) DEFAULT NULL, |
3379 |
`privacy` int(11) DEFAULT NULL, |
|
|
3380 |
`primary_contact_method` varchar(45) DEFAULT NULL, -- useful for reporting purposes |
3379 |
PRIMARY KEY (`verification_token`,`borrowernumber`), |
3381 |
PRIMARY KEY (`verification_token`,`borrowernumber`), |
3380 |
KEY `verification_token` (`verification_token`), |
3382 |
KEY `verification_token` (`verification_token`), |
3381 |
KEY `borrowernumber` (`borrowernumber`) |
3383 |
KEY `borrowernumber` (`borrowernumber`) |