Lines 587-593
CREATE TABLE `deletedborrowers` ( -- stores data related to the patrons/borrower
Link Here
|
587 |
`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) |
587 |
`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) |
588 |
`lastseen` datetime default NULL, -- last time a patron has been seen (connected at the OPAC or staff interface) |
588 |
`lastseen` datetime default NULL, -- last time a patron has been seen (connected at the OPAC or staff interface) |
589 |
`lang` varchar(25) NOT NULL default 'default', -- lang to use to send notices to this patron |
589 |
`lang` varchar(25) NOT NULL default 'default', -- lang to use to send notices to this patron |
590 |
`login_attempts` int(4) default 0, -- number of failed login attemps |
590 |
`login_attempts` int(4) NOT NULL default 0, -- number of failed login attemps |
591 |
`overdrive_auth_token` MEDIUMTEXT default NULL, -- persist OverDrive auth token |
591 |
`overdrive_auth_token` MEDIUMTEXT default NULL, -- persist OverDrive auth token |
592 |
`anonymized` TINYINT(1) NOT NULL DEFAULT 0, -- flag for data anonymization |
592 |
`anonymized` TINYINT(1) NOT NULL DEFAULT 0, -- flag for data anonymization |
593 |
KEY borrowernumber (borrowernumber), |
593 |
KEY borrowernumber (borrowernumber), |
Lines 1581-1587
CREATE TABLE `borrowers` ( -- this table includes information about your patrons
Link Here
|
1581 |
`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) |
1581 |
`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) |
1582 |
`lastseen` datetime default NULL, -- last time a patron has been seen (connected at the OPAC or staff interface) |
1582 |
`lastseen` datetime default NULL, -- last time a patron has been seen (connected at the OPAC or staff interface) |
1583 |
`lang` varchar(25) NOT NULL default 'default', -- lang to use to send notices to this patron |
1583 |
`lang` varchar(25) NOT NULL default 'default', -- lang to use to send notices to this patron |
1584 |
`login_attempts` int(4) default 0, -- number of failed login attemps |
1584 |
`login_attempts` int(4) NOT NULL default 0, -- number of failed login attemps |
1585 |
`overdrive_auth_token` MEDIUMTEXT default NULL, -- persist OverDrive auth token |
1585 |
`overdrive_auth_token` MEDIUMTEXT default NULL, -- persist OverDrive auth token |
1586 |
`anonymized` TINYINT(1) NOT NULL DEFAULT 0, -- flag for data anonymization |
1586 |
`anonymized` TINYINT(1) NOT NULL DEFAULT 0, -- flag for data anonymization |
1587 |
UNIQUE KEY `cardnumber` (`cardnumber`), |
1587 |
UNIQUE KEY `cardnumber` (`cardnumber`), |