Lines 1128-1141
CREATE TABLE `borrower_attribute_types` (
Link Here
|
1128 |
`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)', |
1128 |
`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 |
`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', |
1129 |
`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 |
`display_checkout` tinyint(1) NOT NULL DEFAULT 0 COMMENT 'defines if this field displays in checkout screens', |
1130 |
`display_checkout` tinyint(1) NOT NULL DEFAULT 0 COMMENT 'defines if this field displays in checkout screens', |
1131 |
`category_code` varchar(10) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT 'defines a category for an attribute_type', |
|
|
1132 |
`class` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT 'defines a class for an attribute_type', |
1131 |
`class` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT 'defines a class for an attribute_type', |
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)', |
1132 |
`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)', |
1134 |
`mandatory` tinyint(1) NOT NULL DEFAULT 0 COMMENT 'defines if the attribute is mandatory or not', |
1133 |
`mandatory` tinyint(1) NOT NULL DEFAULT 0 COMMENT 'defines if the attribute is mandatory or not', |
1135 |
PRIMARY KEY (`code`), |
1134 |
PRIMARY KEY (`code`), |
1136 |
KEY `auth_val_cat_idx` (`authorised_value_category`), |
1135 |
KEY `auth_val_cat_idx` (`authorised_value_category`), |
1137 |
KEY `category_code` (`category_code`), |
|
|
1138 |
CONSTRAINT `borrower_attribute_types_ibfk_1` FOREIGN KEY (`category_code`) REFERENCES `categories` (`categorycode`) |
1139 |
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; |
1136 |
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; |
1140 |
/*!40101 SET character_set_client = @saved_cs_client */; |
1137 |
/*!40101 SET character_set_client = @saved_cs_client */; |
1141 |
|
1138 |
|
Lines 1156-1161
CREATE TABLE `borrower_attribute_types_branches` (
Link Here
|
1156 |
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; |
1153 |
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; |
1157 |
/*!40101 SET character_set_client = @saved_cs_client */; |
1154 |
/*!40101 SET character_set_client = @saved_cs_client */; |
1158 |
|
1155 |
|
|
|
1156 |
-- |
1157 |
-- Table structure for table `borrower_attribute_types_categories` |
1158 |
-- |
1159 |
|
1160 |
DROP TABLE IF EXISTS `borrower_attribute_types_categories`; |
1161 |
/*!40101 SET @saved_cs_client = @@character_set_client */; |
1162 |
/*!40101 SET character_set_client = utf8 */; |
1163 |
CREATE TABLE `borrower_attribute_types_categories` ( |
1164 |
`borrower_attribute_type_code` varchar(10) COLLATE utf8mb4_unicode_ci NOT NULL, |
1165 |
`categorycode` varchar(10) COLLATE utf8mb4_unicode_ci NOT NULL, |
1166 |
KEY `borrower_attribute_type_code` (`borrower_attribute_type_code`), |
1167 |
KEY `categorycode` (`categorycode`), |
1168 |
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, |
1169 |
CONSTRAINT `borrower_attribute_types_categories_categorycode` FOREIGN KEY (`categorycode`) REFERENCES `categories` (`categorycode`) ON DELETE CASCADE ON UPDATE CASCADE, |
1170 |
PRIMARY KEY (`borrower_attribute_type_code`, `categorycode`) |
1171 |
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; |
1172 |
/*!40101 SET character_set_client = @saved_cs_client */; |
1173 |
|
1159 |
-- |
1174 |
-- |
1160 |
-- Table structure for table `borrower_attributes` |
1175 |
-- Table structure for table `borrower_attributes` |
1161 |
-- |
1176 |
-- |