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