blob: d53d8925e2c87cf564b73f3f1a4d7e19933f4add [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,
eeginux53bb2f22019-03-09 00:57:00 +0000440 `cds_blueprint_name` varchar(200) default null,
441 `cds_blueprint_version` varchar(20) default null,
Benjamin, Max (mb388a)5a6a6de2018-07-30 15:56:09 -0400442 primary key (`model_customization_uuid`),
443 key `fk_vnf_resource_customization__vnf_resource1_idx` (`vnf_resource_model_uuid`),
444 constraint `fk_vnf_resource_customization__vnf_resource1` foreign key (`vnf_resource_model_uuid`) references `vnf_resource` (`model_uuid`) on delete cascade on update cascade
445) engine=innodb default charset=latin1;
446
447
448
449
450create table `vnf_res_custom_to_vf_module_custom` (
451 `vnf_resource_cust_model_customization_uuid` varchar(200) not null,
452 `vf_module_cust_model_customization_uuid` varchar(200) not null,
453 `creation_timestamp` datetime not null default current_timestamp,
454 primary key (`vnf_resource_cust_model_customization_uuid`,`vf_module_cust_model_customization_uuid`),
455 key `fk_vnf_res_custom_to_vf_module_custom__vf_module_customizat_idx` (`vf_module_cust_model_customization_uuid`),
456 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,
457 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
458) engine=innodb default charset=latin1;
459
460
461create table if not exists external_service_to_internal_model_mapping (
462id int(11) not null,
463service_name varchar(200) not null,
464product_flavor varchar(200) null,
465subscription_service_type varchar(200) not null,
466service_model_uuid varchar(200) not null,
467primary key (id),
468unique index uk_external_service_to_internal_model_mapping
469(service_name asc, product_flavor asc, service_model_uuid asc));
470
471create table if not exists `collection_resource` (
472 model_uuid varchar(200) not null,
473 model_name varchar(200) not null,
474 model_invariant_uuid varchar(200) not null,
475 model_version varchar(20) not null,
476 tosca_node_type varchar(200) not null,
477 description varchar(200),
478 creation_timestamp datetime not null default current_timestamp,
479 primary key (`model_uuid`)
480)engine=innodb default charset=latin1;
481
482create table if not exists `collection_resource_customization` (
483 model_customization_uuid varchar(200) not null,
484 model_instance_name varchar(200) not null,
485 role varchar(200) NULL,
486 object_type varchar(200) not null,
487 function varchar(200) NULL,
488 collection_resource_type varchar(200) NULL,
489 creation_timestamp datetime not null default current_timestamp,
490 cr_model_uuid varchar(200) not null,
491 primary key (`model_customization_uuid`)
492)engine=innodb default charset=latin1;
493
494create table if not exists `instance_group` (
495 model_uuid varchar(200) not null,
496 model_name varchar(200) not null,
497 model_invariant_uuid varchar(200) not null,
498 model_version varchar(20) not null,
499 tosca_node_type varchar(200) NULL,
500 role varchar(200) not null,
501 object_type varchar(200) not null,
502 creation_timestamp datetime not null default current_timestamp,
503 cr_model_uuid varchar(200) not null,
504 instance_group_type varchar(200) not null,
505 primary key (`model_uuid`)
506)engine=innodb default charset=latin1;
507
508create table if not exists `collection_resource_instance_group_customization` (
509 `collection_resource_customization_model_uuid` varchar(200) not null,
510 `instance_group_model_uuid` varchar(200) not null,
511 `function` varchar(200) null,
512 `description` varchar(1200) null,
513 `subinterface_network_quantity` int(11) null,
514 `creation_timestamp` datetime not null default current_timestamp,
515 primary key (`collection_resource_customization_model_uuid`, `instance_group_model_uuid`),
516 index `fk_collection_resource_instance_group_customization__instan_idx` (`instance_group_model_uuid` asc),
517 constraint `fk_collection_resource_instance_group_customization__collecti1`
518 foreign key (`collection_resource_customization_model_uuid`)
519 references `collection_resource_customization` (`model_customization_uuid`)
520 on delete cascade
521 on update cascade,
522 constraint `fk_collection_resource_instance_group_customization__instance1`
523 foreign key (`instance_group_model_uuid`)
524 references `instance_group` (`model_uuid`)
525 on delete cascade
526 on update cascade)
527engine = innodb
528default character set = latin1;
529
530create table if not exists `vnfc_instance_group_customization` (
531 `vnf_resource_customization_model_uuid` varchar(200) not null,
532 `instance_group_model_uuid` varchar(200) not null,
533 `function` varchar(200) null,
534 `description` varchar(1200) null,
535 `creation_timestamp` datetime not null default current_timestamp,
536 primary key (`vnf_resource_customization_model_uuid`, `instance_group_model_uuid`),
537 index `fk_vnfc_instance_group_customization__instance_group1_idx` (`instance_group_model_uuid` asc),
538 constraint `fk_vnfc_instance_group_customization__vnf_resource_customizat1`
539 foreign key (`vnf_resource_customization_model_uuid`)
540 references `vnf_resource_customization` (`model_customization_uuid`)
541 on delete cascade
542 on update cascade,
543 constraint `fk_vnfc_instance_group_customization__instance_group1`
544 foreign key (`instance_group_model_uuid`)
545 references `instance_group` (`model_uuid`)
546 on delete cascade
547 on update cascade)
548engine = innodb
549default character set = latin1;
550
551 create table if not exists `configuration`
552 ( `model_uuid` varchar(200) not null,
553 `model_invariant_uuid` varchar(200) not null,
554 `model_version` varchar(20) not null,
555 `model_name` varchar(200) not null,
556 `tosca_node_type` varchar(200) not null,
557 `description` varchar(1200) null,
558 `creation_timestamp` datetime not null default current_timestamp,
559 primary key (`model_uuid`))
560 engine = innodb auto_increment = 20654
561 default character set = latin1;
562
Benjamin, Max (mb388a)a85dc142019-01-11 21:14:32 -0500563 CREATE TABLE IF NOT EXISTS `service_proxy_customization` (
564 `MODEL_CUSTOMIZATION_UUID` VARCHAR(200) NOT NULL,
565 `MODEL_INSTANCE_NAME` VARCHAR(200) NOT NULL,
566 `MODEL_UUID` VARCHAR(200) NOT NULL,
567 `MODEL_INVARIANT_UUID` VARCHAR(200) NOT NULL,
568 `MODEL_VERSION` VARCHAR(20) NOT NULL,
569 `MODEL_NAME` VARCHAR(200) NOT NULL,
570 `TOSCA_NODE_TYPE` VARCHAR(200) NOT NULL,
571 `DESCRIPTION` VARCHAR(1200) NULL,
572 `SOURCE_SERVICE_MODEL_UUID` VARCHAR(200) NOT NULL,
573 `CREATION_TIMESTAMP` DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
574 PRIMARY KEY (`MODEL_CUSTOMIZATION_UUID`),
575 INDEX `fk_service_proxy_customization__service1_idx` (`SOURCE_SERVICE_MODEL_UUID` ASC),
576 UNIQUE INDEX `UK_service_proxy_customization` (`MODEL_CUSTOMIZATION_UUID` ASC),
577 INDEX `fk_service_proxy_customization__serv_prox_to_serv` (`MODEL_CUSTOMIZATION_UUID` ASC),
578 CONSTRAINT `fk_service_proxy_resource_customization__service1`
579 FOREIGN KEY (`SOURCE_SERVICE_MODEL_UUID`)
580 REFERENCES `service` (`MODEL_UUID`)
581 ON DELETE CASCADE
582 ON UPDATE CASCADE)
583ENGINE = InnoDB
584AUTO_INCREMENT = 20654
585DEFAULT CHARACTER SET = latin1;
Benjamin, Max (mb388a)5a6a6de2018-07-30 15:56:09 -0400586
587create table if not exists `configuration_customization` (
588`model_customization_uuid` varchar(200) not null,
589`model_instance_name` varchar(200) not null,
590`configuration_type` varchar(200) null,
591`configuration_role` varchar(200) null,
592`configuration_function` varchar(200) null,
593`creation_timestamp` datetime not null default current_timestamp,
594`configuration_model_uuid` varchar(200) not null,
595`service_proxy_customization_model_customization_uuid` varchar(200) null,
596`configuration_customization_model_customization_uuid` varchar(200) null,
597primary key (`model_customization_uuid`),
598index `fk_configuration_customization__configuration_idx` (`configuration_model_uuid` asc),
599index `fk_configuration_customization__service_proxy_customization_idx`
600(`service_proxy_customization_model_customization_uuid` asc),
601index `fk_configuration_customization__configuration_customization_idx`
602(`configuration_customization_model_customization_uuid` asc),
603constraint `fk_configuration_resource_customization__configuration_resour1`
604foreign key (`configuration_model_uuid`) references `configuration` (`model_uuid`)
605on delete cascade on update cascade,
606constraint `fk_configuration_customization__service_proxy_customization1` foreign
607key (`service_proxy_customization_model_customization_uuid`) references
608`service_proxy_customization` (`model_customization_uuid`)
609on delete cascade on update cascade, constraint
610`fk_configuration_customization__configuration_customization1` foreign
611key (`configuration_customization_model_customization_uuid`) references
612`configuration_customization` (`model_customization_uuid`)
613on delete cascade on update cascade)
614engine = innodb
615auto_increment =20654
616default character set = latin1;
617
618
619create table `service_proxy_customization_to_service` (
620 `service_model_uuid` varchar(200) not null,
621 `resource_model_customization_uuid` varchar(200) not null,
622 primary key (`service_model_uuid`,`resource_model_customization_uuid`)
623)engine=innodb default charset=latin1;
624
625
626create table `configuration_customization_to_service` (
627 `service_model_uuid` varchar(200) not null,
628 `resource_model_customization_uuid` varchar(200) not null,
629 primary key (`service_model_uuid`,`resource_model_customization_uuid`)
630)engine=innodb default charset=latin1;
631
632
633create table if not exists `collection_resource_customization_to_service` (
634 `service_model_uuid` varchar(200) not null,
635 `resource_model_customization_uuid` varchar(200) not null,
636 primary key (`service_model_uuid`,`resource_model_customization_uuid`)
637)engine=innodb default charset=latin1;
638
639
640create table `network_resource_customization_to_service` (
641 `service_model_uuid` varchar(200) not null,
642 `resource_model_customization_uuid` varchar(200) not null,
643 primary key (`service_model_uuid`,`resource_model_customization_uuid`)
644)engine=innodb default charset=latin1;
645
646create table `vnf_resource_customization_to_service` (
647 `service_model_uuid` varchar(200) not null,
648 `resource_model_customization_uuid` varchar(200) not null,
649 primary key (`service_model_uuid`,`resource_model_customization_uuid`)
650)engine=innodb default charset=latin1;
651
652create table `allotted_resource_customization_to_service` (
653 `service_model_uuid` varchar(200) not null,
654 `resource_model_customization_uuid` varchar(200) not null,
655 primary key (`service_model_uuid`,`resource_model_customization_uuid`)
656)engine=innodb default charset=latin1;
657
658
659
660create table ar_recipe (
661 ID INT(11) not null auto_increment,
662 MODEL_NAME VARCHAR(200) NOT NULL,
663 `ACTION` VARCHAR(200) NOT NULL,
664 VERSION_STR VARCHAR(200) NOT NULL,
665 SERVICE_TYPE VARCHAR(200),
666 DESCRIPTION VARCHAR(200),
667 ORCHESTRATION_URI VARCHAR(200) NOT NULL,
668 AR_PARAM_XSD VARCHAR(200),
669 RECIPE_TIMEOUT INT(10),
670 CREATION_TIMESTAMP DATETIME NOT NULL default current_timestamp,
671 primary key (ID),
672 unique key `uk_ar_recipe` (`model_name`,`action`,`version_str`)
673) ENGINE=InnoDB DEFAULT CHARSET=latin1;
674
675alter table collection_resource_customization
676add foreign key ( cr_model_uuid)
677references collection_resource(model_uuid)
678on delete cascade;
679
680alter table vnf_resource_customization
681add column
682instance_group_model_uuid varchar(200);
683
684alter table network_resource_customization
685add column
686instance_group_model_uuid varchar(200);
687
688
689alter table network_resource_customization
690add foreign key ( instance_group_model_uuid)
691references instance_group(model_uuid)
692on delete cascade;
693
694alter table collection_resource_customization_to_service
695add foreign key (service_model_uuid)
696references service(model_uuid)
697on delete cascade;
698
699alter table allotted_resource_customization_to_service
700add foreign key (service_model_uuid)
701references service(model_uuid)
702on delete cascade;
703
704
705alter table vnf_resource_customization_to_service
706add foreign key (service_model_uuid)
707references service(model_uuid)
708on delete cascade;
709
710
711alter table network_resource_customization_to_service
712add foreign key (service_model_uuid)
713references service(model_uuid)
714on delete cascade;
715
716
717alter table network_resource_customization_to_service
718add foreign key (resource_model_customization_uuid)
719references network_resource_customization(model_customization_uuid)
720on delete cascade;
721
722alter table vnf_resource_customization_to_service
723add foreign key (resource_model_customization_uuid)
724references vnf_resource_customization(model_customization_uuid)
725on delete cascade;
726
727alter table allotted_resource_customization_to_service
728add foreign key (resource_model_customization_uuid)
729references allotted_resource_customization(model_customization_uuid)
730on delete cascade;
731
732alter table collection_resource_customization_to_service
733add foreign key (resource_model_customization_uuid)
734references collection_resource_customization(model_customization_uuid)
735on delete cascade;
736
737
738create table if not exists `collection_network_resource_customization` (
739`model_customization_uuid` varchar(200) not null,
740`model_instance_name` varchar(200) not null,
741`network_technology` varchar(45) null,
742`network_type` varchar(45) null,
743`network_role` varchar(200) null,
744`network_scope` varchar(45) null,
subhash kumar singh6addc712018-12-14 20:02:29 +0530745`creation_timestamp` datetime not null default current_timestamp,
Benjamin, Max (mb388a)5a6a6de2018-07-30 15:56:09 -0400746`network_resource_model_uuid` varchar(200) not null, `instance_group_model_uuid` varchar(200) null,
747`crc_model_customization_uuid` varchar(200) not null, primary key
748(`model_customization_uuid`, `crc_model_customization_uuid`),
749index `fk_collection_net_resource_customization__network_resource1_idx`
750(`network_resource_model_uuid` asc), index
751`fk_collection_net_resource_customization__instance_group1_idx`
752(`instance_group_model_uuid` asc), index
753`fk_col_net_res_customization__collection_res_customization_idx`
754(`crc_model_customization_uuid` asc), constraint
755`fk_collection_net_resource_customization__network_resource10` foreign
756key (`network_resource_model_uuid`) references
757`network_resource` (`model_uuid`) on delete cascade on
758update cascade, constraint
759`fk_collection_net_resource_customization__instance_group10` foreign key
760(`instance_group_model_uuid`) references `instance_group`
761(`model_uuid`) on delete cascade on update cascade, constraint
762`fk_collection_network_resource_customization__collection_reso1` foreign
763key (`crc_model_customization_uuid`) references
764`collection_resource_customization`
765(`model_customization_uuid`) on delete cascade on update cascade) engine
766= innodb default character set = latin1;
767
768CREATE TABLE IF NOT EXISTS `northbound_request_ref_lookup` (
769`id` INT(11) NOT NULL AUTO_INCREMENT,
770`REQUEST_SCOPE` VARCHAR(200) NOT NULL,
771`MACRO_ACTION` VARCHAR(200) NOT NULL,
772`ACTION` VARCHAR(200) NOT NULL,
773`IS_ALACARTE` TINYINT(1) NOT NULL DEFAULT 0,
774`IS_TOPLEVELFLOW` TINYINT(1) NOT NULL DEFAULT 1,
775`MIN_API_VERSION` DOUBLE NOT NULL,
776`MAX_API_VERSION` DOUBLE NULL,
777PRIMARY KEY (`id`),
778UNIQUE INDEX `UK_northbound_request_ref_lookup` (`MIN_API_VERSION` ASC, `REQUEST_SCOPE` ASC, `ACTION` ASC, `IS_ALACARTE` ASC, `MACRO_ACTION` ASC))
779ENGINE = InnoDB
780DEFAULT CHARACTER SET = latin1;
781
782CREATE TABLE IF NOT EXISTS orchestration_status_state_transition_directive (
783id INT(11) AUTO_INCREMENT,
784RESOURCE_TYPE VARCHAR(25) NOT NULL,
785ORCHESTRATION_STATUS VARCHAR(25) NOT NULL,
786TARGET_ACTION VARCHAR(25) NOT NULL,
787FLOW_DIRECTIVE VARCHAR(25) NOT NULL,
788PRIMARY KEY (id),
789UNIQUE KEY UK_orchestration_status_state_transition_directive (RESOURCE_TYPE, ORCHESTRATION_STATUS, TARGET_ACTION))
790ENGINE = InnoDB
791DEFAULT CHARACTER SET = latin1;
792
793create table if not exists model_recipe (
794 `ID` INT(11) NOT NULL AUTO_INCREMENT,
795 `MODEL_ID` INT(11),
796 `ACTION` VARCHAR(40),
797 `SCHEMA_VERSION` VARCHAR(40),
798 `DESCRIPTION` VARCHAR(40),
799 `ORCHESTRATION_URI` VARCHAR(20),
800 `MODEL_PARAM_XSD` VARCHAR(20),
801 `RECIPE_TIMEOUT` INT(11),
802 `CREATION_TIMESTAMP` datetime not null default current_timestamp,
803 PRIMARY KEY (`ID`),
804 CONSTRAINT uk1_model_recipe UNIQUE (`MODEL_ID`, `ACTION`)
805) ENGINE=InnoDB DEFAULT CHARSET=latin1;
806
807create table if not exists model (
808 `ID` INT(11) NOT NULL AUTO_INCREMENT,
809 `MODEL_CUSTOMIZATION_ID` VARCHAR(40),
810 `MODEL_CUSTOMIZATION_NAME` VARCHAR(40),
811 `MODEL_INVARIANT_ID` VARCHAR(40),
812 `MODEL_NAME` VARCHAR(40),
813 `MODEL_TYPE` VARCHAR(20),
814 `MODEL_VERSION` VARCHAR(20),
815 `MODEL_VERSION_ID` VARCHAR(40),
816 `CREATION_TIMESTAMP` datetime not null default current_timestamp,
817 `RECIPE` INT(11),
818 PRIMARY KEY (`ID`),
819 CONSTRAINT uk1_model UNIQUE (`MODEL_TYPE`, `MODEL_VERSION_ID`),
820 FOREIGN KEY (`RECIPE`) REFERENCES `model_recipe` (`MODEL_ID`) ON DELETE CASCADE ON UPDATE CASCADE
821) ENGINE=InnoDB DEFAULT CHARSET=latin1;
822
Prema Bhatt474b1752018-08-10 15:54:13 -0700823CREATE TABLE IF NOT EXISTS `controller_selection_reference` (
824 `VNF_TYPE` VARCHAR(50) NOT NULL,
825 `CONTROLLER_NAME` VARCHAR(100) NOT NULL,
826 `ACTION_CATEGORY` VARCHAR(15) NOT NULL,
827 PRIMARY KEY (`VNF_TYPE`, `CONTROLLER_NAME`, `ACTION_CATEGORY`)
828) ;
829
Benjamin, Max (mb388a)5a6a6de2018-07-30 15:56:09 -0400830ALTER TABLE `vnf_recipe`
Benjamin, Max (mb388a)a81aef22018-08-13 09:48:57 -0400831CHANGE COLUMN `VNF_TYPE` `NF_ROLE` VARCHAR(200) NULL DEFAULT NULL ;
832
833CREATE TABLE IF NOT EXISTS `identity_services` (
834 `ID` varchar(50) NOT NULL,
835 `IDENTITY_URL` varchar(200) DEFAULT NULL,
836 `MSO_ID` varchar(255) DEFAULT NULL,
837 `MSO_PASS` varchar(255) DEFAULT NULL,
Benjamin, Max (mb388a)37547ac2018-11-16 12:23:48 -0500838 `PROJECT_DOMAIN_NAME` varchar(255) DEFAULT NULL,
839 `USER_DOMAIN_NAME` varchar(255) DEFAULT NULL,
Benjamin, Max (mb388a)a81aef22018-08-13 09:48:57 -0400840 `ADMIN_TENANT` varchar(50) DEFAULT NULL,
841 `MEMBER_ROLE` varchar(50) DEFAULT NULL,
842 `TENANT_METADATA` tinyint(1) DEFAULT 0,
843 `IDENTITY_SERVER_TYPE` varchar(50) DEFAULT NULL,
844 `IDENTITY_AUTHENTICATION_TYPE` varchar(50) DEFAULT NULL,
845 `LAST_UPDATED_BY` varchar(120) DEFAULT NULL,
846 `CREATION_TIMESTAMP` timestamp NULL DEFAULT current_timestamp(),
847 `UPDATE_TIMESTAMP` timestamp NULL DEFAULT current_timestamp(),
848 PRIMARY KEY (`ID`)
849) ;
850
Benjamin, Max (mb388a)a81aef22018-08-13 09:48:57 -0400851CREATE TABLE IF NOT EXISTS `cloudify_managers` (
852 `ID` varchar(50) NOT NULL,
853 `CLOUDIFY_URL` varchar(200) DEFAULT NULL,
854 `USERNAME` varchar(255) DEFAULT NULL,
855 `PASSWORD` varchar(255) DEFAULT NULL,
856 `VERSION` varchar(20) DEFAULT NULL,
857 `LAST_UPDATED_BY` varchar(120) DEFAULT NULL,
858 `CREATION_TIMESTAMP` timestamp NULL DEFAULT current_timestamp(),
859 `UPDATE_TIMESTAMP` timestamp NULL DEFAULT current_timestamp(),
860 PRIMARY KEY (`ID`)
861) ;
862
Benjamin, Max (mb388a)a81aef22018-08-13 09:48:57 -0400863CREATE TABLE IF NOT EXISTS `cloud_sites` (
864 `ID` varchar(50) NOT NULL,
865 `REGION_ID` varchar(11) DEFAULT NULL,
866 `IDENTITY_SERVICE_ID` varchar(50) DEFAULT NULL,
867 `CLOUD_VERSION` varchar(20) DEFAULT NULL,
868 `CLLI` varchar(11) DEFAULT NULL,
869 `CLOUDIFY_ID` varchar(50) DEFAULT NULL,
870 `PLATFORM` varchar(50) DEFAULT NULL,
871 `ORCHESTRATOR` varchar(50) DEFAULT NULL,
872 `LAST_UPDATED_BY` varchar(120) DEFAULT NULL,
873 `CREATION_TIMESTAMP` timestamp NULL DEFAULT current_timestamp(),
874 `UPDATE_TIMESTAMP` timestamp NULL DEFAULT current_timestamp(),
875 PRIMARY KEY (`ID`),
876 KEY `FK_cloud_sites_identity_services` (`IDENTITY_SERVICE_ID`),
877 CONSTRAINT `FK_cloud_sites_identity_services` FOREIGN KEY (`IDENTITY_SERVICE_ID`) REFERENCES `identity_services` (`ID`)
Prema Bhatt474b1752018-08-10 15:54:13 -0700878) ;
Benjamin, Max (mb388a)69455a22018-09-04 11:21:02 -0400879
880CREATE TABLE IF NOT EXISTS vnfc_customization (
881`MODEL_CUSTOMIZATION_UUID` VARCHAR(200) NOT NULL,
882`MODEL_INSTANCE_NAME` VARCHAR(200) NOT NULL,
883`MODEL_UUID` VARCHAR(200) NOT NULL,
884`MODEL_INVARIANT_UUID` VARCHAR(200) NOT NULL,
885`MODEL_VERSION` VARCHAR(20) NOT NULL,
886`MODEL_NAME` VARCHAR(200) NOT NULL,
887`TOSCA_NODE_TYPE` VARCHAR(200) NOT NULL,
888`DESCRIPTION` VARCHAR(1200) NULL DEFAULT NULL,
889`CREATION_TIMESTAMP` DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
890PRIMARY KEY (`MODEL_CUSTOMIZATION_UUID`))
891ENGINE = InnoDB
892AUTO_INCREMENT = 20654
893DEFAULT CHARACTER SET = latin1;
894
895CREATE TABLE IF NOT EXISTS cvnfc_customization (
Benjamin, Max (mb388a)e8689682019-03-20 16:19:39 -0400896 `ID` INT(11) NOT NULL AUTO_INCREMENT,
897 `MODEL_CUSTOMIZATION_UUID` VARCHAR(200) NOT NULL,
898 `MODEL_INSTANCE_NAME` VARCHAR(200) NOT NULL,
899 `MODEL_UUID` VARCHAR(200) NOT NULL,
900 `MODEL_INVARIANT_UUID` VARCHAR(200) NOT NULL,
901 `MODEL_VERSION` VARCHAR(20) NOT NULL,
902 `MODEL_NAME` VARCHAR(200) NOT NULL,
903 `TOSCA_NODE_TYPE` VARCHAR(200) NOT NULL,
904 `DESCRIPTION` VARCHAR(1200) NULL DEFAULT NULL,
905 `NFC_FUNCTION` VARCHAR(200) NULL,
906 `NFC_NAMING_CODE` VARCHAR(200) NULL,
907 `CREATION_TIMESTAMP` DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
908 `VNF_RESOURCE_CUST_MODEL_CUSTOMIZATION_UUID` VARCHAR(200) NOT NULL,
909 `VF_MODULE_CUST_MODEL_CUSTOMIZATION_UUID` VARCHAR(200) NOT NULL,
910 `VNFC_CUST_MODEL_CUSTOMIZATION_UUID` VARCHAR(200) NOT NULL,
911 PRIMARY KEY (`ID`),
912 INDEX `fk_cvnfc_customization__vf_module_customization1_idx` (
913 `VF_MODULE_CUST_MODEL_CUSTOMIZATION_UUID` ASC
914 ),
915 INDEX `fk_cvnfc_customization__vnfc_customization1_idx` (
916 `VNFC_CUST_MODEL_CUSTOMIZATION_UUID` ASC
917 ),
918 INDEX `fk_cvnfc_customization__vnf_resource_customization1_idx` (
919 `VNF_RESOURCE_CUST_MODEL_CUSTOMIZATION_UUID` ASC
920 ),
921 UNIQUE INDEX `UK_cvnfc_customization` (
922 `VNF_RESOURCE_CUST_MODEL_CUSTOMIZATION_UUID` ASC,
923 `VF_MODULE_CUST_MODEL_CUSTOMIZATION_UUID` ASC,
924 `MODEL_CUSTOMIZATION_UUID` ASC
925 ),
926 INDEX `fk_cvnfc_customization__vnf_vfmod_cvnfc_config_cust1_idx` (`MODEL_CUSTOMIZATION_UUID` ASC),
927 CONSTRAINT `fk_cvnfc_customization__vf_module_customization1` FOREIGN KEY (
928 `VF_MODULE_CUST_MODEL_CUSTOMIZATION_UUID`
929 ) REFERENCES `vf_module_customization` (`MODEL_CUSTOMIZATION_UUID`) ON DELETE CASCADE ON UPDATE CASCADE,
930 CONSTRAINT `fk_cvnfc_customization__vnfc_customization1` FOREIGN KEY (
931 `VNFC_CUST_MODEL_CUSTOMIZATION_UUID`
932 ) REFERENCES `vnfc_customization` (`MODEL_CUSTOMIZATION_UUID`) ON DELETE CASCADE ON UPDATE CASCADE,
933 CONSTRAINT `fk_cvnfc_customization__vnf_resource_customization1` FOREIGN KEY (
934 `VNF_RESOURCE_CUST_MODEL_CUSTOMIZATION_UUID`
935 ) REFERENCES `vnf_resource_customization` (`MODEL_CUSTOMIZATION_UUID`) ON DELETE CASCADE ON UPDATE CASCADE
936) ENGINE = InnoDB AUTO_INCREMENT = 20654 DEFAULT CHARACTER SET = latin1;
Benjamin, Max (mb388a)69455a22018-09-04 11:21:02 -0400937
938CREATE TABLE IF NOT EXISTS vnf_vfmodule_cvnfc_configuration_customization (
Benjamin, Max (mb388a)e8689682019-03-20 16:19:39 -0400939 `ID` INT(11) NOT NULL AUTO_INCREMENT,
940 `MODEL_CUSTOMIZATION_UUID` VARCHAR(200) NOT NULL,
941 `MODEL_INSTANCE_NAME` VARCHAR(200) NOT NULL,
942 `CONFIGURATION_TYPE` VARCHAR(200) NULL,
943 `CONFIGURATION_ROLE` VARCHAR(200) NULL,
944 `CONFIGURATION_FUNCTION` VARCHAR(200) NULL,
945 `POLICY_NAME` VARCHAR(200) NULL,
946 `CREATION_TIMESTAMP` DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
947 `CONFIGURATION_MODEL_UUID` VARCHAR(200) NOT NULL,
948 `VNF_RESOURCE_CUST_MODEL_CUSTOMIZATION_UUID` VARCHAR(200) DEFAULT NULL,
949 `VF_MODULE_MODEL_CUSTOMIZATION_UUID` VARCHAR(200) DEFAULT NULL,
950 `CVNFC_CUSTOMIZATION_ID` INT(11) DEFAULT NULL,
951 PRIMARY KEY (`ID`),
952 INDEX `fk_vnf_vfmodule_cvnfc_config_cust__configuration_idx` (`CONFIGURATION_MODEL_UUID` ASC),
953
954 CONSTRAINT `fk_vnf_vfmod_cvnfc_config_cust__configuration_resource` FOREIGN KEY (`CONFIGURATION_MODEL_UUID`)
955 REFERENCES `configuration` (`MODEL_UUID`) ON DELETE CASCADE ON UPDATE CASCADE
956) ENGINE = INNODB AUTO_INCREMENT = 20654 DEFAULT CHARACTER SET = LATIN1;
eeginux53bb2f22019-03-09 00:57:00 +0000957
958CREATE TABLE IF NOT EXISTS `pnf_resource` (
959 `ORCHESTRATION_MODE` varchar(20) NOT NULL DEFAULT 'HEAT',
960 `DESCRIPTION` varchar(1200) DEFAULT NULL,
961 `CREATION_TIMESTAMP` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
962 `MODEL_UUID` varchar(200) NOT NULL,
963 `MODEL_INVARIANT_UUID` varchar(200) DEFAULT NULL,
964 `MODEL_VERSION` varchar(20) NOT NULL,
965 `MODEL_NAME` varchar(200) DEFAULT NULL,
966 `TOSCA_NODE_TYPE` varchar(200) DEFAULT NULL,
967 `RESOURCE_CATEGORY` varchar(200) DEFAULT NULL,
968 `RESOURCE_SUB_CATEGORY` varchar(200) DEFAULT NULL,
969 PRIMARY KEY (`MODEL_UUID`)
970) ENGINE=InnoDB DEFAULT CHARSET=latin1;
971
972CREATE TABLE IF NOT EXISTS `pnf_resource_customization` (
973 `MODEL_CUSTOMIZATION_UUID` varchar(200) NOT NULL,
974 `MODEL_INSTANCE_NAME` varchar(200) NOT NULL,
975 `NF_TYPE` varchar(200) DEFAULT NULL,
976 `NF_ROLE` varchar(200) DEFAULT NULL,
977 `NF_FUNCTION` varchar(200) DEFAULT NULL,
978 `NF_NAMING_CODE` varchar(200) DEFAULT NULL,
979 `CREATION_TIMESTAMP` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
980 `PNF_RESOURCE_MODEL_UUID` varchar(200) NOT NULL,
981 `MULTI_STAGE_DESIGN` varchar(20) DEFAULT NULL,
982 `RESOURCE_INPUT` varchar(2000) DEFAULT NULL,
983 `CDS_BLUEPRINT_NAME` varchar(200) DEFAULT NULL,
984 `CDS_BLUEPRINT_VERSION` varchar(20) DEFAULT NULL,
985 PRIMARY KEY (`MODEL_CUSTOMIZATION_UUID`),
986 KEY `fk_pnf_resource_customization__pnf_resource1_idx` (`PNF_RESOURCE_MODEL_UUID`),
987 CONSTRAINT `fk_pnf_resource_customization__pnf_resource1` FOREIGN KEY (`PNF_RESOURCE_MODEL_UUID`) REFERENCES `pnf_resource` (`MODEL_UUID`) ON DELETE CASCADE ON UPDATE CASCADE
988) ENGINE=InnoDB DEFAULT CHARSET=latin1;
989
990CREATE TABLE IF NOT EXISTS `pnf_resource_customization_to_service` (
991 `SERVICE_MODEL_UUID` varchar(200) NOT NULL,
992 `RESOURCE_MODEL_CUSTOMIZATION_UUID` varchar(200) NOT NULL,
993 PRIMARY KEY (`SERVICE_MODEL_UUID`,`RESOURCE_MODEL_CUSTOMIZATION_UUID`)
994)ENGINE=InnoDB DEFAULT CHARSET=latin1;