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