Benjamin, Max (mb388a) | 5a6a6de | 2018-07-30 15:56:09 -0400 | [diff] [blame] | 1 | |
| 2 | |
| 3 | CREATE TABLE IF NOT EXISTS `northbound_request_ref_lookup` ( |
| 4 | `id` INT(11) NOT NULL AUTO_INCREMENT, |
| 5 | `REQUEST_SCOPE` VARCHAR(200) NOT NULL, |
| 6 | `MACRO_ACTION` VARCHAR(200) NOT NULL, |
| 7 | `ACTION` VARCHAR(200) NOT NULL, |
| 8 | `IS_ALACARTE` TINYINT(1) NOT NULL DEFAULT 0, |
| 9 | `IS_TOPLEVELFLOW` TINYINT(1) NOT NULL DEFAULT 0, |
| 10 | `MIN_API_VERSION` DOUBLE NOT NULL, |
| 11 | `MAX_API_VERSION` DOUBLE NULL, |
| 12 | PRIMARY KEY (`id`), |
| 13 | UNIQUE INDEX `UK_northbound_request_ref_lookup` (`MIN_API_VERSION` ASC, `REQUEST_SCOPE` ASC, `ACTION` ASC, `IS_ALACARTE` ASC, `MACRO_ACTION` ASC)) |
| 14 | ENGINE = InnoDB |
| 15 | DEFAULT CHARACTER SET = latin1; |
| 16 | |
| 17 | CREATE TABLE IF NOT EXISTS building_block_detail ( |
| 18 | id INT(11) AUTO_INCREMENT, |
| 19 | BUILDING_BLOCK_NAME VARCHAR(200) NOT NULL, |
| 20 | RESOURCE_TYPE VARCHAR(25) NOT NULL, |
| 21 | TARGET_ACTION VARCHAR(25) NOT NULL, |
| 22 | PRIMARY KEY(`id`), |
| 23 | UNIQUE INDEX `UK_building_block_name`(`BUILDING_BLOCK_NAME`)) |
| 24 | ENGINE = InnoDB |
| 25 | DEFAULT CHARACTER SET = latin1; |
| 26 | |
| 27 | CREATE TABLE IF NOT EXISTS `orchestration_flow_reference` ( |
| 28 | `id` INT(11) NOT NULL AUTO_INCREMENT, |
| 29 | `COMPOSITE_ACTION` VARCHAR(200) NOT NULL, |
| 30 | `SEQ_NO` INT(11) NOT NULL, |
| 31 | `FLOW_NAME` VARCHAR(200) NOT NULL, |
| 32 | `FLOW_VERSION` DOUBLE NOT NULL, |
| 33 | `NB_REQ_REF_LOOKUP_ID` INT(11) NOT NULL, |
| 34 | PRIMARY KEY (`id`), |
| 35 | INDEX `fk_orchestration_flow_reference__northbound_req_ref_look_idx` (`NB_REQ_REF_LOOKUP_ID` ASC), |
| 36 | UNIQUE INDEX `UK_orchestration_flow_reference` (`COMPOSITE_ACTION` ASC, `FLOW_NAME` ASC, `SEQ_NO` ASC, `NB_REQ_REF_LOOKUP_ID` ASC), |
| 37 | CONSTRAINT `fk_orchestration_flow_reference__northbound_request_ref_look1` |
| 38 | FOREIGN KEY (`NB_REQ_REF_LOOKUP_ID`) REFERENCES `northbound_request_ref_lookup` (`id`) |
| 39 | ON DELETE CASCADE ON UPDATE CASCADE |
| 40 | ) |
| 41 | ENGINE = InnoDB DEFAULT CHARACTER SET = latin1; |
| 42 | |
| 43 | create table `allotted_resource` ( |
| 44 | `model_uuid` varchar(200) not null, |
| 45 | `model_invariant_uuid` varchar(200) not null, |
| 46 | `model_version` varchar(20) not null, |
| 47 | `model_name` varchar(200) not null, |
| 48 | `tosca_node_type` varchar(200) default null, |
| 49 | `subcategory` varchar(200) default null, |
| 50 | `description` varchar(1200) default null, |
| 51 | `creation_timestamp` datetime not null default current_timestamp, |
| 52 | primary key (`model_uuid`) |
| 53 | ) engine=innodb default charset=latin1; |
| 54 | |
| 55 | |
| 56 | |
| 57 | |
| 58 | create table `allotted_resource_customization` ( |
| 59 | `model_customization_uuid` varchar(200) not null, |
| 60 | `model_instance_name` varchar(200) not null, |
| 61 | `providing_service_model_uuid` varchar(200) default null, |
| 62 | `providing_service_model_invariant_uuid` varchar(200) default null, |
| 63 | `providing_service_model_name` varchar(200) default null, |
| 64 | `target_network_role` varchar(200) default null, |
| 65 | `nf_type` varchar(200) default null, |
| 66 | `nf_role` varchar(200) default null, |
| 67 | `nf_function` varchar(200) default null, |
| 68 | `nf_naming_code` varchar(200) default null, |
| 69 | `min_instances` int(11) default null, |
| 70 | `max_instances` int(11) default null, |
| 71 | `ar_model_uuid` varchar(200) not null, |
subhash kumar singh | 6addc71 | 2018-12-14 20:02:29 +0530 | [diff] [blame] | 72 | `resource_input` varchar(2000) default null, |
Benjamin, Max (mb388a) | 5a6a6de | 2018-07-30 15:56:09 -0400 | [diff] [blame] | 73 | `creation_timestamp` datetime not null default current_timestamp, |
| 74 | primary key (`model_customization_uuid`), |
| 75 | key `fk_allotted_resource_customization__allotted_resource1_idx` (`ar_model_uuid`), |
| 76 | constraint `fk_allotted_resource_customization__allotted_resource1` foreign key (`ar_model_uuid`) references `allotted_resource` (`model_uuid`) on delete cascade on update cascade |
| 77 | ) engine=innodb default charset=latin1; |
| 78 | |
| 79 | |
| 80 | |
| 81 | |
| 82 | create table `heat_environment` ( |
| 83 | `artifact_uuid` varchar(200) not null, |
| 84 | `name` varchar(100) not null, |
| 85 | `version` varchar(20) not null, |
| 86 | `description` varchar(1200) default null, |
| 87 | `body` longtext not null, |
| 88 | `artifact_checksum` varchar(200) not null default 'manual record', |
| 89 | `creation_timestamp` datetime not null default current_timestamp, |
| 90 | primary key (`artifact_uuid`) |
| 91 | ) engine=innodb default charset=latin1; |
| 92 | |
| 93 | |
| 94 | |
| 95 | create table `heat_files` ( |
| 96 | `artifact_uuid` varchar(200) not null, |
| 97 | `name` varchar(200) not null, |
| 98 | `version` varchar(20) not null, |
| 99 | `description` varchar(1200) default null, |
| 100 | `body` longtext not null, |
| 101 | `artifact_checksum` varchar(200) not null default 'manual record', |
| 102 | `creation_timestamp` datetime not null default current_timestamp, |
| 103 | primary key (`artifact_uuid`) |
| 104 | ) engine=innodb default charset=latin1; |
| 105 | |
| 106 | |
| 107 | |
| 108 | |
| 109 | create table `heat_template` ( |
| 110 | `artifact_uuid` varchar(200) not null, |
| 111 | `name` varchar(200) not null, |
| 112 | `version` varchar(20) not null, |
| 113 | `description` varchar(1200) default null, |
| 114 | `body` longtext not null, |
| 115 | `timeout_minutes` int(11) default null, |
| 116 | `artifact_checksum` varchar(200) not null default 'manual record', |
| 117 | `creation_timestamp` datetime not null default current_timestamp, |
| 118 | primary key (`artifact_uuid`) |
| 119 | ) engine=innodb default charset=latin1; |
| 120 | |
| 121 | |
| 122 | |
| 123 | create table `heat_nested_template` ( |
| 124 | `parent_heat_template_uuid` varchar(200) not null, |
| 125 | `child_heat_template_uuid` varchar(200) not null, |
| 126 | `provider_resource_file` varchar(100) default null, |
| 127 | primary key (`parent_heat_template_uuid`,`child_heat_template_uuid`), |
| 128 | key `fk_heat_nested_template__heat_template2_idx` (`child_heat_template_uuid`), |
| 129 | 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, |
| 130 | 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 |
| 131 | ) engine=innodb default charset=latin1; |
| 132 | |
| 133 | |
| 134 | |
| 135 | |
| 136 | create table `heat_template_params` ( |
| 137 | `heat_template_artifact_uuid` varchar(200) not null, |
| 138 | `param_name` varchar(100) not null, |
| 139 | `is_required` bit(1) not null, |
| 140 | `param_type` varchar(20) default null, |
| 141 | `param_alias` varchar(45) default null, |
| 142 | primary key (`heat_template_artifact_uuid`,`param_name`), |
| 143 | constraint `fk_heat_template_params__heat_template1` foreign key (`heat_template_artifact_uuid`) references `heat_template` (`artifact_uuid`) on delete cascade on update cascade |
| 144 | ) engine=innodb default charset=latin1; |
| 145 | |
| 146 | |
| 147 | |
| 148 | create table `network_recipe` ( |
| 149 | `id` int(11) not null auto_increment, |
| 150 | `model_name` varchar(20) not null, |
| 151 | `action` varchar(50) not null, |
| 152 | `description` varchar(1200) default null, |
| 153 | `orchestration_uri` varchar(256) not null, |
| 154 | `network_param_xsd` varchar(2048) default null, |
| 155 | `recipe_timeout` int(11) default null, |
| 156 | `service_type` varchar(45) default null, |
| 157 | `creation_timestamp` datetime not null default current_timestamp, |
| 158 | `version_str` varchar(20) not null, |
| 159 | primary key (`id`), |
| 160 | unique key `uk_rl4f296i0p8lyokxveaiwkayi` (`model_name`,`action`,`version_str`) |
| 161 | ) engine=innodb auto_increment=178 default charset=latin1; |
| 162 | |
| 163 | |
| 164 | |
| 165 | |
| 166 | create table `temp_network_heat_template_lookup` ( |
| 167 | `network_resource_model_name` varchar(200) not null, |
| 168 | `heat_template_artifact_uuid` varchar(200) not null, |
| 169 | `aic_version_min` varchar(20) not null, |
| 170 | `aic_version_max` varchar(20) default null, |
| 171 | primary key (`network_resource_model_name`), |
| 172 | key `fk_temp_network_heat_template_lookup__heat_template1_idx` (`heat_template_artifact_uuid`), |
| 173 | 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 |
| 174 | ) engine=innodb default charset=latin1; |
| 175 | |
| 176 | |
| 177 | |
| 178 | create table `network_resource` ( |
| 179 | `model_uuid` varchar(200) not null, |
| 180 | `model_name` varchar(200) not null, |
| 181 | `model_invariant_uuid` varchar(200) default null, |
| 182 | `description` varchar(1200) default null, |
| 183 | `heat_template_artifact_uuid` varchar(200) not null, |
| 184 | `neutron_network_type` varchar(20) default null, |
| 185 | `model_version` varchar(20) default null, |
| 186 | `tosca_node_type` varchar(200) default null, |
| 187 | `aic_version_min` varchar(20) not null, |
| 188 | `aic_version_max` varchar(20) default null, |
| 189 | `orchestration_mode` varchar(20) default 'heat', |
| 190 | `resource_category` varchar(20) default null, |
| 191 | `resource_sub_category` varchar(20) default null, |
| 192 | `creation_timestamp` datetime not null default current_timestamp, |
| 193 | primary key (`model_uuid`), |
| 194 | key `fk_network_resource__temp_network_heat_template_lookup1_idx` (`model_name`), |
| 195 | key `fk_network_resource__heat_template1_idx` (`heat_template_artifact_uuid`), |
| 196 | constraint `fk_network_resource__heat_template1` foreign key (`heat_template_artifact_uuid`) references `heat_template` (`artifact_uuid`) on delete no action on update cascade, |
| 197 | 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 |
| 198 | ) engine=innodb default charset=latin1; |
| 199 | |
| 200 | |
| 201 | |
| 202 | |
| 203 | |
| 204 | create table `network_resource_customization` ( |
| 205 | `model_customization_uuid` varchar(200) not null, |
| 206 | `model_instance_name` varchar(200) not null, |
| 207 | `network_technology` varchar(45) default null, |
| 208 | `network_type` varchar(45) default null, |
| 209 | `network_role` varchar(200) default null, |
| 210 | `network_scope` varchar(45) default null, |
| 211 | `creation_timestamp` datetime not null default current_timestamp, |
| 212 | `network_resource_model_uuid` varchar(200) not null, |
subhash kumar singh | 6addc71 | 2018-12-14 20:02:29 +0530 | [diff] [blame] | 213 | `resource_input` varchar(2000) default null, |
Benjamin, Max (mb388a) | 5a6a6de | 2018-07-30 15:56:09 -0400 | [diff] [blame] | 214 | primary key (`model_customization_uuid`), |
| 215 | key `fk_network_resource_customization__network_resource1_idx` (`network_resource_model_uuid`), |
| 216 | constraint `fk_network_resource_customization__network_resource1` foreign key (`network_resource_model_uuid`) references `network_resource` (`model_uuid`) on delete cascade on update cascade |
| 217 | ) engine=innodb default charset=latin1; |
| 218 | |
| 219 | |
| 220 | |
| 221 | |
| 222 | |
| 223 | create table `tosca_csar` ( |
| 224 | `artifact_uuid` varchar(200) not null, |
| 225 | `name` varchar(200) not null, |
| 226 | `version` varchar(20) not null, |
| 227 | `description` varchar(1200) default null, |
| 228 | `artifact_checksum` varchar(200) not null, |
| 229 | `url` varchar(200) not null, |
| 230 | `creation_timestamp` datetime not null default current_timestamp, |
| 231 | primary key (`artifact_uuid`) |
| 232 | ) engine=innodb default charset=latin1; |
| 233 | |
| 234 | |
| 235 | |
| 236 | |
| 237 | create table `service` ( |
| 238 | `model_uuid` varchar(200) not null, |
| 239 | `model_name` varchar(200) not null, |
| 240 | `model_invariant_uuid` varchar(200) not null, |
| 241 | `model_version` varchar(20) not null, |
| 242 | `description` varchar(1200) default null, |
| 243 | `creation_timestamp` datetime not null default current_timestamp, |
| 244 | `tosca_csar_artifact_uuid` varchar(200) default null, |
| 245 | `service_type` varchar(200) default null, |
| 246 | `service_role` varchar(200) default null, |
| 247 | `environment_context` varchar(200) default null, |
| 248 | `workload_context` varchar(200) default null, |
| 249 | `service_category` varchar(200) default null, |
subhash kumar singh | 6addc71 | 2018-12-14 20:02:29 +0530 | [diff] [blame] | 250 | `resource_order` varchar(200) default null, |
Benjamin, Max (mb388a) | 5a6a6de | 2018-07-30 15:56:09 -0400 | [diff] [blame] | 251 | primary key (`model_uuid`), |
| 252 | key `fk_service__tosca_csar1_idx` (`tosca_csar_artifact_uuid`), |
| 253 | constraint `fk_service__tosca_csar1` foreign key (`tosca_csar_artifact_uuid`) references `tosca_csar` (`artifact_uuid`) on delete cascade on update cascade |
| 254 | ) engine=innodb default charset=latin1; |
| 255 | |
| 256 | |
| 257 | |
| 258 | create table `service_recipe` ( |
| 259 | `id` int(11) not null auto_increment, |
| 260 | `action` varchar(50) not null, |
| 261 | `version_str` varchar(20) default null, |
| 262 | `description` varchar(1200) default null, |
| 263 | `orchestration_uri` varchar(256) not null, |
| 264 | `service_param_xsd` varchar(2048) default null, |
| 265 | `recipe_timeout` int(11) default null, |
| 266 | `service_timeout_interim` int(11) default null, |
| 267 | `creation_timestamp` datetime not null default current_timestamp, |
| 268 | `service_model_uuid` varchar(200) not null, |
| 269 | primary key (`id`), |
| 270 | unique key `uk_7fav5dkux2v8g9d2i5ymudlgc` (`service_model_uuid`,`action`), |
| 271 | key `fk_service_recipe__service1_idx` (`service_model_uuid`), |
| 272 | constraint `fk_service_recipe__service1` foreign key (`service_model_uuid`) references `service` (`model_uuid`) on delete cascade on update cascade |
| 273 | ) engine=innodb auto_increment=86 default charset=latin1; |
| 274 | |
| 275 | |
| 276 | |
| 277 | create table `vnf_resource` ( |
| 278 | `orchestration_mode` varchar(20) not null default 'heat', |
| 279 | `description` varchar(1200) default null, |
| 280 | `creation_timestamp` datetime not null default current_timestamp, |
| 281 | `model_uuid` varchar(200) not null, |
| 282 | `aic_version_min` varchar(20) default null, |
| 283 | `aic_version_max` varchar(20) default null, |
| 284 | `model_invariant_uuid` varchar(200) default null, |
| 285 | `model_version` varchar(20) not null, |
| 286 | `model_name` varchar(200) default null, |
| 287 | `tosca_node_type` varchar(200) default null, |
| 288 | `resource_category` varchar(200) default null, |
| 289 | `resource_sub_category` varchar(200) default null, |
| 290 | `heat_template_artifact_uuid` varchar(200) default null, |
| 291 | primary key (`model_uuid`), |
| 292 | key `fk_vnf_resource__heat_template1` (`heat_template_artifact_uuid`), |
| 293 | constraint `fk_vnf_resource__heat_template1` foreign key (`heat_template_artifact_uuid`) references `heat_template` (`artifact_uuid`) on delete cascade on update cascade |
| 294 | ) engine=innodb default charset=latin1; |
| 295 | |
| 296 | |
| 297 | |
| 298 | |
| 299 | create table `vf_module` ( |
| 300 | `model_uuid` varchar(200) not null, |
| 301 | `model_invariant_uuid` varchar(200) default null, |
| 302 | `model_version` varchar(20) not null, |
| 303 | `model_name` varchar(200) not null, |
| 304 | `description` varchar(1200) default null, |
| 305 | `is_base` int(11) not null, |
| 306 | `heat_template_artifact_uuid` varchar(200) default null, |
| 307 | `vol_heat_template_artifact_uuid` varchar(200) default null, |
| 308 | `creation_timestamp` datetime not null default current_timestamp, |
| 309 | `vnf_resource_model_uuid` varchar(200) not null, |
| 310 | primary key (`model_uuid`,`vnf_resource_model_uuid`), |
| 311 | key `fk_vf_module__vnf_resource1_idx` (`vnf_resource_model_uuid`), |
| 312 | key `fk_vf_module__heat_template_art_uuid__heat_template1_idx` (`heat_template_artifact_uuid`), |
| 313 | key `fk_vf_module__vol_heat_template_art_uuid__heat_template2_idx` (`vol_heat_template_artifact_uuid`), |
| 314 | 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, |
| 315 | constraint `fk_vf_module__vnf_resource1` foreign key (`vnf_resource_model_uuid`) references `vnf_resource` (`model_uuid`) on delete cascade on update cascade, |
| 316 | 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 |
| 317 | ) engine=innodb default charset=latin1; |
| 318 | |
| 319 | |
| 320 | |
| 321 | /*!40101 set @saved_cs_client = @@character_set_client */; |
| 322 | /*!40101 set character_set_client = utf8 */; |
| 323 | create table `vf_module_customization` ( |
| 324 | `model_customization_uuid` varchar(200) not null, |
| 325 | `label` varchar(200) default null, |
| 326 | `initial_count` int(11) default '0', |
| 327 | `min_instances` int(11) default '0', |
| 328 | `max_instances` int(11) default null, |
| 329 | `availability_zone_count` int(11) default null, |
| 330 | `heat_environment_artifact_uuid` varchar(200) default null, |
| 331 | `vol_environment_artifact_uuid` varchar(200) default null, |
| 332 | `creation_timestamp` datetime not null default current_timestamp, |
| 333 | `vf_module_model_uuid` varchar(200) not null, |
| 334 | primary key (`model_customization_uuid`), |
| 335 | key `fk_vf_module_customization__vf_module1_idx` (`vf_module_model_uuid`), |
| 336 | key `fk_vf_module_customization__heat_env__heat_environment1_idx` (`heat_environment_artifact_uuid`), |
| 337 | key `fk_vf_module_customization__vol_env__heat_environment2_idx` (`vol_environment_artifact_uuid`), |
| 338 | 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, |
| 339 | constraint `fk_vf_module_customization__vf_module1` foreign key (`vf_module_model_uuid`) references `vf_module` (`model_uuid`) on delete cascade on update cascade, |
| 340 | 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 |
| 341 | ) engine=innodb default charset=latin1; |
| 342 | /*!40101 set character_set_client = @saved_cs_client */; |
| 343 | |
| 344 | -- |
| 345 | -- table structure for table `vf_module_to_heat_files` |
| 346 | -- |
| 347 | |
| 348 | |
| 349 | /*!40101 set @saved_cs_client = @@character_set_client */; |
| 350 | /*!40101 set character_set_client = utf8 */; |
| 351 | create table `vf_module_to_heat_files` ( |
| 352 | `vf_module_model_uuid` varchar(200) not null, |
| 353 | `heat_files_artifact_uuid` varchar(200) not null, |
| 354 | primary key (`vf_module_model_uuid`,`heat_files_artifact_uuid`), |
| 355 | key `fk_vf_module_to_heat_files__heat_files__artifact_uuid1_idx` (`heat_files_artifact_uuid`), |
| 356 | 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, |
| 357 | 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 |
| 358 | ) engine=innodb default charset=latin1 comment='il fait ce qu''il dit'; |
| 359 | /*!40101 set character_set_client = @saved_cs_client */; |
| 360 | |
| 361 | -- |
| 362 | -- table structure for table `vnf_components` |
| 363 | -- |
| 364 | |
| 365 | |
| 366 | /*!40101 set @saved_cs_client = @@character_set_client */; |
| 367 | /*!40101 set character_set_client = utf8 */; |
| 368 | create table `vnf_components` ( |
| 369 | `vnf_id` int(11) not null, |
| 370 | `component_type` varchar(20) not null, |
| 371 | `heat_template_id` int(11) default null, |
| 372 | `heat_environment_id` int(11) default null, |
| 373 | `creation_timestamp` datetime not null default current_timestamp, |
| 374 | primary key (`vnf_id`,`component_type`) |
| 375 | ) engine=innodb default charset=latin1; |
| 376 | /*!40101 set character_set_client = @saved_cs_client */; |
| 377 | |
| 378 | -- |
| 379 | -- table structure for table `vnf_components_recipe` |
| 380 | -- |
| 381 | |
| 382 | |
| 383 | |
| 384 | create table `vnf_components_recipe` ( |
| 385 | `id` int(11) not null auto_increment, |
| 386 | `vnf_type` varchar(200) default null, |
| 387 | `vnf_component_type` varchar(45) not null, |
| 388 | `action` varchar(50) not null, |
| 389 | `service_type` varchar(45) default null, |
| 390 | `version` varchar(20) not null, |
| 391 | `description` varchar(1200) default null, |
| 392 | `orchestration_uri` varchar(256) not null, |
| 393 | `vnf_component_param_xsd` varchar(2048) default null, |
| 394 | `recipe_timeout` int(11) default null, |
| 395 | `creation_timestamp` datetime default current_timestamp, |
| 396 | `vf_module_model_uuid` varchar(200) default null, |
| 397 | primary key (`id`), |
| 398 | unique key `uk_4dpdwddaaclhc11wxsb7h59ma` (`vf_module_model_uuid`,`vnf_component_type`,`action`,`version`) |
| 399 | ) engine=innodb auto_increment=26 default charset=latin1; |
| 400 | |
| 401 | |
| 402 | |
| 403 | |
| 404 | create table `vnf_recipe` ( |
| 405 | `id` int(11) not null auto_increment, |
| 406 | `vnf_type` varchar(200) default null, |
| 407 | `action` varchar(50) not null, |
| 408 | `service_type` varchar(45) default null, |
| 409 | `version_str` varchar(20) not null, |
| 410 | `description` varchar(1200) default null, |
| 411 | `orchestration_uri` varchar(256) not null, |
| 412 | `vnf_param_xsd` varchar(2048) default null, |
| 413 | `recipe_timeout` int(11) default null, |
| 414 | `creation_timestamp` datetime default current_timestamp, |
| 415 | `vf_module_id` varchar(100) default null, |
| 416 | primary key (`id`), |
| 417 | unique key `uk_f3tvqau498vrifq3cr8qnigkr` (`vf_module_id`,`action`,`version_str`) |
| 418 | ) engine=innodb auto_increment=10006 default charset=latin1; |
| 419 | |
| 420 | |
| 421 | |
| 422 | |
| 423 | |
| 424 | |
| 425 | |
| 426 | |
| 427 | create table `vnf_resource_customization` ( |
| 428 | `model_customization_uuid` varchar(200) not null, |
| 429 | `model_instance_name` varchar(200) not null, |
| 430 | `min_instances` int(11) default null, |
| 431 | `max_instances` int(11) default null, |
| 432 | `availability_zone_max_count` int(11) default null, |
| 433 | `nf_type` varchar(200) default null, |
| 434 | `nf_role` varchar(200) default null, |
| 435 | `nf_function` varchar(200) default null, |
| 436 | `nf_naming_code` varchar(200) default null, |
| 437 | `creation_timestamp` datetime not null default current_timestamp, |
| 438 | `vnf_resource_model_uuid` varchar(200) not null, |
| 439 | `multi_stage_design` varchar(20) default null, |
subhash kumar singh | 6addc71 | 2018-12-14 20:02:29 +0530 | [diff] [blame] | 440 | `resource_input` varchar(2000) default null, |
Benjamin, Max (mb388a) | 5a6a6de | 2018-07-30 15:56:09 -0400 | [diff] [blame] | 441 | primary key (`model_customization_uuid`), |
| 442 | key `fk_vnf_resource_customization__vnf_resource1_idx` (`vnf_resource_model_uuid`), |
| 443 | constraint `fk_vnf_resource_customization__vnf_resource1` foreign key (`vnf_resource_model_uuid`) references `vnf_resource` (`model_uuid`) on delete cascade on update cascade |
| 444 | ) engine=innodb default charset=latin1; |
| 445 | |
| 446 | |
| 447 | |
| 448 | |
| 449 | create table `vnf_res_custom_to_vf_module_custom` ( |
| 450 | `vnf_resource_cust_model_customization_uuid` varchar(200) not null, |
| 451 | `vf_module_cust_model_customization_uuid` varchar(200) not null, |
| 452 | `creation_timestamp` datetime not null default current_timestamp, |
| 453 | primary key (`vnf_resource_cust_model_customization_uuid`,`vf_module_cust_model_customization_uuid`), |
| 454 | key `fk_vnf_res_custom_to_vf_module_custom__vf_module_customizat_idx` (`vf_module_cust_model_customization_uuid`), |
| 455 | constraint `fk_vnf_res_custom_to_vf_module_custom__vf_module_customization1` foreign key (`vf_module_cust_model_customization_uuid`) references `vf_module_customization` (`model_customization_uuid`) on delete cascade on update cascade, |
| 456 | constraint `fk_vnf_res_custom_to_vf_module_custom__vnf_resource_customiza1` foreign key (`vnf_resource_cust_model_customization_uuid`) references `vnf_resource_customization` (`model_customization_uuid`) on delete cascade on update cascade |
| 457 | ) engine=innodb default charset=latin1; |
| 458 | |
| 459 | |
| 460 | create table if not exists external_service_to_internal_model_mapping ( |
| 461 | id int(11) not null, |
| 462 | service_name varchar(200) not null, |
| 463 | product_flavor varchar(200) null, |
| 464 | subscription_service_type varchar(200) not null, |
| 465 | service_model_uuid varchar(200) not null, |
| 466 | primary key (id), |
| 467 | unique index uk_external_service_to_internal_model_mapping |
| 468 | (service_name asc, product_flavor asc, service_model_uuid asc)); |
| 469 | |
| 470 | create table if not exists `collection_resource` ( |
| 471 | model_uuid varchar(200) not null, |
| 472 | model_name varchar(200) not null, |
| 473 | model_invariant_uuid varchar(200) not null, |
| 474 | model_version varchar(20) not null, |
| 475 | tosca_node_type varchar(200) not null, |
| 476 | description varchar(200), |
| 477 | creation_timestamp datetime not null default current_timestamp, |
| 478 | primary key (`model_uuid`) |
| 479 | )engine=innodb default charset=latin1; |
| 480 | |
| 481 | create table if not exists `collection_resource_customization` ( |
| 482 | model_customization_uuid varchar(200) not null, |
| 483 | model_instance_name varchar(200) not null, |
| 484 | role varchar(200) NULL, |
| 485 | object_type varchar(200) not null, |
| 486 | function varchar(200) NULL, |
| 487 | collection_resource_type varchar(200) NULL, |
| 488 | creation_timestamp datetime not null default current_timestamp, |
| 489 | cr_model_uuid varchar(200) not null, |
| 490 | primary key (`model_customization_uuid`) |
| 491 | )engine=innodb default charset=latin1; |
| 492 | |
| 493 | create table if not exists `instance_group` ( |
| 494 | model_uuid varchar(200) not null, |
| 495 | model_name varchar(200) not null, |
| 496 | model_invariant_uuid varchar(200) not null, |
| 497 | model_version varchar(20) not null, |
| 498 | tosca_node_type varchar(200) NULL, |
| 499 | role varchar(200) not null, |
| 500 | object_type varchar(200) not null, |
| 501 | creation_timestamp datetime not null default current_timestamp, |
| 502 | cr_model_uuid varchar(200) not null, |
| 503 | instance_group_type varchar(200) not null, |
| 504 | primary key (`model_uuid`) |
| 505 | )engine=innodb default charset=latin1; |
| 506 | |
| 507 | create table if not exists `collection_resource_instance_group_customization` ( |
| 508 | `collection_resource_customization_model_uuid` varchar(200) not null, |
| 509 | `instance_group_model_uuid` varchar(200) not null, |
| 510 | `function` varchar(200) null, |
| 511 | `description` varchar(1200) null, |
| 512 | `subinterface_network_quantity` int(11) null, |
| 513 | `creation_timestamp` datetime not null default current_timestamp, |
| 514 | primary key (`collection_resource_customization_model_uuid`, `instance_group_model_uuid`), |
| 515 | index `fk_collection_resource_instance_group_customization__instan_idx` (`instance_group_model_uuid` asc), |
| 516 | constraint `fk_collection_resource_instance_group_customization__collecti1` |
| 517 | foreign key (`collection_resource_customization_model_uuid`) |
| 518 | references `collection_resource_customization` (`model_customization_uuid`) |
| 519 | on delete cascade |
| 520 | on update cascade, |
| 521 | constraint `fk_collection_resource_instance_group_customization__instance1` |
| 522 | foreign key (`instance_group_model_uuid`) |
| 523 | references `instance_group` (`model_uuid`) |
| 524 | on delete cascade |
| 525 | on update cascade) |
| 526 | engine = innodb |
| 527 | default character set = latin1; |
| 528 | |
| 529 | create table if not exists `vnfc_instance_group_customization` ( |
| 530 | `vnf_resource_customization_model_uuid` varchar(200) not null, |
| 531 | `instance_group_model_uuid` varchar(200) not null, |
| 532 | `function` varchar(200) null, |
| 533 | `description` varchar(1200) null, |
| 534 | `creation_timestamp` datetime not null default current_timestamp, |
| 535 | primary key (`vnf_resource_customization_model_uuid`, `instance_group_model_uuid`), |
| 536 | index `fk_vnfc_instance_group_customization__instance_group1_idx` (`instance_group_model_uuid` asc), |
| 537 | constraint `fk_vnfc_instance_group_customization__vnf_resource_customizat1` |
| 538 | foreign key (`vnf_resource_customization_model_uuid`) |
| 539 | references `vnf_resource_customization` (`model_customization_uuid`) |
| 540 | on delete cascade |
| 541 | on update cascade, |
| 542 | constraint `fk_vnfc_instance_group_customization__instance_group1` |
| 543 | foreign key (`instance_group_model_uuid`) |
| 544 | references `instance_group` (`model_uuid`) |
| 545 | on delete cascade |
| 546 | on update cascade) |
| 547 | engine = innodb |
| 548 | default character set = latin1; |
| 549 | |
| 550 | create table if not exists `configuration` |
| 551 | ( `model_uuid` varchar(200) not null, |
| 552 | `model_invariant_uuid` varchar(200) not null, |
| 553 | `model_version` varchar(20) not null, |
| 554 | `model_name` varchar(200) not null, |
| 555 | `tosca_node_type` varchar(200) not null, |
| 556 | `description` varchar(1200) null, |
| 557 | `creation_timestamp` datetime not null default current_timestamp, |
| 558 | primary key (`model_uuid`)) |
| 559 | engine = innodb auto_increment = 20654 |
| 560 | default character set = latin1; |
| 561 | |
| 562 | create table if not exists `service_proxy` ( |
| 563 | `model_uuid` varchar(200) not null, |
| 564 | `model_invariant_uuid` varchar(200) not null, |
| 565 | `model_version` varchar(20) not null, |
| 566 | `model_name` varchar(200) not null, |
| 567 | `description` varchar(1200) null, |
| 568 | `creation_timestamp` datetime not null default current_timestamp, |
| 569 | primary key (`model_uuid`)) |
| 570 | engine = innodb auto_increment = 20654 |
| 571 | default character set = latin1; |
| 572 | |
| 573 | create table if not exists `service_proxy_customization` ( |
| 574 | `model_customization_uuid` varchar(200) not null, |
| 575 | `model_instance_name` varchar(200) not null, |
| 576 | `tosca_node_type` varchar(200) not null, |
| 577 | `source_service_model_uuid` varchar(200) not null, |
| 578 | `creation_timestamp` datetime not null default current_timestamp, |
| 579 | `service_proxy_model_uuid` varchar(200) not null, |
| 580 | primary key (`model_customization_uuid`), |
| 581 | index `fk_service_proxy_customization__service_proxy1_idx` (`service_proxy_model_uuid` asc), |
| 582 | index `fk_service_proxy_customization__service1_idx` (`source_service_model_uuid` asc), |
| 583 | constraint`fk_spr_customization__service_proxy_resource1` |
| 584 | foreign key (`service_proxy_model_uuid`) references `service_proxy` (`model_uuid`) |
| 585 | on delete cascade on update cascade, |
| 586 | constraint `fk_service_proxy_resource_customization__service1` |
| 587 | foreign key (`source_service_model_uuid`) references `service` |
| 588 | (`model_uuid`) on delete cascade on update cascade) |
| 589 | engine = innodb |
| 590 | auto_increment = 20654 |
| 591 | default character set = latin1; |
| 592 | |
| 593 | create table if not exists `configuration_customization` ( |
| 594 | `model_customization_uuid` varchar(200) not null, |
| 595 | `model_instance_name` varchar(200) not null, |
| 596 | `configuration_type` varchar(200) null, |
| 597 | `configuration_role` varchar(200) null, |
| 598 | `configuration_function` varchar(200) null, |
| 599 | `creation_timestamp` datetime not null default current_timestamp, |
| 600 | `configuration_model_uuid` varchar(200) not null, |
| 601 | `service_proxy_customization_model_customization_uuid` varchar(200) null, |
| 602 | `configuration_customization_model_customization_uuid` varchar(200) null, |
| 603 | primary key (`model_customization_uuid`), |
| 604 | index `fk_configuration_customization__configuration_idx` (`configuration_model_uuid` asc), |
| 605 | index `fk_configuration_customization__service_proxy_customization_idx` |
| 606 | (`service_proxy_customization_model_customization_uuid` asc), |
| 607 | index `fk_configuration_customization__configuration_customization_idx` |
| 608 | (`configuration_customization_model_customization_uuid` asc), |
| 609 | constraint `fk_configuration_resource_customization__configuration_resour1` |
| 610 | foreign key (`configuration_model_uuid`) references `configuration` (`model_uuid`) |
| 611 | on delete cascade on update cascade, |
| 612 | constraint `fk_configuration_customization__service_proxy_customization1` foreign |
| 613 | key (`service_proxy_customization_model_customization_uuid`) references |
| 614 | `service_proxy_customization` (`model_customization_uuid`) |
| 615 | on delete cascade on update cascade, constraint |
| 616 | `fk_configuration_customization__configuration_customization1` foreign |
| 617 | key (`configuration_customization_model_customization_uuid`) references |
| 618 | `configuration_customization` (`model_customization_uuid`) |
| 619 | on delete cascade on update cascade) |
| 620 | engine = innodb |
| 621 | auto_increment =20654 |
| 622 | default character set = latin1; |
| 623 | |
| 624 | |
| 625 | create table `service_proxy_customization_to_service` ( |
| 626 | `service_model_uuid` varchar(200) not null, |
| 627 | `resource_model_customization_uuid` varchar(200) not null, |
| 628 | primary key (`service_model_uuid`,`resource_model_customization_uuid`) |
| 629 | )engine=innodb default charset=latin1; |
| 630 | |
| 631 | |
| 632 | create table `configuration_customization_to_service` ( |
| 633 | `service_model_uuid` varchar(200) not null, |
| 634 | `resource_model_customization_uuid` varchar(200) not null, |
| 635 | primary key (`service_model_uuid`,`resource_model_customization_uuid`) |
| 636 | )engine=innodb default charset=latin1; |
| 637 | |
| 638 | |
| 639 | create table if not exists `collection_resource_customization_to_service` ( |
| 640 | `service_model_uuid` varchar(200) not null, |
| 641 | `resource_model_customization_uuid` varchar(200) not null, |
| 642 | primary key (`service_model_uuid`,`resource_model_customization_uuid`) |
| 643 | )engine=innodb default charset=latin1; |
| 644 | |
| 645 | |
| 646 | create table `network_resource_customization_to_service` ( |
| 647 | `service_model_uuid` varchar(200) not null, |
| 648 | `resource_model_customization_uuid` varchar(200) not null, |
| 649 | primary key (`service_model_uuid`,`resource_model_customization_uuid`) |
| 650 | )engine=innodb default charset=latin1; |
| 651 | |
| 652 | create table `vnf_resource_customization_to_service` ( |
| 653 | `service_model_uuid` varchar(200) not null, |
| 654 | `resource_model_customization_uuid` varchar(200) not null, |
| 655 | primary key (`service_model_uuid`,`resource_model_customization_uuid`) |
| 656 | )engine=innodb default charset=latin1; |
| 657 | |
| 658 | create table `allotted_resource_customization_to_service` ( |
| 659 | `service_model_uuid` varchar(200) not null, |
| 660 | `resource_model_customization_uuid` varchar(200) not null, |
| 661 | primary key (`service_model_uuid`,`resource_model_customization_uuid`) |
| 662 | )engine=innodb default charset=latin1; |
| 663 | |
| 664 | |
| 665 | |
| 666 | create table ar_recipe ( |
| 667 | ID INT(11) not null auto_increment, |
| 668 | MODEL_NAME VARCHAR(200) NOT NULL, |
| 669 | `ACTION` VARCHAR(200) NOT NULL, |
| 670 | VERSION_STR VARCHAR(200) NOT NULL, |
| 671 | SERVICE_TYPE VARCHAR(200), |
| 672 | DESCRIPTION VARCHAR(200), |
| 673 | ORCHESTRATION_URI VARCHAR(200) NOT NULL, |
| 674 | AR_PARAM_XSD VARCHAR(200), |
| 675 | RECIPE_TIMEOUT INT(10), |
| 676 | CREATION_TIMESTAMP DATETIME NOT NULL default current_timestamp, |
| 677 | primary key (ID), |
| 678 | unique key `uk_ar_recipe` (`model_name`,`action`,`version_str`) |
| 679 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; |
| 680 | |
| 681 | alter table collection_resource_customization |
| 682 | add foreign key ( cr_model_uuid) |
| 683 | references collection_resource(model_uuid) |
| 684 | on delete cascade; |
| 685 | |
| 686 | alter table vnf_resource_customization |
| 687 | add column |
| 688 | instance_group_model_uuid varchar(200); |
| 689 | |
| 690 | alter table network_resource_customization |
| 691 | add column |
| 692 | instance_group_model_uuid varchar(200); |
| 693 | |
| 694 | |
| 695 | alter table network_resource_customization |
| 696 | add foreign key ( instance_group_model_uuid) |
| 697 | references instance_group(model_uuid) |
| 698 | on delete cascade; |
| 699 | |
| 700 | alter table collection_resource_customization_to_service |
| 701 | add foreign key (service_model_uuid) |
| 702 | references service(model_uuid) |
| 703 | on delete cascade; |
| 704 | |
| 705 | alter table allotted_resource_customization_to_service |
| 706 | add foreign key (service_model_uuid) |
| 707 | references service(model_uuid) |
| 708 | on delete cascade; |
| 709 | |
| 710 | |
| 711 | alter table vnf_resource_customization_to_service |
| 712 | add foreign key (service_model_uuid) |
| 713 | references service(model_uuid) |
| 714 | on delete cascade; |
| 715 | |
| 716 | |
| 717 | alter table network_resource_customization_to_service |
| 718 | add foreign key (service_model_uuid) |
| 719 | references service(model_uuid) |
| 720 | on delete cascade; |
| 721 | |
| 722 | |
| 723 | alter table network_resource_customization_to_service |
| 724 | add foreign key (resource_model_customization_uuid) |
| 725 | references network_resource_customization(model_customization_uuid) |
| 726 | on delete cascade; |
| 727 | |
| 728 | alter table vnf_resource_customization_to_service |
| 729 | add foreign key (resource_model_customization_uuid) |
| 730 | references vnf_resource_customization(model_customization_uuid) |
| 731 | on delete cascade; |
| 732 | |
| 733 | alter table allotted_resource_customization_to_service |
| 734 | add foreign key (resource_model_customization_uuid) |
| 735 | references allotted_resource_customization(model_customization_uuid) |
| 736 | on delete cascade; |
| 737 | |
| 738 | alter table collection_resource_customization_to_service |
| 739 | add foreign key (resource_model_customization_uuid) |
| 740 | references collection_resource_customization(model_customization_uuid) |
| 741 | on delete cascade; |
| 742 | |
| 743 | |
| 744 | create table if not exists `collection_network_resource_customization` ( |
| 745 | `model_customization_uuid` varchar(200) not null, |
| 746 | `model_instance_name` varchar(200) not null, |
| 747 | `network_technology` varchar(45) null, |
| 748 | `network_type` varchar(45) null, |
| 749 | `network_role` varchar(200) null, |
| 750 | `network_scope` varchar(45) null, |
subhash kumar singh | 6addc71 | 2018-12-14 20:02:29 +0530 | [diff] [blame] | 751 | `creation_timestamp` datetime not null default current_timestamp, |
Benjamin, Max (mb388a) | 5a6a6de | 2018-07-30 15:56:09 -0400 | [diff] [blame] | 752 | `network_resource_model_uuid` varchar(200) not null, `instance_group_model_uuid` varchar(200) null, |
| 753 | `crc_model_customization_uuid` varchar(200) not null, primary key |
| 754 | (`model_customization_uuid`, `crc_model_customization_uuid`), |
| 755 | index `fk_collection_net_resource_customization__network_resource1_idx` |
| 756 | (`network_resource_model_uuid` asc), index |
| 757 | `fk_collection_net_resource_customization__instance_group1_idx` |
| 758 | (`instance_group_model_uuid` asc), index |
| 759 | `fk_col_net_res_customization__collection_res_customization_idx` |
| 760 | (`crc_model_customization_uuid` asc), constraint |
| 761 | `fk_collection_net_resource_customization__network_resource10` foreign |
| 762 | key (`network_resource_model_uuid`) references |
| 763 | `network_resource` (`model_uuid`) on delete cascade on |
| 764 | update cascade, constraint |
| 765 | `fk_collection_net_resource_customization__instance_group10` foreign key |
| 766 | (`instance_group_model_uuid`) references `instance_group` |
| 767 | (`model_uuid`) on delete cascade on update cascade, constraint |
| 768 | `fk_collection_network_resource_customization__collection_reso1` foreign |
| 769 | key (`crc_model_customization_uuid`) references |
| 770 | `collection_resource_customization` |
| 771 | (`model_customization_uuid`) on delete cascade on update cascade) engine |
| 772 | = innodb default character set = latin1; |
| 773 | |
| 774 | CREATE TABLE IF NOT EXISTS `northbound_request_ref_lookup` ( |
| 775 | `id` INT(11) NOT NULL AUTO_INCREMENT, |
| 776 | `REQUEST_SCOPE` VARCHAR(200) NOT NULL, |
| 777 | `MACRO_ACTION` VARCHAR(200) NOT NULL, |
| 778 | `ACTION` VARCHAR(200) NOT NULL, |
| 779 | `IS_ALACARTE` TINYINT(1) NOT NULL DEFAULT 0, |
| 780 | `IS_TOPLEVELFLOW` TINYINT(1) NOT NULL DEFAULT 1, |
| 781 | `MIN_API_VERSION` DOUBLE NOT NULL, |
| 782 | `MAX_API_VERSION` DOUBLE NULL, |
| 783 | PRIMARY KEY (`id`), |
| 784 | UNIQUE INDEX `UK_northbound_request_ref_lookup` (`MIN_API_VERSION` ASC, `REQUEST_SCOPE` ASC, `ACTION` ASC, `IS_ALACARTE` ASC, `MACRO_ACTION` ASC)) |
| 785 | ENGINE = InnoDB |
| 786 | DEFAULT CHARACTER SET = latin1; |
| 787 | |
| 788 | CREATE TABLE IF NOT EXISTS orchestration_status_state_transition_directive ( |
| 789 | id INT(11) AUTO_INCREMENT, |
| 790 | RESOURCE_TYPE VARCHAR(25) NOT NULL, |
| 791 | ORCHESTRATION_STATUS VARCHAR(25) NOT NULL, |
| 792 | TARGET_ACTION VARCHAR(25) NOT NULL, |
| 793 | FLOW_DIRECTIVE VARCHAR(25) NOT NULL, |
| 794 | PRIMARY KEY (id), |
| 795 | UNIQUE KEY UK_orchestration_status_state_transition_directive (RESOURCE_TYPE, ORCHESTRATION_STATUS, TARGET_ACTION)) |
| 796 | ENGINE = InnoDB |
| 797 | DEFAULT CHARACTER SET = latin1; |
| 798 | |
| 799 | create table if not exists model_recipe ( |
| 800 | `ID` INT(11) NOT NULL AUTO_INCREMENT, |
| 801 | `MODEL_ID` INT(11), |
| 802 | `ACTION` VARCHAR(40), |
| 803 | `SCHEMA_VERSION` VARCHAR(40), |
| 804 | `DESCRIPTION` VARCHAR(40), |
| 805 | `ORCHESTRATION_URI` VARCHAR(20), |
| 806 | `MODEL_PARAM_XSD` VARCHAR(20), |
| 807 | `RECIPE_TIMEOUT` INT(11), |
| 808 | `CREATION_TIMESTAMP` datetime not null default current_timestamp, |
| 809 | PRIMARY KEY (`ID`), |
| 810 | CONSTRAINT uk1_model_recipe UNIQUE (`MODEL_ID`, `ACTION`) |
| 811 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; |
| 812 | |
| 813 | create table if not exists model ( |
| 814 | `ID` INT(11) NOT NULL AUTO_INCREMENT, |
| 815 | `MODEL_CUSTOMIZATION_ID` VARCHAR(40), |
| 816 | `MODEL_CUSTOMIZATION_NAME` VARCHAR(40), |
| 817 | `MODEL_INVARIANT_ID` VARCHAR(40), |
| 818 | `MODEL_NAME` VARCHAR(40), |
| 819 | `MODEL_TYPE` VARCHAR(20), |
| 820 | `MODEL_VERSION` VARCHAR(20), |
| 821 | `MODEL_VERSION_ID` VARCHAR(40), |
| 822 | `CREATION_TIMESTAMP` datetime not null default current_timestamp, |
| 823 | `RECIPE` INT(11), |
| 824 | PRIMARY KEY (`ID`), |
| 825 | CONSTRAINT uk1_model UNIQUE (`MODEL_TYPE`, `MODEL_VERSION_ID`), |
| 826 | FOREIGN KEY (`RECIPE`) REFERENCES `model_recipe` (`MODEL_ID`) ON DELETE CASCADE ON UPDATE CASCADE |
| 827 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; |
| 828 | |
Prema Bhatt | 474b175 | 2018-08-10 15:54:13 -0700 | [diff] [blame] | 829 | CREATE TABLE IF NOT EXISTS `controller_selection_reference` ( |
| 830 | `VNF_TYPE` VARCHAR(50) NOT NULL, |
| 831 | `CONTROLLER_NAME` VARCHAR(100) NOT NULL, |
| 832 | `ACTION_CATEGORY` VARCHAR(15) NOT NULL, |
| 833 | PRIMARY KEY (`VNF_TYPE`, `CONTROLLER_NAME`, `ACTION_CATEGORY`) |
| 834 | ) ; |
| 835 | |
Benjamin, Max (mb388a) | 5a6a6de | 2018-07-30 15:56:09 -0400 | [diff] [blame] | 836 | ALTER TABLE `vnf_recipe` |
Benjamin, Max (mb388a) | a81aef2 | 2018-08-13 09:48:57 -0400 | [diff] [blame] | 837 | CHANGE COLUMN `VNF_TYPE` `NF_ROLE` VARCHAR(200) NULL DEFAULT NULL ; |
| 838 | |
| 839 | CREATE TABLE IF NOT EXISTS `identity_services` ( |
| 840 | `ID` varchar(50) NOT NULL, |
| 841 | `IDENTITY_URL` varchar(200) DEFAULT NULL, |
| 842 | `MSO_ID` varchar(255) DEFAULT NULL, |
| 843 | `MSO_PASS` varchar(255) DEFAULT NULL, |
| 844 | `ADMIN_TENANT` varchar(50) DEFAULT NULL, |
| 845 | `MEMBER_ROLE` varchar(50) DEFAULT NULL, |
| 846 | `TENANT_METADATA` tinyint(1) DEFAULT 0, |
| 847 | `IDENTITY_SERVER_TYPE` varchar(50) DEFAULT NULL, |
| 848 | `IDENTITY_AUTHENTICATION_TYPE` varchar(50) DEFAULT NULL, |
| 849 | `LAST_UPDATED_BY` varchar(120) DEFAULT NULL, |
| 850 | `CREATION_TIMESTAMP` timestamp NULL DEFAULT current_timestamp(), |
| 851 | `UPDATE_TIMESTAMP` timestamp NULL DEFAULT current_timestamp(), |
| 852 | PRIMARY KEY (`ID`) |
| 853 | ) ; |
| 854 | |
Benjamin, Max (mb388a) | a81aef2 | 2018-08-13 09:48:57 -0400 | [diff] [blame] | 855 | CREATE TABLE IF NOT EXISTS `cloudify_managers` ( |
| 856 | `ID` varchar(50) NOT NULL, |
| 857 | `CLOUDIFY_URL` varchar(200) DEFAULT NULL, |
| 858 | `USERNAME` varchar(255) DEFAULT NULL, |
| 859 | `PASSWORD` varchar(255) DEFAULT NULL, |
| 860 | `VERSION` varchar(20) DEFAULT NULL, |
| 861 | `LAST_UPDATED_BY` varchar(120) DEFAULT NULL, |
| 862 | `CREATION_TIMESTAMP` timestamp NULL DEFAULT current_timestamp(), |
| 863 | `UPDATE_TIMESTAMP` timestamp NULL DEFAULT current_timestamp(), |
| 864 | PRIMARY KEY (`ID`) |
| 865 | ) ; |
| 866 | |
Benjamin, Max (mb388a) | a81aef2 | 2018-08-13 09:48:57 -0400 | [diff] [blame] | 867 | CREATE TABLE IF NOT EXISTS `cloud_sites` ( |
| 868 | `ID` varchar(50) NOT NULL, |
| 869 | `REGION_ID` varchar(11) DEFAULT NULL, |
| 870 | `IDENTITY_SERVICE_ID` varchar(50) DEFAULT NULL, |
| 871 | `CLOUD_VERSION` varchar(20) DEFAULT NULL, |
| 872 | `CLLI` varchar(11) DEFAULT NULL, |
| 873 | `CLOUDIFY_ID` varchar(50) DEFAULT NULL, |
| 874 | `PLATFORM` varchar(50) DEFAULT NULL, |
| 875 | `ORCHESTRATOR` varchar(50) DEFAULT NULL, |
| 876 | `LAST_UPDATED_BY` varchar(120) DEFAULT NULL, |
| 877 | `CREATION_TIMESTAMP` timestamp NULL DEFAULT current_timestamp(), |
| 878 | `UPDATE_TIMESTAMP` timestamp NULL DEFAULT current_timestamp(), |
| 879 | PRIMARY KEY (`ID`), |
| 880 | KEY `FK_cloud_sites_identity_services` (`IDENTITY_SERVICE_ID`), |
| 881 | CONSTRAINT `FK_cloud_sites_identity_services` FOREIGN KEY (`IDENTITY_SERVICE_ID`) REFERENCES `identity_services` (`ID`) |
Prema Bhatt | 474b175 | 2018-08-10 15:54:13 -0700 | [diff] [blame] | 882 | ) ; |
Benjamin, Max (mb388a) | 69455a2 | 2018-09-04 11:21:02 -0400 | [diff] [blame] | 883 | |
| 884 | CREATE TABLE IF NOT EXISTS vnfc_customization ( |
| 885 | `MODEL_CUSTOMIZATION_UUID` VARCHAR(200) NOT NULL, |
| 886 | `MODEL_INSTANCE_NAME` VARCHAR(200) NOT NULL, |
| 887 | `MODEL_UUID` VARCHAR(200) NOT NULL, |
| 888 | `MODEL_INVARIANT_UUID` VARCHAR(200) NOT NULL, |
| 889 | `MODEL_VERSION` VARCHAR(20) NOT NULL, |
| 890 | `MODEL_NAME` VARCHAR(200) NOT NULL, |
| 891 | `TOSCA_NODE_TYPE` VARCHAR(200) NOT NULL, |
| 892 | `DESCRIPTION` VARCHAR(1200) NULL DEFAULT NULL, |
| 893 | `CREATION_TIMESTAMP` DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP, |
| 894 | PRIMARY KEY (`MODEL_CUSTOMIZATION_UUID`)) |
| 895 | ENGINE = InnoDB |
| 896 | AUTO_INCREMENT = 20654 |
| 897 | DEFAULT CHARACTER SET = latin1; |
| 898 | |
| 899 | CREATE TABLE IF NOT EXISTS cvnfc_customization ( |
| 900 | `ID` INT(11) NOT NULL AUTO_INCREMENT, |
| 901 | `MODEL_CUSTOMIZATION_UUID` VARCHAR(200) NOT NULL, |
| 902 | `MODEL_INSTANCE_NAME` VARCHAR(200) NOT NULL, |
| 903 | `MODEL_UUID` VARCHAR(200) NOT NULL, |
| 904 | `MODEL_INVARIANT_UUID` VARCHAR(200) NOT NULL, |
| 905 | `MODEL_VERSION` VARCHAR(20) NOT NULL, |
| 906 | `MODEL_NAME` VARCHAR(200) NOT NULL, |
| 907 | `TOSCA_NODE_TYPE` VARCHAR(200) NOT NULL, |
| 908 | `DESCRIPTION` VARCHAR(1200) NULL DEFAULT NULL, |
| 909 | `NFC_FUNCTION` VARCHAR(200) NULL, |
| 910 | `NFC_NAMING_CODE` VARCHAR(200) NULL, |
| 911 | `CREATION_TIMESTAMP` DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP, |
| 912 | `VNF_RESOURCE_CUST_MODEL_CUSTOMIZATION_UUID` VARCHAR(200) NOT NULL, |
| 913 | `VF_MODULE_CUST_MODEL_CUSTOMIZATION_UUID` VARCHAR(200) NOT NULL, |
| 914 | `VNFC_CUST_MODEL_CUSTOMIZATION_UUID` VARCHAR(200) NOT NULL, PRIMARY KEY (`ID`), INDEX `fk_cvnfc_customization__vf_module_customization1_idx` (`VF_MODULE_CUST_MODEL_CUSTOMIZATION_UUID` ASC), INDEX `fk_cvnfc_customization__vnfc_customization1_idx` (`VNFC_CUST_MODEL_CUSTOMIZATION_UUID` ASC), INDEX `fk_cvnfc_customization__vnf_resource_customization1_idx` (`VNF_RESOURCE_CUST_MODEL_CUSTOMIZATION_UUID` ASC), UNIQUE INDEX `UK_cvnfc_customization` (`VNF_RESOURCE_CUST_MODEL_CUSTOMIZATION_UUID` ASC, `VF_MODULE_CUST_MODEL_CUSTOMIZATION_UUID` ASC, `MODEL_CUSTOMIZATION_UUID` ASC), INDEX `fk_cvnfc_customization__vnf_vfmod_cvnfc_config_cust1_idx` (`MODEL_CUSTOMIZATION_UUID` ASC), CONSTRAINT `fk_cvnfc_customization__vf_module_customization1` FOREIGN KEY (`VF_MODULE_CUST_MODEL_CUSTOMIZATION_UUID`) REFERENCES `vf_module_customization` (`MODEL_CUSTOMIZATION_UUID`) ON |
| 915 | DELETE CASCADE ON |
| 916 | UPDATE CASCADE, CONSTRAINT `fk_cvnfc_customization__vnfc_customization1` FOREIGN KEY (`VNFC_CUST_MODEL_CUSTOMIZATION_UUID`) REFERENCES `vnfc_customization` (`MODEL_CUSTOMIZATION_UUID`) ON |
| 917 | DELETE CASCADE ON |
| 918 | UPDATE CASCADE, CONSTRAINT `fk_cvnfc_customization__vnf_resource_customization1` FOREIGN KEY (`VNF_RESOURCE_CUST_MODEL_CUSTOMIZATION_UUID`) REFERENCES `vnf_resource_customization` (`MODEL_CUSTOMIZATION_UUID`) ON |
| 919 | DELETE CASCADE ON |
| 920 | UPDATE CASCADE) ENGINE = InnoDB AUTO_INCREMENT = 20654 DEFAULT CHARACTER SET = latin1; |
| 921 | |
| 922 | |
| 923 | CREATE TABLE IF NOT EXISTS vnf_vfmodule_cvnfc_configuration_customization ( |
| 924 | `ID` INT(11) NOT NULL AUTO_INCREMENT, |
| 925 | `MODEL_CUSTOMIZATION_UUID` VARCHAR(200) NOT NULL, |
| 926 | `VNF_RESOURCE_CUST_MODEL_CUSTOMIZATION_UUID` VARCHAR(200) NOT NULL, |
| 927 | `VF_MODULE_MODEL_CUSTOMIZATION_UUID` VARCHAR(200) NOT NULL, |
| 928 | `CVNFC_MODEL_CUSTOMIZATION_UUID` VARCHAR(200) NOT NULL, |
| 929 | `MODEL_INSTANCE_NAME` VARCHAR(200) NOT NULL, |
| 930 | `CONFIGURATION_TYPE` VARCHAR(200) NULL, |
| 931 | `CONFIGURATION_ROLE` VARCHAR(200) NULL, |
| 932 | `CONFIGURATION_FUNCTION` VARCHAR(200) NULL, |
| 933 | `POLICY_NAME` VARCHAR(200) NULL, |
| 934 | `CREATION_TIMESTAMP` DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP, |
| 935 | `CONFIGURATION_MODEL_UUID` VARCHAR(200) NOT NULL, |
| 936 | PRIMARY KEY (`ID`), |
| 937 | INDEX `fk_vnf_vfmodule_cvnfc_config_cust__configuration_idx` (`CONFIGURATION_MODEL_UUID` ASC), |
| 938 | UNIQUE INDEX `UK_vnf_vfmodule_cvnfc_configuration_customization` (`VNF_RESOURCE_CUST_MODEL_CUSTOMIZATION_UUID` ASC , `VF_MODULE_MODEL_CUSTOMIZATION_UUID` ASC , `CVNFC_MODEL_CUSTOMIZATION_UUID` ASC , `MODEL_CUSTOMIZATION_UUID` ASC), |
| 939 | INDEX `fk_vnf_vfmodule_cvnfc_config_cust__cvnfc_cust1_idx` (`CVNFC_MODEL_CUSTOMIZATION_UUID` ASC), |
| 940 | INDEX `fk_vnf_vfmodule_cvnfc_config_cust__vf_module_cust_idx` (`VF_MODULE_MODEL_CUSTOMIZATION_UUID` ASC), |
| 941 | INDEX `fk_vnf_vfmodule_cvnfc_config_cust__vnf_res_cust_idx` (`VNF_RESOURCE_CUST_MODEL_CUSTOMIZATION_UUID` ASC), |
| 942 | CONSTRAINT `fk_vnf_vfmod_cvnfc_config_cust__configuration_resource` FOREIGN KEY (`CONFIGURATION_MODEL_UUID`) |
| 943 | REFERENCES `configuration` (`MODEL_UUID`) |
| 944 | ON DELETE CASCADE ON UPDATE CASCADE, |
| 945 | CONSTRAINT `fk_cvnfc_configuration_customization__cvnfc_customization1` FOREIGN KEY (`CVNFC_MODEL_CUSTOMIZATION_UUID`) |
| 946 | REFERENCES `cvnfc_customization` (`MODEL_CUSTOMIZATION_UUID`) |
| 947 | ON DELETE CASCADE ON UPDATE CASCADE, |
| 948 | CONSTRAINT `fk_vnf_configuration_cvnfc_customization__vf_module_customiza1` FOREIGN KEY (`VF_MODULE_MODEL_CUSTOMIZATION_UUID`) |
| 949 | REFERENCES `vf_module_customization` (`MODEL_CUSTOMIZATION_UUID`) |
| 950 | ON DELETE CASCADE ON UPDATE CASCADE, |
| 951 | CONSTRAINT `fk_vfmodule_cvnfc_configuration_customization__vnf_resource_c1` FOREIGN KEY (`VNF_RESOURCE_CUST_MODEL_CUSTOMIZATION_UUID`) |
| 952 | REFERENCES `vnf_resource_customization` (`MODEL_CUSTOMIZATION_UUID`) |
| 953 | ON DELETE CASCADE ON UPDATE CASCADE |
| 954 | ) ENGINE=INNODB AUTO_INCREMENT=20654 DEFAULT CHARACTER SET=LATIN1; |