Lines 632-638
CREATE TABLE `deletedborrowers` ( -- stores data related to the patrons/borrower
Link Here
|
632 |
`checkprevcheckout` varchar(7) NOT NULL default 'inherit', -- produce a warning for this patron if this item has previously been checked out to this patron if 'yes', not if 'no', defer to category setting if 'inherit'. |
632 |
`checkprevcheckout` varchar(7) NOT NULL default 'inherit', -- produce a warning for this patron if this item has previously been checked out to this patron if 'yes', not if 'no', defer to category setting if 'inherit'. |
633 |
`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) |
633 |
`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) |
634 |
`lastseen` datetime default NULL, -- last time a patron has been seed (connected at the OPAC or staff interface) |
634 |
`lastseen` datetime default NULL, -- last time a patron has been seed (connected at the OPAC or staff interface) |
635 |
`overdrive_auth_token` text default NULL, -- persist OverDrive auth token |
635 |
`primary_contact_method` varchar(45) DEFAULT NULL, -- useful for reporting purposes |
636 |
KEY borrowernumber (borrowernumber), |
636 |
KEY borrowernumber (borrowernumber), |
637 |
KEY `cardnumber` (`cardnumber`), |
637 |
KEY `cardnumber` (`cardnumber`), |
638 |
KEY `sms_provider_id` (`sms_provider_id`) |
638 |
KEY `sms_provider_id` (`sms_provider_id`) |
Lines 1664-1670
CREATE TABLE `borrowers` ( -- this table includes information about your patrons
Link Here
|
1664 |
`checkprevcheckout` varchar(7) NOT NULL default 'inherit', -- produce a warning for this patron if this item has previously been checked out to this patron if 'yes', not if 'no', defer to category setting if 'inherit'. |
1664 |
`checkprevcheckout` varchar(7) NOT NULL default 'inherit', -- produce a warning for this patron if this item has previously been checked out to this patron if 'yes', not if 'no', defer to category setting if 'inherit'. |
1665 |
`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) |
1665 |
`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) |
1666 |
`lastseen` datetime default NULL, -- last time a patron has been seed (connected at the OPAC or staff interface) |
1666 |
`lastseen` datetime default NULL, -- last time a patron has been seed (connected at the OPAC or staff interface) |
1667 |
`overdrive_auth_token` text default NULL, -- persist OverDrive auth token |
1667 |
`primary_contact_method` varchar(45) DEFAULT NULL, -- useful for reporting purposes |
1668 |
UNIQUE KEY `cardnumber` (`cardnumber`), |
1668 |
UNIQUE KEY `cardnumber` (`cardnumber`), |
1669 |
PRIMARY KEY `borrowernumber` (`borrowernumber`), |
1669 |
PRIMARY KEY `borrowernumber` (`borrowernumber`), |
1670 |
KEY `categorycode` (`categorycode`), |
1670 |
KEY `categorycode` (`categorycode`), |
Lines 3438-3443
CREATE TABLE IF NOT EXISTS `borrower_modifications` (
Link Here
|
3438 |
`smsalertnumber` varchar(50) DEFAULT NULL, |
3438 |
`smsalertnumber` varchar(50) DEFAULT NULL, |
3439 |
`privacy` int(11) DEFAULT NULL, |
3439 |
`privacy` int(11) DEFAULT NULL, |
3440 |
`extended_attributes` text DEFAULT NULL, |
3440 |
`extended_attributes` text DEFAULT NULL, |
|
|
3441 |
`primary_contact_method` varchar(45) DEFAULT NULL, -- useful for reporting purposes |
3441 |
PRIMARY KEY (`verification_token`,`borrowernumber`), |
3442 |
PRIMARY KEY (`verification_token`,`borrowernumber`), |
3442 |
KEY `verification_token` (`verification_token`), |
3443 |
KEY `verification_token` (`verification_token`), |
3443 |
KEY `borrowernumber` (`borrowernumber`) |
3444 |
KEY `borrowernumber` (`borrowernumber`) |