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