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