Benjamin, Max (mb388a) | 86f04e1 | 2019-04-02 22:54:57 -0400 | [diff] [blame] | 1 | set foreign_key_checks=0; |
| 2 | DROP TABLE IF EXISTS `allotted_resource`; |
| 3 | /*!40101 SET @saved_cs_client = @@character_set_client */; |
| 4 | /*!40101 SET character_set_client = utf8 */; |
| 5 | CREATE TABLE `allotted_resource` ( |
| 6 | `MODEL_UUID` varchar(200) NOT NULL, |
| 7 | `MODEL_INVARIANT_UUID` varchar(200) NOT NULL, |
| 8 | `MODEL_VERSION` varchar(20) NOT NULL, |
| 9 | `MODEL_NAME` varchar(200) NOT NULL, |
| 10 | `TOSCA_NODE_TYPE` varchar(200) DEFAULT NULL, |
| 11 | `SUBCATEGORY` varchar(200) DEFAULT NULL, |
| 12 | `DESCRIPTION` varchar(1200) DEFAULT NULL, |
| 13 | `CREATION_TIMESTAMP` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP, |
| 14 | PRIMARY KEY (`MODEL_UUID`) |
| 15 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; |
| 16 | /*!40101 SET character_set_client = @saved_cs_client */; |
Benjamin, Max (mb388a) | 5a6a6de | 2018-07-30 15:56:09 -0400 | [diff] [blame] | 17 | |
Benjamin, Max (mb388a) | 86f04e1 | 2019-04-02 22:54:57 -0400 | [diff] [blame] | 18 | -- |
| 19 | -- Table structure for table `allotted_resource_customization` |
| 20 | -- |
Benjamin, Max (mb388a) | 5a6a6de | 2018-07-30 15:56:09 -0400 | [diff] [blame] | 21 | |
Benjamin, Max (mb388a) | 86f04e1 | 2019-04-02 22:54:57 -0400 | [diff] [blame] | 22 | DROP TABLE IF EXISTS `allotted_resource_customization`; |
| 23 | /*!40101 SET @saved_cs_client = @@character_set_client */; |
| 24 | /*!40101 SET character_set_client = utf8 */; |
| 25 | CREATE TABLE `allotted_resource_customization` ( |
| 26 | `MODEL_CUSTOMIZATION_UUID` varchar(200) NOT NULL, |
| 27 | `MODEL_INSTANCE_NAME` varchar(200) NOT NULL, |
| 28 | `PROVIDING_SERVICE_MODEL_UUID` varchar(200) DEFAULT NULL, |
| 29 | `PROVIDING_SERVICE_MODEL_INVARIANT_UUID` varchar(200) DEFAULT NULL, |
| 30 | `PROVIDING_SERVICE_MODEL_NAME` varchar(200) DEFAULT NULL, |
| 31 | `TARGET_NETWORK_ROLE` varchar(200) DEFAULT NULL, |
| 32 | `NF_TYPE` varchar(200) DEFAULT NULL, |
| 33 | `NF_ROLE` varchar(200) DEFAULT NULL, |
| 34 | `NF_FUNCTION` varchar(200) DEFAULT NULL, |
| 35 | `NF_NAMING_CODE` varchar(200) DEFAULT NULL, |
| 36 | `MIN_INSTANCES` int(11) DEFAULT NULL, |
| 37 | `MAX_INSTANCES` int(11) DEFAULT NULL, |
| 38 | `RESOURCE_INPUT` varchar(20000) DEFAULT NULL, |
| 39 | `AR_MODEL_UUID` varchar(200) NOT NULL, |
| 40 | `CREATION_TIMESTAMP` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP, |
Benjamin, Max (mb388a) | a85dc14 | 2019-01-11 21:14:32 -0500 | [diff] [blame] | 41 | PRIMARY KEY (`MODEL_CUSTOMIZATION_UUID`), |
Benjamin, Max (mb388a) | 86f04e1 | 2019-04-02 22:54:57 -0400 | [diff] [blame] | 42 | KEY `fk_allotted_resource_customization__allotted_resource1_idx` (`AR_MODEL_UUID`), |
| 43 | CONSTRAINT `fk_allotted_resource_customization__allotted_resource1` FOREIGN KEY (`AR_MODEL_UUID`) REFERENCES `allotted_resource` (`MODEL_UUID`) ON DELETE CASCADE ON UPDATE CASCADE |
Benjamin, Max (mb388a) | 5a6a6de | 2018-07-30 15:56:09 -0400 | [diff] [blame] | 44 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; |
Benjamin, Max (mb388a) | 86f04e1 | 2019-04-02 22:54:57 -0400 | [diff] [blame] | 45 | /*!40101 SET character_set_client = @saved_cs_client */; |
Benjamin, Max (mb388a) | 5a6a6de | 2018-07-30 15:56:09 -0400 | [diff] [blame] | 46 | |
Benjamin, Max (mb388a) | 86f04e1 | 2019-04-02 22:54:57 -0400 | [diff] [blame] | 47 | -- |
| 48 | -- Table structure for table `allotted_resource_customization_to_service` |
| 49 | -- |
Benjamin, Max (mb388a) | 5a6a6de | 2018-07-30 15:56:09 -0400 | [diff] [blame] | 50 | |
Benjamin, Max (mb388a) | 86f04e1 | 2019-04-02 22:54:57 -0400 | [diff] [blame] | 51 | DROP TABLE IF EXISTS `allotted_resource_customization_to_service`; |
| 52 | /*!40101 SET @saved_cs_client = @@character_set_client */; |
| 53 | /*!40101 SET character_set_client = utf8 */; |
| 54 | CREATE TABLE `allotted_resource_customization_to_service` ( |
| 55 | `SERVICE_MODEL_UUID` varchar(200) NOT NULL, |
| 56 | `RESOURCE_MODEL_CUSTOMIZATION_UUID` varchar(200) NOT NULL, |
| 57 | PRIMARY KEY (`SERVICE_MODEL_UUID`,`RESOURCE_MODEL_CUSTOMIZATION_UUID`), |
| 58 | KEY `RESOURCE_MODEL_CUSTOMIZATION_UUID` (`RESOURCE_MODEL_CUSTOMIZATION_UUID`), |
| 59 | CONSTRAINT `allotted_resource_customization_to_service_ibfk_1` FOREIGN KEY (`SERVICE_MODEL_UUID`) REFERENCES `service` (`MODEL_UUID`) ON DELETE CASCADE, |
| 60 | CONSTRAINT `allotted_resource_customization_to_service_ibfk_2` FOREIGN KEY (`RESOURCE_MODEL_CUSTOMIZATION_UUID`) REFERENCES `allotted_resource_customization` (`MODEL_CUSTOMIZATION_UUID`) ON DELETE CASCADE |
Benjamin, Max (mb388a) | 5a6a6de | 2018-07-30 15:56:09 -0400 | [diff] [blame] | 61 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; |
Benjamin, Max (mb388a) | 86f04e1 | 2019-04-02 22:54:57 -0400 | [diff] [blame] | 62 | /*!40101 SET character_set_client = @saved_cs_client */; |
Benjamin, Max (mb388a) | 5a6a6de | 2018-07-30 15:56:09 -0400 | [diff] [blame] | 63 | |
Benjamin, Max (mb388a) | 86f04e1 | 2019-04-02 22:54:57 -0400 | [diff] [blame] | 64 | -- |
| 65 | -- Table structure for table `ar_recipe` |
| 66 | -- |
| 67 | |
| 68 | DROP TABLE IF EXISTS `ar_recipe`; |
| 69 | /*!40101 SET @saved_cs_client = @@character_set_client */; |
| 70 | /*!40101 SET character_set_client = utf8 */; |
| 71 | CREATE TABLE `ar_recipe` ( |
| 72 | `ID` int(11) NOT NULL AUTO_INCREMENT, |
| 73 | `MODEL_NAME` varchar(200) NOT NULL, |
| 74 | `ACTION` varchar(200) NOT NULL, |
| 75 | `VERSION_STR` varchar(200) NOT NULL, |
| 76 | `SERVICE_TYPE` varchar(200) DEFAULT NULL, |
| 77 | `DESCRIPTION` varchar(200) DEFAULT NULL, |
| 78 | `ORCHESTRATION_URI` varchar(200) NOT NULL, |
| 79 | `AR_PARAM_XSD` varchar(200) DEFAULT NULL, |
| 80 | `RECIPE_TIMEOUT` int(11) DEFAULT NULL, |
| 81 | `CREATION_TIMESTAMP` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP, |
| 82 | PRIMARY KEY (`ID`), |
| 83 | UNIQUE KEY `uk_ar_recipe` (`MODEL_NAME`,`ACTION`,`VERSION_STR`) |
Benjamin, Max (mb388a) | a81aef2 | 2018-08-13 09:48:57 -0400 | [diff] [blame] | 84 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; |
Benjamin, Max (mb388a) | 86f04e1 | 2019-04-02 22:54:57 -0400 | [diff] [blame] | 85 | /*!40101 SET character_set_client = @saved_cs_client */; |
Benjamin, Max (mb388a) | a81aef2 | 2018-08-13 09:48:57 -0400 | [diff] [blame] | 86 | |
Benjamin, Max (mb388a) | 86f04e1 | 2019-04-02 22:54:57 -0400 | [diff] [blame] | 87 | -- |
| 88 | -- Table structure for table `building_block_detail` |
| 89 | -- |
| 90 | |
| 91 | DROP TABLE IF EXISTS `building_block_detail`; |
| 92 | /*!40101 SET @saved_cs_client = @@character_set_client */; |
| 93 | /*!40101 SET character_set_client = utf8 */; |
| 94 | CREATE TABLE `building_block_detail` ( |
| 95 | `id` int(11) NOT NULL AUTO_INCREMENT, |
| 96 | `BUILDING_BLOCK_NAME` varchar(200) NOT NULL, |
| 97 | `RESOURCE_TYPE` varchar(25) NOT NULL, |
| 98 | `TARGET_ACTION` varchar(25) NOT NULL, |
| 99 | PRIMARY KEY (`id`), |
| 100 | UNIQUE KEY `UK_building_block_name` (`BUILDING_BLOCK_NAME`) |
| 101 | ) ENGINE=InnoDB AUTO_INCREMENT=104 DEFAULT CHARSET=latin1; |
| 102 | /*!40101 SET character_set_client = @saved_cs_client */; |
| 103 | |
| 104 | -- |
| 105 | -- Table structure for table `cloud_sites` |
| 106 | -- |
| 107 | |
| 108 | DROP TABLE IF EXISTS `cloud_sites`; |
| 109 | /*!40101 SET @saved_cs_client = @@character_set_client */; |
| 110 | /*!40101 SET character_set_client = utf8 */; |
| 111 | CREATE TABLE `cloud_sites` ( |
Benjamin, Max (mb388a) | a81aef2 | 2018-08-13 09:48:57 -0400 | [diff] [blame] | 112 | `ID` varchar(50) NOT NULL, |
Benjamin, Max (mb388a) | 86f04e1 | 2019-04-02 22:54:57 -0400 | [diff] [blame] | 113 | `REGION_ID` varchar(11) DEFAULT NULL, |
| 114 | `IDENTITY_SERVICE_ID` varchar(50) DEFAULT NULL, |
| 115 | `CLOUD_VERSION` varchar(20) DEFAULT NULL, |
| 116 | `CLLI` varchar(11) DEFAULT NULL, |
| 117 | `CLOUDIFY_ID` varchar(50) DEFAULT NULL, |
| 118 | `PLATFORM` varchar(50) DEFAULT NULL, |
| 119 | `ORCHESTRATOR` varchar(50) DEFAULT NULL, |
Benjamin, Max (mb388a) | a81aef2 | 2018-08-13 09:48:57 -0400 | [diff] [blame] | 120 | `LAST_UPDATED_BY` varchar(120) DEFAULT NULL, |
Benjamin, Max (mb388a) | 86f04e1 | 2019-04-02 22:54:57 -0400 | [diff] [blame] | 121 | `CREATION_TIMESTAMP` timestamp NULL DEFAULT CURRENT_TIMESTAMP, |
| 122 | `UPDATE_TIMESTAMP` timestamp NULL DEFAULT CURRENT_TIMESTAMP, |
| 123 | PRIMARY KEY (`ID`), |
| 124 | KEY `FK_cloud_sites_identity_services` (`IDENTITY_SERVICE_ID`), |
| 125 | CONSTRAINT `FK_cloud_sites_identity_services` FOREIGN KEY (`IDENTITY_SERVICE_ID`) REFERENCES `identity_services` (`ID`) |
| 126 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; |
| 127 | /*!40101 SET character_set_client = @saved_cs_client */; |
Benjamin, Max (mb388a) | a81aef2 | 2018-08-13 09:48:57 -0400 | [diff] [blame] | 128 | |
Benjamin, Max (mb388a) | 86f04e1 | 2019-04-02 22:54:57 -0400 | [diff] [blame] | 129 | -- |
| 130 | -- Table structure for table `cloudify_managers` |
| 131 | -- |
Benjamin, Max (mb388a) | a81aef2 | 2018-08-13 09:48:57 -0400 | [diff] [blame] | 132 | |
Benjamin, Max (mb388a) | 86f04e1 | 2019-04-02 22:54:57 -0400 | [diff] [blame] | 133 | DROP TABLE IF EXISTS `cloudify_managers`; |
| 134 | /*!40101 SET @saved_cs_client = @@character_set_client */; |
| 135 | /*!40101 SET character_set_client = utf8 */; |
| 136 | CREATE TABLE `cloudify_managers` ( |
Benjamin, Max (mb388a) | a81aef2 | 2018-08-13 09:48:57 -0400 | [diff] [blame] | 137 | `ID` varchar(50) NOT NULL, |
| 138 | `CLOUDIFY_URL` varchar(200) DEFAULT NULL, |
| 139 | `USERNAME` varchar(255) DEFAULT NULL, |
| 140 | `PASSWORD` varchar(255) DEFAULT NULL, |
| 141 | `VERSION` varchar(20) DEFAULT NULL, |
| 142 | `LAST_UPDATED_BY` varchar(120) DEFAULT NULL, |
Benjamin, Max (mb388a) | 86f04e1 | 2019-04-02 22:54:57 -0400 | [diff] [blame] | 143 | `CREATION_TIMESTAMP` timestamp NULL DEFAULT CURRENT_TIMESTAMP, |
| 144 | `UPDATE_TIMESTAMP` timestamp NULL DEFAULT CURRENT_TIMESTAMP, |
Benjamin, Max (mb388a) | a81aef2 | 2018-08-13 09:48:57 -0400 | [diff] [blame] | 145 | PRIMARY KEY (`ID`) |
Benjamin, Max (mb388a) | 86f04e1 | 2019-04-02 22:54:57 -0400 | [diff] [blame] | 146 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; |
| 147 | /*!40101 SET character_set_client = @saved_cs_client */; |
Benjamin, Max (mb388a) | a81aef2 | 2018-08-13 09:48:57 -0400 | [diff] [blame] | 148 | |
Benjamin, Max (mb388a) | 86f04e1 | 2019-04-02 22:54:57 -0400 | [diff] [blame] | 149 | -- |
| 150 | -- Table structure for table `collection_network_resource_customization` |
| 151 | -- |
Benjamin, Max (mb388a) | a81aef2 | 2018-08-13 09:48:57 -0400 | [diff] [blame] | 152 | |
Benjamin, Max (mb388a) | 86f04e1 | 2019-04-02 22:54:57 -0400 | [diff] [blame] | 153 | DROP TABLE IF EXISTS `collection_network_resource_customization`; |
| 154 | /*!40101 SET @saved_cs_client = @@character_set_client */; |
| 155 | /*!40101 SET character_set_client = utf8 */; |
| 156 | CREATE TABLE `collection_network_resource_customization` ( |
| 157 | `MODEL_CUSTOMIZATION_UUID` varchar(200) NOT NULL, |
| 158 | `MODEL_INSTANCE_NAME` varchar(200) NOT NULL, |
| 159 | `NETWORK_TECHNOLOGY` varchar(45) DEFAULT NULL, |
| 160 | `NETWORK_TYPE` varchar(45) DEFAULT NULL, |
| 161 | `NETWORK_ROLE` varchar(200) DEFAULT NULL, |
| 162 | `NETWORK_SCOPE` varchar(45) DEFAULT NULL, |
| 163 | `CREATION_TIMESTAMP` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP, |
| 164 | `NETWORK_RESOURCE_MODEL_UUID` varchar(200) NOT NULL, |
| 165 | `INSTANCE_GROUP_MODEL_UUID` varchar(200) DEFAULT NULL, |
| 166 | `CRC_MODEL_CUSTOMIZATION_UUID` varchar(200) NOT NULL, |
| 167 | PRIMARY KEY (`MODEL_CUSTOMIZATION_UUID`,`CRC_MODEL_CUSTOMIZATION_UUID`), |
| 168 | KEY `fk_collection_net_resource_customization__network_resource1_idx` (`NETWORK_RESOURCE_MODEL_UUID`), |
| 169 | KEY `fk_collection_net_resource_customization__instance_group1_idx` (`INSTANCE_GROUP_MODEL_UUID`), |
| 170 | KEY `fk_col_net_res_customization__collection_res_customization_idx` (`CRC_MODEL_CUSTOMIZATION_UUID`), |
| 171 | CONSTRAINT `fk_collection_net_resource_customization__instance_group10` FOREIGN KEY (`INSTANCE_GROUP_MODEL_UUID`) REFERENCES `instance_group` (`MODEL_UUID`) ON DELETE CASCADE ON UPDATE CASCADE, |
| 172 | CONSTRAINT `fk_collection_net_resource_customization__network_resource10` FOREIGN KEY (`NETWORK_RESOURCE_MODEL_UUID`) REFERENCES `network_resource` (`MODEL_UUID`) ON DELETE CASCADE ON UPDATE CASCADE, |
| 173 | CONSTRAINT `fk_collection_network_resource_customization__collection_reso1` FOREIGN KEY (`CRC_MODEL_CUSTOMIZATION_UUID`) REFERENCES `collection_resource_customization` (`MODEL_CUSTOMIZATION_UUID`) ON DELETE CASCADE ON UPDATE CASCADE |
| 174 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; |
| 175 | /*!40101 SET character_set_client = @saved_cs_client */; |
Benjamin, Max (mb388a) | a81aef2 | 2018-08-13 09:48:57 -0400 | [diff] [blame] | 176 | |
Benjamin, Max (mb388a) | 86f04e1 | 2019-04-02 22:54:57 -0400 | [diff] [blame] | 177 | -- |
| 178 | -- Table structure for table `collection_resource` |
| 179 | -- |
| 180 | |
| 181 | DROP TABLE IF EXISTS `collection_resource`; |
| 182 | /*!40101 SET @saved_cs_client = @@character_set_client */; |
| 183 | /*!40101 SET character_set_client = utf8 */; |
| 184 | CREATE TABLE `collection_resource` ( |
| 185 | `MODEL_UUID` varchar(200) NOT NULL, |
| 186 | `MODEL_NAME` varchar(200) NOT NULL, |
| 187 | `MODEL_INVARIANT_UUID` varchar(200) NOT NULL, |
| 188 | `MODEL_VERSION` varchar(20) NOT NULL, |
| 189 | `TOSCA_NODE_TYPE` varchar(200) NOT NULL, |
| 190 | `DESCRIPTION` varchar(1200) DEFAULT NULL, |
| 191 | `CREATION_TIMESTAMP` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP, |
| 192 | PRIMARY KEY (`MODEL_UUID`) |
| 193 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; |
| 194 | /*!40101 SET character_set_client = @saved_cs_client */; |
| 195 | |
| 196 | -- |
| 197 | -- Table structure for table `collection_resource_customization` |
| 198 | -- |
| 199 | |
| 200 | DROP TABLE IF EXISTS `collection_resource_customization`; |
| 201 | /*!40101 SET @saved_cs_client = @@character_set_client */; |
| 202 | /*!40101 SET character_set_client = utf8 */; |
| 203 | CREATE TABLE `collection_resource_customization` ( |
| 204 | `MODEL_CUSTOMIZATION_UUID` varchar(200) NOT NULL, |
| 205 | `MODEL_INSTANCE_NAME` varchar(200) NOT NULL, |
| 206 | `role` varchar(200) DEFAULT NULL, |
| 207 | `object_type` varchar(200) NOT NULL, |
| 208 | `function` varchar(200) DEFAULT NULL, |
| 209 | `collection_resource_type` varchar(200) DEFAULT NULL, |
| 210 | `CREATION_TIMESTAMP` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP, |
| 211 | `CR_MODEL_UUID` varchar(200) NOT NULL, |
| 212 | PRIMARY KEY (`MODEL_CUSTOMIZATION_UUID`), |
| 213 | KEY `CR_MODEL_UUID` (`CR_MODEL_UUID`), |
| 214 | CONSTRAINT `collection_resource_customization_ibfk_1` FOREIGN KEY (`CR_MODEL_UUID`) REFERENCES `collection_resource` (`MODEL_UUID`) ON DELETE CASCADE |
| 215 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; |
| 216 | /*!40101 SET character_set_client = @saved_cs_client */; |
| 217 | |
| 218 | -- |
| 219 | -- Table structure for table `collection_resource_customization_to_service` |
| 220 | -- |
| 221 | |
| 222 | DROP TABLE IF EXISTS `collection_resource_customization_to_service`; |
| 223 | /*!40101 SET @saved_cs_client = @@character_set_client */; |
| 224 | /*!40101 SET character_set_client = utf8 */; |
| 225 | CREATE TABLE `collection_resource_customization_to_service` ( |
| 226 | `SERVICE_MODEL_UUID` varchar(200) NOT NULL, |
| 227 | `RESOURCE_MODEL_CUSTOMIZATION_UUID` varchar(200) NOT NULL, |
| 228 | PRIMARY KEY (`SERVICE_MODEL_UUID`,`RESOURCE_MODEL_CUSTOMIZATION_UUID`), |
| 229 | KEY `RESOURCE_MODEL_CUSTOMIZATION_UUID` (`RESOURCE_MODEL_CUSTOMIZATION_UUID`), |
| 230 | CONSTRAINT `collection_resource_customization_to_service_ibfk_1` FOREIGN KEY (`SERVICE_MODEL_UUID`) REFERENCES `service` (`MODEL_UUID`) ON DELETE CASCADE, |
| 231 | CONSTRAINT `collection_resource_customization_to_service_ibfk_2` FOREIGN KEY (`RESOURCE_MODEL_CUSTOMIZATION_UUID`) REFERENCES `collection_resource_customization` (`MODEL_CUSTOMIZATION_UUID`) ON DELETE CASCADE |
| 232 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; |
| 233 | /*!40101 SET character_set_client = @saved_cs_client */; |
| 234 | |
| 235 | -- |
| 236 | -- Table structure for table `collection_resource_instance_group_customization` |
| 237 | -- |
| 238 | |
| 239 | DROP TABLE IF EXISTS `collection_resource_instance_group_customization`; |
| 240 | /*!40101 SET @saved_cs_client = @@character_set_client */; |
| 241 | /*!40101 SET character_set_client = utf8 */; |
| 242 | CREATE TABLE `collection_resource_instance_group_customization` ( |
| 243 | `COLLECTION_RESOURCE_CUSTOMIZATION_MODEL_UUID` varchar(200) NOT NULL, |
| 244 | `INSTANCE_GROUP_MODEL_UUID` varchar(200) NOT NULL, |
| 245 | `FUNCTION` varchar(200) DEFAULT NULL, |
| 246 | `DESCRIPTION` varchar(1200) DEFAULT NULL, |
| 247 | `SUBINTERFACE_NETWORK_QUANTITY` int(11) DEFAULT NULL, |
| 248 | `CREATION_TIMESTAMP` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP, |
| 249 | PRIMARY KEY (`COLLECTION_RESOURCE_CUSTOMIZATION_MODEL_UUID`,`INSTANCE_GROUP_MODEL_UUID`), |
| 250 | KEY `fk_collection_resource_instance_group_customization__instan_idx` (`INSTANCE_GROUP_MODEL_UUID`), |
| 251 | CONSTRAINT `fk_collection_resource_instance_group_customization__collecti1` FOREIGN KEY (`COLLECTION_RESOURCE_CUSTOMIZATION_MODEL_UUID`) REFERENCES `collection_resource_customization` (`MODEL_CUSTOMIZATION_UUID`) ON DELETE CASCADE ON UPDATE CASCADE, |
| 252 | CONSTRAINT `fk_collection_resource_instance_group_customization__instance1` FOREIGN KEY (`INSTANCE_GROUP_MODEL_UUID`) REFERENCES `instance_group` (`MODEL_UUID`) ON DELETE CASCADE ON UPDATE CASCADE |
| 253 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; |
| 254 | /*!40101 SET character_set_client = @saved_cs_client */; |
| 255 | |
| 256 | -- |
| 257 | -- Table structure for table `configuration` |
| 258 | -- |
| 259 | |
| 260 | DROP TABLE IF EXISTS `configuration`; |
| 261 | /*!40101 SET @saved_cs_client = @@character_set_client */; |
| 262 | /*!40101 SET character_set_client = utf8 */; |
| 263 | CREATE TABLE `configuration` ( |
| 264 | `MODEL_UUID` varchar(200) NOT NULL, |
| 265 | `MODEL_INVARIANT_UUID` varchar(200) NOT NULL, |
| 266 | `MODEL_VERSION` varchar(20) NOT NULL, |
| 267 | `MODEL_NAME` varchar(200) NOT NULL, |
| 268 | `TOSCA_NODE_TYPE` varchar(200) NOT NULL, |
| 269 | `DESCRIPTION` varchar(1200) DEFAULT NULL, |
| 270 | `CREATION_TIMESTAMP` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP, |
| 271 | PRIMARY KEY (`MODEL_UUID`) |
| 272 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; |
| 273 | /*!40101 SET character_set_client = @saved_cs_client */; |
| 274 | |
| 275 | -- |
| 276 | -- Table structure for table `configuration_customization` |
| 277 | -- |
| 278 | |
| 279 | DROP TABLE IF EXISTS `configuration_customization`; |
| 280 | /*!40101 SET @saved_cs_client = @@character_set_client */; |
| 281 | /*!40101 SET character_set_client = utf8 */; |
| 282 | CREATE TABLE `configuration_customization` ( |
Benjamin, Max (mb388a) | 52039ed | 2019-04-11 13:33:09 -0400 | [diff] [blame] | 283 | `ID` int(11) NOT NULL AUTO_INCREMENT, |
Benjamin, Max (mb388a) | 86f04e1 | 2019-04-02 22:54:57 -0400 | [diff] [blame] | 284 | `MODEL_CUSTOMIZATION_UUID` varchar(200) NOT NULL, |
| 285 | `MODEL_INSTANCE_NAME` varchar(200) NOT NULL, |
| 286 | `CONFIGURATION_TYPE` varchar(200) DEFAULT NULL, |
| 287 | `CONFIGURATION_ROLE` varchar(200) DEFAULT NULL, |
| 288 | `CONFIGURATION_FUNCTION` varchar(200) DEFAULT NULL, |
| 289 | `CREATION_TIMESTAMP` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP, |
| 290 | `CONFIGURATION_MODEL_UUID` varchar(200) NOT NULL, |
| 291 | `SERVICE_PROXY_CUSTOMIZATION_MODEL_CUSTOMIZATION_UUID` varchar(200) DEFAULT NULL, |
Benjamin, Max (mb388a) | 52039ed | 2019-04-11 13:33:09 -0400 | [diff] [blame] | 292 | `CONFIGURATION_CUSTOMIZATION_MODEL_CUSTOMIZATION_ID` int(11) DEFAULT NULL, |
| 293 | `SERVICE_MODEL_UUID` varchar(200), |
| 294 | PRIMARY KEY (`ID`), |
| 295 | KEY `fk_configuration_customization__configuration_idx` (`CONFIGURATION_MODEL_UUID`), |
| 296 | KEY `fk_configuration_customization__service_idx` (`SERVICE_MODEL_UUID`), |
| 297 | UNIQUE KEY `uk_configuration_customization` (`MODEL_CUSTOMIZATION_UUID` ASC, `SERVICE_MODEL_UUID` ASC), |
| 298 | CONSTRAINT `fk_configuration_customization__configuration1` FOREIGN KEY (`CONFIGURATION_MODEL_UUID`) |
| 299 | REFERENCES `configuration` (`MODEL_UUID`) |
| 300 | ON DELETE CASCADE ON UPDATE CASCADE, |
| 301 | CONSTRAINT `fk_configuration_customization__service1` FOREIGN KEY (`SERVICE_MODEL_UUID`) |
| 302 | REFERENCES `service` (`MODEL_UUID`) |
| 303 | ON DELETE CASCADE ON UPDATE CASCADE |
Benjamin, Max (mb388a) | 86f04e1 | 2019-04-02 22:54:57 -0400 | [diff] [blame] | 304 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; |
| 305 | /*!40101 SET character_set_client = @saved_cs_client */; |
| 306 | |
| 307 | -- |
| 308 | -- Table structure for table `controller_selection_reference` |
| 309 | -- |
| 310 | |
| 311 | DROP TABLE IF EXISTS `controller_selection_reference`; |
| 312 | /*!40101 SET @saved_cs_client = @@character_set_client */; |
| 313 | /*!40101 SET character_set_client = utf8 */; |
| 314 | CREATE TABLE `controller_selection_reference` ( |
| 315 | `VNF_TYPE` varchar(50) NOT NULL, |
| 316 | `CONTROLLER_NAME` varchar(100) NOT NULL, |
| 317 | `ACTION_CATEGORY` varchar(15) NOT NULL, |
| 318 | PRIMARY KEY (`VNF_TYPE`,`CONTROLLER_NAME`,`ACTION_CATEGORY`) |
| 319 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; |
| 320 | /*!40101 SET character_set_client = @saved_cs_client */; |
| 321 | |
| 322 | -- |
| 323 | -- Table structure for table `cvnfc_configuration_customization` |
| 324 | -- |
| 325 | |
| 326 | DROP TABLE IF EXISTS `cvnfc_configuration_customization`; |
| 327 | /*!40101 SET @saved_cs_client = @@character_set_client */; |
| 328 | /*!40101 SET character_set_client = utf8 */; |
| 329 | CREATE TABLE `cvnfc_configuration_customization` ( |
| 330 | `ID` int(11) NOT NULL AUTO_INCREMENT, |
| 331 | `MODEL_CUSTOMIZATION_UUID` varchar(200) NOT NULL, |
| 332 | `MODEL_INSTANCE_NAME` varchar(200) NOT NULL, |
| 333 | `CONFIGURATION_TYPE` varchar(200) DEFAULT NULL, |
| 334 | `CONFIGURATION_ROLE` varchar(200) DEFAULT NULL, |
| 335 | `CONFIGURATION_FUNCTION` varchar(200) DEFAULT NULL, |
| 336 | `POLICY_NAME` varchar(200) DEFAULT NULL, |
| 337 | `CREATION_TIMESTAMP` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP, |
| 338 | `CONFIGURATION_MODEL_UUID` varchar(200) NOT NULL, |
| 339 | `CVNFC_CUSTOMIZATION_ID` int(11) DEFAULT NULL, |
Benjamin, Max (mb388a) | a81aef2 | 2018-08-13 09:48:57 -0400 | [diff] [blame] | 340 | PRIMARY KEY (`ID`), |
Benjamin, Max (mb388a) | 86f04e1 | 2019-04-02 22:54:57 -0400 | [diff] [blame] | 341 | KEY `fk_vnf_vfmodule_cvnfc_config_cust__configuration_idx` (`CONFIGURATION_MODEL_UUID`), |
| 342 | CONSTRAINT `fk_vnf_vfmod_cvnfc_config_cust__configuration_resource` FOREIGN KEY (`CONFIGURATION_MODEL_UUID`) REFERENCES `configuration` (`MODEL_UUID`) ON DELETE CASCADE ON UPDATE CASCADE |
| 343 | ) ENGINE=InnoDB AUTO_INCREMENT=20655 DEFAULT CHARSET=latin1; |
| 344 | /*!40101 SET character_set_client = @saved_cs_client */; |
| 345 | |
| 346 | -- |
| 347 | -- Table structure for table `cvnfc_customization` |
| 348 | -- |
| 349 | |
| 350 | DROP TABLE IF EXISTS `cvnfc_customization`; |
| 351 | /*!40101 SET @saved_cs_client = @@character_set_client */; |
| 352 | /*!40101 SET character_set_client = utf8 */; |
| 353 | CREATE TABLE `cvnfc_customization` ( |
| 354 | `ID` int(11) NOT NULL AUTO_INCREMENT, |
| 355 | `MODEL_CUSTOMIZATION_UUID` varchar(200) NOT NULL, |
| 356 | `MODEL_INSTANCE_NAME` varchar(200) NOT NULL, |
| 357 | `MODEL_UUID` varchar(200) NOT NULL, |
| 358 | `MODEL_INVARIANT_UUID` varchar(200) NOT NULL, |
| 359 | `MODEL_VERSION` varchar(20) NOT NULL, |
| 360 | `MODEL_NAME` varchar(200) NOT NULL, |
| 361 | `TOSCA_NODE_TYPE` varchar(200) NOT NULL, |
| 362 | `DESCRIPTION` varchar(1200) DEFAULT NULL, |
| 363 | `NFC_FUNCTION` varchar(200) DEFAULT NULL, |
| 364 | `NFC_NAMING_CODE` varchar(200) DEFAULT NULL, |
| 365 | `CREATION_TIMESTAMP` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP, |
| 366 | `VNFC_CUST_MODEL_CUSTOMIZATION_UUID` varchar(200) DEFAULT NULL, |
| 367 | `VF_MODULE_CUSTOMIZATION_ID` int(13) DEFAULT NULL, |
| 368 | PRIMARY KEY (`ID`), |
| 369 | KEY `fk_cvnfc_customization__vnfc_customization1_idx` (`VNFC_CUST_MODEL_CUSTOMIZATION_UUID`), |
| 370 | KEY `fk_cvnfc_customization__vnf_vfmod_cvnfc_config_cust1_idx` (`MODEL_CUSTOMIZATION_UUID`), |
| 371 | KEY `fk_cvnfc_customization_to_vf_module_resource_customization` (`VF_MODULE_CUSTOMIZATION_ID`), |
| 372 | CONSTRAINT `fk_cvnfc_customization__vnfc_customization1` FOREIGN KEY (`VNFC_CUST_MODEL_CUSTOMIZATION_UUID`) REFERENCES `vnfc_customization` (`MODEL_CUSTOMIZATION_UUID`) ON DELETE CASCADE ON UPDATE CASCADE, |
| 373 | CONSTRAINT `fk_cvnfc_customization_to_vf_module_resource_customization` FOREIGN KEY (`VF_MODULE_CUSTOMIZATION_ID`) REFERENCES `vf_module_customization` (`ID`) ON DELETE CASCADE ON UPDATE CASCADE |
| 374 | ) ENGINE=InnoDB AUTO_INCREMENT=20655 DEFAULT CHARSET=latin1; |
| 375 | /*!40101 SET character_set_client = @saved_cs_client */; |
| 376 | |
| 377 | -- |
| 378 | -- Table structure for table `external_service_to_internal_model_mapping` |
| 379 | -- |
| 380 | |
| 381 | DROP TABLE IF EXISTS `external_service_to_internal_model_mapping`; |
| 382 | /*!40101 SET @saved_cs_client = @@character_set_client */; |
| 383 | /*!40101 SET character_set_client = utf8 */; |
| 384 | CREATE TABLE `external_service_to_internal_model_mapping` ( |
| 385 | `id` int(11) NOT NULL AUTO_INCREMENT, |
| 386 | `SERVICE_NAME` varchar(200) NOT NULL, |
| 387 | `PRODUCT_FLAVOR` varchar(200) DEFAULT NULL, |
| 388 | `SUBSCRIPTION_SERVICE_TYPE` varchar(200) NOT NULL, |
| 389 | `SERVICE_MODEL_UUID` varchar(200) NOT NULL, |
| 390 | PRIMARY KEY (`id`), |
| 391 | UNIQUE KEY `UK_external_service_to_internal_model_mapping` (`SERVICE_NAME`,`PRODUCT_FLAVOR`,`SERVICE_MODEL_UUID`) |
| 392 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; |
| 393 | /*!40101 SET character_set_client = @saved_cs_client */; |
| 394 | |
| 395 | -- |
| 396 | -- Table structure for table `flyway_schema_history` |
| 397 | -- |
| 398 | |
| 399 | DROP TABLE IF EXISTS `flyway_schema_history`; |
| 400 | /*!40101 SET @saved_cs_client = @@character_set_client */; |
| 401 | /*!40101 SET character_set_client = utf8 */; |
| 402 | CREATE TABLE `flyway_schema_history` ( |
| 403 | `installed_rank` int(11) NOT NULL, |
| 404 | `version` varchar(50) DEFAULT NULL, |
| 405 | `description` varchar(200) NOT NULL, |
| 406 | `type` varchar(20) NOT NULL, |
| 407 | `script` varchar(1000) NOT NULL, |
| 408 | `checksum` int(11) DEFAULT NULL, |
| 409 | `installed_by` varchar(100) NOT NULL, |
| 410 | `installed_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, |
| 411 | `execution_time` int(11) NOT NULL, |
| 412 | `success` tinyint(1) NOT NULL, |
| 413 | PRIMARY KEY (`installed_rank`), |
| 414 | KEY `flyway_schema_history_s_idx` (`success`) |
| 415 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; |
| 416 | /*!40101 SET character_set_client = @saved_cs_client */; |
| 417 | |
| 418 | -- |
| 419 | -- Table structure for table `heat_environment` |
| 420 | -- |
| 421 | |
| 422 | DROP TABLE IF EXISTS `heat_environment`; |
| 423 | /*!40101 SET @saved_cs_client = @@character_set_client */; |
| 424 | /*!40101 SET character_set_client = utf8 */; |
| 425 | CREATE TABLE `heat_environment` ( |
| 426 | `ARTIFACT_UUID` varchar(200) NOT NULL, |
| 427 | `NAME` varchar(100) NOT NULL, |
| 428 | `VERSION` varchar(20) NOT NULL, |
| 429 | `DESCRIPTION` varchar(1200) DEFAULT NULL, |
| 430 | `BODY` longtext NOT NULL, |
| 431 | `ARTIFACT_CHECKSUM` varchar(200) NOT NULL DEFAULT 'MANUAL RECORD', |
| 432 | `CREATION_TIMESTAMP` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP, |
| 433 | PRIMARY KEY (`ARTIFACT_UUID`) |
| 434 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; |
| 435 | /*!40101 SET character_set_client = @saved_cs_client */; |
| 436 | |
| 437 | -- |
| 438 | -- Table structure for table `heat_files` |
| 439 | -- |
| 440 | |
| 441 | DROP TABLE IF EXISTS `heat_files`; |
| 442 | /*!40101 SET @saved_cs_client = @@character_set_client */; |
| 443 | /*!40101 SET character_set_client = utf8 */; |
| 444 | CREATE TABLE `heat_files` ( |
| 445 | `ARTIFACT_UUID` varchar(200) NOT NULL, |
| 446 | `NAME` varchar(200) NOT NULL, |
| 447 | `VERSION` varchar(20) NOT NULL, |
| 448 | `DESCRIPTION` varchar(1200) DEFAULT NULL, |
| 449 | `BODY` longtext NOT NULL, |
| 450 | `ARTIFACT_CHECKSUM` varchar(200) NOT NULL DEFAULT 'MANUAL RECORD', |
| 451 | `CREATION_TIMESTAMP` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP, |
| 452 | PRIMARY KEY (`ARTIFACT_UUID`) |
| 453 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; |
| 454 | /*!40101 SET character_set_client = @saved_cs_client */; |
| 455 | |
| 456 | -- |
| 457 | -- Table structure for table `heat_nested_template` |
| 458 | -- |
| 459 | |
| 460 | DROP TABLE IF EXISTS `heat_nested_template`; |
| 461 | /*!40101 SET @saved_cs_client = @@character_set_client */; |
| 462 | /*!40101 SET character_set_client = utf8 */; |
| 463 | CREATE TABLE `heat_nested_template` ( |
| 464 | `PARENT_HEAT_TEMPLATE_UUID` varchar(200) NOT NULL, |
| 465 | `CHILD_HEAT_TEMPLATE_UUID` varchar(200) NOT NULL, |
| 466 | `PROVIDER_RESOURCE_FILE` varchar(100) DEFAULT NULL, |
| 467 | PRIMARY KEY (`PARENT_HEAT_TEMPLATE_UUID`,`CHILD_HEAT_TEMPLATE_UUID`), |
| 468 | KEY `fk_heat_nested_template__heat_template2_idx` (`CHILD_HEAT_TEMPLATE_UUID`), |
| 469 | CONSTRAINT `fk_heat_nested_template__child_heat_temp_uuid__heat_template1` FOREIGN KEY (`CHILD_HEAT_TEMPLATE_UUID`) REFERENCES `heat_template` (`ARTIFACT_UUID`) ON DELETE CASCADE ON UPDATE CASCADE, |
| 470 | CONSTRAINT `fk_heat_nested_template__parent_heat_temp_uuid__heat_template1` FOREIGN KEY (`PARENT_HEAT_TEMPLATE_UUID`) REFERENCES `heat_template` (`ARTIFACT_UUID`) ON DELETE CASCADE ON UPDATE CASCADE |
| 471 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; |
| 472 | /*!40101 SET character_set_client = @saved_cs_client */; |
| 473 | |
| 474 | -- |
| 475 | -- Table structure for table `heat_template` |
| 476 | -- |
| 477 | |
| 478 | DROP TABLE IF EXISTS `heat_template`; |
| 479 | /*!40101 SET @saved_cs_client = @@character_set_client */; |
| 480 | /*!40101 SET character_set_client = utf8 */; |
| 481 | CREATE TABLE `heat_template` ( |
| 482 | `ARTIFACT_UUID` varchar(200) NOT NULL, |
| 483 | `NAME` varchar(200) NOT NULL, |
| 484 | `VERSION` varchar(20) NOT NULL, |
| 485 | `DESCRIPTION` varchar(1200) DEFAULT NULL, |
| 486 | `BODY` longtext NOT NULL, |
| 487 | `TIMEOUT_MINUTES` int(11) DEFAULT NULL, |
| 488 | `ARTIFACT_CHECKSUM` varchar(200) NOT NULL DEFAULT 'MANUAL RECORD', |
| 489 | `CREATION_TIMESTAMP` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP, |
| 490 | PRIMARY KEY (`ARTIFACT_UUID`) |
| 491 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; |
| 492 | /*!40101 SET character_set_client = @saved_cs_client */; |
| 493 | |
| 494 | -- |
| 495 | -- Table structure for table `heat_template_params` |
| 496 | -- |
| 497 | |
| 498 | DROP TABLE IF EXISTS `heat_template_params`; |
| 499 | /*!40101 SET @saved_cs_client = @@character_set_client */; |
| 500 | /*!40101 SET character_set_client = utf8 */; |
| 501 | CREATE TABLE `heat_template_params` ( |
| 502 | `HEAT_TEMPLATE_ARTIFACT_UUID` varchar(200) NOT NULL, |
| 503 | `PARAM_NAME` varchar(100) NOT NULL, |
| 504 | `IS_REQUIRED` bit(1) NOT NULL, |
| 505 | `PARAM_TYPE` varchar(20) DEFAULT NULL, |
| 506 | `PARAM_ALIAS` varchar(45) DEFAULT NULL, |
| 507 | PRIMARY KEY (`HEAT_TEMPLATE_ARTIFACT_UUID`,`PARAM_NAME`), |
| 508 | CONSTRAINT `fk_heat_template_params__heat_template1` FOREIGN KEY (`HEAT_TEMPLATE_ARTIFACT_UUID`) REFERENCES `heat_template` (`ARTIFACT_UUID`) ON DELETE CASCADE ON UPDATE CASCADE |
| 509 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; |
| 510 | /*!40101 SET character_set_client = @saved_cs_client */; |
| 511 | |
| 512 | -- |
| 513 | -- Table structure for table `identity_services` |
| 514 | -- |
| 515 | |
| 516 | DROP TABLE IF EXISTS `identity_services`; |
| 517 | /*!40101 SET @saved_cs_client = @@character_set_client */; |
| 518 | /*!40101 SET character_set_client = utf8 */; |
| 519 | CREATE TABLE `identity_services` ( |
| 520 | `ID` varchar(50) NOT NULL, |
| 521 | `IDENTITY_URL` varchar(200) DEFAULT NULL, |
| 522 | `MSO_ID` varchar(255) DEFAULT NULL, |
| 523 | `MSO_PASS` varchar(255) DEFAULT NULL, |
| 524 | `ADMIN_TENANT` varchar(50) DEFAULT NULL, |
| 525 | `MEMBER_ROLE` varchar(50) DEFAULT NULL, |
| 526 | `TENANT_METADATA` tinyint(1) DEFAULT '0', |
| 527 | `IDENTITY_SERVER_TYPE` varchar(50) DEFAULT NULL, |
| 528 | `IDENTITY_AUTHENTICATION_TYPE` varchar(50) DEFAULT NULL, |
| 529 | `LAST_UPDATED_BY` varchar(120) DEFAULT NULL, |
| 530 | `CREATION_TIMESTAMP` timestamp NULL DEFAULT CURRENT_TIMESTAMP, |
| 531 | `UPDATE_TIMESTAMP` timestamp NULL DEFAULT CURRENT_TIMESTAMP, |
| 532 | `PROJECT_DOMAIN_NAME` varchar(255) DEFAULT NULL, |
| 533 | `USER_DOMAIN_NAME` varchar(255) DEFAULT NULL, |
| 534 | PRIMARY KEY (`ID`) |
| 535 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; |
| 536 | /*!40101 SET character_set_client = @saved_cs_client */; |
| 537 | |
| 538 | -- |
| 539 | -- Table structure for table `instance_group` |
| 540 | -- |
| 541 | |
| 542 | DROP TABLE IF EXISTS `instance_group`; |
| 543 | /*!40101 SET @saved_cs_client = @@character_set_client */; |
| 544 | /*!40101 SET character_set_client = utf8 */; |
| 545 | CREATE TABLE `instance_group` ( |
| 546 | `MODEL_UUID` varchar(200) NOT NULL, |
| 547 | `MODEL_NAME` varchar(200) NOT NULL, |
| 548 | `MODEL_INVARIANT_UUID` varchar(200) NOT NULL, |
| 549 | `MODEL_VERSION` varchar(20) NOT NULL, |
| 550 | `TOSCA_NODE_TYPE` varchar(200) DEFAULT NULL, |
| 551 | `ROLE` varchar(200) NOT NULL, |
| 552 | `OBJECT_TYPE` varchar(200) NOT NULL, |
| 553 | `CREATION_TIMESTAMP` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP, |
| 554 | `CR_MODEL_UUID` varchar(200) DEFAULT NULL, |
| 555 | `INSTANCE_GROUP_TYPE` varchar(200) NOT NULL, |
| 556 | PRIMARY KEY (`MODEL_UUID`), |
| 557 | KEY `CR_MODEL_UUID` (`CR_MODEL_UUID`) |
| 558 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; |
| 559 | /*!40101 SET character_set_client = @saved_cs_client */; |
| 560 | |
| 561 | -- |
| 562 | -- Table structure for table `model` |
| 563 | -- |
| 564 | |
| 565 | DROP TABLE IF EXISTS `model`; |
| 566 | /*!40101 SET @saved_cs_client = @@character_set_client */; |
| 567 | /*!40101 SET character_set_client = utf8 */; |
| 568 | CREATE TABLE `model` ( |
| 569 | `ID` int(11) NOT NULL AUTO_INCREMENT, |
| 570 | `MODEL_CUSTOMIZATION_ID` varchar(40) DEFAULT NULL, |
| 571 | `MODEL_CUSTOMIZATION_NAME` varchar(40) DEFAULT NULL, |
| 572 | `MODEL_INVARIANT_ID` varchar(40) DEFAULT NULL, |
| 573 | `MODEL_NAME` varchar(40) DEFAULT NULL, |
| 574 | `MODEL_TYPE` varchar(20) DEFAULT NULL, |
| 575 | `MODEL_VERSION` varchar(20) DEFAULT NULL, |
| 576 | `MODEL_VERSION_ID` varchar(40) DEFAULT NULL, |
| 577 | `CREATION_TIMESTAMP` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP, |
| 578 | `RECIPE` int(11) DEFAULT NULL, |
| 579 | PRIMARY KEY (`ID`), |
| 580 | UNIQUE KEY `uk1_model` (`MODEL_TYPE`,`MODEL_VERSION_ID`), |
| 581 | KEY `RECIPE` (`RECIPE`), |
| 582 | CONSTRAINT `model_ibfk_1` FOREIGN KEY (`RECIPE`) REFERENCES `model_recipe` (`MODEL_ID`) ON DELETE CASCADE ON UPDATE CASCADE |
| 583 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; |
| 584 | /*!40101 SET character_set_client = @saved_cs_client */; |
| 585 | |
| 586 | -- |
| 587 | -- Table structure for table `model_recipe` |
| 588 | -- |
| 589 | |
| 590 | DROP TABLE IF EXISTS `model_recipe`; |
| 591 | /*!40101 SET @saved_cs_client = @@character_set_client */; |
| 592 | /*!40101 SET character_set_client = utf8 */; |
| 593 | CREATE TABLE `model_recipe` ( |
| 594 | `ID` int(11) NOT NULL AUTO_INCREMENT, |
| 595 | `MODEL_ID` int(11) DEFAULT NULL, |
| 596 | `ACTION` varchar(40) DEFAULT NULL, |
| 597 | `SCHEMA_VERSION` varchar(40) DEFAULT NULL, |
| 598 | `DESCRIPTION` varchar(40) DEFAULT NULL, |
| 599 | `ORCHESTRATION_URI` varchar(20) DEFAULT NULL, |
| 600 | `MODEL_PARAM_XSD` varchar(20) DEFAULT NULL, |
| 601 | `RECIPE_TIMEOUT` int(11) DEFAULT NULL, |
| 602 | `CREATION_TIMESTAMP` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP, |
| 603 | PRIMARY KEY (`ID`), |
| 604 | UNIQUE KEY `uk1_model_recipe` (`MODEL_ID`,`ACTION`) |
| 605 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; |
| 606 | /*!40101 SET character_set_client = @saved_cs_client */; |
| 607 | |
| 608 | -- |
| 609 | -- Table structure for table `network_recipe` |
| 610 | -- |
| 611 | |
| 612 | DROP TABLE IF EXISTS `network_recipe`; |
| 613 | /*!40101 SET @saved_cs_client = @@character_set_client */; |
| 614 | /*!40101 SET character_set_client = utf8 */; |
| 615 | CREATE TABLE `network_recipe` ( |
| 616 | `id` int(11) NOT NULL AUTO_INCREMENT, |
| 617 | `MODEL_NAME` varchar(20) NOT NULL, |
| 618 | `ACTION` varchar(50) NOT NULL, |
| 619 | `DESCRIPTION` varchar(1200) DEFAULT NULL, |
| 620 | `ORCHESTRATION_URI` varchar(256) NOT NULL, |
| 621 | `NETWORK_PARAM_XSD` varchar(2048) DEFAULT NULL, |
| 622 | `RECIPE_TIMEOUT` int(11) DEFAULT NULL, |
| 623 | `SERVICE_TYPE` varchar(45) DEFAULT NULL, |
| 624 | `CREATION_TIMESTAMP` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP, |
| 625 | `VERSION_STR` varchar(20) NOT NULL, |
| 626 | `RESOURCE_CATEGORY` varchar(200) DEFAULT NULL, |
| 627 | `RESOURCE_SUB_CATEGORY` varchar(200) DEFAULT NULL, |
| 628 | PRIMARY KEY (`id`), |
| 629 | UNIQUE KEY `UK_rl4f296i0p8lyokxveaiwkayi` (`MODEL_NAME`,`ACTION`,`VERSION_STR`) |
| 630 | ) ENGINE=InnoDB AUTO_INCREMENT=181 DEFAULT CHARSET=latin1; |
| 631 | /*!40101 SET character_set_client = @saved_cs_client */; |
| 632 | |
| 633 | -- |
| 634 | -- Table structure for table `network_resource` |
| 635 | -- |
| 636 | |
| 637 | DROP TABLE IF EXISTS `network_resource`; |
| 638 | /*!40101 SET @saved_cs_client = @@character_set_client */; |
| 639 | /*!40101 SET character_set_client = utf8 */; |
| 640 | CREATE TABLE `network_resource` ( |
| 641 | `MODEL_UUID` varchar(200) NOT NULL, |
| 642 | `MODEL_NAME` varchar(200) NOT NULL, |
| 643 | `MODEL_INVARIANT_UUID` varchar(200) DEFAULT NULL, |
| 644 | `DESCRIPTION` varchar(1200) DEFAULT NULL, |
| 645 | `HEAT_TEMPLATE_ARTIFACT_UUID` varchar(200) NULL, |
| 646 | `NEUTRON_NETWORK_TYPE` varchar(20) DEFAULT NULL, |
| 647 | `MODEL_VERSION` varchar(20) DEFAULT NULL, |
| 648 | `TOSCA_NODE_TYPE` varchar(200) DEFAULT NULL, |
| 649 | `AIC_VERSION_MIN` varchar(20) NULL, |
| 650 | `AIC_VERSION_MAX` varchar(20) DEFAULT NULL, |
| 651 | `ORCHESTRATION_MODE` varchar(20) DEFAULT 'HEAT', |
| 652 | `CREATION_TIMESTAMP` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP, |
| 653 | `RESOURCE_CATEGORY` varchar(200) DEFAULT NULL, |
| 654 | `RESOURCE_SUB_CATEGORY` varchar(200) DEFAULT NULL, |
| 655 | PRIMARY KEY (`MODEL_UUID`), |
| 656 | KEY `fk_network_resource__temp_network_heat_template_lookup1_idx` (`MODEL_NAME`), |
| 657 | KEY `fk_network_resource__heat_template1_idx` (`HEAT_TEMPLATE_ARTIFACT_UUID`), |
| 658 | CONSTRAINT `fk_network_resource__heat_template1` FOREIGN KEY (`HEAT_TEMPLATE_ARTIFACT_UUID`) REFERENCES `heat_template` (`ARTIFACT_UUID`) ON DELETE NO ACTION ON UPDATE CASCADE, |
| 659 | CONSTRAINT `fk_network_resource__temp_network_heat_template_lookup__mod_nm1` FOREIGN KEY (`MODEL_NAME`) REFERENCES `temp_network_heat_template_lookup` (`NETWORK_RESOURCE_MODEL_NAME`) ON DELETE NO ACTION ON UPDATE NO ACTION |
| 660 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; |
| 661 | /*!40101 SET character_set_client = @saved_cs_client */; |
| 662 | |
| 663 | -- |
| 664 | -- Table structure for table `network_resource_customization` |
| 665 | -- |
| 666 | |
| 667 | DROP TABLE IF EXISTS `network_resource_customization`; |
| 668 | /*!40101 SET @saved_cs_client = @@character_set_client */; |
| 669 | /*!40101 SET character_set_client = utf8 */; |
| 670 | CREATE TABLE `network_resource_customization` ( |
| 671 | `MODEL_CUSTOMIZATION_UUID` varchar(200) NOT NULL, |
| 672 | `MODEL_INSTANCE_NAME` varchar(200) NOT NULL, |
| 673 | `NETWORK_TECHNOLOGY` varchar(45) DEFAULT NULL, |
| 674 | `NETWORK_TYPE` varchar(45) DEFAULT NULL, |
| 675 | `NETWORK_ROLE` varchar(200) DEFAULT NULL, |
| 676 | `NETWORK_SCOPE` varchar(45) DEFAULT NULL, |
| 677 | `RESOURCE_INPUT` varchar(20000) DEFAULT NULL, |
| 678 | `CREATION_TIMESTAMP` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP, |
| 679 | `NETWORK_RESOURCE_MODEL_UUID` varchar(200) NOT NULL, |
| 680 | PRIMARY KEY (`MODEL_CUSTOMIZATION_UUID`), |
| 681 | KEY `fk_network_resource_customization__network_resource1_idx` (`NETWORK_RESOURCE_MODEL_UUID`), |
| 682 | CONSTRAINT `fk_network_resource_customization__network_resource1` FOREIGN KEY (`NETWORK_RESOURCE_MODEL_UUID`) REFERENCES `network_resource` (`MODEL_UUID`) ON DELETE CASCADE ON UPDATE CASCADE |
| 683 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; |
| 684 | /*!40101 SET character_set_client = @saved_cs_client */; |
| 685 | |
| 686 | -- |
| 687 | -- Table structure for table `network_resource_customization_to_service` |
| 688 | -- |
| 689 | |
| 690 | DROP TABLE IF EXISTS `network_resource_customization_to_service`; |
| 691 | /*!40101 SET @saved_cs_client = @@character_set_client */; |
| 692 | /*!40101 SET character_set_client = utf8 */; |
| 693 | CREATE TABLE `network_resource_customization_to_service` ( |
| 694 | `SERVICE_MODEL_UUID` varchar(200) NOT NULL, |
| 695 | `RESOURCE_MODEL_CUSTOMIZATION_UUID` varchar(200) NOT NULL, |
| 696 | PRIMARY KEY (`SERVICE_MODEL_UUID`,`RESOURCE_MODEL_CUSTOMIZATION_UUID`), |
| 697 | KEY `RESOURCE_MODEL_CUSTOMIZATION_UUID` (`RESOURCE_MODEL_CUSTOMIZATION_UUID`), |
| 698 | CONSTRAINT `network_resource_customization_to_service_ibfk_1` FOREIGN KEY (`SERVICE_MODEL_UUID`) REFERENCES `service` (`MODEL_UUID`) ON DELETE CASCADE, |
| 699 | CONSTRAINT `network_resource_customization_to_service_ibfk_2` FOREIGN KEY (`RESOURCE_MODEL_CUSTOMIZATION_UUID`) REFERENCES `network_resource_customization` (`MODEL_CUSTOMIZATION_UUID`) ON DELETE CASCADE |
| 700 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; |
| 701 | /*!40101 SET character_set_client = @saved_cs_client */; |
| 702 | |
| 703 | -- |
| 704 | -- Table structure for table `northbound_request_ref_lookup` |
| 705 | -- |
| 706 | |
| 707 | DROP TABLE IF EXISTS `northbound_request_ref_lookup`; |
| 708 | /*!40101 SET @saved_cs_client = @@character_set_client */; |
| 709 | /*!40101 SET character_set_client = utf8 */; |
| 710 | CREATE TABLE `northbound_request_ref_lookup` ( |
| 711 | `id` int(11) NOT NULL AUTO_INCREMENT, |
| 712 | `REQUEST_SCOPE` varchar(200) NOT NULL, |
| 713 | `MACRO_ACTION` varchar(200) NOT NULL, |
| 714 | `ACTION` varchar(200) NOT NULL, |
| 715 | `IS_ALACARTE` tinyint(1) NOT NULL DEFAULT '0', |
| 716 | `MIN_API_VERSION` double NOT NULL, |
| 717 | `MAX_API_VERSION` double DEFAULT NULL, |
| 718 | `IS_TOPLEVELFLOW` tinyint(1) DEFAULT NULL, |
| 719 | `CLOUD_OWNER` varchar(200) NOT NULL, |
Benjamin, Max (mb388a) | 7328b3f | 2019-04-21 11:11:21 -0400 | [diff] [blame^] | 720 | `service_type` varchar(50) NOT NULL, |
Benjamin, Max (mb388a) | 86f04e1 | 2019-04-02 22:54:57 -0400 | [diff] [blame] | 721 | PRIMARY KEY (`id`), |
| 722 | UNIQUE KEY `UK_northbound_request_ref_lookup` (`MIN_API_VERSION`,`REQUEST_SCOPE`,`ACTION`,`IS_ALACARTE`,`MACRO_ACTION`,`CLOUD_OWNER`) |
| 723 | ) ENGINE=InnoDB AUTO_INCREMENT=86 DEFAULT CHARSET=latin1; |
| 724 | /*!40101 SET character_set_client = @saved_cs_client */; |
| 725 | |
| 726 | -- |
| 727 | -- Table structure for table `orchestration_flow_reference` |
| 728 | -- |
| 729 | |
| 730 | DROP TABLE IF EXISTS `orchestration_flow_reference`; |
| 731 | /*!40101 SET @saved_cs_client = @@character_set_client */; |
| 732 | /*!40101 SET character_set_client = utf8 */; |
| 733 | CREATE TABLE `orchestration_flow_reference` ( |
| 734 | `id` int(11) NOT NULL AUTO_INCREMENT, |
| 735 | `COMPOSITE_ACTION` varchar(200) NOT NULL, |
| 736 | `SEQ_NO` int(11) NOT NULL, |
| 737 | `FLOW_NAME` varchar(200) NOT NULL, |
| 738 | `FLOW_VERSION` double NOT NULL, |
| 739 | `NB_REQ_REF_LOOKUP_ID` int(11) NOT NULL, |
| 740 | PRIMARY KEY (`id`), |
| 741 | UNIQUE KEY `UK_orchestration_flow_reference` (`COMPOSITE_ACTION`,`FLOW_NAME`,`SEQ_NO`,`NB_REQ_REF_LOOKUP_ID`), |
| 742 | KEY `fk_orchestration_flow_reference__northbound_req_ref_look_idx` (`NB_REQ_REF_LOOKUP_ID`), |
| 743 | KEY `fk_orchestration_flow_reference__building_block_detail` (`FLOW_NAME`), |
| 744 | CONSTRAINT `fk_orchestration_flow_reference__northbound_request_ref_look1` FOREIGN KEY (`NB_REQ_REF_LOOKUP_ID`) REFERENCES `northbound_request_ref_lookup` (`id`) ON DELETE CASCADE ON UPDATE CASCADE |
| 745 | ) ENGINE=InnoDB AUTO_INCREMENT=398 DEFAULT CHARSET=latin1; |
| 746 | /*!40101 SET character_set_client = @saved_cs_client */; |
| 747 | |
| 748 | -- |
| 749 | -- Table structure for table `orchestration_status_state_transition_directive` |
| 750 | -- |
| 751 | |
| 752 | DROP TABLE IF EXISTS `orchestration_status_state_transition_directive`; |
| 753 | /*!40101 SET @saved_cs_client = @@character_set_client */; |
| 754 | /*!40101 SET character_set_client = utf8 */; |
| 755 | CREATE TABLE `orchestration_status_state_transition_directive` ( |
| 756 | `id` int(11) NOT NULL AUTO_INCREMENT, |
| 757 | `RESOURCE_TYPE` varchar(25) NOT NULL, |
| 758 | `ORCHESTRATION_STATUS` varchar(25) NOT NULL, |
| 759 | `TARGET_ACTION` varchar(25) NOT NULL, |
| 760 | `FLOW_DIRECTIVE` varchar(25) NOT NULL, |
| 761 | PRIMARY KEY (`id`), |
| 762 | UNIQUE KEY `UK_orchestration_status_state_transition_directive` (`RESOURCE_TYPE`,`ORCHESTRATION_STATUS`,`TARGET_ACTION`) |
| 763 | ) ENGINE=InnoDB AUTO_INCREMENT=686 DEFAULT CHARSET=latin1; |
| 764 | /*!40101 SET character_set_client = @saved_cs_client */; |
| 765 | |
| 766 | -- |
| 767 | -- Table structure for table `rainy_day_handler_macro` |
| 768 | -- |
| 769 | |
| 770 | DROP TABLE IF EXISTS `rainy_day_handler_macro`; |
| 771 | /*!40101 SET @saved_cs_client = @@character_set_client */; |
| 772 | /*!40101 SET character_set_client = utf8 */; |
| 773 | CREATE TABLE `rainy_day_handler_macro` ( |
| 774 | `id` int(11) NOT NULL AUTO_INCREMENT, |
| 775 | `FLOW_NAME` varchar(200) NOT NULL, |
| 776 | `SERVICE_TYPE` varchar(200) NOT NULL, |
| 777 | `VNF_TYPE` varchar(200) NOT NULL, |
| 778 | `ERROR_CODE` varchar(200) NOT NULL, |
| 779 | `WORK_STEP` varchar(200) NOT NULL, |
| 780 | `POLICY` varchar(200) NOT NULL, |
| 781 | `SECONDARY_POLICY` varchar(200) DEFAULT NULL, |
| 782 | PRIMARY KEY (`id`) |
| 783 | ) ENGINE=InnoDB AUTO_INCREMENT=93 DEFAULT CHARSET=latin1; |
| 784 | /*!40101 SET character_set_client = @saved_cs_client */; |
| 785 | |
| 786 | -- |
| 787 | -- Table structure for table `service` |
| 788 | -- |
| 789 | |
| 790 | DROP TABLE IF EXISTS `service`; |
| 791 | /*!40101 SET @saved_cs_client = @@character_set_client */; |
| 792 | /*!40101 SET character_set_client = utf8 */; |
| 793 | CREATE TABLE `service` ( |
| 794 | `MODEL_UUID` varchar(200) NOT NULL, |
| 795 | `MODEL_NAME` varchar(200) NOT NULL, |
| 796 | `MODEL_INVARIANT_UUID` varchar(200) NOT NULL, |
| 797 | `MODEL_VERSION` varchar(20) NOT NULL, |
| 798 | `DESCRIPTION` varchar(1200) DEFAULT NULL, |
| 799 | `CREATION_TIMESTAMP` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP, |
| 800 | `TOSCA_CSAR_ARTIFACT_UUID` varchar(200) DEFAULT NULL, |
| 801 | `SERVICE_TYPE` varchar(200) DEFAULT NULL, |
| 802 | `SERVICE_ROLE` varchar(200) DEFAULT NULL, |
| 803 | `ENVIRONMENT_CONTEXT` varchar(200) DEFAULT NULL, |
| 804 | `WORKLOAD_CONTEXT` varchar(200) DEFAULT NULL, |
| 805 | `SERVICE_CATEGORY` varchar(200) DEFAULT NULL, |
| 806 | `RESOURCE_ORDER` varchar(200) default NULL, |
| 807 | PRIMARY KEY (`MODEL_UUID`), |
| 808 | KEY `fk_service__tosca_csar1_idx` (`TOSCA_CSAR_ARTIFACT_UUID`), |
| 809 | CONSTRAINT `fk_service__tosca_csar1` FOREIGN KEY (`TOSCA_CSAR_ARTIFACT_UUID`) REFERENCES `tosca_csar` (`ARTIFACT_UUID`) ON DELETE CASCADE ON UPDATE CASCADE |
| 810 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; |
| 811 | /*!40101 SET character_set_client = @saved_cs_client */; |
| 812 | |
| 813 | -- |
| 814 | -- Table structure for table `service_proxy_customization` |
| 815 | -- |
| 816 | |
| 817 | DROP TABLE IF EXISTS `service_proxy_customization`; |
| 818 | /*!40101 SET @saved_cs_client = @@character_set_client */; |
| 819 | /*!40101 SET character_set_client = utf8 */; |
| 820 | CREATE TABLE `service_proxy_customization` ( |
| 821 | `MODEL_CUSTOMIZATION_UUID` varchar(200) NOT NULL, |
| 822 | `MODEL_INSTANCE_NAME` varchar(200) NOT NULL, |
| 823 | `MODEL_UUID` varchar(200) NOT NULL, |
| 824 | `MODEL_INVARIANT_UUID` varchar(200) NOT NULL, |
| 825 | `MODEL_VERSION` varchar(20) NOT NULL, |
| 826 | `MODEL_NAME` varchar(200) NOT NULL, |
| 827 | `TOSCA_NODE_TYPE` varchar(200) NOT NULL, |
| 828 | `DESCRIPTION` varchar(1200) DEFAULT NULL, |
| 829 | `SOURCE_SERVICE_MODEL_UUID` varchar(200) NOT NULL, |
| 830 | `CREATION_TIMESTAMP` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP, |
| 831 | PRIMARY KEY (`MODEL_CUSTOMIZATION_UUID`), |
| 832 | KEY `fk_service_proxy_customization__service1_idx` (`SOURCE_SERVICE_MODEL_UUID`), |
| 833 | CONSTRAINT `fk_service_proxy_resource_customization__service1` FOREIGN KEY (`SOURCE_SERVICE_MODEL_UUID`) REFERENCES `service` (`MODEL_UUID`) ON DELETE CASCADE ON UPDATE CASCADE |
| 834 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; |
| 835 | /*!40101 SET character_set_client = @saved_cs_client */; |
| 836 | |
| 837 | -- |
| 838 | -- Table structure for table `service_proxy_customization_to_service` |
| 839 | -- |
| 840 | |
| 841 | DROP TABLE IF EXISTS `service_proxy_customization_to_service`; |
| 842 | /*!40101 SET @saved_cs_client = @@character_set_client */; |
| 843 | /*!40101 SET character_set_client = utf8 */; |
| 844 | CREATE TABLE `service_proxy_customization_to_service` ( |
| 845 | `SERVICE_MODEL_UUID` varchar(200) NOT NULL, |
| 846 | `RESOURCE_MODEL_CUSTOMIZATION_UUID` varchar(200) NOT NULL, |
| 847 | PRIMARY KEY (`SERVICE_MODEL_UUID`,`RESOURCE_MODEL_CUSTOMIZATION_UUID`) |
| 848 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; |
| 849 | /*!40101 SET character_set_client = @saved_cs_client */; |
| 850 | |
| 851 | -- |
| 852 | -- Table structure for table `service_recipe` |
| 853 | -- |
| 854 | |
| 855 | DROP TABLE IF EXISTS `service_recipe`; |
| 856 | /*!40101 SET @saved_cs_client = @@character_set_client */; |
| 857 | /*!40101 SET character_set_client = utf8 */; |
| 858 | CREATE TABLE `service_recipe` ( |
| 859 | `id` int(11) NOT NULL AUTO_INCREMENT, |
| 860 | `ACTION` varchar(50) NOT NULL, |
| 861 | `VERSION_STR` varchar(20) DEFAULT NULL, |
| 862 | `DESCRIPTION` varchar(1200) DEFAULT NULL, |
| 863 | `ORCHESTRATION_URI` varchar(256) NOT NULL, |
| 864 | `SERVICE_PARAM_XSD` varchar(2048) DEFAULT NULL, |
| 865 | `RECIPE_TIMEOUT` int(11) DEFAULT NULL, |
| 866 | `SERVICE_TIMEOUT_INTERIM` int(11) DEFAULT NULL, |
| 867 | `CREATION_TIMESTAMP` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP, |
| 868 | `SERVICE_MODEL_UUID` varchar(200) NOT NULL, |
| 869 | PRIMARY KEY (`id`), |
| 870 | UNIQUE KEY `UK_7fav5dkux2v8g9d2i5ymudlgc` (`SERVICE_MODEL_UUID`,`ACTION`), |
| 871 | KEY `fk_service_recipe__service1_idx` (`SERVICE_MODEL_UUID`), |
| 872 | CONSTRAINT `fk_service_recipe__service1` FOREIGN KEY (`SERVICE_MODEL_UUID`) REFERENCES `service` (`MODEL_UUID`) ON DELETE CASCADE ON UPDATE CASCADE |
| 873 | ) ENGINE=InnoDB AUTO_INCREMENT=93 DEFAULT CHARSET=latin1; |
| 874 | /*!40101 SET character_set_client = @saved_cs_client */; |
| 875 | |
| 876 | -- |
| 877 | -- Table structure for table `temp_network_heat_template_lookup` |
| 878 | -- |
| 879 | |
| 880 | DROP TABLE IF EXISTS `temp_network_heat_template_lookup`; |
| 881 | /*!40101 SET @saved_cs_client = @@character_set_client */; |
| 882 | /*!40101 SET character_set_client = utf8 */; |
| 883 | CREATE TABLE `temp_network_heat_template_lookup` ( |
| 884 | `NETWORK_RESOURCE_MODEL_NAME` varchar(200) NOT NULL, |
| 885 | `HEAT_TEMPLATE_ARTIFACT_UUID` varchar(200) NULL, |
| 886 | `AIC_VERSION_MIN` varchar(20) NULL, |
| 887 | `AIC_VERSION_MAX` varchar(20) DEFAULT NULL, |
| 888 | PRIMARY KEY (`NETWORK_RESOURCE_MODEL_NAME`), |
| 889 | KEY `fk_temp_network_heat_template_lookup__heat_template1_idx` (`HEAT_TEMPLATE_ARTIFACT_UUID`), |
| 890 | CONSTRAINT `fk_temp_network_heat_template_lookup__heat_template1` FOREIGN KEY (`HEAT_TEMPLATE_ARTIFACT_UUID`) REFERENCES `heat_template` (`ARTIFACT_UUID`) ON DELETE NO ACTION ON UPDATE CASCADE |
| 891 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; |
| 892 | /*!40101 SET character_set_client = @saved_cs_client */; |
| 893 | |
| 894 | -- |
| 895 | -- Table structure for table `tosca_csar` |
| 896 | -- |
| 897 | |
| 898 | DROP TABLE IF EXISTS `tosca_csar`; |
| 899 | /*!40101 SET @saved_cs_client = @@character_set_client */; |
| 900 | /*!40101 SET character_set_client = utf8 */; |
| 901 | CREATE TABLE `tosca_csar` ( |
| 902 | `ARTIFACT_UUID` varchar(200) NOT NULL, |
| 903 | `NAME` varchar(200) NOT NULL, |
| 904 | `VERSION` varchar(20) NOT NULL, |
| 905 | `DESCRIPTION` varchar(1200) DEFAULT NULL, |
| 906 | `ARTIFACT_CHECKSUM` varchar(200) NOT NULL, |
| 907 | `URL` varchar(200) NOT NULL, |
| 908 | `CREATION_TIMESTAMP` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP, |
| 909 | PRIMARY KEY (`ARTIFACT_UUID`) |
| 910 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; |
| 911 | /*!40101 SET character_set_client = @saved_cs_client */; |
| 912 | |
| 913 | -- |
| 914 | -- Table structure for table `vf_module` |
| 915 | -- |
| 916 | |
| 917 | DROP TABLE IF EXISTS `vf_module`; |
| 918 | /*!40101 SET @saved_cs_client = @@character_set_client */; |
| 919 | /*!40101 SET character_set_client = utf8 */; |
| 920 | CREATE TABLE `vf_module` ( |
| 921 | `MODEL_UUID` varchar(200) NOT NULL, |
| 922 | `MODEL_INVARIANT_UUID` varchar(200) DEFAULT NULL, |
| 923 | `MODEL_VERSION` varchar(20) NOT NULL, |
| 924 | `MODEL_NAME` varchar(200) NOT NULL, |
| 925 | `DESCRIPTION` varchar(1200) DEFAULT NULL, |
| 926 | `IS_BASE` tinyint(1) NOT NULL, |
| 927 | `HEAT_TEMPLATE_ARTIFACT_UUID` varchar(200) DEFAULT NULL, |
| 928 | `VOL_HEAT_TEMPLATE_ARTIFACT_UUID` varchar(200) DEFAULT NULL, |
| 929 | `CREATION_TIMESTAMP` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP, |
| 930 | `VNF_RESOURCE_MODEL_UUID` varchar(200) NOT NULL, |
| 931 | PRIMARY KEY (`MODEL_UUID`,`VNF_RESOURCE_MODEL_UUID`), |
| 932 | KEY `fk_vf_module__vnf_resource1_idx` (`VNF_RESOURCE_MODEL_UUID`), |
| 933 | KEY `fk_vf_module__heat_template_art_uuid__heat_template1_idx` (`HEAT_TEMPLATE_ARTIFACT_UUID`), |
| 934 | KEY `fk_vf_module__vol_heat_template_art_uuid__heat_template2_idx` (`VOL_HEAT_TEMPLATE_ARTIFACT_UUID`), |
| 935 | CONSTRAINT `fk_vf_module__heat_template_art_uuid__heat_template1` FOREIGN KEY (`HEAT_TEMPLATE_ARTIFACT_UUID`) REFERENCES `heat_template` (`ARTIFACT_UUID`) ON DELETE CASCADE ON UPDATE CASCADE, |
| 936 | CONSTRAINT `fk_vf_module__vnf_resource1` FOREIGN KEY (`VNF_RESOURCE_MODEL_UUID`) REFERENCES `vnf_resource` (`MODEL_UUID`) ON DELETE CASCADE ON UPDATE CASCADE, |
| 937 | CONSTRAINT `fk_vf_module__vol_heat_template_art_uuid__heat_template2` FOREIGN KEY (`VOL_HEAT_TEMPLATE_ARTIFACT_UUID`) REFERENCES `heat_template` (`ARTIFACT_UUID`) ON DELETE CASCADE ON UPDATE CASCADE |
| 938 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; |
| 939 | /*!40101 SET character_set_client = @saved_cs_client */; |
| 940 | |
| 941 | -- |
| 942 | -- Table structure for table `vf_module_customization` |
| 943 | -- |
| 944 | |
| 945 | DROP TABLE IF EXISTS `vf_module_customization`; |
| 946 | /*!40101 SET @saved_cs_client = @@character_set_client */; |
| 947 | /*!40101 SET character_set_client = utf8 */; |
| 948 | CREATE TABLE `vf_module_customization` ( |
| 949 | `ID` int(13) NOT NULL AUTO_INCREMENT, |
| 950 | `MODEL_CUSTOMIZATION_UUID` varchar(200) NOT NULL, |
| 951 | `LABEL` varchar(200) DEFAULT NULL, |
| 952 | `INITIAL_COUNT` int(11) DEFAULT '0', |
| 953 | `MIN_INSTANCES` int(11) DEFAULT '0', |
| 954 | `MAX_INSTANCES` int(11) DEFAULT NULL, |
| 955 | `AVAILABILITY_ZONE_COUNT` int(11) DEFAULT NULL, |
| 956 | `HEAT_ENVIRONMENT_ARTIFACT_UUID` varchar(200) DEFAULT NULL, |
| 957 | `VOL_ENVIRONMENT_ARTIFACT_UUID` varchar(200) DEFAULT NULL, |
| 958 | `CREATION_TIMESTAMP` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP, |
| 959 | `VF_MODULE_MODEL_UUID` varchar(200) NOT NULL, |
| 960 | `VNF_RESOURCE_CUSTOMIZATION_ID` int(13) DEFAULT NULL, |
| 961 | PRIMARY KEY (`ID`), |
| 962 | KEY `fk_vf_module_customization__vf_module1_idx` (`VF_MODULE_MODEL_UUID`), |
| 963 | KEY `fk_vf_module_customization__heat_env__heat_environment1_idx` (`HEAT_ENVIRONMENT_ARTIFACT_UUID`), |
| 964 | KEY `fk_vf_module_customization__vol_env__heat_environment2_idx` (`VOL_ENVIRONMENT_ARTIFACT_UUID`), |
| 965 | KEY `fk_vf_module_customization_to_vnf_resource_customization` (`VNF_RESOURCE_CUSTOMIZATION_ID`), |
| 966 | KEY `vf_module_customization_model_cust_uuid_idx` (`MODEL_CUSTOMIZATION_UUID`), |
| 967 | CONSTRAINT `fk_vf_module_customization__heat_env__heat_environment1` FOREIGN KEY (`HEAT_ENVIRONMENT_ARTIFACT_UUID`) REFERENCES `heat_environment` (`ARTIFACT_UUID`) ON DELETE CASCADE ON UPDATE CASCADE, |
| 968 | CONSTRAINT `fk_vf_module_customization__vf_module1` FOREIGN KEY (`VF_MODULE_MODEL_UUID`) REFERENCES `vf_module` (`MODEL_UUID`) ON DELETE CASCADE ON UPDATE CASCADE, |
| 969 | CONSTRAINT `fk_vf_module_customization__vol_env__heat_environment2` FOREIGN KEY (`VOL_ENVIRONMENT_ARTIFACT_UUID`) REFERENCES `heat_environment` (`ARTIFACT_UUID`) ON DELETE CASCADE ON UPDATE CASCADE, |
| 970 | CONSTRAINT `fk_vf_module_customization_to_vnf_resource_customization` FOREIGN KEY (`VNF_RESOURCE_CUSTOMIZATION_ID`) REFERENCES `vnf_resource_customization` (`ID`) ON DELETE CASCADE ON UPDATE CASCADE |
| 971 | ) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=latin1; |
| 972 | /*!40101 SET character_set_client = @saved_cs_client */; |
| 973 | |
| 974 | -- |
| 975 | -- Table structure for table `vf_module_to_heat_files` |
| 976 | -- |
| 977 | |
| 978 | DROP TABLE IF EXISTS `vf_module_to_heat_files`; |
| 979 | /*!40101 SET @saved_cs_client = @@character_set_client */; |
| 980 | /*!40101 SET character_set_client = utf8 */; |
| 981 | CREATE TABLE `vf_module_to_heat_files` ( |
| 982 | `VF_MODULE_MODEL_UUID` varchar(200) NOT NULL, |
| 983 | `HEAT_FILES_ARTIFACT_UUID` varchar(200) NOT NULL, |
| 984 | PRIMARY KEY (`VF_MODULE_MODEL_UUID`,`HEAT_FILES_ARTIFACT_UUID`), |
| 985 | KEY `fk_vf_module_to_heat_files__heat_files__artifact_uuid1_idx` (`HEAT_FILES_ARTIFACT_UUID`), |
| 986 | CONSTRAINT `fk_vf_module_to_heat_files__heat_files__artifact_uuid1` FOREIGN KEY (`HEAT_FILES_ARTIFACT_UUID`) REFERENCES `heat_files` (`ARTIFACT_UUID`) ON DELETE CASCADE ON UPDATE CASCADE, |
| 987 | CONSTRAINT `fk_vf_module_to_heat_files__vf_module__model_uuid1` FOREIGN KEY (`VF_MODULE_MODEL_UUID`) REFERENCES `vf_module` (`MODEL_UUID`) ON DELETE CASCADE ON UPDATE CASCADE |
| 988 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1 COMMENT='il fait ce qu''il dit'; |
| 989 | /*!40101 SET character_set_client = @saved_cs_client */; |
| 990 | |
| 991 | -- |
| 992 | -- Table structure for table `vnf_components` |
| 993 | -- |
| 994 | |
| 995 | DROP TABLE IF EXISTS `vnf_components`; |
| 996 | /*!40101 SET @saved_cs_client = @@character_set_client */; |
| 997 | /*!40101 SET character_set_client = utf8 */; |
| 998 | CREATE TABLE `vnf_components` ( |
| 999 | `VNF_ID` int(11) NOT NULL, |
| 1000 | `COMPONENT_TYPE` varchar(20) NOT NULL, |
| 1001 | `HEAT_TEMPLATE_ID` int(11) DEFAULT NULL, |
| 1002 | `HEAT_ENVIRONMENT_ID` int(11) DEFAULT NULL, |
| 1003 | `CREATION_TIMESTAMP` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP, |
| 1004 | PRIMARY KEY (`VNF_ID`,`COMPONENT_TYPE`) |
| 1005 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; |
| 1006 | /*!40101 SET character_set_client = @saved_cs_client */; |
| 1007 | |
| 1008 | -- |
| 1009 | -- Table structure for table `vnf_components_recipe` |
| 1010 | -- |
| 1011 | |
| 1012 | DROP TABLE IF EXISTS `vnf_components_recipe`; |
| 1013 | /*!40101 SET @saved_cs_client = @@character_set_client */; |
| 1014 | /*!40101 SET character_set_client = utf8 */; |
| 1015 | CREATE TABLE `vnf_components_recipe` ( |
| 1016 | `id` int(11) NOT NULL AUTO_INCREMENT, |
| 1017 | `VNF_TYPE` varchar(200) DEFAULT NULL, |
| 1018 | `VNF_COMPONENT_TYPE` varchar(45) NOT NULL, |
| 1019 | `ACTION` varchar(50) NOT NULL, |
| 1020 | `SERVICE_TYPE` varchar(45) DEFAULT NULL, |
| 1021 | `VERSION` varchar(20) NOT NULL, |
| 1022 | `DESCRIPTION` varchar(1200) DEFAULT NULL, |
| 1023 | `ORCHESTRATION_URI` varchar(256) NOT NULL, |
| 1024 | `VNF_COMPONENT_PARAM_XSD` varchar(2048) DEFAULT NULL, |
| 1025 | `RECIPE_TIMEOUT` int(11) DEFAULT NULL, |
| 1026 | `CREATION_TIMESTAMP` datetime DEFAULT CURRENT_TIMESTAMP, |
| 1027 | `VF_MODULE_MODEL_UUID` varchar(200) DEFAULT NULL, |
| 1028 | PRIMARY KEY (`id`), |
| 1029 | UNIQUE KEY `UK_4dpdwddaaclhc11wxsb7h59ma` (`VF_MODULE_MODEL_UUID`,`VNF_COMPONENT_TYPE`,`ACTION`,`VERSION`) |
| 1030 | ) ENGINE=InnoDB AUTO_INCREMENT=38 DEFAULT CHARSET=latin1; |
| 1031 | /*!40101 SET character_set_client = @saved_cs_client */; |
| 1032 | |
| 1033 | -- |
| 1034 | -- Table structure for table `vnf_recipe` |
| 1035 | -- |
| 1036 | |
| 1037 | DROP TABLE IF EXISTS `vnf_recipe`; |
| 1038 | /*!40101 SET @saved_cs_client = @@character_set_client */; |
| 1039 | /*!40101 SET character_set_client = utf8 */; |
| 1040 | CREATE TABLE `vnf_recipe` ( |
| 1041 | `id` int(11) NOT NULL AUTO_INCREMENT, |
| 1042 | `NF_ROLE` varchar(200) DEFAULT NULL, |
| 1043 | `ACTION` varchar(50) NOT NULL, |
| 1044 | `SERVICE_TYPE` varchar(45) DEFAULT NULL, |
| 1045 | `VERSION_STR` varchar(20) NOT NULL, |
| 1046 | `DESCRIPTION` varchar(1200) DEFAULT NULL, |
| 1047 | `ORCHESTRATION_URI` varchar(256) NOT NULL, |
| 1048 | `VNF_PARAM_XSD` varchar(2048) DEFAULT NULL, |
| 1049 | `RECIPE_TIMEOUT` int(11) DEFAULT NULL, |
| 1050 | `CREATION_TIMESTAMP` datetime DEFAULT CURRENT_TIMESTAMP, |
| 1051 | `VF_MODULE_ID` varchar(100) DEFAULT NULL, |
| 1052 | PRIMARY KEY (`id`), |
| 1053 | UNIQUE KEY `UK_f3tvqau498vrifq3cr8qnigkr` (`VF_MODULE_ID`,`ACTION`,`VERSION_STR`) |
| 1054 | ) ENGINE=InnoDB AUTO_INCREMENT=10015 DEFAULT CHARSET=latin1; |
| 1055 | /*!40101 SET character_set_client = @saved_cs_client */; |
| 1056 | |
| 1057 | -- |
| 1058 | -- Table structure for table `vnf_resource` |
| 1059 | -- |
| 1060 | |
| 1061 | DROP TABLE IF EXISTS `vnf_resource`; |
| 1062 | /*!40101 SET @saved_cs_client = @@character_set_client */; |
| 1063 | /*!40101 SET character_set_client = utf8 */; |
| 1064 | CREATE TABLE `vnf_resource` ( |
| 1065 | `ORCHESTRATION_MODE` varchar(20) NOT NULL DEFAULT 'HEAT', |
| 1066 | `DESCRIPTION` varchar(1200) DEFAULT NULL, |
| 1067 | `CREATION_TIMESTAMP` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP, |
| 1068 | `MODEL_UUID` varchar(200) NOT NULL, |
| 1069 | `AIC_VERSION_MIN` varchar(20) DEFAULT NULL, |
| 1070 | `AIC_VERSION_MAX` varchar(20) DEFAULT NULL, |
| 1071 | `MODEL_INVARIANT_UUID` varchar(200) DEFAULT NULL, |
| 1072 | `MODEL_VERSION` varchar(20) NOT NULL, |
| 1073 | `MODEL_NAME` varchar(200) DEFAULT NULL, |
| 1074 | `TOSCA_NODE_TYPE` varchar(200) DEFAULT NULL, |
| 1075 | `HEAT_TEMPLATE_ARTIFACT_UUID` varchar(200) DEFAULT NULL, |
| 1076 | `RESOURCE_CATEGORY` varchar(200) DEFAULT NULL, |
| 1077 | `RESOURCE_SUB_CATEGORY` varchar(200) DEFAULT NULL, |
| 1078 | PRIMARY KEY (`MODEL_UUID`), |
| 1079 | KEY `fk_vnf_resource__heat_template1` (`HEAT_TEMPLATE_ARTIFACT_UUID`), |
| 1080 | CONSTRAINT `fk_vnf_resource__heat_template1` FOREIGN KEY (`HEAT_TEMPLATE_ARTIFACT_UUID`) REFERENCES `heat_template` (`ARTIFACT_UUID`) ON DELETE CASCADE ON UPDATE CASCADE |
| 1081 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; |
| 1082 | /*!40101 SET character_set_client = @saved_cs_client */; |
| 1083 | |
| 1084 | -- |
| 1085 | -- Table structure for table `vnf_resource_customization` |
| 1086 | -- |
| 1087 | |
| 1088 | DROP TABLE IF EXISTS `vnf_resource_customization`; |
| 1089 | /*!40101 SET @saved_cs_client = @@character_set_client */; |
| 1090 | /*!40101 SET character_set_client = utf8 */; |
| 1091 | CREATE TABLE `vnf_resource_customization` ( |
| 1092 | `ID` int(13) NOT NULL AUTO_INCREMENT, |
| 1093 | `MODEL_CUSTOMIZATION_UUID` varchar(200) NOT NULL, |
| 1094 | `MODEL_INSTANCE_NAME` varchar(200) NOT NULL, |
| 1095 | `MIN_INSTANCES` int(11) DEFAULT NULL, |
| 1096 | `MAX_INSTANCES` int(11) DEFAULT NULL, |
| 1097 | `AVAILABILITY_ZONE_MAX_COUNT` int(11) DEFAULT NULL, |
| 1098 | `NF_TYPE` varchar(200) DEFAULT NULL, |
| 1099 | `NF_ROLE` varchar(200) DEFAULT NULL, |
| 1100 | `NF_FUNCTION` varchar(200) DEFAULT NULL, |
| 1101 | `NF_NAMING_CODE` varchar(200) DEFAULT NULL, |
| 1102 | `MULTI_STAGE_DESIGN` varchar(20) DEFAULT NULL, |
| 1103 | `RESOURCE_INPUT` varchar(20000) DEFAULT NULL, |
| 1104 | `CDS_BLUEPRINT_NAME` varchar(200) default null, |
| 1105 | `CDS_BLUEPRINT_VERSION` varchar(20) default null, |
eeginux | fccb6ec | 2019-04-02 14:11:08 +0100 | [diff] [blame] | 1106 | `SKIP_POST_INSTANTIATION_CONFIGURATION` boolean default true, |
Benjamin, Max (mb388a) | 86f04e1 | 2019-04-02 22:54:57 -0400 | [diff] [blame] | 1107 | `CREATION_TIMESTAMP` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP, |
| 1108 | `VNF_RESOURCE_MODEL_UUID` varchar(200) NOT NULL, |
| 1109 | `SERVICE_MODEL_UUID` varchar(200) NOT NULL, |
| 1110 | PRIMARY KEY (`ID`), |
| 1111 | UNIQUE KEY `UK_vnf_resource_customization` (`MODEL_CUSTOMIZATION_UUID`,`SERVICE_MODEL_UUID`), |
| 1112 | KEY `fk_vnf_resource_customization__vnf_resource1_idx` (`VNF_RESOURCE_MODEL_UUID`), |
| 1113 | KEY `fk_vnf_resource_customization_to_service` (`SERVICE_MODEL_UUID`), |
| 1114 | KEY `vnf_resource_customization_mod_cust_uuid_idx` (`MODEL_CUSTOMIZATION_UUID`), |
| 1115 | CONSTRAINT `fk_vnf_resource_customization__vnf_resource1` FOREIGN KEY (`VNF_RESOURCE_MODEL_UUID`) REFERENCES `vnf_resource` (`MODEL_UUID`) ON DELETE CASCADE ON UPDATE CASCADE, |
| 1116 | CONSTRAINT `fk_vnf_resource_customization_to_service` FOREIGN KEY (`SERVICE_MODEL_UUID`) REFERENCES `service` (`MODEL_UUID`) ON DELETE CASCADE ON UPDATE CASCADE |
| 1117 | ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=latin1; |
| 1118 | /*!40101 SET character_set_client = @saved_cs_client */; |
| 1119 | |
| 1120 | -- |
| 1121 | -- Table structure for table `vnfc_customization` |
| 1122 | -- |
| 1123 | |
| 1124 | DROP TABLE IF EXISTS `vnfc_customization`; |
| 1125 | /*!40101 SET @saved_cs_client = @@character_set_client */; |
| 1126 | /*!40101 SET character_set_client = utf8 */; |
| 1127 | CREATE TABLE `vnfc_customization` ( |
| 1128 | `MODEL_CUSTOMIZATION_UUID` varchar(200) NOT NULL, |
| 1129 | `MODEL_INSTANCE_NAME` varchar(200) NOT NULL, |
| 1130 | `MODEL_UUID` varchar(200) NOT NULL, |
| 1131 | `MODEL_INVARIANT_UUID` varchar(200) NOT NULL, |
| 1132 | `MODEL_VERSION` varchar(20) NOT NULL, |
| 1133 | `MODEL_NAME` varchar(200) NOT NULL, |
| 1134 | `TOSCA_NODE_TYPE` varchar(200) NOT NULL, |
| 1135 | `DESCRIPTION` varchar(1200) DEFAULT NULL, |
| 1136 | `CREATION_TIMESTAMP` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP, |
| 1137 | PRIMARY KEY (`MODEL_CUSTOMIZATION_UUID`) |
| 1138 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; |
| 1139 | /*!40101 SET character_set_client = @saved_cs_client */; |
| 1140 | |
| 1141 | -- |
| 1142 | -- Table structure for table `vnfc_instance_group_customization` |
| 1143 | -- |
| 1144 | |
| 1145 | DROP TABLE IF EXISTS `vnfc_instance_group_customization`; |
| 1146 | /*!40101 SET @saved_cs_client = @@character_set_client */; |
| 1147 | /*!40101 SET character_set_client = utf8 */; |
| 1148 | CREATE TABLE `vnfc_instance_group_customization` ( |
| 1149 | `ID` int(13) NOT NULL AUTO_INCREMENT PRIMARY KEY, |
| 1150 | `VNF_RESOURCE_CUSTOMIZATION_ID` int(13) NOT NULL, |
| 1151 | `INSTANCE_GROUP_MODEL_UUID` varchar(200) NOT NULL, |
| 1152 | `FUNCTION` varchar(200) DEFAULT NULL, |
| 1153 | `DESCRIPTION` varchar(1200) DEFAULT NULL, |
| 1154 | `CREATION_TIMESTAMP` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP, |
| 1155 | KEY `fk_vnfc_instance_group_customization__instance_group1_idx` (`INSTANCE_GROUP_MODEL_UUID`), |
| 1156 | CONSTRAINT `fk_vnfc_instance_group_customization__instance_group1` FOREIGN KEY (`INSTANCE_GROUP_MODEL_UUID`) REFERENCES `instance_group` (`MODEL_UUID`) ON DELETE CASCADE ON UPDATE CASCADE, |
| 1157 | CONSTRAINT `fk_vnfc_instance_group_customization_vnf_customization` FOREIGN KEY (`VNF_RESOURCE_CUSTOMIZATION_ID`) REFERENCES `vnf_resource_customization` (`ID`) ON DELETE CASCADE ON UPDATE CASCADE |
| 1158 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; |
| 1159 | set foreign_key_checks=1; |
| 1160 | |
| 1161 | CREATE TABLE IF NOT EXISTS `pnf_resource` ( |
| 1162 | `ORCHESTRATION_MODE` varchar(20) NOT NULL DEFAULT 'HEAT', |
| 1163 | `DESCRIPTION` varchar(1200) DEFAULT NULL, |
| 1164 | `CREATION_TIMESTAMP` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP, |
| 1165 | `MODEL_UUID` varchar(200) NOT NULL, |
| 1166 | `MODEL_INVARIANT_UUID` varchar(200) DEFAULT NULL, |
| 1167 | `MODEL_VERSION` varchar(20) NOT NULL, |
| 1168 | `MODEL_NAME` varchar(200) DEFAULT NULL, |
| 1169 | `TOSCA_NODE_TYPE` varchar(200) DEFAULT NULL, |
| 1170 | `RESOURCE_CATEGORY` varchar(200) DEFAULT NULL, |
| 1171 | `RESOURCE_SUB_CATEGORY` varchar(200) DEFAULT NULL, |
| 1172 | PRIMARY KEY (`MODEL_UUID`) |
| 1173 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; |
| 1174 | |
| 1175 | CREATE TABLE IF NOT EXISTS `pnf_resource_customization` ( |
| 1176 | `MODEL_CUSTOMIZATION_UUID` varchar(200) NOT NULL, |
| 1177 | `MODEL_INSTANCE_NAME` varchar(200) NOT NULL, |
| 1178 | `NF_TYPE` varchar(200) DEFAULT NULL, |
| 1179 | `NF_ROLE` varchar(200) DEFAULT NULL, |
| 1180 | `NF_FUNCTION` varchar(200) DEFAULT NULL, |
| 1181 | `NF_NAMING_CODE` varchar(200) DEFAULT NULL, |
| 1182 | `CREATION_TIMESTAMP` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP, |
| 1183 | `PNF_RESOURCE_MODEL_UUID` varchar(200) NOT NULL, |
| 1184 | `MULTI_STAGE_DESIGN` varchar(20) DEFAULT NULL, |
| 1185 | `RESOURCE_INPUT` varchar(2000) DEFAULT NULL, |
| 1186 | `CDS_BLUEPRINT_NAME` varchar(200) DEFAULT NULL, |
| 1187 | `CDS_BLUEPRINT_VERSION` varchar(20) DEFAULT NULL, |
eeginux | fccb6ec | 2019-04-02 14:11:08 +0100 | [diff] [blame] | 1188 | `SKIP_POST_INSTANTIATION_CONFIGURATION` boolean default true, |
Benjamin, Max (mb388a) | 86f04e1 | 2019-04-02 22:54:57 -0400 | [diff] [blame] | 1189 | PRIMARY KEY (`MODEL_CUSTOMIZATION_UUID`), |
| 1190 | KEY `fk_pnf_resource_customization__pnf_resource1_idx` (`PNF_RESOURCE_MODEL_UUID`), |
| 1191 | CONSTRAINT `fk_pnf_resource_customization__pnf_resource1` FOREIGN KEY (`PNF_RESOURCE_MODEL_UUID`) REFERENCES `pnf_resource` (`MODEL_UUID`) ON DELETE CASCADE ON UPDATE CASCADE |
| 1192 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; |
| 1193 | |
| 1194 | CREATE TABLE IF NOT EXISTS `pnf_resource_customization_to_service` ( |
| 1195 | `SERVICE_MODEL_UUID` varchar(200) NOT NULL, |
| 1196 | `RESOURCE_MODEL_CUSTOMIZATION_UUID` varchar(200) NOT NULL, |
| 1197 | PRIMARY KEY (`SERVICE_MODEL_UUID`,`RESOURCE_MODEL_CUSTOMIZATION_UUID`) |
| 1198 | )ENGINE=InnoDB DEFAULT CHARSET=latin1; |
Elena Kuleshov | eeaa957 | 2019-04-08 01:17:53 -0400 | [diff] [blame] | 1199 | |
Benjamin, Max (mb388a) | 7328b3f | 2019-04-21 11:11:21 -0400 | [diff] [blame^] | 1200 | CREATE TABLE IF NOT EXISTS `homing_instances` ( |
| 1201 | `SERVICE_INSTANCE_ID` varchar(50) NOT NULL, |
| 1202 | `CLOUD_OWNER` VARCHAR(200) NOT NULL, |
| 1203 | `CLOUD_REGION_ID` VARCHAR(200) NOT NULL, |
| 1204 | `OOF_DIRECTIVES` longtext NULL DEFAULT NULL, |
| 1205 | PRIMARY KEY (`SERVICE_INSTANCE_ID`) |
| 1206 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; |
| 1207 | |
Elena Kuleshov | eeaa957 | 2019-04-08 01:17:53 -0400 | [diff] [blame] | 1208 | CREATE TABLE IF NOT EXISTS `workflow` ( |
| 1209 | `ID` int(11) NOT NULL AUTO_INCREMENT, |
| 1210 | `ARTIFACT_UUID` varchar(200) NOT NULL, |
| 1211 | `ARTIFACT_NAME` varchar(200) NOT NULL, |
| 1212 | `NAME` varchar(200) NOT NULL, |
| 1213 | `OPERATION_NAME` varchar(200) DEFAULT NULL, |
| 1214 | `VERSION` double NOT NULL, |
| 1215 | `DESCRIPTION` varchar(1200) DEFAULT NULL, |
| 1216 | `BODY` longtext DEFAULT NULL, |
| 1217 | `RESOURCE_TARGET` varchar(200) NOT NULL, |
| 1218 | `SOURCE` varchar(200) NOT NULL, |
| 1219 | `TIMEOUT_MINUTES` int(11) DEFAULT NULL, |
| 1220 | `ARTIFACT_CHECKSUM` varchar(200) DEFAULT 'MANUAL RECORD', |
| 1221 | `CREATION_TIMESTAMP` datetime NOT NULL DEFAULT current_timestamp(), |
| 1222 | PRIMARY KEY (`ID`), |
| 1223 | UNIQUE KEY `UK_workflow` (`ARTIFACT_UUID`,`NAME`,`VERSION`,`SOURCE`) |
| 1224 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; |
| 1225 | |
| 1226 | CREATE TABLE IF NOT EXISTS `vnf_resource_to_workflow` ( |
| 1227 | `ID` int(11) NOT NULL AUTO_INCREMENT, |
| 1228 | `VNF_RESOURCE_MODEL_UUID` varchar(200) NOT NULL, |
| 1229 | `WORKFLOW_ID` int(11) NOT NULL, |
| 1230 | PRIMARY KEY (`ID`), |
| 1231 | UNIQUE KEY `UK_vnf_resource_to_workflow` (`VNF_RESOURCE_MODEL_UUID`,`WORKFLOW_ID`), |
| 1232 | KEY `fk_vnf_resource_to_workflow__workflow1_idx` (`WORKFLOW_ID`), |
| 1233 | KEY `fk_vnf_resource_to_workflow__vnf_res_mod_uuid_idx` (`VNF_RESOURCE_MODEL_UUID`), |
| 1234 | CONSTRAINT `fk_vnf_resource_to_workflow__vnf_resource1` FOREIGN KEY (`VNF_RESOURCE_MODEL_UUID`) REFERENCES `vnf_resource` (`MODEL_UUID`) ON DELETE CASCADE ON UPDATE CASCADE, |
| 1235 | CONSTRAINT `fk_vnf_resource_to_workflow__workflow1` FOREIGN KEY (`WORKFLOW_ID`) REFERENCES `workflow` (`ID`) ON DELETE CASCADE ON UPDATE CASCADE |
| 1236 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; |
| 1237 | |
Benjamin, Max (mb388a) | 7328b3f | 2019-04-21 11:11:21 -0400 | [diff] [blame^] | 1238 | CREATE TABLE IF NOT EXISTS `activity_spec` ( |
| 1239 | `ID` INT(11) NOT NULL AUTO_INCREMENT, |
| 1240 | `NAME` VARCHAR(200) NOT NULL, |
| 1241 | `DESCRIPTION` VARCHAR(1200) NOT NULL, |
| 1242 | `VERSION` DOUBLE NOT NULL, |
| 1243 | `CREATION_TIMESTAMP` DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP, |
| 1244 | PRIMARY KEY (`ID`), |
| 1245 | UNIQUE INDEX `UK_activity_spec` (`NAME` ASC, `VERSION` ASC)) |
| 1246 | ENGINE = InnoDB |
| 1247 | DEFAULT CHARACTER SET = latin1; |
Elena Kuleshov | eeaa957 | 2019-04-08 01:17:53 -0400 | [diff] [blame] | 1248 | |
Benjamin, Max (mb388a) | 7328b3f | 2019-04-21 11:11:21 -0400 | [diff] [blame^] | 1249 | CREATE TABLE IF NOT EXISTS `user_parameters` ( |
| 1250 | `ID` INT(11) NOT NULL AUTO_INCREMENT, |
| 1251 | `NAME` VARCHAR(200) NOT NULL, |
| 1252 | `PAYLOAD_LOCATION` VARCHAR(500) NULL, |
| 1253 | `LABEL` VARCHAR(200) NOT NULL, |
| 1254 | `TYPE` VARCHAR(200) NOT NULL, |
| 1255 | `DESCRIPTION` VARCHAR(1200) NULL, |
| 1256 | `IS_REQUIRED` TINYINT(1) NOT NULL, |
| 1257 | `MAX_LENGTH` INT(11) NULL, |
| 1258 | `ALLOWABLE_CHARS` VARCHAR(200) NULL, |
| 1259 | `CREATION_TIMESTAMP` DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP, |
| 1260 | PRIMARY KEY (`ID`), |
| 1261 | UNIQUE INDEX `UK_user_parameters` (`NAME` ASC)) |
| 1262 | ENGINE = InnoDB |
| 1263 | DEFAULT CHARACTER SET = latin1; |
| 1264 | |
| 1265 | CREATE TABLE IF NOT EXISTS `workflow_activity_spec_sequence` ( |
| 1266 | `ID` INT(11) NOT NULL AUTO_INCREMENT, |
| 1267 | `WORKFLOW_ID` INT(11) NOT NULL, |
| 1268 | `ACTIVITY_SPEC_ID` INT(11) NOT NULL, |
| 1269 | `SEQ_NO` INT(11) NOT NULL, |
| 1270 | PRIMARY KEY (`ID`), |
| 1271 | UNIQUE INDEX `UK_workflow_activity_spec_sequence` (`WORKFLOW_ID` ASC, `ACTIVITY_SPEC_ID` ASC, `SEQ_NO` ASC), |
| 1272 | INDEX `fk_workflow_activity_spec_sequence__activity_spec_idx` (`ACTIVITY_SPEC_ID` ASC), |
| 1273 | INDEX `fk_workflow_activity_spec_sequence__workflow_actifact_uuid_idx` (`WORKFLOW_ID` ASC), |
| 1274 | CONSTRAINT `fk_workflow_activity_spec_sequence__activity_spec1` |
| 1275 | FOREIGN KEY (`ACTIVITY_SPEC_ID`) |
| 1276 | REFERENCES `activity_spec` (`ID`) |
| 1277 | ON DELETE CASCADE |
| 1278 | ON UPDATE CASCADE, |
| 1279 | CONSTRAINT `fk_workflow_activity_spec_sequence__workflow1` |
| 1280 | FOREIGN KEY (`WORKFLOW_ID`) |
| 1281 | REFERENCES `workflow` (`ID`) |
| 1282 | ON DELETE CASCADE |
| 1283 | ON UPDATE CASCADE) |
| 1284 | ENGINE = InnoDB |
| 1285 | DEFAULT CHARACTER SET = latin1; |
| 1286 | |
| 1287 | CREATE TABLE IF NOT EXISTS `activity_spec_parameters` ( |
| 1288 | `ID` INT(11) NOT NULL AUTO_INCREMENT, |
| 1289 | `NAME` VARCHAR(200) NOT NULL, |
| 1290 | `TYPE` VARCHAR(200) NOT NULL, |
| 1291 | `DIRECTION` VARCHAR(200) NULL, |
| 1292 | `DESCRIPTION` VARCHAR(1200) NULL, |
| 1293 | `CREATION_TIMESTAMP` DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP, |
| 1294 | PRIMARY KEY (`ID`), |
| 1295 | UNIQUE INDEX `UK_activity_spec_parameters` (`NAME` ASC, `DIRECTION` ASC)) |
| 1296 | ENGINE = InnoDB |
| 1297 | DEFAULT CHARACTER SET = latin1; |
| 1298 | |
| 1299 | CREATE TABLE IF NOT EXISTS `activity_spec_categories` ( |
| 1300 | `ID` INT(11) NOT NULL AUTO_INCREMENT, |
| 1301 | `NAME` VARCHAR(200) NOT NULL, |
| 1302 | PRIMARY KEY (`ID`), |
| 1303 | UNIQUE INDEX `UK_activity_spec_categories` (`NAME` ASC)) |
| 1304 | ENGINE = InnoDB |
| 1305 | DEFAULT CHARACTER SET = latin1; |
| 1306 | |
| 1307 | CREATE TABLE IF NOT EXISTS `activity_spec_to_activity_spec_categories` ( |
| 1308 | `ID` INT(11) NOT NULL AUTO_INCREMENT, |
| 1309 | `ACTIVITY_SPEC_ID` INT(11) NOT NULL, |
| 1310 | `ACTIVITY_SPEC_CATEGORIES_ID` INT(11) NOT NULL, |
| 1311 | PRIMARY KEY (`ID`), |
| 1312 | UNIQUE INDEX `UK_activity_spec_to_activity_spec_categories` (`ACTIVITY_SPEC_ID` ASC, `ACTIVITY_SPEC_CATEGORIES_ID` ASC), |
| 1313 | INDEX `fk_activity_spec_to_activity_spec_categories__activity_spec_idx` (`ACTIVITY_SPEC_CATEGORIES_ID` ASC), |
| 1314 | INDEX `fk_activity_spec_to_activity_spec_categories__activity_spec_idx1` (`ACTIVITY_SPEC_ID` ASC), |
| 1315 | CONSTRAINT `fk_activity_spec_to_activity_spec_categories__activity_spec1` |
| 1316 | FOREIGN KEY (`ACTIVITY_SPEC_ID`) |
| 1317 | REFERENCES `activity_spec` (`ID`) |
| 1318 | ON DELETE CASCADE |
| 1319 | ON UPDATE CASCADE, |
| 1320 | CONSTRAINT `fk_activity_spec_to_activity_spec_categories__activity_spec_c1` |
| 1321 | FOREIGN KEY (`ACTIVITY_SPEC_CATEGORIES_ID`) |
| 1322 | REFERENCES `activity_spec_categories` (`ID`) |
| 1323 | ON DELETE CASCADE |
| 1324 | ON UPDATE CASCADE) |
| 1325 | ENGINE = InnoDB |
| 1326 | DEFAULT CHARACTER SET = latin1; |
| 1327 | |
| 1328 | CREATE TABLE IF NOT EXISTS `activity_spec_to_activity_spec_parameters` ( |
| 1329 | `ID` INT(11) NOT NULL AUTO_INCREMENT, |
| 1330 | `ACTIVITY_SPEC_ID` INT(11) NOT NULL, |
| 1331 | `ACTIVITY_SPEC_PARAMETERS_ID` INT(11) NOT NULL, |
| 1332 | PRIMARY KEY (`ID`), |
| 1333 | INDEX `fk_activity_spec_to_activity_spec_params__act_sp_param_id_idx` (`ACTIVITY_SPEC_PARAMETERS_ID` ASC), |
| 1334 | UNIQUE INDEX `UK_activity_spec_to_activity_spec_parameters` (`ACTIVITY_SPEC_ID` ASC, `ACTIVITY_SPEC_PARAMETERS_ID` ASC), |
| 1335 | INDEX `fk_activity_spec_to_activity_spec_parameters__act_spec_id_idx` (`ACTIVITY_SPEC_ID` ASC), |
| 1336 | CONSTRAINT `fk_activity_spec_to_activity_spec_parameters__activity_spec_1` |
| 1337 | FOREIGN KEY (`ACTIVITY_SPEC_ID`) |
| 1338 | REFERENCES `activity_spec` (`ID`) |
| 1339 | ON DELETE CASCADE |
| 1340 | ON UPDATE CASCADE, |
| 1341 | CONSTRAINT `fk_activity_spec_to_activity_spec_parameters__activ_spec_param1` |
| 1342 | FOREIGN KEY (`ACTIVITY_SPEC_PARAMETERS_ID`) |
| 1343 | REFERENCES `activity_spec_parameters` (`ID`) |
| 1344 | ON DELETE CASCADE |
| 1345 | ON UPDATE CASCADE) |
| 1346 | ENGINE = InnoDB |
| 1347 | DEFAULT CHARACTER SET = latin1; |
| 1348 | |
| 1349 | CREATE TABLE IF NOT EXISTS `activity_spec_to_user_parameters` ( |
| 1350 | `ID` INT(11) NOT NULL AUTO_INCREMENT, |
| 1351 | `ACTIVITY_SPEC_ID` INT(11) NOT NULL, |
| 1352 | `USER_PARAMETERS_ID` INT(11) NOT NULL, |
| 1353 | PRIMARY KEY (`ID`), |
| 1354 | UNIQUE INDEX `UK_activity_spec_to_user_parameters` (`ACTIVITY_SPEC_ID` ASC, `USER_PARAMETERS_ID` ASC), |
| 1355 | INDEX `fk_activity_spec_to_user_parameters__user_parameters1_idx` (`USER_PARAMETERS_ID` ASC), |
| 1356 | INDEX `fk_activity_spec_to_user_parameters__activity_spec1_idx` (`ACTIVITY_SPEC_ID` ASC), |
| 1357 | CONSTRAINT `fk_activity_spec_to_user_parameters__activity_spec1` |
| 1358 | FOREIGN KEY (`ACTIVITY_SPEC_ID`) |
| 1359 | REFERENCES `activity_spec` (`ID`) |
| 1360 | ON DELETE CASCADE |
| 1361 | ON UPDATE CASCADE, |
| 1362 | CONSTRAINT `fk_activity_spec_to_user_parameters__user_parameters1` |
| 1363 | FOREIGN KEY (`USER_PARAMETERS_ID`) |
| 1364 | REFERENCES `user_parameters` (`ID`) |
| 1365 | ON DELETE CASCADE |
| 1366 | ON UPDATE CASCADE) |
| 1367 | ENGINE = InnoDB |
| 1368 | DEFAULT CHARACTER SET = latin1; |