Lines 1677-1682
CREATE TABLE `borrowers` ( -- this table includes information about your patrons
Link Here
|
1677 |
|
1677 |
|
1678 |
DROP TABLE IF EXISTS `borrower_attributes`; |
1678 |
DROP TABLE IF EXISTS `borrower_attributes`; |
1679 |
CREATE TABLE `borrower_attributes` ( -- values of custom patron fields known as extended patron attributes linked to patrons/borrowers |
1679 |
CREATE TABLE `borrower_attributes` ( -- values of custom patron fields known as extended patron attributes linked to patrons/borrowers |
|
|
1680 |
`id` int(11) NOT NULL AUTO_INCREMENT PRIMARY KEY, -- Row id field |
1680 |
`borrowernumber` int(11) NOT NULL, -- foreign key from the borrowers table, defines which patron/borrower has this attribute |
1681 |
`borrowernumber` int(11) NOT NULL, -- foreign key from the borrowers table, defines which patron/borrower has this attribute |
1681 |
`code` varchar(10) NOT NULL, -- foreign key from the borrower_attribute_types table, defines which custom field this value was entered for |
1682 |
`code` varchar(10) NOT NULL, -- foreign key from the borrower_attribute_types table, defines which custom field this value was entered for |
1682 |
`attribute` varchar(255) default NULL, -- custom patron field value |
1683 |
`attribute` varchar(255) default NULL, -- custom patron field value |
1683 |
- |
|
|