Lines 1129-1142
CREATE TABLE `borrower_attribute_types` (
Link Here
|
1129 |
`staff_searchable` tinyint(1) NOT NULL DEFAULT 0 COMMENT 'defines if this field is searchable via the patron search in the staff interface (1 for yes, 0 for no)', |
1129 |
`staff_searchable` tinyint(1) NOT NULL DEFAULT 0 COMMENT 'defines if this field is searchable via the patron search in the staff interface (1 for yes, 0 for no)', |
1130 |
`authorised_value_category` varchar(32) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT 'foreign key from authorised_values that links this custom field to an authorized value category', |
1130 |
`authorised_value_category` varchar(32) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT 'foreign key from authorised_values that links this custom field to an authorized value category', |
1131 |
`display_checkout` tinyint(1) NOT NULL DEFAULT 0 COMMENT 'defines if this field displays in checkout screens', |
1131 |
`display_checkout` tinyint(1) NOT NULL DEFAULT 0 COMMENT 'defines if this field displays in checkout screens', |
1132 |
`category_code` varchar(10) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT 'defines a category for an attribute_type', |
|
|
1133 |
`class` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT 'defines a class for an attribute_type', |
1132 |
`class` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT 'defines a class for an attribute_type', |
1134 |
`keep_for_pseudonymization` tinyint(1) NOT NULL DEFAULT 0 COMMENT 'defines if this field is copied to anonymized_borrower_attributes (1 for yes, 0 for no)', |
1133 |
`keep_for_pseudonymization` tinyint(1) NOT NULL DEFAULT 0 COMMENT 'defines if this field is copied to anonymized_borrower_attributes (1 for yes, 0 for no)', |
1135 |
`mandatory` tinyint(1) NOT NULL DEFAULT 0 COMMENT 'defines if the attribute is mandatory or not', |
1134 |
`mandatory` tinyint(1) NOT NULL DEFAULT 0 COMMENT 'defines if the attribute is mandatory or not', |
1136 |
PRIMARY KEY (`code`), |
1135 |
PRIMARY KEY (`code`), |
1137 |
KEY `auth_val_cat_idx` (`authorised_value_category`), |
1136 |
KEY `auth_val_cat_idx` (`authorised_value_category`), |
1138 |
KEY `category_code` (`category_code`), |
|
|
1139 |
CONSTRAINT `borrower_attribute_types_ibfk_1` FOREIGN KEY (`category_code`) REFERENCES `categories` (`categorycode`) |
1140 |
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; |
1137 |
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; |
1141 |
/*!40101 SET character_set_client = @saved_cs_client */; |
1138 |
/*!40101 SET character_set_client = @saved_cs_client */; |
1142 |
|
1139 |
|
Lines 1157-1162
CREATE TABLE `borrower_attribute_types_branches` (
Link Here
|
1157 |
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; |
1154 |
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; |
1158 |
/*!40101 SET character_set_client = @saved_cs_client */; |
1155 |
/*!40101 SET character_set_client = @saved_cs_client */; |
1159 |
|
1156 |
|
|
|
1157 |
-- |
1158 |
-- Table structure for table `borrower_attribute_types_categories` |
1159 |
-- |
1160 |
|
1161 |
DROP TABLE IF EXISTS `borrower_attribute_types_categories`; |
1162 |
/*!40101 SET @saved_cs_client = @@character_set_client */; |
1163 |
/*!40101 SET character_set_client = utf8 */; |
1164 |
CREATE TABLE `borrower_attribute_types_categories` ( |
1165 |
`borrower_attribute_type_code` varchar(10) COLLATE utf8mb4_unicode_ci NOT NULL, |
1166 |
`categorycode` varchar(10) COLLATE utf8mb4_unicode_ci NOT NULL, |
1167 |
KEY `borrower_attribute_type_code` (`borrower_attribute_type_code`), |
1168 |
KEY `categorycode` (`categorycode`), |
1169 |
CONSTRAINT `borrower_attribute_types_categories_borrower_attribute_type_code` FOREIGN KEY (`borrower_attribute_type_code`) REFERENCES `borrower_attribute_types` (`code`) ON DELETE CASCADE ON UPDATE CASCADE, |
1170 |
CONSTRAINT `borrower_attribute_types_categories_categorycode` FOREIGN KEY (`categorycode`) REFERENCES `categories` (`categorycode`) ON DELETE CASCADE ON UPDATE CASCADE, |
1171 |
PRIMARY KEY (`borrower_attribute_type_code`, `categorycode`) |
1172 |
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; |
1173 |
/*!40101 SET character_set_client = @saved_cs_client */; |
1174 |
|
1160 |
-- |
1175 |
-- |
1161 |
-- Table structure for table `borrower_attributes` |
1176 |
-- Table structure for table `borrower_attributes` |
1162 |
-- |
1177 |
-- |