blob: aef33c3aede74e57ca585d8e9242d588b69901cb [file] [log] [blame]
Benjamin, Max (mb388a)5a6a6de2018-07-30 15:56:09 -04001
2--------START Catalog DB SCHEMA --------
3use catalogdb;
4
5create table `allotted_resource` (
6 `model_uuid` varchar(200) not null,
7 `model_invariant_uuid` varchar(200) not null,
8 `model_version` varchar(20) not null,
9 `model_name` varchar(200) not null,
10 `tosca_node_type` varchar(200) default null,
11 `subcategory` varchar(200) default null,
12 `description` varchar(1200) default null,
13 `creation_timestamp` datetime not null default current_timestamp,
14 primary key (`model_uuid`)
15) engine=innodb default charset=latin1;
16
17
18
19
20create table `allotted_resource_customization` (
21 `model_customization_uuid` varchar(200) not null,
22 `model_instance_name` varchar(200) not null,
23 `providing_service_model_uuid` varchar(200) default null,
24 `providing_service_model_invariant_uuid` varchar(200) default null,
25 `providing_service_model_name` varchar(200) default null,
26 `target_network_role` varchar(200) default null,
27 `nf_type` varchar(200) default null,
28 `nf_role` varchar(200) default null,
29 `nf_function` varchar(200) default null,
30 `nf_naming_code` varchar(200) default null,
31 `min_instances` int(11) default null,
32 `max_instances` int(11) default null,
33 `ar_model_uuid` varchar(200) not null,
subhash kumar singhf6f326e2019-01-17 14:28:43 +053034 `resource_input` varchar(20000) default null,
Benjamin, Max (mb388a)5a6a6de2018-07-30 15:56:09 -040035 `creation_timestamp` datetime not null default current_timestamp,
36 primary key (`model_customization_uuid`),
37 key `fk_allotted_resource_customization__allotted_resource1_idx` (`ar_model_uuid`),
38 constraint `fk_allotted_resource_customization__allotted_resource1` foreign key (`ar_model_uuid`) references `allotted_resource` (`model_uuid`) on delete cascade on update cascade
39) engine=innodb default charset=latin1;
40
41
42
43
44create table `heat_environment` (
45 `artifact_uuid` varchar(200) not null,
46 `name` varchar(100) not null,
47 `version` varchar(20) not null,
48 `description` varchar(1200) default null,
49 `body` longtext not null,
50 `artifact_checksum` varchar(200) not null default 'manual record',
51 `creation_timestamp` datetime not null default current_timestamp,
52 primary key (`artifact_uuid`)
53) engine=innodb default charset=latin1;
54
55
56
57create table `heat_files` (
58 `artifact_uuid` varchar(200) not null,
59 `name` varchar(200) not null,
60 `version` varchar(20) not null,
61 `description` varchar(1200) default null,
62 `body` longtext not null,
63 `artifact_checksum` varchar(200) not null default 'manual record',
64 `creation_timestamp` datetime not null default current_timestamp,
65 primary key (`artifact_uuid`)
66) engine=innodb default charset=latin1;
67
68
69
70
71create table `heat_template` (
72 `artifact_uuid` varchar(200) not null,
73 `name` varchar(200) not null,
74 `version` varchar(20) not null,
75 `description` varchar(1200) default null,
76 `body` longtext not null,
77 `timeout_minutes` int(11) default null,
78 `artifact_checksum` varchar(200) not null default 'manual record',
79 `creation_timestamp` datetime not null default current_timestamp,
80 primary key (`artifact_uuid`)
81) engine=innodb default charset=latin1;
82
83
84
85create table `heat_nested_template` (
86 `parent_heat_template_uuid` varchar(200) not null,
87 `child_heat_template_uuid` varchar(200) not null,
88 `provider_resource_file` varchar(100) default null,
89 primary key (`parent_heat_template_uuid`,`child_heat_template_uuid`),
90 key `fk_heat_nested_template__heat_template2_idx` (`child_heat_template_uuid`),
91 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,
92 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
93) engine=innodb default charset=latin1;
94
95
96
97
98create table `heat_template_params` (
99 `heat_template_artifact_uuid` varchar(200) not null,
100 `param_name` varchar(100) not null,
101 `is_required` bit(1) not null,
102 `param_type` varchar(20) default null,
103 `param_alias` varchar(45) default null,
104 primary key (`heat_template_artifact_uuid`,`param_name`),
105 constraint `fk_heat_template_params__heat_template1` foreign key (`heat_template_artifact_uuid`) references `heat_template` (`artifact_uuid`) on delete cascade on update cascade
106) engine=innodb default charset=latin1;
107
108
109
110create table `network_recipe` (
111 `id` int(11) not null auto_increment,
112 `model_name` varchar(20) not null,
113 `action` varchar(50) not null,
114 `description` varchar(1200) default null,
115 `orchestration_uri` varchar(256) not null,
116 `network_param_xsd` varchar(2048) default null,
117 `recipe_timeout` int(11) default null,
118 `service_type` varchar(45) default null,
119 `creation_timestamp` datetime not null default current_timestamp,
120 `version_str` varchar(20) not null,
121 primary key (`id`),
122 unique key `uk_rl4f296i0p8lyokxveaiwkayi` (`model_name`,`action`,`version_str`)
123) engine=innodb auto_increment=178 default charset=latin1;
124
125
126
127
128create table `temp_network_heat_template_lookup` (
129 `network_resource_model_name` varchar(200) not null,
130 `heat_template_artifact_uuid` varchar(200) not null,
131 `aic_version_min` varchar(20) not null,
132 `aic_version_max` varchar(20) default null,
133 primary key (`network_resource_model_name`),
134 key `fk_temp_network_heat_template_lookup__heat_template1_idx` (`heat_template_artifact_uuid`),
135 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
136) engine=innodb default charset=latin1;
137
138
139
140create table `network_resource` (
141 `model_uuid` varchar(200) not null,
142 `model_name` varchar(200) not null,
143 `model_invariant_uuid` varchar(200) default null,
144 `description` varchar(1200) default null,
subhash kumar singhd5f5d0d2019-01-22 12:56:29 +0530145 `heat_template_artifact_uuid` varchar(200) null,
Benjamin, Max (mb388a)5a6a6de2018-07-30 15:56:09 -0400146 `neutron_network_type` varchar(20) default null,
147 `model_version` varchar(20) default null,
148 `tosca_node_type` varchar(200) default null,
subhash kumar singhd5f5d0d2019-01-22 12:56:29 +0530149 `aic_version_min` varchar(20) null,
Benjamin, Max (mb388a)5a6a6de2018-07-30 15:56:09 -0400150 `aic_version_max` varchar(20) default null,
151 `orchestration_mode` varchar(20) default 'heat',
152 `resource_category` varchar(20) default null,
153 `resource_sub_category` varchar(20) default null,
154 `creation_timestamp` datetime not null default current_timestamp,
155 primary key (`model_uuid`),
156 key `fk_network_resource__temp_network_heat_template_lookup1_idx` (`model_name`),
157 key `fk_network_resource__heat_template1_idx` (`heat_template_artifact_uuid`),
subhash kumar singhd5f5d0d2019-01-22 12:56:29 +0530158 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 -0400159) 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 `vnf_type` 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 auto_increment,
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) NULL,
464 instance_group_type varchar(200) not null,
465 primary key (`model_uuid`)
466)engine=innodb default charset=latin1;
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 -0500523CREATE 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
614
615create table ar_recipe (
616 ID INT(11) not null auto_increment,
617 MODEL_NAME VARCHAR(200) NOT NULL,
618 `ACTION` VARCHAR(200) NOT NULL,
619 VERSION_STR VARCHAR(200) NOT NULL,
620 SERVICE_TYPE VARCHAR(200),
621 DESCRIPTION VARCHAR(200),
622 ORCHESTRATION_URI VARCHAR(200) NOT NULL,
623 AR_PARAM_XSD VARCHAR(200),
624 RECIPE_TIMEOUT INT(10),
625 CREATION_TIMESTAMP DATETIME NOT NULL default current_timestamp,
626 primary key (ID),
627 unique key `uk_ar_recipe` (`model_name`,`action`,`version_str`)
628) ENGINE=InnoDB DEFAULT CHARSET=latin1;
629
630alter table collection_resource_customization
631add foreign key ( cr_model_uuid)
632references collection_resource(model_uuid)
633on delete cascade;
634
635alter table vnf_resource_customization
636add column
637instance_group_model_uuid varchar(200);
638
639alter table network_resource_customization
640add column
641instance_group_model_uuid varchar(200);
642
643
644alter table network_resource_customization
645add foreign key ( instance_group_model_uuid)
646references instance_group(model_uuid)
647on delete cascade;
648
649alter table collection_resource_customization_to_service
650add foreign key (service_model_uuid)
651references service(model_uuid)
652on delete cascade;
653
654alter table allotted_resource_customization_to_service
655add foreign key (service_model_uuid)
656references service(model_uuid)
657on delete cascade;
658
659
660alter table vnf_resource_customization_to_service
661add foreign key (service_model_uuid)
662references service(model_uuid)
663on delete cascade;
664
665
666alter table network_resource_customization_to_service
667add foreign key (service_model_uuid)
668references service(model_uuid)
669on delete cascade;
670
671
672alter table network_resource_customization_to_service
673add foreign key (resource_model_customization_uuid)
674references network_resource_customization(model_customization_uuid)
675on delete cascade;
676
677alter table vnf_resource_customization_to_service
678add foreign key (resource_model_customization_uuid)
679references vnf_resource_customization(model_customization_uuid)
680on delete cascade;
681
682alter table allotted_resource_customization_to_service
683add foreign key (resource_model_customization_uuid)
684references allotted_resource_customization(model_customization_uuid)
685on delete cascade;
686
687alter table collection_resource_customization_to_service
688add foreign key (resource_model_customization_uuid)
689references collection_resource_customization(model_customization_uuid)
690on delete cascade;
691
692
693create table if not exists `collection_network_resource_customization` (
694`model_customization_uuid` varchar(200) not null,
695`model_instance_name` varchar(200) not null,
696`network_technology` varchar(45) null,
697`network_type` varchar(45) null,
698`network_role` varchar(200) null,
699`network_scope` varchar(45) null,
700`creation_timestamp` datetime not null default current_timestamp,
701`network_resource_model_uuid` varchar(200) not null, `instance_group_model_uuid` varchar(200) null,
702`crc_model_customization_uuid` varchar(200) not null, primary key
703(`model_customization_uuid`, `crc_model_customization_uuid`),
704index `fk_collection_net_resource_customization__network_resource1_idx`
705(`network_resource_model_uuid` asc), index
706`fk_collection_net_resource_customization__instance_group1_idx`
707(`instance_group_model_uuid` asc), index
708`fk_col_net_res_customization__collection_res_customization_idx`
709(`crc_model_customization_uuid` asc), constraint
710`fk_collection_net_resource_customization__network_resource10` foreign
711key (`network_resource_model_uuid`) references
712`network_resource` (`model_uuid`) on delete cascade on
713update cascade, constraint
714`fk_collection_net_resource_customization__instance_group10` foreign key
715(`instance_group_model_uuid`) references `instance_group`
716(`model_uuid`) on delete cascade on update cascade, constraint
717`fk_collection_network_resource_customization__collection_reso1` foreign
718key (`crc_model_customization_uuid`) references
719`collection_resource_customization`
720(`model_customization_uuid`) on delete cascade on update cascade) engine
721= innodb default character set = latin1;
722
723CREATE TABLE IF NOT EXISTS `rainy_day_handler_macro` (
724`id` INT(11) NOT NULL AUTO_INCREMENT,
725`FLOW_NAME` VARCHAR(200) NOT NULL,
726`SERVICE_TYPE` VARCHAR(200) NOT NULL,
727`VNF_TYPE` VARCHAR(200) NOT NULL,
728`ERROR_CODE` VARCHAR(200) NOT NULL,
729`WORK_STEP` VARCHAR(200) NOT NULL,
730`POLICY` VARCHAR(200) NOT NULL,
731PRIMARY KEY (`id`))
732ENGINE = InnoDB
733DEFAULT CHARACTER SET = latin1;
734
735CREATE TABLE IF NOT EXISTS `northbound_request_ref_lookup` (
736`id` INT(11) NOT NULL AUTO_INCREMENT,
737`REQUEST_SCOPE` VARCHAR(200) NOT NULL,
738`ACTION` VARCHAR(200) NOT NULL,
739`MACRO_ACTION` VARCHAR(200) NOT NULL,
740`IS_ALACARTE` TINYINT(1) NOT NULL DEFAULT 0,
741`IS_TOPLEVELFLOW` TINYINT(1) NOT NULL DEFAULT 0,
742`MIN_API_VERSION` DOUBLE NOT NULL,
743`MAX_API_VERSION` DOUBLE NULL,
744PRIMARY KEY (`id`),
745UNIQUE INDEX `UK_northbound_request_ref_lookup` (`MIN_API_VERSION` ASC, `REQUEST_SCOPE` ASC, `ACTION` ASC, `IS_ALACARTE` ASC))
746ENGINE = InnoDB
747DEFAULT CHARACTER SET = latin1;
748
749CREATE TABLE IF NOT EXISTS `orchestration_flow_reference` (
750`id` INT(11) NOT NULL AUTO_INCREMENT,
751`COMPOSITE_ACTION` VARCHAR(200) NOT NULL,
752`SEQ_NO` INT(11) NOT NULL,
753`FLOW_NAME` VARCHAR(200) NOT NULL,
754`FLOW_VERSION` DOUBLE NOT NULL,
755`NB_REQ_REF_LOOKUP_ID` INT(11) NOT NULL,
756PRIMARY KEY (`id`),
757INDEX `fk_orchestration_flow_reference__northbound_req_ref_look_idx` (`NB_REQ_REF_LOOKUP_ID` ASC),
758UNIQUE INDEX `UK_orchestration_flow_reference` (`COMPOSITE_ACTION` ASC, `FLOW_NAME` ASC, `SEQ_NO` ASC, `NB_REQ_REF_LOOKUP_ID` ASC),
759CONSTRAINT `fk_orchestration_flow_reference__northbound_request_ref_look1`
760FOREIGN KEY (`NB_REQ_REF_LOOKUP_ID`) REFERENCES `northbound_request_ref_lookup` (`id`)
761ON DELETE CASCADE ON UPDATE CASCADE)
762ENGINE = InnoDB DEFAULT CHARACTER SET = latin1;
763
Benjamin, Max (mb388a)69455a22018-09-04 11:21:02 -0400764CREATE TABLE IF NOT EXISTS vnfc_customization (
765`MODEL_CUSTOMIZATION_UUID` VARCHAR(200) NOT NULL,
766`MODEL_INSTANCE_NAME` VARCHAR(200) NOT NULL,
767`MODEL_UUID` VARCHAR(200) NOT NULL,
768`MODEL_INVARIANT_UUID` VARCHAR(200) NOT NULL,
769`MODEL_VERSION` VARCHAR(20) NOT NULL,
770`MODEL_NAME` VARCHAR(200) NOT NULL,
771`TOSCA_NODE_TYPE` VARCHAR(200) NOT NULL,
772`DESCRIPTION` VARCHAR(1200) NULL DEFAULT NULL,
773`CREATION_TIMESTAMP` DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
774PRIMARY KEY (`MODEL_CUSTOMIZATION_UUID`))
775ENGINE = InnoDB
776AUTO_INCREMENT = 20654
777DEFAULT CHARACTER SET = latin1;
778
779CREATE TABLE IF NOT EXISTS cvnfc_customization (
780`ID` INT(11) NOT NULL AUTO_INCREMENT,
781`MODEL_CUSTOMIZATION_UUID` VARCHAR(200) NOT NULL,
782`MODEL_INSTANCE_NAME` VARCHAR(200) NOT NULL,
783`MODEL_UUID` VARCHAR(200) NOT NULL,
784`MODEL_INVARIANT_UUID` VARCHAR(200) NOT NULL,
785`MODEL_VERSION` VARCHAR(20) NOT NULL,
786`MODEL_NAME` VARCHAR(200) NOT NULL,
787`TOSCA_NODE_TYPE` VARCHAR(200) NOT NULL,
788`DESCRIPTION` VARCHAR(1200) NULL DEFAULT NULL,
789`NFC_FUNCTION` VARCHAR(200) NULL,
790`NFC_NAMING_CODE` VARCHAR(200) NULL,
791`CREATION_TIMESTAMP` DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
792`VNF_RESOURCE_CUST_MODEL_CUSTOMIZATION_UUID` VARCHAR(200) NOT NULL,
793`VF_MODULE_CUST_MODEL_CUSTOMIZATION_UUID` VARCHAR(200) NOT NULL,
794`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
795DELETE CASCADE ON
796UPDATE CASCADE, CONSTRAINT `fk_cvnfc_customization__vnfc_customization1` FOREIGN KEY (`VNFC_CUST_MODEL_CUSTOMIZATION_UUID`) REFERENCES `vnfc_customization` (`MODEL_CUSTOMIZATION_UUID`) ON
797DELETE CASCADE ON
798UPDATE CASCADE, CONSTRAINT `fk_cvnfc_customization__vnf_resource_customization1` FOREIGN KEY (`VNF_RESOURCE_CUST_MODEL_CUSTOMIZATION_UUID`) REFERENCES `vnf_resource_customization` (`MODEL_CUSTOMIZATION_UUID`) ON
799DELETE CASCADE ON
800UPDATE CASCADE) ENGINE = InnoDB AUTO_INCREMENT = 20654 DEFAULT CHARACTER SET = latin1;
801
802
803CREATE TABLE IF NOT EXISTS vnf_vfmodule_cvnfc_configuration_customization (
Benjamin, Max (mb388a)e8689682019-03-20 16:19:39 -0400804 `ID` INT(11) NOT NULL AUTO_INCREMENT,
805 `MODEL_CUSTOMIZATION_UUID` VARCHAR(200) NOT NULL,
806 `MODEL_INSTANCE_NAME` VARCHAR(200) NOT NULL,
807 `CONFIGURATION_TYPE` VARCHAR(200) NULL,
808 `CONFIGURATION_ROLE` VARCHAR(200) NULL,
809 `CONFIGURATION_FUNCTION` VARCHAR(200) NULL,
810 `POLICY_NAME` VARCHAR(200) NULL,
811 `CREATION_TIMESTAMP` DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
812 `CONFIGURATION_MODEL_UUID` VARCHAR(200) NOT NULL,
813 `VNF_RESOURCE_CUST_MODEL_CUSTOMIZATION_UUID` VARCHAR(200) DEFAULT NULL,
814 `VF_MODULE_MODEL_CUSTOMIZATION_UUID` VARCHAR(200) DEFAULT NULL,
815 `CVNFC_CUSTOMIZATION_ID` INT(11) DEFAULT NULL,
816 PRIMARY KEY (`ID`),
817 INDEX `fk_vnf_vfmodule_cvnfc_config_cust__configuration_idx` (`CONFIGURATION_MODEL_UUID` ASC),
818
819 CONSTRAINT `fk_vnf_vfmod_cvnfc_config_cust__configuration_resource` FOREIGN KEY (`CONFIGURATION_MODEL_UUID`)
820 REFERENCES `configuration` (`MODEL_UUID`) ON DELETE CASCADE ON UPDATE CASCADE
821) ENGINE = INNODB AUTO_INCREMENT = 20654 DEFAULT CHARACTER SET = LATIN1;
Benjamin, Max (mb388a)69455a22018-09-04 11:21:02 -0400822
Benjamin, Max (mb388a)e8689682019-03-20 16:19:39 -0400823CREATE TABLE IF NOT EXISTS `pnf_resource` (
824 `ORCHESTRATION_MODE` varchar(20) NOT NULL DEFAULT 'HEAT',
825 `DESCRIPTION` varchar(1200) DEFAULT NULL,
826 `CREATION_TIMESTAMP` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
827 `MODEL_UUID` varchar(200) NOT NULL,
828 `MODEL_INVARIANT_UUID` varchar(200) DEFAULT NULL,
829 `MODEL_VERSION` varchar(20) NOT NULL,
830 `MODEL_NAME` varchar(200) DEFAULT NULL,
831 `TOSCA_NODE_TYPE` varchar(200) DEFAULT NULL,
832 `RESOURCE_CATEGORY` varchar(200) DEFAULT NULL,
833 `RESOURCE_SUB_CATEGORY` varchar(200) DEFAULT NULL,
834 PRIMARY KEY (`MODEL_UUID`)
835) ENGINE=InnoDB DEFAULT CHARSET=latin1;
836
837CREATE TABLE IF NOT EXISTS `pnf_resource_customization` (
838 `MODEL_CUSTOMIZATION_UUID` varchar(200) NOT NULL,
839 `MODEL_INSTANCE_NAME` varchar(200) NOT NULL,
840 `NF_TYPE` varchar(200) DEFAULT NULL,
841 `NF_ROLE` varchar(200) DEFAULT NULL,
842 `NF_FUNCTION` varchar(200) DEFAULT NULL,
843 `NF_NAMING_CODE` varchar(200) DEFAULT NULL,
844 `CREATION_TIMESTAMP` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
845 `PNF_RESOURCE_MODEL_UUID` varchar(200) NOT NULL,
846 `MULTI_STAGE_DESIGN` varchar(20) DEFAULT NULL,
847 `RESOURCE_INPUT` varchar(2000) DEFAULT NULL,
848 `CDS_BLUEPRINT_NAME` varchar(200) DEFAULT NULL,
849 `CDS_BLUEPRINT_VERSION` varchar(20) DEFAULT NULL,
850 PRIMARY KEY (`MODEL_CUSTOMIZATION_UUID`),
851 KEY `fk_pnf_resource_customization__pnf_resource1_idx` (`PNF_RESOURCE_MODEL_UUID`),
852 CONSTRAINT `fk_pnf_resource_customization__pnf_resource1` FOREIGN KEY (`PNF_RESOURCE_MODEL_UUID`) REFERENCES `pnf_resource` (`MODEL_UUID`) ON DELETE CASCADE ON UPDATE CASCADE
853) ENGINE=InnoDB DEFAULT CHARSET=latin1;
854
855CREATE TABLE IF NOT EXISTS `pnf_resource_customization_to_service` (
856 `SERVICE_MODEL_UUID` varchar(200) NOT NULL,
857 `RESOURCE_MODEL_CUSTOMIZATION_UUID` varchar(200) NOT NULL,
858 PRIMARY KEY (`SERVICE_MODEL_UUID`,`RESOURCE_MODEL_CUSTOMIZATION_UUID`)
859)ENGINE=InnoDB DEFAULT CHARSET=latin1;
Benjamin, Max (mb388a)5a6a6de2018-07-30 15:56:09 -0400860--------START Request DB SCHEMA --------
861CREATE DATABASE requestdb;
862USE requestdb;
863
864
865CREATE TABLE `active_requests` (
866 `REQUEST_ID` varchar(45) NOT NULL,
867 `CLIENT_REQUEST_ID` varchar(45) DEFAULT NULL,
868 `SERVICE_INSTANCE_ID` varchar(50) NOT NULL,
869 `SUBSCRIBER_NAME` varchar(200) DEFAULT NULL,
870 `REQUEST_URI` varchar(255) DEFAULT NULL,
871 `SERVICE_TYPE` varchar(65) NOT NULL,
872 `REQUEST_ACTION` varchar(45) NOT NULL,
873 `NOTIFICATION_URL` varchar(255) DEFAULT NULL,
874 `REQUEST_ID_IN_PROGRESS` varchar(45) DEFAULT NULL,
875 `START_TIME` datetime DEFAULT NULL,
876 `MODIFY_TIME` datetime DEFAULT NULL,
877 `COMPLETION_TIME` datetime DEFAULT NULL,
878 `RESPONSE_CODE` varchar(20) DEFAULT NULL,
879 `RESPONSE_BODY` longtext,
880 `STATUS` varchar(25) DEFAULT NULL,
881 `SERVICE_REQUEST_TIMEOUT` datetime DEFAULT NULL,
882 `FINAL_ERROR_CODE` varchar(20) DEFAULT NULL,
883 `FINAL_ERROR_MESSAGE` varchar(2000) DEFAULT NULL,
884 `ORDER_NUMBER` varchar(45) DEFAULT NULL,
885 `SOURCE` varchar(20) DEFAULT NULL,
886 `RESPONSE_STATUS` varchar(25) DEFAULT NULL,
887 `ORDER_VERSION` varchar(20) DEFAULT NULL,
888 `LAST_MODIFIED_BY` varchar(20) DEFAULT NULL,
889 `MOCARS_TICKET_NUM` varchar(200) DEFAULT NULL,
890 `REQUEST_BODY` longtext,
891 `REQUEST_SUB_ACTION` varchar(45) DEFAULT NULL,
892 `SDNC_CALLBACK_BPEL_URL` varchar(255) DEFAULT NULL,
893 `FEATURE_TYPE` varchar(255) DEFAULT NULL,
894 `FEATURE_INSTANCE_ID` varchar(255) DEFAULT NULL,
895 `REQUEST_TYPE` varchar(255) DEFAULT NULL,
896 `INTERIM_COMPLETION_TIME` datetime DEFAULT NULL,
897 `INTERIM_STAGE_COMPLETION` int(11) DEFAULT NULL,
898 `SERVICE_NAME_VERSION_ID` varchar(50) DEFAULT NULL,
899 `GLOBAL_SUBSCRIBER_ID` varchar(255) DEFAULT NULL,
900 `SERVICE_ID` varchar(50) DEFAULT NULL,
901 `SERVICE_VERSION` varchar(10) DEFAULT NULL,
902 `CORRELATOR` varchar(50) DEFAULT NULL,
903 PRIMARY KEY (`REQUEST_ID`),
904 UNIQUE KEY `UK_f0hdk7xbw5mb2trnxx0fvlh3x` (`CLIENT_REQUEST_ID`)
905) ENGINE=InnoDB DEFAULT CHARSET=latin1;
906
907CREATE TABLE `infra_active_requests` (
908 `REQUEST_ID` varchar(45) NOT NULL,
909 `CLIENT_REQUEST_ID` varchar(45) DEFAULT NULL,
910 `ACTION` varchar(45) DEFAULT NULL,
911 `REQUEST_STATUS` varchar(20) DEFAULT NULL,
912 `STATUS_MESSAGE` longtext DEFAULT NULL,
913 `PROGRESS` bigint(20) DEFAULT NULL,
914 `START_TIME` datetime DEFAULT NULL,
915 `END_TIME` datetime DEFAULT NULL,
916 `SOURCE` varchar(45) DEFAULT NULL,
917 `VNF_ID` varchar(45) DEFAULT NULL,
918 `VNF_NAME` varchar(80) DEFAULT NULL,
919 `VNF_TYPE` varchar(200) DEFAULT NULL,
920 `SERVICE_TYPE` varchar(45) DEFAULT NULL,
921 `AIC_NODE_CLLI` varchar(11) DEFAULT NULL,
922 `TENANT_ID` varchar(45) DEFAULT NULL,
923 `PROV_STATUS` varchar(20) DEFAULT NULL,
924 `VNF_PARAMS` longtext,
925 `VNF_OUTPUTS` longtext,
926 `REQUEST_BODY` longtext,
927 `RESPONSE_BODY` longtext,
928 `LAST_MODIFIED_BY` varchar(100) DEFAULT NULL,
929 `MODIFY_TIME` datetime DEFAULT NULL,
930 `REQUEST_TYPE` varchar(20) DEFAULT NULL,
931 `VOLUME_GROUP_ID` varchar(45) DEFAULT NULL,
932 `VOLUME_GROUP_NAME` varchar(45) DEFAULT NULL,
933 `VF_MODULE_ID` varchar(45) DEFAULT NULL,
934 `VF_MODULE_NAME` varchar(200) DEFAULT NULL,
935 `VF_MODULE_MODEL_NAME` varchar(200) DEFAULT NULL,
936 `AAI_SERVICE_ID` varchar(50) DEFAULT NULL,
937 `AIC_CLOUD_REGION` varchar(11) DEFAULT NULL,
938 `CALLBACK_URL` varchar(200) DEFAULT NULL,
939 `CORRELATOR` varchar(80) DEFAULT NULL,
940 `NETWORK_ID` varchar(45) DEFAULT NULL,
941 `NETWORK_NAME` varchar(80) DEFAULT NULL,
942 `NETWORK_TYPE` varchar(80) DEFAULT NULL,
943 `REQUEST_SCOPE` varchar(20) NOT NULL DEFAULT 'unknown',
944 `REQUEST_ACTION` varchar(45) NOT NULL DEFAULT 'unknown',
945 `SERVICE_INSTANCE_ID` varchar(45) DEFAULT NULL,
946 `SERVICE_INSTANCE_NAME` varchar(80) DEFAULT NULL,
947 `REQUESTOR_ID` varchar(50) DEFAULT NULL,
948 `CONFIGURATION_ID` varchar(45) DEFAULT NULL,
949 `CONFIGURATION_NAME` varchar(200) DEFAULT NULL,
950 `OPERATIONAL_ENV_ID` varchar(45) DEFAULT NULL,
951 `OPERATIONAL_ENV_NAME` varchar(200) DEFAULT NULL,
Benjamin, Max (mb388a)61affc62018-11-05 11:00:36 -0500952 `REQUEST_URL` varchar(500) DEFAULT NULL,
Benjamin, Max (mb388a)5a6a6de2018-07-30 15:56:09 -0400953 PRIMARY KEY (`REQUEST_ID`),
954 UNIQUE KEY `UK_bhu6w8p7wvur4pin0gjw2d5ak` (`CLIENT_REQUEST_ID`)
955) ENGINE=InnoDB DEFAULT CHARSET=latin1;
956
957CREATE TABLE `archived_infra_requests` (
958 `REQUEST_ID` varchar(45) NOT NULL,
959 `CLIENT_REQUEST_ID` varchar(45) DEFAULT NULL,
960 `ACTION` varchar(45) DEFAULT NULL,
961 `REQUEST_STATUS` varchar(20) DEFAULT NULL,
962 `STATUS_MESSAGE` longtext DEFAULT NULL,
963 `PROGRESS` bigint(20) DEFAULT NULL,
964 `START_TIME` datetime DEFAULT NULL,
965 `END_TIME` datetime DEFAULT NULL,
966 `SOURCE` varchar(45) DEFAULT NULL,
967 `VNF_ID` varchar(45) DEFAULT NULL,
968 `VNF_NAME` varchar(80) DEFAULT NULL,
969 `VNF_TYPE` varchar(200) DEFAULT NULL,
970 `SERVICE_TYPE` varchar(45) DEFAULT NULL,
971 `AIC_NODE_CLLI` varchar(11) DEFAULT NULL,
972 `TENANT_ID` varchar(45) DEFAULT NULL,
973 `PROV_STATUS` varchar(20) DEFAULT NULL,
974 `VNF_PARAMS` longtext,
975 `VNF_OUTPUTS` longtext,
976 `REQUEST_BODY` longtext,
977 `RESPONSE_BODY` longtext,
978 `LAST_MODIFIED_BY` varchar(100) DEFAULT NULL,
979 `MODIFY_TIME` datetime DEFAULT NULL,
980 `REQUEST_TYPE` varchar(20) DEFAULT NULL,
981 `VOLUME_GROUP_ID` varchar(45) DEFAULT NULL,
982 `VOLUME_GROUP_NAME` varchar(45) DEFAULT NULL,
983 `VF_MODULE_ID` varchar(45) DEFAULT NULL,
984 `VF_MODULE_NAME` varchar(200) DEFAULT NULL,
985 `VF_MODULE_MODEL_NAME` varchar(200) DEFAULT NULL,
986 `AAI_SERVICE_ID` varchar(50) DEFAULT NULL,
987 `AIC_CLOUD_REGION` varchar(11) DEFAULT NULL,
988 `CALLBACK_URL` varchar(200) DEFAULT NULL,
989 `CORRELATOR` varchar(80) DEFAULT NULL,
990 `NETWORK_ID` varchar(45) DEFAULT NULL,
991 `NETWORK_NAME` varchar(80) DEFAULT NULL,
992 `NETWORK_TYPE` varchar(80) DEFAULT NULL,
993 `REQUEST_SCOPE` varchar(20) NOT NULL DEFAULT 'unknown',
994 `REQUEST_ACTION` varchar(45) NOT NULL DEFAULT 'unknown',
995 `SERVICE_INSTANCE_ID` varchar(45) DEFAULT NULL,
996 `SERVICE_INSTANCE_NAME` varchar(80) DEFAULT NULL,
997 `REQUESTOR_ID` varchar(50) DEFAULT NULL,
998 `CONFIGURATION_ID` varchar(45) DEFAULT NULL,
999 `CONFIGURATION_NAME` varchar(200) DEFAULT NULL,
1000 `OPERATIONAL_ENV_ID` varchar(45) DEFAULT NULL,
1001 `OPERATIONAL_ENV_NAME` varchar(200) DEFAULT NULL,
Benjamin, Max (mb388a)61affc62018-11-05 11:00:36 -05001002 `REQUEST_URL` varchar(500) DEFAULT NULL,
Benjamin, Max (mb388a)5a6a6de2018-07-30 15:56:09 -04001003 PRIMARY KEY (`REQUEST_ID`),
1004 UNIQUE KEY `UK_bhu6w8p7wvur4pin0gjw2d72h` (`CLIENT_REQUEST_ID`)
1005) ENGINE=InnoDB DEFAULT CHARSET=latin1;
1006
1007CREATE TABLE `site_status` (
1008 `SITE_NAME` varchar(255) NOT NULL,
1009 `STATUS` bit(1) DEFAULT NULL,
1010 `CREATION_TIMESTAMP` datetime DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
1011 PRIMARY KEY (`SITE_NAME`)
1012) ENGINE=InnoDB DEFAULT CHARSET=latin1;
1013
1014CREATE TABLE `watchdog_distributionid_status` (
1015 `DISTRIBUTION_ID` varchar(45) NOT NULL,
1016 `DISTRIBUTION_ID_STATUS` varchar(45) DEFAULT NULL,
Benjamin, Max (mb388a)20e1b652019-02-24 10:42:15 -05001017 `LOCK_VERSION` int NOT NULL,
Benjamin, Max (mb388a)5a6a6de2018-07-30 15:56:09 -04001018 `CREATE_TIME` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
1019 `MODIFY_TIME` datetime DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP,
1020 PRIMARY KEY (`DISTRIBUTION_ID`)
1021) ENGINE=InnoDB DEFAULT CHARSET=latin1;
1022
1023CREATE TABLE `watchdog_per_component_distribution_status` (
1024 `DISTRIBUTION_ID` varchar(45) NOT NULL,
1025 `COMPONENT_NAME` varchar(45) NOT NULL,
1026 `COMPONENT_DISTRIBUTION_STATUS` varchar(45) DEFAULT NULL,
1027 `CREATE_TIME` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
1028 `MODIFY_TIME` datetime DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP,
1029 PRIMARY KEY (`DISTRIBUTION_ID`,`COMPONENT_NAME`),
1030 CONSTRAINT `fk_watchdog_component_distribution_status_watchdog_distributi1` FOREIGN KEY (`DISTRIBUTION_ID`) REFERENCES `watchdog_distributionid_status` (`DISTRIBUTION_ID`) ON DELETE CASCADE ON UPDATE CASCADE
1031) ENGINE=InnoDB DEFAULT CHARSET=latin1;
1032
1033CREATE TABLE `watchdog_service_mod_ver_id_lookup` (
1034 `DISTRIBUTION_ID` varchar(45) NOT NULL,
1035 `SERVICE_MODEL_VERSION_ID` varchar(45) NOT NULL,
Benjamin, Max (mb388a)9e795be2019-02-06 21:17:24 -05001036 `DISTRIBUTION_NOTIFICATION` LONGTEXT NULL,
1037 `CONSUMER_ID` varchar(200) NULL,
Benjamin, Max (mb388a)5a6a6de2018-07-30 15:56:09 -04001038 `CREATE_TIME` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
1039 `MODIFY_TIME` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
1040 PRIMARY KEY (`DISTRIBUTION_ID`,`SERVICE_MODEL_VERSION_ID`)
1041) ENGINE=InnoDB DEFAULT CHARSET=latin1;
1042
1043CREATE TABLE `activate_operational_env_service_model_distribution_status` (
1044 `OPERATIONAL_ENV_ID` varchar(45) NOT NULL,
1045 `SERVICE_MODEL_VERSION_ID` varchar(45) NOT NULL,
1046 `REQUEST_ID` varchar(45) NOT NULL,
1047 `SERVICE_MOD_VER_FINAL_DISTR_STATUS` varchar(45) DEFAULT NULL,
1048 `RECOVERY_ACTION` varchar(30) DEFAULT NULL,
1049 `RETRY_COUNT_LEFT` int(11) DEFAULT NULL,
1050 `WORKLOAD_CONTEXT` varchar(80) NOT NULL,
1051 `CREATE_TIME` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
1052 `MODIFY_TIME` datetime DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP,
Benjamin, Max (mb388a)1414f932019-03-14 21:06:49 -04001053 `VNF_OPERATIONAL_ENV_ID` varchar(45) NOT NULL,
Benjamin, Max (mb388a)5a6a6de2018-07-30 15:56:09 -04001054 PRIMARY KEY (`OPERATIONAL_ENV_ID`,`SERVICE_MODEL_VERSION_ID`,`REQUEST_ID`)
1055) ENGINE=InnoDB DEFAULT CHARSET=latin1;
1056
1057CREATE TABLE `activate_operational_env_per_distributionid_status` (
1058 `DISTRIBUTION_ID` varchar(45) NOT NULL,
1059 `DISTRIBUTION_ID_STATUS` varchar(45) DEFAULT NULL,
1060 `DISTRIBUTION_ID_ERROR_REASON` varchar(250) DEFAULT NULL,
1061 `CREATE_TIME` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
1062 `MODIFY_TIME` datetime DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP,
1063 `OPERATIONAL_ENV_ID` varchar(45) NOT NULL,
1064 `SERVICE_MODEL_VERSION_ID` varchar(45) NOT NULL,
1065 `REQUEST_ID` varchar(45) NOT NULL,
1066 PRIMARY KEY (`DISTRIBUTION_ID`),
1067 KEY `fk_activate_op_env_per_distributionid_status__aoesmds1_idx` (`OPERATIONAL_ENV_ID`,`SERVICE_MODEL_VERSION_ID`,`REQUEST_ID`),
1068 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
1069) ENGINE=InnoDB DEFAULT CHARSET=latin1;
1070
1071create table operation_status (
1072 SERVICE_ID varchar(255) not null,
1073 OPERATION_ID varchar(255) not null,
1074 SERVICE_NAME varchar(255),
1075 OPERATION_TYPE varchar(255),
1076 USER_ID varchar(255),
1077 RESULT varchar(255),
1078 OPERATION_CONTENT varchar(255),
1079 PROGRESS varchar(255),
1080 REASON varchar(255),
1081 OPERATE_AT datetime NOT NULL,
1082 FINISHED_AT datetime NOT NULL,
1083 primary key (SERVICE_ID,OPERATION_ID)
1084) ENGINE=InnoDB DEFAULT CHARSET=latin1;
1085
1086create table resource_operation_status (
1087 SERVICE_ID varchar(255) not null,
1088 OPERATION_ID varchar(255) not null,
1089 RESOURCE_TEMPLATE_UUID varchar(255) not null,
1090 OPER_TYPE varchar(255),
1091 RESOURCE_INSTANCE_ID varchar(255),
1092 JOB_ID varchar(255),
1093 STATUS varchar(255),
1094 PROGRESS varchar(255),
1095 ERROR_CODE varchar(255) ,
1096 STATUS_DESCRIPOTION varchar(255) ,
1097 primary key (SERVICE_ID,OPERATION_ID,RESOURCE_TEMPLATE_UUID)
1098) ENGINE=InnoDB DEFAULT CHARSET=latin1;
1099
1100create table if not exists model_recipe (
1101 `ID` INT(11) NOT NULL AUTO_INCREMENT,
1102 `MODEL_ID` INT(11),
1103 `ACTION` VARCHAR(40),
1104 `SCHEMA_VERSION` VARCHAR(40),
1105 `DESCRIPTION` VARCHAR(40),
1106 `ORCHESTRATION_URI` VARCHAR(20),
1107 `MODEL_PARAM_XSD` VARCHAR(20),
1108 `RECIPE_TIMEOUT` INT(11),
1109 `CREATION_TIMESTAMP` datetime not null default current_timestamp,
1110 PRIMARY KEY (`ID`),
1111 CONSTRAINT uk1_model_recipe UNIQUE (`MODEL_ID`, `ACTION`)
1112) ENGINE=InnoDB DEFAULT CHARSET=latin1;
1113
1114create table if not exists model (
1115 `ID` INT(11) NOT NULL AUTO_INCREMENT,
1116 `MODEL_CUSTOMIZATION_ID` VARCHAR(40),
1117 `MODEL_CUSTOMIZATION_NAME` VARCHAR(40),
1118 `MODEL_INVARIANT_ID` VARCHAR(40),
1119 `MODEL_NAME` VARCHAR(40),
1120 `MODEL_TYPE` VARCHAR(20),
1121 `MODEL_VERSION` VARCHAR(20),
1122 `MODEL_VERSION_ID` VARCHAR(40),
1123 `CREATION_TIMESTAMP` datetime not null default current_timestamp,
1124 `RECIPE` INT(11),
1125 PRIMARY KEY (`ID`),
1126 CONSTRAINT uk1_model UNIQUE (`MODEL_TYPE`, `MODEL_VERSION_ID`),
1127 FOREIGN KEY (`RECIPE`) REFERENCES `model_recipe` (`MODEL_ID`) ON DELETE CASCADE ON UPDATE CASCADE
1128) ENGINE=InnoDB DEFAULT CHARSET=latin1;
1129
1130ALTER TABLE `catalogdb`.`vnf_recipe`
Benjamin, Max (mb388a)69455a22018-09-04 11:21:02 -04001131CHANGE COLUMN `VNF_TYPE` `NF_ROLE` VARCHAR(200) NULL DEFAULT NULL ;