Lines 271-276
CREATE TABLE `borrowers` ( -- this table includes information about your patrons
Link Here
|
271 |
KEY `branchcode` (`branchcode`), |
271 |
KEY `branchcode` (`branchcode`), |
272 |
KEY `userid` (`userid`), |
272 |
KEY `userid` (`userid`), |
273 |
KEY `guarantorid` (`guarantorid`), |
273 |
KEY `guarantorid` (`guarantorid`), |
|
|
274 |
KEY `surname_idx` (`surname`(255)), |
275 |
KEY `firstname_idx` (`firstname`(255)), |
276 |
KEY `othernames_idx` (`othernames`(255)), |
274 |
CONSTRAINT `borrowers_ibfk_1` FOREIGN KEY (`categorycode`) REFERENCES `categories` (`categorycode`), |
277 |
CONSTRAINT `borrowers_ibfk_1` FOREIGN KEY (`categorycode`) REFERENCES `categories` (`categorycode`), |
275 |
CONSTRAINT `borrowers_ibfk_2` FOREIGN KEY (`branchcode`) REFERENCES `branches` (`branchcode`) |
278 |
CONSTRAINT `borrowers_ibfk_2` FOREIGN KEY (`branchcode`) REFERENCES `branches` (`branchcode`) |
276 |
) ENGINE=InnoDB DEFAULT CHARSET=utf8; |
279 |
) ENGINE=InnoDB DEFAULT CHARSET=utf8; |