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