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