blob: 95db1c2b7adf08710092a88fe90cdfe514d05449 [file] [log] [blame]
Benjamin, Max (mb388a)5a6a6de2018-07-30 15:56:09 -04001--------START Catalog DB SCHEMA --------
2use catalogdb;
3
4create table `allotted_resource` (
5 `model_uuid` varchar(200) not null,
6 `model_invariant_uuid` varchar(200) not null,
7 `model_version` varchar(20) not null,
8 `model_name` varchar(200) not null,
9 `tosca_node_type` varchar(200) default null,
10 `subcategory` varchar(200) default null,
11 `description` varchar(1200) default null,
12 `creation_timestamp` datetime not null default current_timestamp,
13 primary key (`model_uuid`)
14) engine=innodb default charset=latin1;
15
16
17
18
19create table `allotted_resource_customization` (
20 `model_customization_uuid` varchar(200) not null,
21 `model_instance_name` varchar(200) not null,
22 `providing_service_model_uuid` varchar(200) default null,
23 `providing_service_model_invariant_uuid` varchar(200) default null,
24 `providing_service_model_name` varchar(200) default null,
25 `target_network_role` varchar(200) default null,
26 `nf_type` varchar(200) default null,
27 `nf_role` varchar(200) default null,
28 `nf_function` varchar(200) default null,
29 `nf_naming_code` varchar(200) default null,
30 `min_instances` int(11) default null,
31 `max_instances` int(11) default null,
32 `ar_model_uuid` varchar(200) not null,
subhash kumar singhf6f326e2019-01-17 14:28:43 +053033 `resource_input` varchar(20000) default null,
Benjamin, Max (mb388a)5a6a6de2018-07-30 15:56:09 -040034 `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,
subhash kumar singhd5f5d0d2019-01-22 12:56:29 +0530144 `heat_template_artifact_uuid` varchar(200) null,
Benjamin, Max (mb388a)5a6a6de2018-07-30 15:56:09 -0400145 `neutron_network_type` varchar(20) default null,
146 `model_version` varchar(20) default null,
147 `tosca_node_type` varchar(200) default null,
subhash kumar singhd5f5d0d2019-01-22 12:56:29 +0530148 `aic_version_min` varchar(20) null,
Benjamin, Max (mb388a)5a6a6de2018-07-30 15:56:09 -0400149 `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`),
subhash kumar singhd5f5d0d2019-01-22 12:56:29 +0530157 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 -0400158) engine=innodb default charset=latin1;
159
160
161
162
163
164create table `network_resource_customization` (
165 `model_customization_uuid` varchar(200) not null,
166 `model_instance_name` varchar(200) not null,
167 `network_technology` varchar(45) default null,
168 `network_type` varchar(45) default null,
169 `network_role` varchar(200) default null,
170 `network_scope` varchar(45) default null,
171 `creation_timestamp` datetime not null default current_timestamp,
172 `network_resource_model_uuid` varchar(200) not null,
subhash kumar singhf6f326e2019-01-17 14:28:43 +0530173 `resource_input` varchar(20000) default null,
Benjamin, Max (mb388a)5a6a6de2018-07-30 15:56:09 -0400174 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,
subhash kumar singh6addc712018-12-14 20:02:29 +0530210 `resource_order` varchar(200) default null,
Benjamin, Max (mb388a)5a6a6de2018-07-30 15:56:09 -0400211 primary key (`model_uuid`),
212 key `fk_service__tosca_csar1_idx` (`tosca_csar_artifact_uuid`),
213 constraint `fk_service__tosca_csar1` foreign key (`tosca_csar_artifact_uuid`) references `tosca_csar` (`artifact_uuid`) on delete cascade on update cascade
214) engine=innodb default charset=latin1;
215
216
217
218create table `service_recipe` (
219 `id` int(11) not null auto_increment,
220 `action` varchar(50) not null,
221 `version_str` varchar(20) default null,
222 `description` varchar(1200) default null,
223 `orchestration_uri` varchar(256) not null,
224 `service_param_xsd` varchar(2048) default null,
225 `recipe_timeout` int(11) default null,
226 `service_timeout_interim` int(11) default null,
227 `creation_timestamp` datetime not null default current_timestamp,
228 `service_model_uuid` varchar(200) not null,
229 primary key (`id`),
230 unique key `uk_7fav5dkux2v8g9d2i5ymudlgc` (`service_model_uuid`,`action`),
231 key `fk_service_recipe__service1_idx` (`service_model_uuid`),
232 constraint `fk_service_recipe__service1` foreign key (`service_model_uuid`) references `service` (`model_uuid`) on delete cascade on update cascade
233) engine=innodb auto_increment=86 default charset=latin1;
234
235
236
237create table `vnf_resource` (
238 `orchestration_mode` varchar(20) not null default 'heat',
239 `description` varchar(1200) default null,
240 `creation_timestamp` datetime not null default current_timestamp,
241 `model_uuid` varchar(200) not null,
242 `aic_version_min` varchar(20) default null,
243 `aic_version_max` varchar(20) default null,
244 `model_invariant_uuid` varchar(200) default null,
245 `model_version` varchar(20) not null,
246 `model_name` varchar(200) default null,
247 `tosca_node_type` varchar(200) default null,
248 `resource_category` varchar(200) default null,
249 `resource_sub_category` varchar(200) default null,
250 `heat_template_artifact_uuid` varchar(200) default null,
251 primary key (`model_uuid`),
252 key `fk_vnf_resource__heat_template1` (`heat_template_artifact_uuid`),
253 constraint `fk_vnf_resource__heat_template1` foreign key (`heat_template_artifact_uuid`) references `heat_template` (`artifact_uuid`) on delete cascade on update cascade
254) engine=innodb default charset=latin1;
255
256
257
258
259create table `vf_module` (
260 `model_uuid` varchar(200) not null,
261 `model_invariant_uuid` varchar(200) default null,
262 `model_version` varchar(20) not null,
263 `model_name` varchar(200) not null,
264 `description` varchar(1200) default null,
265 `is_base` int(11) not null,
266 `heat_template_artifact_uuid` varchar(200) default null,
267 `vol_heat_template_artifact_uuid` varchar(200) default null,
268 `creation_timestamp` datetime not null default current_timestamp,
269 `vnf_resource_model_uuid` varchar(200) not null,
270 primary key (`model_uuid`,`vnf_resource_model_uuid`),
271 key `fk_vf_module__vnf_resource1_idx` (`vnf_resource_model_uuid`),
272 key `fk_vf_module__heat_template_art_uuid__heat_template1_idx` (`heat_template_artifact_uuid`),
273 key `fk_vf_module__vol_heat_template_art_uuid__heat_template2_idx` (`vol_heat_template_artifact_uuid`),
274 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,
275 constraint `fk_vf_module__vnf_resource1` foreign key (`vnf_resource_model_uuid`) references `vnf_resource` (`model_uuid`) on delete cascade on update cascade,
276 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
277) engine=innodb default charset=latin1;
278
279
280
281/*!40101 set @saved_cs_client = @@character_set_client */;
282/*!40101 set character_set_client = utf8 */;
283create table `vf_module_customization` (
284 `model_customization_uuid` varchar(200) not null,
285 `label` varchar(200) default null,
286 `initial_count` int(11) default '0',
287 `min_instances` int(11) default '0',
288 `max_instances` int(11) default null,
289 `availability_zone_count` int(11) default null,
290 `heat_environment_artifact_uuid` varchar(200) default null,
291 `vol_environment_artifact_uuid` varchar(200) default null,
292 `creation_timestamp` datetime not null default current_timestamp,
293 `vf_module_model_uuid` varchar(200) not null,
294 primary key (`model_customization_uuid`),
295 key `fk_vf_module_customization__vf_module1_idx` (`vf_module_model_uuid`),
296 key `fk_vf_module_customization__heat_env__heat_environment1_idx` (`heat_environment_artifact_uuid`),
297 key `fk_vf_module_customization__vol_env__heat_environment2_idx` (`vol_environment_artifact_uuid`),
298 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,
299 constraint `fk_vf_module_customization__vf_module1` foreign key (`vf_module_model_uuid`) references `vf_module` (`model_uuid`) on delete cascade on update cascade,
300 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
301) engine=innodb default charset=latin1;
302/*!40101 set character_set_client = @saved_cs_client */;
303
304--
305-- table structure for table `vf_module_to_heat_files`
306--
307
308
309/*!40101 set @saved_cs_client = @@character_set_client */;
310/*!40101 set character_set_client = utf8 */;
311create table `vf_module_to_heat_files` (
312 `vf_module_model_uuid` varchar(200) not null,
313 `heat_files_artifact_uuid` varchar(200) not null,
314 primary key (`vf_module_model_uuid`,`heat_files_artifact_uuid`),
315 key `fk_vf_module_to_heat_files__heat_files__artifact_uuid1_idx` (`heat_files_artifact_uuid`),
316 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,
317 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
318) engine=innodb default charset=latin1 comment='il fait ce qu''il dit';
319/*!40101 set character_set_client = @saved_cs_client */;
320
321--
322-- table structure for table `vnf_components`
323--
324
325
326/*!40101 set @saved_cs_client = @@character_set_client */;
327/*!40101 set character_set_client = utf8 */;
328create table `vnf_components` (
329 `vnf_id` int(11) not null,
330 `component_type` varchar(20) not null,
331 `heat_template_id` int(11) default null,
332 `heat_environment_id` int(11) default null,
333 `creation_timestamp` datetime not null default current_timestamp,
334 primary key (`vnf_id`,`component_type`)
335) engine=innodb default charset=latin1;
336/*!40101 set character_set_client = @saved_cs_client */;
337
338--
339-- table structure for table `vnf_components_recipe`
340--
341
342
343
344create table `vnf_components_recipe` (
345 `id` int(11) not null auto_increment,
346 `vnf_type` varchar(200) default null,
347 `vnf_component_type` varchar(45) not null,
348 `action` varchar(50) not null,
349 `service_type` varchar(45) default null,
350 `version` varchar(20) not null,
351 `description` varchar(1200) default null,
352 `orchestration_uri` varchar(256) not null,
353 `vnf_component_param_xsd` varchar(2048) default null,
354 `recipe_timeout` int(11) default null,
355 `creation_timestamp` datetime default current_timestamp,
356 `vf_module_model_uuid` varchar(200) default null,
357 primary key (`id`),
358 unique key `uk_4dpdwddaaclhc11wxsb7h59ma` (`vf_module_model_uuid`,`vnf_component_type`,`action`,`version`)
359) engine=innodb auto_increment=26 default charset=latin1;
360
361
362
363
364create table `vnf_recipe` (
365 `id` int(11) not null auto_increment,
366 `nf_role` varchar(200) default null,
367 `action` varchar(50) not null,
368 `service_type` varchar(45) default null,
369 `version_str` varchar(20) not null,
370 `description` varchar(1200) default null,
371 `orchestration_uri` varchar(256) not null,
372 `vnf_param_xsd` varchar(2048) default null,
373 `recipe_timeout` int(11) default null,
374 `creation_timestamp` datetime default current_timestamp,
375 `vf_module_id` varchar(100) default null,
376 primary key (`id`),
377 unique key `uk_f3tvqau498vrifq3cr8qnigkr` (`vf_module_id`,`action`,`version_str`)
378) engine=innodb auto_increment=10006 default charset=latin1;
379
380
381
382
383
384
385
386
387create table `vnf_resource_customization` (
388 `model_customization_uuid` varchar(200) not null,
389 `model_instance_name` varchar(200) not null,
390 `min_instances` int(11) default null,
391 `max_instances` int(11) default null,
392 `availability_zone_max_count` int(11) default null,
393 `nf_type` varchar(200) default null,
394 `nf_role` varchar(200) default null,
395 `nf_function` varchar(200) default null,
396 `nf_naming_code` varchar(200) default null,
397 `creation_timestamp` datetime not null default current_timestamp,
398 `vnf_resource_model_uuid` varchar(200) not null,
399 `multi_stage_design` varchar(20) default null,
subhash kumar singhf6f326e2019-01-17 14:28:43 +0530400 `resource_input` varchar(20000) default null,
Benjamin, Max (mb388a)5a6a6de2018-07-30 15:56:09 -0400401 primary key (`model_customization_uuid`),
402 key `fk_vnf_resource_customization__vnf_resource1_idx` (`vnf_resource_model_uuid`),
403 constraint `fk_vnf_resource_customization__vnf_resource1` foreign key (`vnf_resource_model_uuid`) references `vnf_resource` (`model_uuid`) on delete cascade on update cascade
404) engine=innodb default charset=latin1;
405
406
407
408
409create table `vnf_res_custom_to_vf_module_custom` (
410 `vnf_resource_cust_model_customization_uuid` varchar(200) not null,
411 `vf_module_cust_model_customization_uuid` varchar(200) not null,
412 `creation_timestamp` datetime not null default current_timestamp,
413 primary key (`vnf_resource_cust_model_customization_uuid`,`vf_module_cust_model_customization_uuid`),
414 key `fk_vnf_res_custom_to_vf_module_custom__vf_module_customizat_idx` (`vf_module_cust_model_customization_uuid`),
415 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,
416 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
417) engine=innodb default charset=latin1;
418
419
420create table if not exists `external_service_to_internal_model_mapping` (
421id int(11) not null,
422service_name varchar(200) not null,
423product_flavor varchar(200) null,
424subscription_service_type varchar(200) not null,
425service_model_uuid varchar(200) not null,
426primary key (id),
427unique index uk_external_service_to_internal_model_mapping
428(service_name asc, product_flavor asc, service_model_uuid asc));
429
430create table if not exists `collection_resource` (
431 model_uuid varchar(200) not null,
432 model_name varchar(200) not null,
433 model_invariant_uuid varchar(200) not null,
434 model_version varchar(20) not null,
435 tosca_node_type varchar(200) not null,
436 description varchar(200),
437 creation_timestamp datetime not null default current_timestamp,
438 primary key (`model_uuid`)
439)engine=innodb default charset=latin1;
440
441create table if not exists `collection_resource_customization` (
442 model_customization_uuid varchar(200) not null,
443 model_instance_name varchar(200) not null,
444 role varchar(200) NULL,
445 object_type varchar(200) not null,
446 function varchar(200) NULL,
447 collection_resource_type varchar(200) NULL,
448 creation_timestamp datetime not null default current_timestamp,
449 cr_model_uuid varchar(200) not null,
450 primary key (`model_customization_uuid`)
451)engine=innodb default charset=latin1;
452
453create table if not exists `instance_group` (
454 model_uuid varchar(200) not null,
455 model_name varchar(200) not null,
456 model_invariant_uuid varchar(200) not null,
457 model_version varchar(20) not null,
458 tosca_node_type varchar(200) NULL,
459 role varchar(200) not null,
460 object_type varchar(200) not null,
461 creation_timestamp datetime not null default current_timestamp,
462 cr_model_uuid varchar(200) not null,
463 instance_group_type varchar(200) not null,
464 primary key (`model_uuid`)
465)engine=innodb default charset=latin1;
466
467
468create table if not exists `collection_resource_instance_group_customization` (
469 `collection_resource_customization_model_uuid` varchar(200) not null,
470 `instance_group_model_uuid` varchar(200) not null,
471 `function` varchar(200) null,
472 `description` varchar(1200) null,
473 `subinterface_network_quantity` int(11) null,
474 `creation_timestamp` datetime not null default current_timestamp,
475 primary key (`collection_resource_customization_model_uuid`, `instance_group_model_uuid`),
476 index `fk_collection_resource_instance_group_customization__instan_idx` (`instance_group_model_uuid` asc),
477 constraint `fk_collection_resource_instance_group_customization__collecti1`
478 foreign key (`collection_resource_customization_model_uuid`)
479 references `collection_resource_customization` (`model_customization_uuid`)
480 on delete cascade
481 on update cascade,
482 constraint `fk_collection_resource_instance_group_customization__instance1`
483 foreign key (`instance_group_model_uuid`)
484 references `instance_group` (`model_uuid`)
485 on delete cascade
486 on update cascade)
487engine = innodb
488default character set = latin1;
489
490create table if not exists `vnfc_instance_group_customization` (
491 `vnf_resource_customization_model_uuid` varchar(200) not null,
492 `instance_group_model_uuid` varchar(200) not null,
493 `function` varchar(200) null,
494 `description` varchar(1200) null,
495 `creation_timestamp` datetime not null default current_timestamp,
496 primary key (`vnf_resource_customization_model_uuid`, `instance_group_model_uuid`),
497 index `fk_vnfc_instance_group_customization__instance_group1_idx` (`instance_group_model_uuid` asc),
498 constraint `fk_vnfc_instance_group_customization__vnf_resource_customizat1`
499 foreign key (`vnf_resource_customization_model_uuid`)
500 references `vnf_resource_customization` (`model_customization_uuid`)
501 on delete cascade
502 on update cascade,
503 constraint `fk_vnfc_instance_group_customization__instance_group1`
504 foreign key (`instance_group_model_uuid`)
505 references `instance_group` (`model_uuid`)
506 on delete cascade
507 on update cascade)
508engine = innodb
509default character set = latin1;
510
511 create table if not exists `configuration`
512 ( `model_uuid` varchar(200) not null,
513 `model_invariant_uuid` varchar(200) not null,
514 `model_version` varchar(20) not null,
515 `model_name` varchar(200) not null,
516 `tosca_node_type` varchar(200) not null,
517 `description` varchar(1200) null,
518 `creation_timestamp` datetime not null default current_timestamp,
519 primary key (`model_uuid`))
520 engine = innodb auto_increment = 20654
521 default character set = latin1;
522
Benjamin, Max (mb388a)a85dc142019-01-11 21:14:32 -0500523 CREATE TABLE IF NOT EXISTS `service_proxy_customization` (
524 `MODEL_CUSTOMIZATION_UUID` VARCHAR(200) NOT NULL,
525 `MODEL_INSTANCE_NAME` VARCHAR(200) NOT NULL,
526 `MODEL_UUID` VARCHAR(200) NOT NULL,
527 `MODEL_INVARIANT_UUID` VARCHAR(200) NOT NULL,
528 `MODEL_VERSION` VARCHAR(20) NOT NULL,
529 `MODEL_NAME` VARCHAR(200) NOT NULL,
530 `TOSCA_NODE_TYPE` VARCHAR(200) NOT NULL,
531 `DESCRIPTION` VARCHAR(1200) NULL,
532 `SOURCE_SERVICE_MODEL_UUID` VARCHAR(200) NOT NULL,
533 `CREATION_TIMESTAMP` DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
534 PRIMARY KEY (`MODEL_CUSTOMIZATION_UUID`),
535 INDEX `fk_service_proxy_customization__service1_idx` (`SOURCE_SERVICE_MODEL_UUID` ASC),
536 UNIQUE INDEX `UK_service_proxy_customization` (`MODEL_CUSTOMIZATION_UUID` ASC),
537 INDEX `fk_service_proxy_customization__serv_prox_to_serv` (`MODEL_CUSTOMIZATION_UUID` ASC),
538 CONSTRAINT `fk_service_proxy_resource_customization__service1`
539 FOREIGN KEY (`SOURCE_SERVICE_MODEL_UUID`)
540 REFERENCES `service` (`MODEL_UUID`)
541 ON DELETE CASCADE
542 ON UPDATE CASCADE)
543ENGINE = InnoDB
544AUTO_INCREMENT = 20654
545DEFAULT CHARACTER SET = latin1;
Benjamin, Max (mb388a)5a6a6de2018-07-30 15:56:09 -0400546
547create table if not exists `configuration_customization` (
548`model_customization_uuid` varchar(200) not null,
549`model_instance_name` varchar(200) not null,
550`configuration_type` varchar(200) null,
551`configuration_role` varchar(200) null,
552`configuration_function` varchar(200) null,
553`creation_timestamp` datetime not null default current_timestamp,
554`configuration_model_uuid` varchar(200) not null,
555`service_proxy_customization_model_customization_uuid` varchar(200) null,
556`configuration_customization_model_customization_uuid` varchar(200) null,
557primary key (`model_customization_uuid`),
558index `fk_configuration_customization__configuration_idx` (`configuration_model_uuid` asc),
Benjamin, Max (mb388a)5a6a6de2018-07-30 15:56:09 -0400559index `fk_configuration_customization__configuration_customization_idx`
560(`configuration_customization_model_customization_uuid` asc),
561constraint `fk_configuration_resource_customization__configuration_resour1`
562foreign key (`configuration_model_uuid`) references `configuration` (`model_uuid`)
563on delete cascade on update cascade,
Benjamin, Max (mb388a)a85dc142019-01-11 21:14:32 -0500564constraint `fk_configuration_customization__configuration_customization1`
565foreign key (`configuration_customization_model_customization_uuid`) references
Benjamin, Max (mb388a)5a6a6de2018-07-30 15:56:09 -0400566`configuration_customization` (`model_customization_uuid`)
567on delete cascade on update cascade)
568engine = innodb
569auto_increment =20654
570default character set = latin1;
571
572
573create table `service_proxy_customization_to_service` (
574 `service_model_uuid` varchar(200) not null,
575 `resource_model_customization_uuid` varchar(200) not null,
576 primary key (`service_model_uuid`,`resource_model_customization_uuid`)
577)engine=innodb default charset=latin1;
578
579
580create table `configuration_customization_to_service` (
581 `service_model_uuid` varchar(200) not null,
582 `resource_model_customization_uuid` varchar(200) not null,
583 primary key (`service_model_uuid`,`resource_model_customization_uuid`)
584)engine=innodb default charset=latin1;
585
586
587create table if not exists `collection_resource_customization_to_service` (
588 `service_model_uuid` varchar(200) not null,
589 `resource_model_customization_uuid` varchar(200) not null,
590 primary key (`service_model_uuid`,`resource_model_customization_uuid`)
591)engine=innodb default charset=latin1;
592
593
594create table `network_resource_customization_to_service` (
595 `service_model_uuid` varchar(200) not null,
596 `resource_model_customization_uuid` varchar(200) not null,
597 primary key (`service_model_uuid`,`resource_model_customization_uuid`)
598)engine=innodb default charset=latin1;
599
600create table `vnf_resource_customization_to_service` (
601 `service_model_uuid` varchar(200) not null,
602 `resource_model_customization_uuid` varchar(200) not null,
603 primary key (`service_model_uuid`,`resource_model_customization_uuid`)
604)engine=innodb default charset=latin1;
605
606create table `allotted_resource_customization_to_service` (
607 `service_model_uuid` varchar(200) not null,
608 `resource_model_customization_uuid` varchar(200) not null,
609 primary key (`service_model_uuid`,`resource_model_customization_uuid`)
610)engine=innodb default charset=latin1;
611
612
613
614create table ar_recipe (
615 ID INT(11) not null auto_increment,
616 MODEL_NAME VARCHAR(200) NOT NULL,
617 `ACTION` VARCHAR(200) NOT NULL,
618 VERSION_STR VARCHAR(200) NOT NULL,
619 SERVICE_TYPE VARCHAR(200),
620 DESCRIPTION VARCHAR(200),
621 ORCHESTRATION_URI VARCHAR(200) NOT NULL,
622 AR_PARAM_XSD VARCHAR(200),
623 RECIPE_TIMEOUT INT(10),
624 CREATION_TIMESTAMP DATETIME NOT NULL default current_timestamp,
625 primary key (ID),
626 unique key `uk_ar_recipe` (`model_name`,`action`,`version_str`)
627) ENGINE=InnoDB DEFAULT CHARSET=latin1;
628
629alter table collection_resource_customization
630add foreign key ( cr_model_uuid)
631references collection_resource(model_uuid)
632on delete cascade;
633
634alter table vnf_resource_customization
635add column
636instance_group_model_uuid varchar(200);
637
638alter table network_resource_customization
639add column
640instance_group_model_uuid varchar(200);
641
642
643alter table network_resource_customization
644add foreign key ( instance_group_model_uuid)
645references instance_group(model_uuid)
646on delete cascade;
647
648alter table collection_resource_customization_to_service
649add foreign key (service_model_uuid)
650references service(model_uuid)
651on delete cascade;
652
653alter table allotted_resource_customization_to_service
654add foreign key (service_model_uuid)
655references service(model_uuid)
656on delete cascade;
657
658
659alter table vnf_resource_customization_to_service
660add foreign key (service_model_uuid)
661references service(model_uuid)
662on delete cascade;
663
664
665alter table network_resource_customization_to_service
666add foreign key (service_model_uuid)
667references service(model_uuid)
668on delete cascade;
669
670
671alter table network_resource_customization_to_service
672add foreign key (resource_model_customization_uuid)
673references network_resource_customization(model_customization_uuid)
674on delete cascade;
675
676alter table vnf_resource_customization_to_service
677add foreign key (resource_model_customization_uuid)
678references vnf_resource_customization(model_customization_uuid)
679on delete cascade;
680
681alter table allotted_resource_customization_to_service
682add foreign key (resource_model_customization_uuid)
683references allotted_resource_customization(model_customization_uuid)
684on delete cascade;
685
686alter table collection_resource_customization_to_service
687add foreign key (resource_model_customization_uuid)
688references collection_resource_customization(model_customization_uuid)
689on delete cascade;
690
691
692create table if not exists `collection_network_resource_customization` (
693`model_customization_uuid` varchar(200) not null,
694`model_instance_name` varchar(200) not null,
695`network_technology` varchar(45) null,
696`network_type` varchar(45) null,
697`network_role` varchar(200) null,
698`network_scope` varchar(45) null,
699`creation_timestamp` datetime not null default current_timestamp,
700`network_resource_model_uuid` varchar(200) not null, `instance_group_model_uuid` varchar(200) null,
701`crc_model_customization_uuid` varchar(200) not null, primary key
702(`model_customization_uuid`, `crc_model_customization_uuid`),
703index `fk_collection_net_resource_customization__network_resource1_idx`
704(`network_resource_model_uuid` asc), index
705`fk_collection_net_resource_customization__instance_group1_idx`
706(`instance_group_model_uuid` asc), index
707`fk_col_net_res_customization__collection_res_customization_idx`
708(`crc_model_customization_uuid` asc), constraint
709`fk_collection_net_resource_customization__network_resource10` foreign
710key (`network_resource_model_uuid`) references
711`network_resource` (`model_uuid`) on delete cascade on
712update cascade, constraint
713`fk_collection_net_resource_customization__instance_group10` foreign key
714(`instance_group_model_uuid`) references `instance_group`
715(`model_uuid`) on delete cascade on update cascade, constraint
716`fk_collection_network_resource_customization__collection_reso1` foreign
717key (`crc_model_customization_uuid`) references
718`collection_resource_customization`
719(`model_customization_uuid`) on delete cascade on update cascade) engine
720= innodb default character set = latin1;
721
722CREATE TABLE IF NOT EXISTS `rainy_day_handler_macro` (
723`id` INT(11) NOT NULL AUTO_INCREMENT,
724`FLOW_NAME` VARCHAR(200) NOT NULL,
725`SERVICE_TYPE` VARCHAR(200) NOT NULL,
726`VNF_TYPE` VARCHAR(200) NOT NULL,
727`ERROR_CODE` VARCHAR(200) NOT NULL,
728`WORK_STEP` VARCHAR(200) NOT NULL,
729`POLICY` VARCHAR(200) NOT NULL,
730PRIMARY KEY (`id`))
731ENGINE = InnoDB
732DEFAULT CHARACTER SET = latin1;
733
734CREATE TABLE IF NOT EXISTS `northbound_request_ref_lookup` (
735`id` INT(11) NOT NULL AUTO_INCREMENT,
736`REQUEST_SCOPE` VARCHAR(200) NOT NULL,
737`ACTION` VARCHAR(200) NOT NULL,
738`MACRO_ACTION` VARCHAR(200) NOT NULL,
739`IS_ALACARTE` TINYINT(1) NOT NULL DEFAULT 0,
740`IS_TOPLEVELFLOW` TINYINT(1) NOT NULL DEFAULT 0,
741`MIN_API_VERSION` DOUBLE NOT NULL,
742`MAX_API_VERSION` DOUBLE NULL,
743PRIMARY KEY (`id`),
744UNIQUE INDEX `UK_northbound_request_ref_lookup` (`MIN_API_VERSION` ASC, `REQUEST_SCOPE` ASC, `ACTION` ASC, `IS_ALACARTE` ASC))
745ENGINE = InnoDB
746DEFAULT CHARACTER SET = latin1;
747
748CREATE TABLE IF NOT EXISTS `orchestration_flow_reference` (
749`id` INT(11) NOT NULL AUTO_INCREMENT,
750`COMPOSITE_ACTION` VARCHAR(200) NOT NULL,
751`SEQ_NO` INT(11) NOT NULL,
752`FLOW_NAME` VARCHAR(200) NOT NULL,
753`FLOW_VERSION` DOUBLE NOT NULL,
754`NB_REQ_REF_LOOKUP_ID` INT(11) NOT NULL,
755PRIMARY KEY (`id`),
756INDEX `fk_orchestration_flow_reference__northbound_req_ref_look_idx` (`NB_REQ_REF_LOOKUP_ID` ASC),
757UNIQUE INDEX `UK_orchestration_flow_reference` (`COMPOSITE_ACTION` ASC, `FLOW_NAME` ASC, `SEQ_NO` ASC, `NB_REQ_REF_LOOKUP_ID` ASC),
758CONSTRAINT `fk_orchestration_flow_reference__northbound_request_ref_look1`
759FOREIGN KEY (`NB_REQ_REF_LOOKUP_ID`) REFERENCES `northbound_request_ref_lookup` (`id`)
760ON DELETE CASCADE ON UPDATE CASCADE)
761ENGINE = InnoDB DEFAULT CHARACTER SET = latin1;
762
Benjamin, Max (mb388a)69455a22018-09-04 11:21:02 -0400763CREATE TABLE IF NOT EXISTS vnfc_customization (
764`MODEL_CUSTOMIZATION_UUID` VARCHAR(200) NOT NULL,
765`MODEL_INSTANCE_NAME` VARCHAR(200) NOT NULL,
766`MODEL_UUID` VARCHAR(200) NOT NULL,
767`MODEL_INVARIANT_UUID` VARCHAR(200) NOT NULL,
768`MODEL_VERSION` VARCHAR(20) NOT NULL,
769`MODEL_NAME` VARCHAR(200) NOT NULL,
770`TOSCA_NODE_TYPE` VARCHAR(200) NOT NULL,
771`DESCRIPTION` VARCHAR(1200) NULL DEFAULT NULL,
772`CREATION_TIMESTAMP` DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
773PRIMARY KEY (`MODEL_CUSTOMIZATION_UUID`))
774ENGINE = InnoDB
775AUTO_INCREMENT = 20654
776DEFAULT CHARACTER SET = latin1;
777
778CREATE TABLE IF NOT EXISTS cvnfc_customization (
779`ID` INT(11) NOT NULL AUTO_INCREMENT,
780`MODEL_CUSTOMIZATION_UUID` VARCHAR(200) NOT NULL,
781`MODEL_INSTANCE_NAME` VARCHAR(200) NOT NULL,
782`MODEL_UUID` VARCHAR(200) NOT NULL,
783`MODEL_INVARIANT_UUID` VARCHAR(200) NOT NULL,
784`MODEL_VERSION` VARCHAR(20) NOT NULL,
785`MODEL_NAME` VARCHAR(200) NOT NULL,
786`TOSCA_NODE_TYPE` VARCHAR(200) NOT NULL,
787`DESCRIPTION` VARCHAR(1200) NULL DEFAULT NULL,
788`NFC_FUNCTION` VARCHAR(200) NULL,
789`NFC_NAMING_CODE` VARCHAR(200) NULL,
790`CREATION_TIMESTAMP` DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
791`VNF_RESOURCE_CUST_MODEL_CUSTOMIZATION_UUID` VARCHAR(200) NOT NULL,
792`VF_MODULE_CUST_MODEL_CUSTOMIZATION_UUID` VARCHAR(200) NOT NULL,
793`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
794DELETE CASCADE ON
795UPDATE CASCADE, CONSTRAINT `fk_cvnfc_customization__vnfc_customization1` FOREIGN KEY (`VNFC_CUST_MODEL_CUSTOMIZATION_UUID`) REFERENCES `vnfc_customization` (`MODEL_CUSTOMIZATION_UUID`) ON
796DELETE CASCADE ON
797UPDATE CASCADE, CONSTRAINT `fk_cvnfc_customization__vnf_resource_customization1` FOREIGN KEY (`VNF_RESOURCE_CUST_MODEL_CUSTOMIZATION_UUID`) REFERENCES `vnf_resource_customization` (`MODEL_CUSTOMIZATION_UUID`) ON
798DELETE CASCADE ON
799UPDATE CASCADE) ENGINE = InnoDB AUTO_INCREMENT = 20654 DEFAULT CHARACTER SET = latin1;
800
801CREATE TABLE IF NOT EXISTS vnf_vfmodule_cvnfc_configuration_customization (
802 `ID` INT(11) NOT NULL AUTO_INCREMENT,
803 `MODEL_CUSTOMIZATION_UUID` VARCHAR(200) NOT NULL,
804 `VNF_RESOURCE_CUST_MODEL_CUSTOMIZATION_UUID` VARCHAR(200) NOT NULL,
805 `VF_MODULE_MODEL_CUSTOMIZATION_UUID` VARCHAR(200) NOT NULL,
806 `CVNFC_MODEL_CUSTOMIZATION_UUID` VARCHAR(200) NOT NULL,
807 `MODEL_INSTANCE_NAME` VARCHAR(200) NOT NULL,
808 `CONFIGURATION_TYPE` VARCHAR(200) NULL,
809 `CONFIGURATION_ROLE` VARCHAR(200) NULL,
810 `CONFIGURATION_FUNCTION` VARCHAR(200) NULL,
811 `POLICY_NAME` VARCHAR(200) NULL,
812 `CREATION_TIMESTAMP` DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
813 `CONFIGURATION_MODEL_UUID` VARCHAR(200) NOT NULL,
814 PRIMARY KEY (`ID`),
815 INDEX `fk_vnf_vfmodule_cvnfc_config_cust__configuration_idx` (`CONFIGURATION_MODEL_UUID` ASC),
816 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),
817 INDEX `fk_vnf_vfmodule_cvnfc_config_cust__cvnfc_cust1_idx` (`CVNFC_MODEL_CUSTOMIZATION_UUID` ASC),
818 INDEX `fk_vnf_vfmodule_cvnfc_config_cust__vf_module_cust_idx` (`VF_MODULE_MODEL_CUSTOMIZATION_UUID` ASC),
819 INDEX `fk_vnf_vfmodule_cvnfc_config_cust__vnf_res_cust_idx` (`VNF_RESOURCE_CUST_MODEL_CUSTOMIZATION_UUID` ASC),
820 CONSTRAINT `fk_vnf_vfmod_cvnfc_config_cust__configuration_resource` FOREIGN KEY (`CONFIGURATION_MODEL_UUID`)
821 REFERENCES `configuration` (`MODEL_UUID`)
822 ON DELETE CASCADE ON UPDATE CASCADE,
823 CONSTRAINT `fk_cvnfc_configuration_customization__cvnfc_customization1` FOREIGN KEY (`CVNFC_MODEL_CUSTOMIZATION_UUID`)
824 REFERENCES `cvnfc_customization` (`MODEL_CUSTOMIZATION_UUID`)
825 ON DELETE CASCADE ON UPDATE CASCADE,
826 CONSTRAINT `fk_vnf_configuration_cvnfc_customization__vf_module_customiza1` FOREIGN KEY (`VF_MODULE_MODEL_CUSTOMIZATION_UUID`)
827 REFERENCES `vf_module_customization` (`MODEL_CUSTOMIZATION_UUID`)
828 ON DELETE CASCADE ON UPDATE CASCADE,
829 CONSTRAINT `fk_vfmodule_cvnfc_configuration_customization__vnf_resource_c1` FOREIGN KEY (`VNF_RESOURCE_CUST_MODEL_CUSTOMIZATION_UUID`)
830 REFERENCES `vnf_resource_customization` (`MODEL_CUSTOMIZATION_UUID`)
831 ON DELETE CASCADE ON UPDATE CASCADE
832) ENGINE=INNODB AUTO_INCREMENT=20654 DEFAULT CHARACTER SET=LATIN1;
833
Benjamin, Max (mb388a)5a6a6de2018-07-30 15:56:09 -0400834--------START Request DB SCHEMA --------
835CREATE DATABASE requestdb;
836USE requestdb;
837
838
839CREATE TABLE `infra_active_requests` (
840 `REQUEST_ID` varchar(45) NOT NULL,
841 `CLIENT_REQUEST_ID` varchar(45) DEFAULT NULL,
842 `ACTION` varchar(45) DEFAULT NULL,
843 `REQUEST_STATUS` varchar(20) DEFAULT NULL,
844 `STATUS_MESSAGE` longtext DEFAULT NULL,
845 `PROGRESS` bigint(20) DEFAULT NULL,
846 `START_TIME` datetime DEFAULT NULL,
847 `END_TIME` datetime DEFAULT NULL,
848 `SOURCE` varchar(45) DEFAULT NULL,
849 `VNF_ID` varchar(45) DEFAULT NULL,
850 `VNF_NAME` varchar(80) DEFAULT NULL,
851 `VNF_TYPE` varchar(200) DEFAULT NULL,
852 `SERVICE_TYPE` varchar(45) DEFAULT NULL,
853 `AIC_NODE_CLLI` varchar(11) DEFAULT NULL,
854 `TENANT_ID` varchar(45) DEFAULT NULL,
855 `PROV_STATUS` varchar(20) DEFAULT NULL,
856 `VNF_PARAMS` longtext,
857 `VNF_OUTPUTS` longtext,
858 `REQUEST_BODY` longtext,
859 `RESPONSE_BODY` longtext,
860 `LAST_MODIFIED_BY` varchar(100) DEFAULT NULL,
861 `MODIFY_TIME` datetime DEFAULT NULL,
862 `REQUEST_TYPE` varchar(20) DEFAULT NULL,
863 `VOLUME_GROUP_ID` varchar(45) DEFAULT NULL,
864 `VOLUME_GROUP_NAME` varchar(45) DEFAULT NULL,
865 `VF_MODULE_ID` varchar(45) DEFAULT NULL,
866 `VF_MODULE_NAME` varchar(200) DEFAULT NULL,
867 `VF_MODULE_MODEL_NAME` varchar(200) DEFAULT NULL,
868 `AAI_SERVICE_ID` varchar(50) DEFAULT NULL,
869 `AIC_CLOUD_REGION` varchar(11) DEFAULT NULL,
870 `CALLBACK_URL` varchar(200) DEFAULT NULL,
871 `CORRELATOR` varchar(80) DEFAULT NULL,
872 `NETWORK_ID` varchar(45) DEFAULT NULL,
873 `NETWORK_NAME` varchar(80) DEFAULT NULL,
874 `NETWORK_TYPE` varchar(80) DEFAULT NULL,
875 `REQUEST_SCOPE` varchar(45) NOT NULL DEFAULT 'unknown',
876 `REQUEST_ACTION` varchar(45) NOT NULL DEFAULT 'unknown',
877 `SERVICE_INSTANCE_ID` varchar(45) DEFAULT NULL,
878 `SERVICE_INSTANCE_NAME` varchar(80) DEFAULT NULL,
879 `REQUESTOR_ID` varchar(50) DEFAULT NULL,
880 `CONFIGURATION_ID` varchar(45) DEFAULT NULL,
881 `CONFIGURATION_NAME` varchar(200) DEFAULT NULL,
882 `OPERATIONAL_ENV_ID` varchar(45) DEFAULT NULL,
883 `OPERATIONAL_ENV_NAME` varchar(200) DEFAULT NULL,
Benjamin, Max (mb388a)61affc62018-11-05 11:00:36 -0500884 `REQUEST_URL` varchar(500) DEFAULT NULL,
Benjamin, Max (mb388a)5a6a6de2018-07-30 15:56:09 -0400885 PRIMARY KEY (`REQUEST_ID`),
886 UNIQUE KEY `UK_bhu6w8p7wvur4pin0gjw2d5ak` (`CLIENT_REQUEST_ID`)
887) ENGINE=InnoDB DEFAULT CHARSET=latin1;
888
889CREATE TABLE `archived_infra_requests` (
890 `REQUEST_ID` varchar(45) NOT NULL,
891 `CLIENT_REQUEST_ID` varchar(45) DEFAULT NULL,
892 `ACTION` varchar(45) DEFAULT NULL,
893 `REQUEST_STATUS` varchar(20) DEFAULT NULL,
894 `STATUS_MESSAGE` longtext DEFAULT NULL,
895 `PROGRESS` bigint(20) DEFAULT NULL,
896 `START_TIME` datetime DEFAULT NULL,
897 `END_TIME` datetime DEFAULT NULL,
898 `SOURCE` varchar(45) DEFAULT NULL,
899 `VNF_ID` varchar(45) DEFAULT NULL,
900 `VNF_NAME` varchar(80) DEFAULT NULL,
901 `VNF_TYPE` varchar(200) DEFAULT NULL,
902 `SERVICE_TYPE` varchar(45) DEFAULT NULL,
903 `AIC_NODE_CLLI` varchar(11) DEFAULT NULL,
904 `TENANT_ID` varchar(45) DEFAULT NULL,
905 `PROV_STATUS` varchar(20) DEFAULT NULL,
906 `VNF_PARAMS` longtext,
907 `VNF_OUTPUTS` longtext,
908 `REQUEST_BODY` longtext,
909 `RESPONSE_BODY` longtext,
910 `LAST_MODIFIED_BY` varchar(100) DEFAULT NULL,
911 `MODIFY_TIME` datetime DEFAULT NULL,
912 `REQUEST_TYPE` varchar(20) DEFAULT NULL,
913 `VOLUME_GROUP_ID` varchar(45) DEFAULT NULL,
914 `VOLUME_GROUP_NAME` varchar(45) DEFAULT NULL,
915 `VF_MODULE_ID` varchar(45) DEFAULT NULL,
916 `VF_MODULE_NAME` varchar(200) DEFAULT NULL,
917 `VF_MODULE_MODEL_NAME` varchar(200) DEFAULT NULL,
918 `AAI_SERVICE_ID` varchar(50) DEFAULT NULL,
919 `AIC_CLOUD_REGION` varchar(11) DEFAULT NULL,
920 `CALLBACK_URL` varchar(200) DEFAULT NULL,
921 `CORRELATOR` varchar(80) DEFAULT NULL,
922 `NETWORK_ID` varchar(45) DEFAULT NULL,
923 `NETWORK_NAME` varchar(80) DEFAULT NULL,
924 `NETWORK_TYPE` varchar(80) DEFAULT NULL,
925 `REQUEST_SCOPE` varchar(20) NOT NULL DEFAULT 'unknown',
926 `REQUEST_ACTION` varchar(45) NOT NULL DEFAULT 'unknown',
927 `SERVICE_INSTANCE_ID` varchar(45) DEFAULT NULL,
928 `SERVICE_INSTANCE_NAME` varchar(80) DEFAULT NULL,
929 `REQUESTOR_ID` varchar(50) DEFAULT NULL,
930 `CONFIGURATION_ID` varchar(45) DEFAULT NULL,
931 `CONFIGURATION_NAME` varchar(200) DEFAULT NULL,
932 `OPERATIONAL_ENV_ID` varchar(45) DEFAULT NULL,
933 `OPERATIONAL_ENV_NAME` varchar(200) DEFAULT NULL,
Benjamin, Max (mb388a)61affc62018-11-05 11:00:36 -0500934 `REQUEST_URL` varchar(500) DEFAULT NULL,
Benjamin, Max (mb388a)5a6a6de2018-07-30 15:56:09 -0400935 PRIMARY KEY (`REQUEST_ID`),
936 UNIQUE KEY `UK_bhu6w8p7wvur4pin0gjw2d59h` (`CLIENT_REQUEST_ID`)
937) ENGINE=InnoDB DEFAULT CHARSET=latin1;
938
939CREATE TABLE `site_status` (
940 `SITE_NAME` varchar(255) NOT NULL,
941 `STATUS` bit(1) DEFAULT NULL,
942 `CREATION_TIMESTAMP` datetime DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
943 PRIMARY KEY (`SITE_NAME`)
944) ENGINE=InnoDB DEFAULT CHARSET=latin1;
945
946CREATE TABLE `watchdog_distributionid_status` (
947 `DISTRIBUTION_ID` varchar(45) NOT NULL,
948 `DISTRIBUTION_ID_STATUS` varchar(45) DEFAULT NULL,
949 `CREATE_TIME` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
950 `MODIFY_TIME` datetime DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP,
951 PRIMARY KEY (`DISTRIBUTION_ID`)
952) ENGINE=InnoDB DEFAULT CHARSET=latin1;
953
954CREATE TABLE `watchdog_per_component_distribution_status` (
955 `DISTRIBUTION_ID` varchar(45) NOT NULL,
956 `COMPONENT_NAME` varchar(45) NOT NULL,
957 `COMPONENT_DISTRIBUTION_STATUS` varchar(45) DEFAULT NULL,
958 `CREATE_TIME` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
959 `MODIFY_TIME` datetime DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP,
960 PRIMARY KEY (`DISTRIBUTION_ID`,`COMPONENT_NAME`),
961 CONSTRAINT `fk_watchdog_component_distribution_status_watchdog_distributi1` FOREIGN KEY (`DISTRIBUTION_ID`) REFERENCES `watchdog_distributionid_status` (`DISTRIBUTION_ID`) ON DELETE CASCADE ON UPDATE CASCADE
962) ENGINE=InnoDB DEFAULT CHARSET=latin1;
963
964CREATE TABLE `watchdog_service_mod_ver_id_lookup` (
965 `DISTRIBUTION_ID` varchar(45) NOT NULL,
966 `SERVICE_MODEL_VERSION_ID` varchar(45) NOT NULL,
967 `CREATE_TIME` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
968 `MODIFY_TIME` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
969 PRIMARY KEY (`DISTRIBUTION_ID`,`SERVICE_MODEL_VERSION_ID`)
970) ENGINE=InnoDB DEFAULT CHARSET=latin1;
971
972CREATE TABLE `activate_operational_env_service_model_distribution_status` (
973 `OPERATIONAL_ENV_ID` varchar(45) NOT NULL,
974 `SERVICE_MODEL_VERSION_ID` varchar(45) NOT NULL,
975 `REQUEST_ID` varchar(45) NOT NULL,
976 `SERVICE_MOD_VER_FINAL_DISTR_STATUS` varchar(45) DEFAULT NULL,
977 `RECOVERY_ACTION` varchar(30) DEFAULT NULL,
978 `RETRY_COUNT_LEFT` int(11) DEFAULT NULL,
979 `WORKLOAD_CONTEXT` varchar(80) NOT NULL,
980 `CREATE_TIME` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
981 `MODIFY_TIME` datetime DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP,
982 PRIMARY KEY (`OPERATIONAL_ENV_ID`,`SERVICE_MODEL_VERSION_ID`,`REQUEST_ID`)
983) ENGINE=InnoDB DEFAULT CHARSET=latin1;
984
985CREATE TABLE `activate_operational_env_per_distributionid_status` (
986 `DISTRIBUTION_ID` varchar(45) NOT NULL,
987 `DISTRIBUTION_ID_STATUS` varchar(45) DEFAULT NULL,
988 `DISTRIBUTION_ID_ERROR_REASON` varchar(250) DEFAULT NULL,
989 `CREATE_TIME` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
990 `MODIFY_TIME` datetime DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP,
991 `OPERATIONAL_ENV_ID` varchar(45) NOT NULL,
992 `SERVICE_MODEL_VERSION_ID` varchar(45) NOT NULL,
993 `REQUEST_ID` varchar(45) NOT NULL,
994 PRIMARY KEY (`DISTRIBUTION_ID`),
995 KEY `fk_activate_op_env_per_distributionid_status__aoesmds1_idx` (`OPERATIONAL_ENV_ID`,`SERVICE_MODEL_VERSION_ID`,`REQUEST_ID`),
996 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
997) ENGINE=InnoDB DEFAULT CHARSET=latin1;
998
999create table operation_status (
1000 SERVICE_ID varchar(255) not null,
1001 OPERATION_ID varchar(255) not null,
1002 SERVICE_NAME varchar(255),
1003 OPERATION_TYPE varchar(255),
1004 USER_ID varchar(255),
1005 RESULT varchar(255),
1006 OPERATION_CONTENT varchar(255),
1007 PROGRESS varchar(255),
1008 REASON varchar(255),
1009 OPERATE_AT datetime NOT NULL,
1010 FINISHED_AT datetime NOT NULL,
1011 primary key (SERVICE_ID,OPERATION_ID)
1012) ENGINE=InnoDB DEFAULT CHARSET=latin1;
1013
1014create table resource_operation_status (
1015 SERVICE_ID varchar(255) not null,
1016 OPERATION_ID varchar(255) not null,
1017 RESOURCE_TEMPLATE_UUID varchar(255) not null,
1018 OPER_TYPE varchar(255),
1019 RESOURCE_INSTANCE_ID varchar(255),
1020 JOB_ID varchar(255),
1021 STATUS varchar(255),
1022 PROGRESS varchar(255),
1023 ERROR_CODE varchar(255) ,
1024 STATUS_DESCRIPOTION varchar(255) ,
1025 primary key (SERVICE_ID,OPERATION_ID,RESOURCE_TEMPLATE_UUID)
1026) ENGINE=InnoDB DEFAULT CHARSET=latin1;
1027
1028create table if not exists model_recipe (
1029 `ID` INT(11) NOT NULL AUTO_INCREMENT,
1030 `MODEL_ID` INT(11),
1031 `ACTION` VARCHAR(40),
1032 `SCHEMA_VERSION` VARCHAR(40),
1033 `DESCRIPTION` VARCHAR(40),
1034 `ORCHESTRATION_URI` VARCHAR(20),
1035 `MODEL_PARAM_XSD` VARCHAR(20),
1036 `RECIPE_TIMEOUT` INT(11),
1037 `CREATION_TIMESTAMP` datetime not null default current_timestamp,
1038 PRIMARY KEY (`ID`),
1039 CONSTRAINT uk1_model_recipe UNIQUE (`MODEL_ID`, `ACTION`)
1040) ENGINE=InnoDB DEFAULT CHARSET=latin1;
1041
1042create table if not exists model (
1043 `ID` INT(11) NOT NULL AUTO_INCREMENT,
1044 `MODEL_CUSTOMIZATION_ID` VARCHAR(40),
1045 `MODEL_CUSTOMIZATION_NAME` VARCHAR(40),
1046 `MODEL_INVARIANT_ID` VARCHAR(40),
1047 `MODEL_NAME` VARCHAR(40),
1048 `MODEL_TYPE` VARCHAR(20),
1049 `MODEL_VERSION` VARCHAR(20),
1050 `MODEL_VERSION_ID` VARCHAR(40),
1051 `CREATION_TIMESTAMP` datetime not null default current_timestamp,
1052 `RECIPE` INT(11),
1053 PRIMARY KEY (`ID`),
1054 CONSTRAINT uk1_model UNIQUE (`MODEL_TYPE`, `MODEL_VERSION_ID`),
1055 FOREIGN KEY (`RECIPE`) REFERENCES `model_recipe` (`MODEL_ID`) ON DELETE CASCADE ON UPDATE CASCADE
1056) ENGINE=InnoDB DEFAULT CHARSET=latin1;