Benjamin, Max (mb388a) | 5a6a6de | 2018-07-30 15:56:09 -0400 | [diff] [blame] | 1 | |
| 2 | --------START Catalog DB SCHEMA -------- |
| 3 | use catalogdb; |
| 4 | |
| 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 | |
| 17 | |
| 18 | |
| 19 | |
| 20 | create table `allotted_resource_customization` ( |
| 21 | `model_customization_uuid` varchar(200) not null, |
| 22 | `model_instance_name` varchar(200) not null, |
| 23 | `providing_service_model_uuid` varchar(200) default null, |
| 24 | `providing_service_model_invariant_uuid` varchar(200) default null, |
| 25 | `providing_service_model_name` varchar(200) default null, |
| 26 | `target_network_role` varchar(200) default null, |
| 27 | `nf_type` varchar(200) default null, |
| 28 | `nf_role` varchar(200) default null, |
| 29 | `nf_function` varchar(200) default null, |
| 30 | `nf_naming_code` varchar(200) default null, |
| 31 | `min_instances` int(11) default null, |
| 32 | `max_instances` int(11) default null, |
| 33 | `ar_model_uuid` varchar(200) not null, |
subhash kumar singh | f6f326e | 2019-01-17 14:28:43 +0530 | [diff] [blame] | 34 | `resource_input` varchar(20000) default null, |
Benjamin, Max (mb388a) | 5a6a6de | 2018-07-30 15:56:09 -0400 | [diff] [blame] | 35 | `creation_timestamp` datetime not null default current_timestamp, |
| 36 | primary key (`model_customization_uuid`), |
| 37 | key `fk_allotted_resource_customization__allotted_resource1_idx` (`ar_model_uuid`), |
| 38 | constraint `fk_allotted_resource_customization__allotted_resource1` foreign key (`ar_model_uuid`) references `allotted_resource` (`model_uuid`) on delete cascade on update cascade |
| 39 | ) engine=innodb default charset=latin1; |
| 40 | |
| 41 | |
| 42 | |
| 43 | |
| 44 | create table `heat_environment` ( |
| 45 | `artifact_uuid` varchar(200) not null, |
| 46 | `name` varchar(100) not null, |
| 47 | `version` varchar(20) not null, |
| 48 | `description` varchar(1200) default null, |
| 49 | `body` longtext not null, |
| 50 | `artifact_checksum` varchar(200) not null default 'manual record', |
| 51 | `creation_timestamp` datetime not null default current_timestamp, |
| 52 | primary key (`artifact_uuid`) |
| 53 | ) engine=innodb default charset=latin1; |
| 54 | |
| 55 | |
| 56 | |
| 57 | create table `heat_files` ( |
| 58 | `artifact_uuid` varchar(200) not null, |
| 59 | `name` varchar(200) not null, |
| 60 | `version` varchar(20) not null, |
| 61 | `description` varchar(1200) default null, |
| 62 | `body` longtext not null, |
| 63 | `artifact_checksum` varchar(200) not null default 'manual record', |
| 64 | `creation_timestamp` datetime not null default current_timestamp, |
| 65 | primary key (`artifact_uuid`) |
| 66 | ) engine=innodb default charset=latin1; |
| 67 | |
| 68 | |
| 69 | |
| 70 | |
| 71 | create table `heat_template` ( |
| 72 | `artifact_uuid` varchar(200) not null, |
| 73 | `name` varchar(200) not null, |
| 74 | `version` varchar(20) not null, |
| 75 | `description` varchar(1200) default null, |
| 76 | `body` longtext not null, |
| 77 | `timeout_minutes` int(11) default null, |
| 78 | `artifact_checksum` varchar(200) not null default 'manual record', |
| 79 | `creation_timestamp` datetime not null default current_timestamp, |
| 80 | primary key (`artifact_uuid`) |
| 81 | ) engine=innodb default charset=latin1; |
| 82 | |
| 83 | |
| 84 | |
| 85 | create table `heat_nested_template` ( |
| 86 | `parent_heat_template_uuid` varchar(200) not null, |
| 87 | `child_heat_template_uuid` varchar(200) not null, |
| 88 | `provider_resource_file` varchar(100) default null, |
| 89 | primary key (`parent_heat_template_uuid`,`child_heat_template_uuid`), |
| 90 | key `fk_heat_nested_template__heat_template2_idx` (`child_heat_template_uuid`), |
| 91 | 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, |
| 92 | 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 |
| 93 | ) engine=innodb default charset=latin1; |
| 94 | |
| 95 | |
| 96 | |
| 97 | |
| 98 | create table `heat_template_params` ( |
| 99 | `heat_template_artifact_uuid` varchar(200) not null, |
| 100 | `param_name` varchar(100) not null, |
| 101 | `is_required` bit(1) not null, |
| 102 | `param_type` varchar(20) default null, |
| 103 | `param_alias` varchar(45) default null, |
| 104 | primary key (`heat_template_artifact_uuid`,`param_name`), |
| 105 | constraint `fk_heat_template_params__heat_template1` foreign key (`heat_template_artifact_uuid`) references `heat_template` (`artifact_uuid`) on delete cascade on update cascade |
| 106 | ) engine=innodb default charset=latin1; |
| 107 | |
| 108 | |
| 109 | |
| 110 | create table `network_recipe` ( |
| 111 | `id` int(11) not null auto_increment, |
| 112 | `model_name` varchar(20) not null, |
| 113 | `action` varchar(50) not null, |
| 114 | `description` varchar(1200) default null, |
| 115 | `orchestration_uri` varchar(256) not null, |
| 116 | `network_param_xsd` varchar(2048) default null, |
| 117 | `recipe_timeout` int(11) default null, |
| 118 | `service_type` varchar(45) default null, |
| 119 | `creation_timestamp` datetime not null default current_timestamp, |
| 120 | `version_str` varchar(20) not null, |
| 121 | primary key (`id`), |
| 122 | unique key `uk_rl4f296i0p8lyokxveaiwkayi` (`model_name`,`action`,`version_str`) |
| 123 | ) engine=innodb auto_increment=178 default charset=latin1; |
| 124 | |
| 125 | |
| 126 | |
| 127 | |
| 128 | create table `temp_network_heat_template_lookup` ( |
| 129 | `network_resource_model_name` varchar(200) not null, |
| 130 | `heat_template_artifact_uuid` varchar(200) not null, |
| 131 | `aic_version_min` varchar(20) not null, |
| 132 | `aic_version_max` varchar(20) default null, |
| 133 | primary key (`network_resource_model_name`), |
| 134 | key `fk_temp_network_heat_template_lookup__heat_template1_idx` (`heat_template_artifact_uuid`), |
| 135 | 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 |
| 136 | ) engine=innodb default charset=latin1; |
| 137 | |
| 138 | |
| 139 | |
| 140 | create table `network_resource` ( |
| 141 | `model_uuid` varchar(200) not null, |
| 142 | `model_name` varchar(200) not null, |
| 143 | `model_invariant_uuid` varchar(200) default null, |
| 144 | `description` varchar(1200) default null, |
| 145 | `heat_template_artifact_uuid` varchar(200) not null, |
| 146 | `neutron_network_type` varchar(20) default null, |
| 147 | `model_version` varchar(20) default null, |
| 148 | `tosca_node_type` varchar(200) default null, |
| 149 | `aic_version_min` varchar(20) not null, |
| 150 | `aic_version_max` varchar(20) default null, |
| 151 | `orchestration_mode` varchar(20) default 'heat', |
| 152 | `resource_category` varchar(20) default null, |
| 153 | `resource_sub_category` varchar(20) default null, |
| 154 | `creation_timestamp` datetime not null default current_timestamp, |
| 155 | primary key (`model_uuid`), |
| 156 | key `fk_network_resource__temp_network_heat_template_lookup1_idx` (`model_name`), |
| 157 | key `fk_network_resource__heat_template1_idx` (`heat_template_artifact_uuid`), |
| 158 | constraint `fk_network_resource__heat_template1` foreign key (`heat_template_artifact_uuid`) references `heat_template` (`artifact_uuid`) on delete no action on update cascade, |
| 159 | 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 |
| 160 | ) engine=innodb default charset=latin1; |
| 161 | |
| 162 | |
| 163 | |
| 164 | |
| 165 | |
| 166 | create table `network_resource_customization` ( |
| 167 | `model_customization_uuid` varchar(200) not null, |
| 168 | `model_instance_name` varchar(200) not null, |
| 169 | `network_technology` varchar(45) default null, |
| 170 | `network_type` varchar(45) default null, |
| 171 | `network_role` varchar(200) default null, |
| 172 | `network_scope` varchar(45) default null, |
| 173 | `creation_timestamp` datetime not null default current_timestamp, |
| 174 | `network_resource_model_uuid` varchar(200) not null, |
subhash kumar singh | f6f326e | 2019-01-17 14:28:43 +0530 | [diff] [blame] | 175 | `resource_input` varchar(20000) default null, |
Benjamin, Max (mb388a) | 5a6a6de | 2018-07-30 15:56:09 -0400 | [diff] [blame] | 176 | primary key (`model_customization_uuid`), |
| 177 | key `fk_network_resource_customization__network_resource1_idx` (`network_resource_model_uuid`), |
| 178 | constraint `fk_network_resource_customization__network_resource1` foreign key (`network_resource_model_uuid`) references `network_resource` (`model_uuid`) on delete cascade on update cascade |
| 179 | ) engine=innodb default charset=latin1; |
| 180 | |
| 181 | |
| 182 | |
| 183 | |
| 184 | |
| 185 | create table `tosca_csar` ( |
| 186 | `artifact_uuid` varchar(200) not null, |
| 187 | `name` varchar(200) not null, |
| 188 | `version` varchar(20) not null, |
| 189 | `description` varchar(1200) default null, |
| 190 | `artifact_checksum` varchar(200) not null, |
| 191 | `url` varchar(200) not null, |
| 192 | `creation_timestamp` datetime not null default current_timestamp, |
| 193 | primary key (`artifact_uuid`) |
| 194 | ) engine=innodb default charset=latin1; |
| 195 | |
| 196 | |
| 197 | |
| 198 | |
| 199 | create table `service` ( |
| 200 | `model_uuid` varchar(200) not null, |
| 201 | `model_name` varchar(200) not null, |
| 202 | `model_invariant_uuid` varchar(200) not null, |
| 203 | `model_version` varchar(20) not null, |
| 204 | `description` varchar(1200) default null, |
| 205 | `creation_timestamp` datetime not null default current_timestamp, |
| 206 | `tosca_csar_artifact_uuid` varchar(200) default null, |
| 207 | `service_type` varchar(200) default null, |
| 208 | `service_role` varchar(200) default null, |
| 209 | `environment_context` varchar(200) default null, |
| 210 | `workload_context` varchar(200) default null, |
| 211 | `service_category` varchar(200) default null, |
subhash kumar singh | 6addc71 | 2018-12-14 20:02:29 +0530 | [diff] [blame] | 212 | `resource_order` varchar(200) default null, |
Benjamin, Max (mb388a) | 5a6a6de | 2018-07-30 15:56:09 -0400 | [diff] [blame] | 213 | primary key (`model_uuid`), |
| 214 | key `fk_service__tosca_csar1_idx` (`tosca_csar_artifact_uuid`), |
| 215 | constraint `fk_service__tosca_csar1` foreign key (`tosca_csar_artifact_uuid`) references `tosca_csar` (`artifact_uuid`) on delete cascade on update cascade |
| 216 | ) engine=innodb default charset=latin1; |
| 217 | |
| 218 | |
| 219 | |
| 220 | create table `service_recipe` ( |
| 221 | `id` int(11) not null auto_increment, |
| 222 | `action` varchar(50) not null, |
| 223 | `version_str` varchar(20) default null, |
| 224 | `description` varchar(1200) default null, |
| 225 | `orchestration_uri` varchar(256) not null, |
| 226 | `service_param_xsd` varchar(2048) default null, |
| 227 | `recipe_timeout` int(11) default null, |
| 228 | `service_timeout_interim` int(11) default null, |
| 229 | `creation_timestamp` datetime not null default current_timestamp, |
| 230 | `service_model_uuid` varchar(200) not null, |
| 231 | primary key (`id`), |
| 232 | unique key `uk_7fav5dkux2v8g9d2i5ymudlgc` (`service_model_uuid`,`action`), |
| 233 | key `fk_service_recipe__service1_idx` (`service_model_uuid`), |
| 234 | constraint `fk_service_recipe__service1` foreign key (`service_model_uuid`) references `service` (`model_uuid`) on delete cascade on update cascade |
| 235 | ) engine=innodb auto_increment=86 default charset=latin1; |
| 236 | |
| 237 | |
| 238 | |
| 239 | create table `vnf_resource` ( |
| 240 | `orchestration_mode` varchar(20) not null default 'heat', |
| 241 | `description` varchar(1200) default null, |
| 242 | `creation_timestamp` datetime not null default current_timestamp, |
| 243 | `model_uuid` varchar(200) not null, |
| 244 | `aic_version_min` varchar(20) default null, |
| 245 | `aic_version_max` varchar(20) default null, |
| 246 | `model_invariant_uuid` varchar(200) default null, |
| 247 | `model_version` varchar(20) not null, |
| 248 | `model_name` varchar(200) default null, |
| 249 | `tosca_node_type` varchar(200) default null, |
| 250 | `resource_category` varchar(200) default null, |
| 251 | `resource_sub_category` varchar(200) default null, |
| 252 | `heat_template_artifact_uuid` varchar(200) default null, |
| 253 | primary key (`model_uuid`), |
| 254 | key `fk_vnf_resource__heat_template1` (`heat_template_artifact_uuid`), |
| 255 | constraint `fk_vnf_resource__heat_template1` foreign key (`heat_template_artifact_uuid`) references `heat_template` (`artifact_uuid`) on delete cascade on update cascade |
| 256 | ) engine=innodb default charset=latin1; |
| 257 | |
| 258 | |
| 259 | |
| 260 | |
| 261 | create table `vf_module` ( |
| 262 | `model_uuid` varchar(200) not null, |
| 263 | `model_invariant_uuid` varchar(200) default null, |
| 264 | `model_version` varchar(20) not null, |
| 265 | `model_name` varchar(200) not null, |
| 266 | `description` varchar(1200) default null, |
| 267 | `is_base` int(11) not null, |
| 268 | `heat_template_artifact_uuid` varchar(200) default null, |
| 269 | `vol_heat_template_artifact_uuid` varchar(200) default null, |
| 270 | `creation_timestamp` datetime not null default current_timestamp, |
| 271 | `vnf_resource_model_uuid` varchar(200) not null, |
| 272 | primary key (`model_uuid`,`vnf_resource_model_uuid`), |
| 273 | key `fk_vf_module__vnf_resource1_idx` (`vnf_resource_model_uuid`), |
| 274 | key `fk_vf_module__heat_template_art_uuid__heat_template1_idx` (`heat_template_artifact_uuid`), |
| 275 | key `fk_vf_module__vol_heat_template_art_uuid__heat_template2_idx` (`vol_heat_template_artifact_uuid`), |
| 276 | 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, |
| 277 | constraint `fk_vf_module__vnf_resource1` foreign key (`vnf_resource_model_uuid`) references `vnf_resource` (`model_uuid`) on delete cascade on update cascade, |
| 278 | 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 |
| 279 | ) engine=innodb default charset=latin1; |
| 280 | |
| 281 | |
| 282 | |
| 283 | /*!40101 set @saved_cs_client = @@character_set_client */; |
| 284 | /*!40101 set character_set_client = utf8 */; |
| 285 | create table `vf_module_customization` ( |
| 286 | `model_customization_uuid` varchar(200) not null, |
| 287 | `label` varchar(200) default null, |
| 288 | `initial_count` int(11) default '0', |
| 289 | `min_instances` int(11) default '0', |
| 290 | `max_instances` int(11) default null, |
| 291 | `availability_zone_count` int(11) default null, |
| 292 | `heat_environment_artifact_uuid` varchar(200) default null, |
| 293 | `vol_environment_artifact_uuid` varchar(200) default null, |
| 294 | `creation_timestamp` datetime not null default current_timestamp, |
| 295 | `vf_module_model_uuid` varchar(200) not null, |
| 296 | primary key (`model_customization_uuid`), |
| 297 | key `fk_vf_module_customization__vf_module1_idx` (`vf_module_model_uuid`), |
| 298 | key `fk_vf_module_customization__heat_env__heat_environment1_idx` (`heat_environment_artifact_uuid`), |
| 299 | key `fk_vf_module_customization__vol_env__heat_environment2_idx` (`vol_environment_artifact_uuid`), |
| 300 | 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, |
| 301 | constraint `fk_vf_module_customization__vf_module1` foreign key (`vf_module_model_uuid`) references `vf_module` (`model_uuid`) on delete cascade on update cascade, |
| 302 | 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 |
| 303 | ) engine=innodb default charset=latin1; |
| 304 | /*!40101 set character_set_client = @saved_cs_client */; |
| 305 | |
| 306 | -- |
| 307 | -- table structure for table `vf_module_to_heat_files` |
| 308 | -- |
| 309 | |
| 310 | |
| 311 | /*!40101 set @saved_cs_client = @@character_set_client */; |
| 312 | /*!40101 set character_set_client = utf8 */; |
| 313 | create table `vf_module_to_heat_files` ( |
| 314 | `vf_module_model_uuid` varchar(200) not null, |
| 315 | `heat_files_artifact_uuid` varchar(200) not null, |
| 316 | primary key (`vf_module_model_uuid`,`heat_files_artifact_uuid`), |
| 317 | key `fk_vf_module_to_heat_files__heat_files__artifact_uuid1_idx` (`heat_files_artifact_uuid`), |
| 318 | 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, |
| 319 | 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 |
| 320 | ) engine=innodb default charset=latin1 comment='il fait ce qu''il dit'; |
| 321 | /*!40101 set character_set_client = @saved_cs_client */; |
| 322 | |
| 323 | -- |
| 324 | -- table structure for table `vnf_components` |
| 325 | -- |
| 326 | |
| 327 | |
| 328 | /*!40101 set @saved_cs_client = @@character_set_client */; |
| 329 | /*!40101 set character_set_client = utf8 */; |
| 330 | create table `vnf_components` ( |
| 331 | `vnf_id` int(11) not null, |
| 332 | `component_type` varchar(20) not null, |
| 333 | `heat_template_id` int(11) default null, |
| 334 | `heat_environment_id` int(11) default null, |
| 335 | `creation_timestamp` datetime not null default current_timestamp, |
| 336 | primary key (`vnf_id`,`component_type`) |
| 337 | ) engine=innodb default charset=latin1; |
| 338 | /*!40101 set character_set_client = @saved_cs_client */; |
| 339 | |
| 340 | -- |
| 341 | -- table structure for table `vnf_components_recipe` |
| 342 | -- |
| 343 | |
| 344 | |
| 345 | |
| 346 | create table `vnf_components_recipe` ( |
| 347 | `id` int(11) not null auto_increment, |
| 348 | `vnf_type` varchar(200) default null, |
| 349 | `vnf_component_type` varchar(45) not null, |
| 350 | `action` varchar(50) not null, |
| 351 | `service_type` varchar(45) default null, |
| 352 | `version` varchar(20) not null, |
| 353 | `description` varchar(1200) default null, |
| 354 | `orchestration_uri` varchar(256) not null, |
| 355 | `vnf_component_param_xsd` varchar(2048) default null, |
| 356 | `recipe_timeout` int(11) default null, |
| 357 | `creation_timestamp` datetime default current_timestamp, |
| 358 | `vf_module_model_uuid` varchar(200) default null, |
| 359 | primary key (`id`), |
| 360 | unique key `uk_4dpdwddaaclhc11wxsb7h59ma` (`vf_module_model_uuid`,`vnf_component_type`,`action`,`version`) |
| 361 | ) engine=innodb auto_increment=26 default charset=latin1; |
| 362 | |
| 363 | |
| 364 | |
| 365 | |
| 366 | create table `vnf_recipe` ( |
| 367 | `id` int(11) not null auto_increment, |
| 368 | `vnf_type` varchar(200) default null, |
| 369 | `action` varchar(50) not null, |
| 370 | `service_type` varchar(45) default null, |
| 371 | `version_str` varchar(20) not null, |
| 372 | `description` varchar(1200) default null, |
| 373 | `orchestration_uri` varchar(256) not null, |
| 374 | `vnf_param_xsd` varchar(2048) default null, |
| 375 | `recipe_timeout` int(11) default null, |
| 376 | `creation_timestamp` datetime default current_timestamp, |
| 377 | `vf_module_id` varchar(100) default null, |
| 378 | primary key (`id`), |
| 379 | unique key `uk_f3tvqau498vrifq3cr8qnigkr` (`vf_module_id`,`action`,`version_str`) |
| 380 | ) engine=innodb auto_increment=10006 default charset=latin1; |
| 381 | |
| 382 | |
| 383 | |
| 384 | |
| 385 | |
| 386 | |
| 387 | |
| 388 | |
| 389 | create table `vnf_resource_customization` ( |
| 390 | `model_customization_uuid` varchar(200) not null, |
| 391 | `model_instance_name` varchar(200) not null, |
| 392 | `min_instances` int(11) default null, |
| 393 | `max_instances` int(11) default null, |
| 394 | `availability_zone_max_count` int(11) default null, |
| 395 | `nf_type` varchar(200) default null, |
| 396 | `nf_role` varchar(200) default null, |
| 397 | `nf_function` varchar(200) default null, |
| 398 | `nf_naming_code` varchar(200) default null, |
| 399 | `creation_timestamp` datetime not null default current_timestamp, |
| 400 | `vnf_resource_model_uuid` varchar(200) not null, |
| 401 | `multi_stage_design` varchar(20) default null, |
subhash kumar singh | f6f326e | 2019-01-17 14:28:43 +0530 | [diff] [blame] | 402 | `resource_input` varchar(20000) default null, |
Benjamin, Max (mb388a) | 5a6a6de | 2018-07-30 15:56:09 -0400 | [diff] [blame] | 403 | primary key (`model_customization_uuid`), |
| 404 | key `fk_vnf_resource_customization__vnf_resource1_idx` (`vnf_resource_model_uuid`), |
| 405 | constraint `fk_vnf_resource_customization__vnf_resource1` foreign key (`vnf_resource_model_uuid`) references `vnf_resource` (`model_uuid`) on delete cascade on update cascade |
| 406 | ) engine=innodb default charset=latin1; |
| 407 | |
| 408 | |
| 409 | |
| 410 | |
| 411 | create table `vnf_res_custom_to_vf_module_custom` ( |
| 412 | `vnf_resource_cust_model_customization_uuid` varchar(200) not null, |
| 413 | `vf_module_cust_model_customization_uuid` varchar(200) not null, |
| 414 | `creation_timestamp` datetime not null default current_timestamp, |
| 415 | primary key (`vnf_resource_cust_model_customization_uuid`,`vf_module_cust_model_customization_uuid`), |
| 416 | key `fk_vnf_res_custom_to_vf_module_custom__vf_module_customizat_idx` (`vf_module_cust_model_customization_uuid`), |
| 417 | 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, |
| 418 | 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 |
| 419 | ) engine=innodb default charset=latin1; |
| 420 | |
| 421 | |
| 422 | create table if not exists external_service_to_internal_model_mapping ( |
| 423 | id int(11) not null auto_increment, |
| 424 | service_name varchar(200) not null, |
| 425 | product_flavor varchar(200) null, |
| 426 | subscription_service_type varchar(200) not null, |
| 427 | service_model_uuid varchar(200) not null, |
| 428 | primary key (id), |
| 429 | unique index uk_external_service_to_internal_model_mapping |
| 430 | (service_name asc, product_flavor asc, service_model_uuid asc)); |
| 431 | |
| 432 | create table if not exists `collection_resource` ( |
| 433 | model_uuid varchar(200) not null, |
| 434 | model_name varchar(200) not null, |
| 435 | model_invariant_uuid varchar(200) not null, |
| 436 | model_version varchar(20) not null, |
| 437 | tosca_node_type varchar(200) not null, |
| 438 | description varchar(200), |
| 439 | creation_timestamp datetime not null default current_timestamp, |
| 440 | primary key (`model_uuid`) |
| 441 | )engine=innodb default charset=latin1; |
| 442 | |
| 443 | create table if not exists `collection_resource_customization` ( |
| 444 | model_customization_uuid varchar(200) not null, |
| 445 | model_instance_name varchar(200) not null, |
| 446 | role varchar(200) NULL, |
| 447 | object_type varchar(200) not null, |
| 448 | function varchar(200) NULL, |
| 449 | collection_resource_type varchar(200) NULL, |
| 450 | creation_timestamp datetime not null default current_timestamp, |
| 451 | cr_model_uuid varchar(200) not null, |
| 452 | primary key (`model_customization_uuid`) |
| 453 | )engine=innodb default charset=latin1; |
| 454 | |
| 455 | create table if not exists `instance_group` ( |
| 456 | model_uuid varchar(200) not null, |
| 457 | model_name varchar(200) not null, |
| 458 | model_invariant_uuid varchar(200) not null, |
| 459 | model_version varchar(20) not null, |
| 460 | tosca_node_type varchar(200) NULL, |
| 461 | role varchar(200) not null, |
| 462 | object_type varchar(200) not null, |
| 463 | creation_timestamp datetime not null default current_timestamp, |
| 464 | cr_model_uuid varchar(200) NULL, |
| 465 | instance_group_type varchar(200) not null, |
| 466 | primary key (`model_uuid`) |
| 467 | )engine=innodb default charset=latin1; |
| 468 | |
| 469 | create table if not exists `collection_resource_instance_group_customization` ( |
| 470 | `collection_resource_customization_model_uuid` varchar(200) not null, |
| 471 | `instance_group_model_uuid` varchar(200) not null, |
| 472 | `function` varchar(200) null, |
| 473 | `description` varchar(1200) null, |
| 474 | `subinterface_network_quantity` int(11) null, |
| 475 | `creation_timestamp` datetime not null default current_timestamp, |
| 476 | primary key (`collection_resource_customization_model_uuid`, `instance_group_model_uuid`), |
| 477 | index `fk_collection_resource_instance_group_customization__instan_idx` (`instance_group_model_uuid` asc), |
| 478 | constraint `fk_collection_resource_instance_group_customization__collecti1` |
| 479 | foreign key (`collection_resource_customization_model_uuid`) |
| 480 | references `collection_resource_customization` (`model_customization_uuid`) |
| 481 | on delete cascade |
| 482 | on update cascade, |
| 483 | constraint `fk_collection_resource_instance_group_customization__instance1` |
| 484 | foreign key (`instance_group_model_uuid`) |
| 485 | references `instance_group` (`model_uuid`) |
| 486 | on delete cascade |
| 487 | on update cascade) |
| 488 | engine = innodb |
| 489 | default character set = latin1; |
| 490 | |
| 491 | create table if not exists `vnfc_instance_group_customization` ( |
| 492 | `vnf_resource_customization_model_uuid` varchar(200) not null, |
| 493 | `instance_group_model_uuid` varchar(200) not null, |
| 494 | `function` varchar(200) null, |
| 495 | `description` varchar(1200) null, |
| 496 | `creation_timestamp` datetime not null default current_timestamp, |
| 497 | primary key (`vnf_resource_customization_model_uuid`, `instance_group_model_uuid`), |
| 498 | index `fk_vnfc_instance_group_customization__instance_group1_idx` (`instance_group_model_uuid` asc), |
| 499 | constraint `fk_vnfc_instance_group_customization__vnf_resource_customizat1` |
| 500 | foreign key (`vnf_resource_customization_model_uuid`) |
| 501 | references `vnf_resource_customization` (`model_customization_uuid`) |
| 502 | on delete cascade |
| 503 | on update cascade, |
| 504 | constraint `fk_vnfc_instance_group_customization__instance_group1` |
| 505 | foreign key (`instance_group_model_uuid`) |
| 506 | references `instance_group` (`model_uuid`) |
| 507 | on delete cascade |
| 508 | on update cascade) |
| 509 | engine = innodb |
| 510 | default character set = latin1; |
| 511 | |
| 512 | create table if not exists `configuration` |
| 513 | ( `model_uuid` varchar(200) not null, |
| 514 | `model_invariant_uuid` varchar(200) not null, |
| 515 | `model_version` varchar(20) not null, |
| 516 | `model_name` varchar(200) not null, |
| 517 | `tosca_node_type` varchar(200) not null, |
| 518 | `description` varchar(1200) null, |
| 519 | `creation_timestamp` datetime not null default current_timestamp, |
| 520 | primary key (`model_uuid`)) |
| 521 | engine = innodb auto_increment = 20654 |
| 522 | default character set = latin1; |
| 523 | |
| 524 | create table if not exists `service_proxy` ( |
| 525 | `model_uuid` varchar(200) not null, |
| 526 | `model_invariant_uuid` varchar(200) not null, |
| 527 | `model_version` varchar(20) not null, |
| 528 | `model_name` varchar(200) not null, |
| 529 | `description` varchar(1200) null, |
| 530 | `creation_timestamp` datetime not null default current_timestamp, |
| 531 | primary key (`model_uuid`)) |
| 532 | engine = innodb auto_increment = 20654 |
| 533 | default character set = latin1; |
| 534 | |
| 535 | create table if not exists `service_proxy_customization` ( |
| 536 | `model_customization_uuid` varchar(200) not null, |
| 537 | `model_instance_name` varchar(200) not null, |
| 538 | `tosca_node_type` varchar(200) not null, |
| 539 | `source_service_model_uuid` varchar(200) not null, |
| 540 | `creation_timestamp` datetime not null default current_timestamp, |
| 541 | `service_proxy_model_uuid` varchar(200) not null, |
| 542 | primary key (`model_customization_uuid`), |
| 543 | index `fk_service_proxy_customization__service_proxy1_idx` (`service_proxy_model_uuid` asc), |
| 544 | index `fk_service_proxy_customization__service1_idx` (`source_service_model_uuid` asc), |
| 545 | constraint`fk_spr_customization__service_proxy_resource1` |
| 546 | foreign key (`service_proxy_model_uuid`) references `service_proxy` (`model_uuid`) |
| 547 | on delete cascade on update cascade, |
| 548 | constraint `fk_service_proxy_resource_customization__service1` |
| 549 | foreign key (`source_service_model_uuid`) references `service` |
| 550 | (`model_uuid`) on delete cascade on update cascade) |
| 551 | engine = innodb |
| 552 | auto_increment = 20654 |
| 553 | default character set = latin1; |
| 554 | |
| 555 | create table if not exists `configuration_customization` ( |
| 556 | `model_customization_uuid` varchar(200) not null, |
| 557 | `model_instance_name` varchar(200) not null, |
| 558 | `configuration_type` varchar(200) null, |
| 559 | `configuration_role` varchar(200) null, |
| 560 | `configuration_function` varchar(200) null, |
| 561 | `creation_timestamp` datetime not null default current_timestamp, |
| 562 | `configuration_model_uuid` varchar(200) not null, |
| 563 | `service_proxy_customization_model_customization_uuid` varchar(200) null, |
| 564 | `configuration_customization_model_customization_uuid` varchar(200) null, |
| 565 | primary key (`model_customization_uuid`), |
| 566 | index `fk_configuration_customization__configuration_idx` (`configuration_model_uuid` asc), |
| 567 | index `fk_configuration_customization__service_proxy_customization_idx` |
| 568 | (`service_proxy_customization_model_customization_uuid` asc), |
| 569 | index `fk_configuration_customization__configuration_customization_idx` |
| 570 | (`configuration_customization_model_customization_uuid` asc), |
| 571 | constraint `fk_configuration_resource_customization__configuration_resour1` |
| 572 | foreign key (`configuration_model_uuid`) references `configuration` (`model_uuid`) |
| 573 | on delete cascade on update cascade, |
| 574 | constraint `fk_configuration_customization__service_proxy_customization1` foreign |
| 575 | key (`service_proxy_customization_model_customization_uuid`) references |
| 576 | `service_proxy_customization` (`model_customization_uuid`) |
| 577 | on delete cascade on update cascade, constraint |
| 578 | `fk_configuration_customization__configuration_customization1` foreign |
| 579 | key (`configuration_customization_model_customization_uuid`) references |
| 580 | `configuration_customization` (`model_customization_uuid`) |
| 581 | on delete cascade on update cascade) |
| 582 | engine = innodb |
| 583 | auto_increment =20654 |
| 584 | default character set = latin1; |
| 585 | |
| 586 | |
| 587 | create table `service_proxy_customization_to_service` ( |
| 588 | `service_model_uuid` varchar(200) not null, |
| 589 | `resource_model_customization_uuid` varchar(200) not null, |
| 590 | primary key (`service_model_uuid`,`resource_model_customization_uuid`) |
| 591 | )engine=innodb default charset=latin1; |
| 592 | |
| 593 | |
| 594 | create table `configuration_customization_to_service` ( |
| 595 | `service_model_uuid` varchar(200) not null, |
| 596 | `resource_model_customization_uuid` varchar(200) not null, |
| 597 | primary key (`service_model_uuid`,`resource_model_customization_uuid`) |
| 598 | )engine=innodb default charset=latin1; |
| 599 | |
| 600 | |
| 601 | create table if not exists `collection_resource_customization_to_service` ( |
| 602 | `service_model_uuid` varchar(200) not null, |
| 603 | `resource_model_customization_uuid` varchar(200) not null, |
| 604 | primary key (`service_model_uuid`,`resource_model_customization_uuid`) |
| 605 | )engine=innodb default charset=latin1; |
| 606 | |
| 607 | |
| 608 | create table `network_resource_customization_to_service` ( |
| 609 | `service_model_uuid` varchar(200) not null, |
| 610 | `resource_model_customization_uuid` varchar(200) not null, |
| 611 | primary key (`service_model_uuid`,`resource_model_customization_uuid`) |
| 612 | )engine=innodb default charset=latin1; |
| 613 | |
| 614 | create table `vnf_resource_customization_to_service` ( |
| 615 | `service_model_uuid` varchar(200) not null, |
| 616 | `resource_model_customization_uuid` varchar(200) not null, |
| 617 | primary key (`service_model_uuid`,`resource_model_customization_uuid`) |
| 618 | )engine=innodb default charset=latin1; |
| 619 | |
| 620 | create table `allotted_resource_customization_to_service` ( |
| 621 | `service_model_uuid` varchar(200) not null, |
| 622 | `resource_model_customization_uuid` varchar(200) not null, |
| 623 | primary key (`service_model_uuid`,`resource_model_customization_uuid`) |
| 624 | )engine=innodb default charset=latin1; |
| 625 | |
| 626 | |
| 627 | |
| 628 | |
| 629 | create table ar_recipe ( |
| 630 | ID INT(11) not null auto_increment, |
| 631 | MODEL_NAME VARCHAR(200) NOT NULL, |
| 632 | `ACTION` VARCHAR(200) NOT NULL, |
| 633 | VERSION_STR VARCHAR(200) NOT NULL, |
| 634 | SERVICE_TYPE VARCHAR(200), |
| 635 | DESCRIPTION VARCHAR(200), |
| 636 | ORCHESTRATION_URI VARCHAR(200) NOT NULL, |
| 637 | AR_PARAM_XSD VARCHAR(200), |
| 638 | RECIPE_TIMEOUT INT(10), |
| 639 | CREATION_TIMESTAMP DATETIME NOT NULL default current_timestamp, |
| 640 | primary key (ID), |
| 641 | unique key `uk_ar_recipe` (`model_name`,`action`,`version_str`) |
| 642 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; |
| 643 | |
| 644 | alter table collection_resource_customization |
| 645 | add foreign key ( cr_model_uuid) |
| 646 | references collection_resource(model_uuid) |
| 647 | on delete cascade; |
| 648 | |
| 649 | alter table vnf_resource_customization |
| 650 | add column |
| 651 | instance_group_model_uuid varchar(200); |
| 652 | |
| 653 | alter table network_resource_customization |
| 654 | add column |
| 655 | instance_group_model_uuid varchar(200); |
| 656 | |
| 657 | |
| 658 | alter table network_resource_customization |
| 659 | add foreign key ( instance_group_model_uuid) |
| 660 | references instance_group(model_uuid) |
| 661 | on delete cascade; |
| 662 | |
| 663 | alter table collection_resource_customization_to_service |
| 664 | add foreign key (service_model_uuid) |
| 665 | references service(model_uuid) |
| 666 | on delete cascade; |
| 667 | |
| 668 | alter table allotted_resource_customization_to_service |
| 669 | add foreign key (service_model_uuid) |
| 670 | references service(model_uuid) |
| 671 | on delete cascade; |
| 672 | |
| 673 | |
| 674 | alter table vnf_resource_customization_to_service |
| 675 | add foreign key (service_model_uuid) |
| 676 | references service(model_uuid) |
| 677 | on delete cascade; |
| 678 | |
| 679 | |
| 680 | alter table network_resource_customization_to_service |
| 681 | add foreign key (service_model_uuid) |
| 682 | references service(model_uuid) |
| 683 | on delete cascade; |
| 684 | |
| 685 | |
| 686 | alter table network_resource_customization_to_service |
| 687 | add foreign key (resource_model_customization_uuid) |
| 688 | references network_resource_customization(model_customization_uuid) |
| 689 | on delete cascade; |
| 690 | |
| 691 | alter table vnf_resource_customization_to_service |
| 692 | add foreign key (resource_model_customization_uuid) |
| 693 | references vnf_resource_customization(model_customization_uuid) |
| 694 | on delete cascade; |
| 695 | |
| 696 | alter table allotted_resource_customization_to_service |
| 697 | add foreign key (resource_model_customization_uuid) |
| 698 | references allotted_resource_customization(model_customization_uuid) |
| 699 | on delete cascade; |
| 700 | |
| 701 | alter table collection_resource_customization_to_service |
| 702 | add foreign key (resource_model_customization_uuid) |
| 703 | references collection_resource_customization(model_customization_uuid) |
| 704 | on delete cascade; |
| 705 | |
| 706 | |
| 707 | create table if not exists `collection_network_resource_customization` ( |
| 708 | `model_customization_uuid` varchar(200) not null, |
| 709 | `model_instance_name` varchar(200) not null, |
| 710 | `network_technology` varchar(45) null, |
| 711 | `network_type` varchar(45) null, |
| 712 | `network_role` varchar(200) null, |
| 713 | `network_scope` varchar(45) null, |
| 714 | `creation_timestamp` datetime not null default current_timestamp, |
| 715 | `network_resource_model_uuid` varchar(200) not null, `instance_group_model_uuid` varchar(200) null, |
| 716 | `crc_model_customization_uuid` varchar(200) not null, primary key |
| 717 | (`model_customization_uuid`, `crc_model_customization_uuid`), |
| 718 | index `fk_collection_net_resource_customization__network_resource1_idx` |
| 719 | (`network_resource_model_uuid` asc), index |
| 720 | `fk_collection_net_resource_customization__instance_group1_idx` |
| 721 | (`instance_group_model_uuid` asc), index |
| 722 | `fk_col_net_res_customization__collection_res_customization_idx` |
| 723 | (`crc_model_customization_uuid` asc), constraint |
| 724 | `fk_collection_net_resource_customization__network_resource10` foreign |
| 725 | key (`network_resource_model_uuid`) references |
| 726 | `network_resource` (`model_uuid`) on delete cascade on |
| 727 | update cascade, constraint |
| 728 | `fk_collection_net_resource_customization__instance_group10` foreign key |
| 729 | (`instance_group_model_uuid`) references `instance_group` |
| 730 | (`model_uuid`) on delete cascade on update cascade, constraint |
| 731 | `fk_collection_network_resource_customization__collection_reso1` foreign |
| 732 | key (`crc_model_customization_uuid`) references |
| 733 | `collection_resource_customization` |
| 734 | (`model_customization_uuid`) on delete cascade on update cascade) engine |
| 735 | = innodb default character set = latin1; |
| 736 | |
| 737 | CREATE TABLE IF NOT EXISTS `rainy_day_handler_macro` ( |
| 738 | `id` INT(11) NOT NULL AUTO_INCREMENT, |
| 739 | `FLOW_NAME` VARCHAR(200) NOT NULL, |
| 740 | `SERVICE_TYPE` VARCHAR(200) NOT NULL, |
| 741 | `VNF_TYPE` VARCHAR(200) NOT NULL, |
| 742 | `ERROR_CODE` VARCHAR(200) NOT NULL, |
| 743 | `WORK_STEP` VARCHAR(200) NOT NULL, |
| 744 | `POLICY` VARCHAR(200) NOT NULL, |
| 745 | PRIMARY KEY (`id`)) |
| 746 | ENGINE = InnoDB |
| 747 | DEFAULT CHARACTER SET = latin1; |
| 748 | |
| 749 | CREATE TABLE IF NOT EXISTS `northbound_request_ref_lookup` ( |
| 750 | `id` INT(11) NOT NULL AUTO_INCREMENT, |
| 751 | `REQUEST_SCOPE` VARCHAR(200) NOT NULL, |
| 752 | `ACTION` VARCHAR(200) NOT NULL, |
| 753 | `MACRO_ACTION` VARCHAR(200) NOT NULL, |
| 754 | `IS_ALACARTE` TINYINT(1) NOT NULL DEFAULT 0, |
| 755 | `IS_TOPLEVELFLOW` TINYINT(1) NOT NULL DEFAULT 0, |
| 756 | `MIN_API_VERSION` DOUBLE NOT NULL, |
| 757 | `MAX_API_VERSION` DOUBLE NULL, |
| 758 | PRIMARY KEY (`id`), |
| 759 | UNIQUE INDEX `UK_northbound_request_ref_lookup` (`MIN_API_VERSION` ASC, `REQUEST_SCOPE` ASC, `ACTION` ASC, `IS_ALACARTE` ASC)) |
| 760 | ENGINE = InnoDB |
| 761 | DEFAULT CHARACTER SET = latin1; |
| 762 | |
| 763 | CREATE TABLE IF NOT EXISTS `orchestration_flow_reference` ( |
| 764 | `id` INT(11) NOT NULL AUTO_INCREMENT, |
| 765 | `COMPOSITE_ACTION` VARCHAR(200) NOT NULL, |
| 766 | `SEQ_NO` INT(11) NOT NULL, |
| 767 | `FLOW_NAME` VARCHAR(200) NOT NULL, |
| 768 | `FLOW_VERSION` DOUBLE NOT NULL, |
| 769 | `NB_REQ_REF_LOOKUP_ID` INT(11) NOT NULL, |
| 770 | PRIMARY KEY (`id`), |
| 771 | INDEX `fk_orchestration_flow_reference__northbound_req_ref_look_idx` (`NB_REQ_REF_LOOKUP_ID` ASC), |
| 772 | UNIQUE INDEX `UK_orchestration_flow_reference` (`COMPOSITE_ACTION` ASC, `FLOW_NAME` ASC, `SEQ_NO` ASC, `NB_REQ_REF_LOOKUP_ID` ASC), |
| 773 | CONSTRAINT `fk_orchestration_flow_reference__northbound_request_ref_look1` |
| 774 | FOREIGN KEY (`NB_REQ_REF_LOOKUP_ID`) REFERENCES `northbound_request_ref_lookup` (`id`) |
| 775 | ON DELETE CASCADE ON UPDATE CASCADE) |
| 776 | ENGINE = InnoDB DEFAULT CHARACTER SET = latin1; |
| 777 | |
Benjamin, Max (mb388a) | 69455a2 | 2018-09-04 11:21:02 -0400 | [diff] [blame] | 778 | CREATE TABLE IF NOT EXISTS vnfc_customization ( |
| 779 | `MODEL_CUSTOMIZATION_UUID` VARCHAR(200) NOT NULL, |
| 780 | `MODEL_INSTANCE_NAME` VARCHAR(200) NOT NULL, |
| 781 | `MODEL_UUID` VARCHAR(200) NOT NULL, |
| 782 | `MODEL_INVARIANT_UUID` VARCHAR(200) NOT NULL, |
| 783 | `MODEL_VERSION` VARCHAR(20) NOT NULL, |
| 784 | `MODEL_NAME` VARCHAR(200) NOT NULL, |
| 785 | `TOSCA_NODE_TYPE` VARCHAR(200) NOT NULL, |
| 786 | `DESCRIPTION` VARCHAR(1200) NULL DEFAULT NULL, |
| 787 | `CREATION_TIMESTAMP` DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP, |
| 788 | PRIMARY KEY (`MODEL_CUSTOMIZATION_UUID`)) |
| 789 | ENGINE = InnoDB |
| 790 | AUTO_INCREMENT = 20654 |
| 791 | DEFAULT CHARACTER SET = latin1; |
| 792 | |
| 793 | CREATE TABLE IF NOT EXISTS cvnfc_customization ( |
| 794 | `ID` INT(11) NOT NULL AUTO_INCREMENT, |
| 795 | `MODEL_CUSTOMIZATION_UUID` VARCHAR(200) NOT NULL, |
| 796 | `MODEL_INSTANCE_NAME` VARCHAR(200) NOT NULL, |
| 797 | `MODEL_UUID` VARCHAR(200) NOT NULL, |
| 798 | `MODEL_INVARIANT_UUID` VARCHAR(200) NOT NULL, |
| 799 | `MODEL_VERSION` VARCHAR(20) NOT NULL, |
| 800 | `MODEL_NAME` VARCHAR(200) NOT NULL, |
| 801 | `TOSCA_NODE_TYPE` VARCHAR(200) NOT NULL, |
| 802 | `DESCRIPTION` VARCHAR(1200) NULL DEFAULT NULL, |
| 803 | `NFC_FUNCTION` VARCHAR(200) NULL, |
| 804 | `NFC_NAMING_CODE` VARCHAR(200) NULL, |
| 805 | `CREATION_TIMESTAMP` DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP, |
| 806 | `VNF_RESOURCE_CUST_MODEL_CUSTOMIZATION_UUID` VARCHAR(200) NOT NULL, |
| 807 | `VF_MODULE_CUST_MODEL_CUSTOMIZATION_UUID` VARCHAR(200) NOT NULL, |
| 808 | `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 |
| 809 | DELETE CASCADE ON |
| 810 | UPDATE CASCADE, CONSTRAINT `fk_cvnfc_customization__vnfc_customization1` FOREIGN KEY (`VNFC_CUST_MODEL_CUSTOMIZATION_UUID`) REFERENCES `vnfc_customization` (`MODEL_CUSTOMIZATION_UUID`) ON |
| 811 | DELETE CASCADE ON |
| 812 | 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 |
| 813 | DELETE CASCADE ON |
| 814 | UPDATE CASCADE) ENGINE = InnoDB AUTO_INCREMENT = 20654 DEFAULT CHARACTER SET = latin1; |
| 815 | |
| 816 | |
| 817 | CREATE TABLE IF NOT EXISTS vnf_vfmodule_cvnfc_configuration_customization ( |
| 818 | `ID` INT(11) NOT NULL AUTO_INCREMENT, |
| 819 | `MODEL_CUSTOMIZATION_UUID` VARCHAR(200) NOT NULL, |
| 820 | `VNF_RESOURCE_CUST_MODEL_CUSTOMIZATION_UUID` VARCHAR(200) NOT NULL, |
| 821 | `VF_MODULE_MODEL_CUSTOMIZATION_UUID` VARCHAR(200) NOT NULL, |
| 822 | `CVNFC_MODEL_CUSTOMIZATION_UUID` VARCHAR(200) NOT NULL, |
| 823 | `MODEL_INSTANCE_NAME` VARCHAR(200) NOT NULL, |
| 824 | `CONFIGURATION_TYPE` VARCHAR(200) NULL, |
| 825 | `CONFIGURATION_ROLE` VARCHAR(200) NULL, |
| 826 | `CONFIGURATION_FUNCTION` VARCHAR(200) NULL, |
| 827 | `POLICY_NAME` VARCHAR(200) NULL, |
| 828 | `CREATION_TIMESTAMP` DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP, |
| 829 | `CONFIGURATION_MODEL_UUID` VARCHAR(200) NOT NULL, |
| 830 | PRIMARY KEY (`ID`), |
| 831 | INDEX `fk_vnf_vfmodule_cvnfc_config_cust__configuration_idx` (`CONFIGURATION_MODEL_UUID` ASC), |
| 832 | 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), |
| 833 | INDEX `fk_vnf_vfmodule_cvnfc_config_cust__cvnfc_cust1_idx` (`CVNFC_MODEL_CUSTOMIZATION_UUID` ASC), |
| 834 | INDEX `fk_vnf_vfmodule_cvnfc_config_cust__vf_module_cust_idx` (`VF_MODULE_MODEL_CUSTOMIZATION_UUID` ASC), |
| 835 | INDEX `fk_vnf_vfmodule_cvnfc_config_cust__vnf_res_cust_idx` (`VNF_RESOURCE_CUST_MODEL_CUSTOMIZATION_UUID` ASC), |
| 836 | CONSTRAINT `fk_vnf_vfmod_cvnfc_config_cust__configuration_resource` FOREIGN KEY (`CONFIGURATION_MODEL_UUID`) |
| 837 | REFERENCES `configuration` (`MODEL_UUID`) |
| 838 | ON DELETE CASCADE ON UPDATE CASCADE, |
| 839 | CONSTRAINT `fk_cvnfc_configuration_customization__cvnfc_customization1` FOREIGN KEY (`CVNFC_MODEL_CUSTOMIZATION_UUID`) |
| 840 | REFERENCES `cvnfc_customization` (`MODEL_CUSTOMIZATION_UUID`) |
| 841 | ON DELETE CASCADE ON UPDATE CASCADE, |
| 842 | CONSTRAINT `fk_vnf_configuration_cvnfc_customization__vf_module_customiza1` FOREIGN KEY (`VF_MODULE_MODEL_CUSTOMIZATION_UUID`) |
| 843 | REFERENCES `vf_module_customization` (`MODEL_CUSTOMIZATION_UUID`) |
| 844 | ON DELETE CASCADE ON UPDATE CASCADE, |
| 845 | CONSTRAINT `fk_vfmodule_cvnfc_configuration_customization__vnf_resource_c1` FOREIGN KEY (`VNF_RESOURCE_CUST_MODEL_CUSTOMIZATION_UUID`) |
| 846 | REFERENCES `vnf_resource_customization` (`MODEL_CUSTOMIZATION_UUID`) |
| 847 | ON DELETE CASCADE ON UPDATE CASCADE |
| 848 | ) ENGINE=INNODB AUTO_INCREMENT=20654 DEFAULT CHARACTER SET=LATIN1; |
| 849 | |
Benjamin, Max (mb388a) | 5a6a6de | 2018-07-30 15:56:09 -0400 | [diff] [blame] | 850 | --------START Request DB SCHEMA -------- |
| 851 | CREATE DATABASE requestdb; |
| 852 | USE requestdb; |
| 853 | |
| 854 | |
| 855 | CREATE TABLE `active_requests` ( |
| 856 | `REQUEST_ID` varchar(45) NOT NULL, |
| 857 | `CLIENT_REQUEST_ID` varchar(45) DEFAULT NULL, |
| 858 | `SERVICE_INSTANCE_ID` varchar(50) NOT NULL, |
| 859 | `SUBSCRIBER_NAME` varchar(200) DEFAULT NULL, |
| 860 | `REQUEST_URI` varchar(255) DEFAULT NULL, |
| 861 | `SERVICE_TYPE` varchar(65) NOT NULL, |
| 862 | `REQUEST_ACTION` varchar(45) NOT NULL, |
| 863 | `NOTIFICATION_URL` varchar(255) DEFAULT NULL, |
| 864 | `REQUEST_ID_IN_PROGRESS` varchar(45) DEFAULT NULL, |
| 865 | `START_TIME` datetime DEFAULT NULL, |
| 866 | `MODIFY_TIME` datetime DEFAULT NULL, |
| 867 | `COMPLETION_TIME` datetime DEFAULT NULL, |
| 868 | `RESPONSE_CODE` varchar(20) DEFAULT NULL, |
| 869 | `RESPONSE_BODY` longtext, |
| 870 | `STATUS` varchar(25) DEFAULT NULL, |
| 871 | `SERVICE_REQUEST_TIMEOUT` datetime DEFAULT NULL, |
| 872 | `FINAL_ERROR_CODE` varchar(20) DEFAULT NULL, |
| 873 | `FINAL_ERROR_MESSAGE` varchar(2000) DEFAULT NULL, |
| 874 | `ORDER_NUMBER` varchar(45) DEFAULT NULL, |
| 875 | `SOURCE` varchar(20) DEFAULT NULL, |
| 876 | `RESPONSE_STATUS` varchar(25) DEFAULT NULL, |
| 877 | `ORDER_VERSION` varchar(20) DEFAULT NULL, |
| 878 | `LAST_MODIFIED_BY` varchar(20) DEFAULT NULL, |
| 879 | `MOCARS_TICKET_NUM` varchar(200) DEFAULT NULL, |
| 880 | `REQUEST_BODY` longtext, |
| 881 | `REQUEST_SUB_ACTION` varchar(45) DEFAULT NULL, |
| 882 | `SDNC_CALLBACK_BPEL_URL` varchar(255) DEFAULT NULL, |
| 883 | `FEATURE_TYPE` varchar(255) DEFAULT NULL, |
| 884 | `FEATURE_INSTANCE_ID` varchar(255) DEFAULT NULL, |
| 885 | `REQUEST_TYPE` varchar(255) DEFAULT NULL, |
| 886 | `INTERIM_COMPLETION_TIME` datetime DEFAULT NULL, |
| 887 | `INTERIM_STAGE_COMPLETION` int(11) DEFAULT NULL, |
| 888 | `SERVICE_NAME_VERSION_ID` varchar(50) DEFAULT NULL, |
| 889 | `GLOBAL_SUBSCRIBER_ID` varchar(255) DEFAULT NULL, |
| 890 | `SERVICE_ID` varchar(50) DEFAULT NULL, |
| 891 | `SERVICE_VERSION` varchar(10) DEFAULT NULL, |
| 892 | `CORRELATOR` varchar(50) DEFAULT NULL, |
| 893 | PRIMARY KEY (`REQUEST_ID`), |
| 894 | UNIQUE KEY `UK_f0hdk7xbw5mb2trnxx0fvlh3x` (`CLIENT_REQUEST_ID`) |
| 895 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; |
| 896 | |
| 897 | CREATE TABLE `infra_active_requests` ( |
| 898 | `REQUEST_ID` varchar(45) NOT NULL, |
| 899 | `CLIENT_REQUEST_ID` varchar(45) DEFAULT NULL, |
| 900 | `ACTION` varchar(45) DEFAULT NULL, |
| 901 | `REQUEST_STATUS` varchar(20) DEFAULT NULL, |
| 902 | `STATUS_MESSAGE` longtext DEFAULT NULL, |
| 903 | `PROGRESS` bigint(20) DEFAULT NULL, |
| 904 | `START_TIME` datetime DEFAULT NULL, |
| 905 | `END_TIME` datetime DEFAULT NULL, |
| 906 | `SOURCE` varchar(45) DEFAULT NULL, |
| 907 | `VNF_ID` varchar(45) DEFAULT NULL, |
| 908 | `VNF_NAME` varchar(80) DEFAULT NULL, |
| 909 | `VNF_TYPE` varchar(200) DEFAULT NULL, |
| 910 | `SERVICE_TYPE` varchar(45) DEFAULT NULL, |
| 911 | `AIC_NODE_CLLI` varchar(11) DEFAULT NULL, |
| 912 | `TENANT_ID` varchar(45) DEFAULT NULL, |
| 913 | `PROV_STATUS` varchar(20) DEFAULT NULL, |
| 914 | `VNF_PARAMS` longtext, |
| 915 | `VNF_OUTPUTS` longtext, |
| 916 | `REQUEST_BODY` longtext, |
| 917 | `RESPONSE_BODY` longtext, |
| 918 | `LAST_MODIFIED_BY` varchar(100) DEFAULT NULL, |
| 919 | `MODIFY_TIME` datetime DEFAULT NULL, |
| 920 | `REQUEST_TYPE` varchar(20) DEFAULT NULL, |
| 921 | `VOLUME_GROUP_ID` varchar(45) DEFAULT NULL, |
| 922 | `VOLUME_GROUP_NAME` varchar(45) DEFAULT NULL, |
| 923 | `VF_MODULE_ID` varchar(45) DEFAULT NULL, |
| 924 | `VF_MODULE_NAME` varchar(200) DEFAULT NULL, |
| 925 | `VF_MODULE_MODEL_NAME` varchar(200) DEFAULT NULL, |
| 926 | `AAI_SERVICE_ID` varchar(50) DEFAULT NULL, |
| 927 | `AIC_CLOUD_REGION` varchar(11) DEFAULT NULL, |
| 928 | `CALLBACK_URL` varchar(200) DEFAULT NULL, |
| 929 | `CORRELATOR` varchar(80) DEFAULT NULL, |
| 930 | `NETWORK_ID` varchar(45) DEFAULT NULL, |
| 931 | `NETWORK_NAME` varchar(80) DEFAULT NULL, |
| 932 | `NETWORK_TYPE` varchar(80) DEFAULT NULL, |
| 933 | `REQUEST_SCOPE` varchar(20) NOT NULL DEFAULT 'unknown', |
| 934 | `REQUEST_ACTION` varchar(45) NOT NULL DEFAULT 'unknown', |
| 935 | `SERVICE_INSTANCE_ID` varchar(45) DEFAULT NULL, |
| 936 | `SERVICE_INSTANCE_NAME` varchar(80) DEFAULT NULL, |
| 937 | `REQUESTOR_ID` varchar(50) DEFAULT NULL, |
| 938 | `CONFIGURATION_ID` varchar(45) DEFAULT NULL, |
| 939 | `CONFIGURATION_NAME` varchar(200) DEFAULT NULL, |
| 940 | `OPERATIONAL_ENV_ID` varchar(45) DEFAULT NULL, |
| 941 | `OPERATIONAL_ENV_NAME` varchar(200) DEFAULT NULL, |
| 942 | PRIMARY KEY (`REQUEST_ID`), |
| 943 | UNIQUE KEY `UK_bhu6w8p7wvur4pin0gjw2d5ak` (`CLIENT_REQUEST_ID`) |
| 944 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; |
| 945 | |
| 946 | CREATE TABLE `archived_infra_requests` ( |
| 947 | `REQUEST_ID` varchar(45) NOT NULL, |
| 948 | `CLIENT_REQUEST_ID` varchar(45) DEFAULT NULL, |
| 949 | `ACTION` varchar(45) DEFAULT NULL, |
| 950 | `REQUEST_STATUS` varchar(20) DEFAULT NULL, |
| 951 | `STATUS_MESSAGE` longtext DEFAULT NULL, |
| 952 | `PROGRESS` bigint(20) DEFAULT NULL, |
| 953 | `START_TIME` datetime DEFAULT NULL, |
| 954 | `END_TIME` datetime DEFAULT NULL, |
| 955 | `SOURCE` varchar(45) DEFAULT NULL, |
| 956 | `VNF_ID` varchar(45) DEFAULT NULL, |
| 957 | `VNF_NAME` varchar(80) DEFAULT NULL, |
| 958 | `VNF_TYPE` varchar(200) DEFAULT NULL, |
| 959 | `SERVICE_TYPE` varchar(45) DEFAULT NULL, |
| 960 | `AIC_NODE_CLLI` varchar(11) DEFAULT NULL, |
| 961 | `TENANT_ID` varchar(45) DEFAULT NULL, |
| 962 | `PROV_STATUS` varchar(20) DEFAULT NULL, |
| 963 | `VNF_PARAMS` longtext, |
| 964 | `VNF_OUTPUTS` longtext, |
| 965 | `REQUEST_BODY` longtext, |
| 966 | `RESPONSE_BODY` longtext, |
| 967 | `LAST_MODIFIED_BY` varchar(100) DEFAULT NULL, |
| 968 | `MODIFY_TIME` datetime DEFAULT NULL, |
| 969 | `REQUEST_TYPE` varchar(20) DEFAULT NULL, |
| 970 | `VOLUME_GROUP_ID` varchar(45) DEFAULT NULL, |
| 971 | `VOLUME_GROUP_NAME` varchar(45) DEFAULT NULL, |
| 972 | `VF_MODULE_ID` varchar(45) DEFAULT NULL, |
| 973 | `VF_MODULE_NAME` varchar(200) DEFAULT NULL, |
| 974 | `VF_MODULE_MODEL_NAME` varchar(200) DEFAULT NULL, |
| 975 | `AAI_SERVICE_ID` varchar(50) DEFAULT NULL, |
| 976 | `AIC_CLOUD_REGION` varchar(11) DEFAULT NULL, |
| 977 | `CALLBACK_URL` varchar(200) DEFAULT NULL, |
| 978 | `CORRELATOR` varchar(80) DEFAULT NULL, |
| 979 | `NETWORK_ID` varchar(45) DEFAULT NULL, |
| 980 | `NETWORK_NAME` varchar(80) DEFAULT NULL, |
| 981 | `NETWORK_TYPE` varchar(80) DEFAULT NULL, |
| 982 | `REQUEST_SCOPE` varchar(20) NOT NULL DEFAULT 'unknown', |
| 983 | `REQUEST_ACTION` varchar(45) NOT NULL DEFAULT 'unknown', |
| 984 | `SERVICE_INSTANCE_ID` varchar(45) DEFAULT NULL, |
| 985 | `SERVICE_INSTANCE_NAME` varchar(80) DEFAULT NULL, |
| 986 | `REQUESTOR_ID` varchar(50) DEFAULT NULL, |
| 987 | `CONFIGURATION_ID` varchar(45) DEFAULT NULL, |
| 988 | `CONFIGURATION_NAME` varchar(200) DEFAULT NULL, |
| 989 | `OPERATIONAL_ENV_ID` varchar(45) DEFAULT NULL, |
| 990 | `OPERATIONAL_ENV_NAME` varchar(200) DEFAULT NULL, |
| 991 | PRIMARY KEY (`REQUEST_ID`), |
| 992 | UNIQUE KEY `UK_bhu6w8p7wvur4pin0gjw2d72h` (`CLIENT_REQUEST_ID`) |
| 993 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; |
| 994 | |
| 995 | CREATE TABLE `site_status` ( |
| 996 | `SITE_NAME` varchar(255) NOT NULL, |
| 997 | `STATUS` bit(1) DEFAULT NULL, |
| 998 | `CREATION_TIMESTAMP` datetime DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, |
| 999 | PRIMARY KEY (`SITE_NAME`) |
| 1000 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; |
| 1001 | |
| 1002 | CREATE TABLE `watchdog_distributionid_status` ( |
| 1003 | `DISTRIBUTION_ID` varchar(45) NOT NULL, |
| 1004 | `DISTRIBUTION_ID_STATUS` varchar(45) DEFAULT NULL, |
| 1005 | `CREATE_TIME` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP, |
| 1006 | `MODIFY_TIME` datetime DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP, |
| 1007 | PRIMARY KEY (`DISTRIBUTION_ID`) |
| 1008 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; |
| 1009 | |
| 1010 | CREATE TABLE `watchdog_per_component_distribution_status` ( |
| 1011 | `DISTRIBUTION_ID` varchar(45) NOT NULL, |
| 1012 | `COMPONENT_NAME` varchar(45) NOT NULL, |
| 1013 | `COMPONENT_DISTRIBUTION_STATUS` varchar(45) DEFAULT NULL, |
| 1014 | `CREATE_TIME` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP, |
| 1015 | `MODIFY_TIME` datetime DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP, |
| 1016 | PRIMARY KEY (`DISTRIBUTION_ID`,`COMPONENT_NAME`), |
| 1017 | CONSTRAINT `fk_watchdog_component_distribution_status_watchdog_distributi1` FOREIGN KEY (`DISTRIBUTION_ID`) REFERENCES `watchdog_distributionid_status` (`DISTRIBUTION_ID`) ON DELETE CASCADE ON UPDATE CASCADE |
| 1018 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; |
| 1019 | |
| 1020 | CREATE TABLE `watchdog_service_mod_ver_id_lookup` ( |
| 1021 | `DISTRIBUTION_ID` varchar(45) NOT NULL, |
| 1022 | `SERVICE_MODEL_VERSION_ID` varchar(45) NOT NULL, |
| 1023 | `CREATE_TIME` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP, |
| 1024 | `MODIFY_TIME` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP, |
| 1025 | PRIMARY KEY (`DISTRIBUTION_ID`,`SERVICE_MODEL_VERSION_ID`) |
| 1026 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; |
| 1027 | |
| 1028 | CREATE TABLE `activate_operational_env_service_model_distribution_status` ( |
| 1029 | `OPERATIONAL_ENV_ID` varchar(45) NOT NULL, |
| 1030 | `SERVICE_MODEL_VERSION_ID` varchar(45) NOT NULL, |
| 1031 | `REQUEST_ID` varchar(45) NOT NULL, |
| 1032 | `SERVICE_MOD_VER_FINAL_DISTR_STATUS` varchar(45) DEFAULT NULL, |
| 1033 | `RECOVERY_ACTION` varchar(30) DEFAULT NULL, |
| 1034 | `RETRY_COUNT_LEFT` int(11) DEFAULT NULL, |
| 1035 | `WORKLOAD_CONTEXT` varchar(80) NOT NULL, |
| 1036 | `CREATE_TIME` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP, |
| 1037 | `MODIFY_TIME` datetime DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP, |
| 1038 | PRIMARY KEY (`OPERATIONAL_ENV_ID`,`SERVICE_MODEL_VERSION_ID`,`REQUEST_ID`) |
| 1039 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; |
| 1040 | |
| 1041 | CREATE TABLE `activate_operational_env_per_distributionid_status` ( |
| 1042 | `DISTRIBUTION_ID` varchar(45) NOT NULL, |
| 1043 | `DISTRIBUTION_ID_STATUS` varchar(45) DEFAULT NULL, |
| 1044 | `DISTRIBUTION_ID_ERROR_REASON` varchar(250) DEFAULT NULL, |
| 1045 | `CREATE_TIME` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP, |
| 1046 | `MODIFY_TIME` datetime DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP, |
| 1047 | `OPERATIONAL_ENV_ID` varchar(45) NOT NULL, |
| 1048 | `SERVICE_MODEL_VERSION_ID` varchar(45) NOT NULL, |
| 1049 | `REQUEST_ID` varchar(45) NOT NULL, |
| 1050 | PRIMARY KEY (`DISTRIBUTION_ID`), |
| 1051 | KEY `fk_activate_op_env_per_distributionid_status__aoesmds1_idx` (`OPERATIONAL_ENV_ID`,`SERVICE_MODEL_VERSION_ID`,`REQUEST_ID`), |
| 1052 | CONSTRAINT `fk_activate_op_env_per_distributionid_status__aoesmds1` FOREIGN KEY (`OPERATIONAL_ENV_ID`, `SERVICE_MODEL_VERSION_ID`, `REQUEST_ID`) REFERENCES `activate_operational_env_service_model_distribution_status` (`OPERATIONAL_ENV_ID`, `SERVICE_MODEL_VERSION_ID`, `REQUEST_ID`) ON DELETE CASCADE ON UPDATE CASCADE |
| 1053 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; |
| 1054 | |
| 1055 | create table operation_status ( |
| 1056 | SERVICE_ID varchar(255) not null, |
| 1057 | OPERATION_ID varchar(255) not null, |
| 1058 | SERVICE_NAME varchar(255), |
| 1059 | OPERATION_TYPE varchar(255), |
| 1060 | USER_ID varchar(255), |
| 1061 | RESULT varchar(255), |
| 1062 | OPERATION_CONTENT varchar(255), |
| 1063 | PROGRESS varchar(255), |
| 1064 | REASON varchar(255), |
| 1065 | OPERATE_AT datetime NOT NULL, |
| 1066 | FINISHED_AT datetime NOT NULL, |
| 1067 | primary key (SERVICE_ID,OPERATION_ID) |
| 1068 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; |
| 1069 | |
| 1070 | create table resource_operation_status ( |
| 1071 | SERVICE_ID varchar(255) not null, |
| 1072 | OPERATION_ID varchar(255) not null, |
| 1073 | RESOURCE_TEMPLATE_UUID varchar(255) not null, |
| 1074 | OPER_TYPE varchar(255), |
| 1075 | RESOURCE_INSTANCE_ID varchar(255), |
| 1076 | JOB_ID varchar(255), |
| 1077 | STATUS varchar(255), |
| 1078 | PROGRESS varchar(255), |
| 1079 | ERROR_CODE varchar(255) , |
| 1080 | STATUS_DESCRIPOTION varchar(255) , |
| 1081 | primary key (SERVICE_ID,OPERATION_ID,RESOURCE_TEMPLATE_UUID) |
| 1082 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; |
| 1083 | |
| 1084 | create table if not exists model_recipe ( |
| 1085 | `ID` INT(11) NOT NULL AUTO_INCREMENT, |
| 1086 | `MODEL_ID` INT(11), |
| 1087 | `ACTION` VARCHAR(40), |
| 1088 | `SCHEMA_VERSION` VARCHAR(40), |
| 1089 | `DESCRIPTION` VARCHAR(40), |
| 1090 | `ORCHESTRATION_URI` VARCHAR(20), |
| 1091 | `MODEL_PARAM_XSD` VARCHAR(20), |
| 1092 | `RECIPE_TIMEOUT` INT(11), |
| 1093 | `CREATION_TIMESTAMP` datetime not null default current_timestamp, |
| 1094 | PRIMARY KEY (`ID`), |
| 1095 | CONSTRAINT uk1_model_recipe UNIQUE (`MODEL_ID`, `ACTION`) |
| 1096 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; |
| 1097 | |
| 1098 | create table if not exists model ( |
| 1099 | `ID` INT(11) NOT NULL AUTO_INCREMENT, |
| 1100 | `MODEL_CUSTOMIZATION_ID` VARCHAR(40), |
| 1101 | `MODEL_CUSTOMIZATION_NAME` VARCHAR(40), |
| 1102 | `MODEL_INVARIANT_ID` VARCHAR(40), |
| 1103 | `MODEL_NAME` VARCHAR(40), |
| 1104 | `MODEL_TYPE` VARCHAR(20), |
| 1105 | `MODEL_VERSION` VARCHAR(20), |
| 1106 | `MODEL_VERSION_ID` VARCHAR(40), |
| 1107 | `CREATION_TIMESTAMP` datetime not null default current_timestamp, |
| 1108 | `RECIPE` INT(11), |
| 1109 | PRIMARY KEY (`ID`), |
| 1110 | CONSTRAINT uk1_model UNIQUE (`MODEL_TYPE`, `MODEL_VERSION_ID`), |
| 1111 | FOREIGN KEY (`RECIPE`) REFERENCES `model_recipe` (`MODEL_ID`) ON DELETE CASCADE ON UPDATE CASCADE |
| 1112 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; |
| 1113 | |
| 1114 | ALTER TABLE `catalogdb`.`vnf_recipe` |
Benjamin, Max (mb388a) | 69455a2 | 2018-09-04 11:21:02 -0400 | [diff] [blame] | 1115 | CHANGE COLUMN `VNF_TYPE` `NF_ROLE` VARCHAR(200) NULL DEFAULT NULL ; |