Lines 1542-1547
CREATE TABLE `borrowers` (
Link Here
|
1542 |
`anonymized` tinyint(1) NOT NULL DEFAULT 0 COMMENT 'flag for data anonymization', |
1542 |
`anonymized` tinyint(1) NOT NULL DEFAULT 0 COMMENT 'flag for data anonymization', |
1543 |
`autorenew_checkouts` tinyint(1) NOT NULL DEFAULT 1 COMMENT 'flag for allowing auto-renewal', |
1543 |
`autorenew_checkouts` tinyint(1) NOT NULL DEFAULT 1 COMMENT 'flag for allowing auto-renewal', |
1544 |
`primary_contact_method` varchar(45) DEFAULT NULL COMMENT 'useful for reporting purposes', |
1544 |
`primary_contact_method` varchar(45) DEFAULT NULL COMMENT 'useful for reporting purposes', |
|
|
1545 |
`protected` tinyint(1) NOT NULL DEFAULT 0 COMMENT 'boolean flag to mark selected patrons as protected from deletion', |
1545 |
PRIMARY KEY (`borrowernumber`), |
1546 |
PRIMARY KEY (`borrowernumber`), |
1546 |
UNIQUE KEY `cardnumber` (`cardnumber`), |
1547 |
UNIQUE KEY `cardnumber` (`cardnumber`), |
1547 |
UNIQUE KEY `userid` (`userid`), |
1548 |
UNIQUE KEY `userid` (`userid`), |
Lines 2669-2674
CREATE TABLE `deletedborrowers` (
Link Here
|
2669 |
`anonymized` tinyint(1) NOT NULL DEFAULT 0 COMMENT 'flag for data anonymization', |
2670 |
`anonymized` tinyint(1) NOT NULL DEFAULT 0 COMMENT 'flag for data anonymization', |
2670 |
`autorenew_checkouts` tinyint(1) NOT NULL DEFAULT 1 COMMENT 'flag for allowing auto-renewal', |
2671 |
`autorenew_checkouts` tinyint(1) NOT NULL DEFAULT 1 COMMENT 'flag for allowing auto-renewal', |
2671 |
`primary_contact_method` varchar(45) DEFAULT NULL COMMENT 'useful for reporting purposes', |
2672 |
`primary_contact_method` varchar(45) DEFAULT NULL COMMENT 'useful for reporting purposes', |
|
|
2673 |
`protected` tinyint(1) NOT NULL DEFAULT 0 COMMENT 'boolean flag to mark selected patrons as protected from deletion', |
2672 |
KEY `borrowernumber` (`borrowernumber`), |
2674 |
KEY `borrowernumber` (`borrowernumber`), |
2673 |
KEY `cardnumber` (`cardnumber`), |
2675 |
KEY `cardnumber` (`cardnumber`), |
2674 |
KEY `sms_provider_id` (`sms_provider_id`) |
2676 |
KEY `sms_provider_id` (`sms_provider_id`) |
2675 |
- |
|
|