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