blob: ac08f8b6450927482cda5d456e2957f29ff79cdd [file] [log] [blame]
Benjamin, Max (mb388a)5a6a6de2018-07-30 15:56:09 -04001
2create table `allotted_resource` (
3 `model_uuid` varchar(200) not null,
4 `model_invariant_uuid` varchar(200) not null,
5 `model_version` varchar(20) not null,
6 `model_name` varchar(200) not null,
7 `tosca_node_type` varchar(200) default null,
8 `subcategory` varchar(200) default null,
9 `description` varchar(1200) default null,
10 `creation_timestamp` datetime not null default current_timestamp,
11 primary key (`model_uuid`)
12) engine=innodb default charset=latin1;
13
14
15
16
17create table `allotted_resource_customization` (
18 `model_customization_uuid` varchar(200) not null,
19 `model_instance_name` varchar(200) not null,
20 `providing_service_model_uuid` varchar(200) default null,
21 `providing_service_model_invariant_uuid` varchar(200) default null,
22 `providing_service_model_name` varchar(200) default null,
23 `target_network_role` varchar(200) default null,
24 `nf_type` varchar(200) default null,
25 `nf_role` varchar(200) default null,
26 `nf_function` varchar(200) default null,
27 `nf_naming_code` varchar(200) default null,
28 `min_instances` int(11) default null,
29 `max_instances` int(11) default null,
30 `ar_model_uuid` varchar(200) not null,
subhash kumar singhf6f326e2019-01-17 14:28:43 +053031 `resource_input` varchar(20000) default null,
Benjamin, Max (mb388a)5a6a6de2018-07-30 15:56:09 -040032 `creation_timestamp` datetime not null default current_timestamp,
33 primary key (`model_customization_uuid`),
34 key `fk_allotted_resource_customization__allotted_resource1_idx` (`ar_model_uuid`),
35 constraint `fk_allotted_resource_customization__allotted_resource1` foreign key (`ar_model_uuid`) references `allotted_resource` (`model_uuid`) on delete cascade on update cascade
36) engine=innodb default charset=latin1;
37
38
39
40
41create table `heat_environment` (
42 `artifact_uuid` varchar(200) not null,
43 `name` varchar(100) not null,
44 `version` varchar(20) not null,
45 `description` varchar(1200) default null,
46 `body` longtext not null,
47 `artifact_checksum` varchar(200) not null default 'manual record',
48 `creation_timestamp` datetime not null default current_timestamp,
49 primary key (`artifact_uuid`)
50) engine=innodb default charset=latin1;
51
52
53
54create table `heat_files` (
55 `artifact_uuid` varchar(200) not null,
56 `name` varchar(200) not null,
57 `version` varchar(20) not null,
58 `description` varchar(1200) default null,
59 `body` longtext not null,
60 `artifact_checksum` varchar(200) not null default 'manual record',
61 `creation_timestamp` datetime not null default current_timestamp,
62 primary key (`artifact_uuid`)
63) engine=innodb default charset=latin1;
64
65
66
67
68create table `heat_template` (
69 `artifact_uuid` varchar(200) not null,
70 `name` varchar(200) not null,
71 `version` varchar(20) not null,
72 `description` varchar(1200) default null,
73 `body` longtext not null,
74 `timeout_minutes` int(11) default null,
75 `artifact_checksum` varchar(200) not null default 'manual record',
76 `creation_timestamp` datetime not null default current_timestamp,
77 primary key (`artifact_uuid`)
78) engine=innodb default charset=latin1;
79
80
81
82create table `heat_nested_template` (
83 `parent_heat_template_uuid` varchar(200) not null,
84 `child_heat_template_uuid` varchar(200) not null,
85 `provider_resource_file` varchar(100) default null,
86 primary key (`parent_heat_template_uuid`,`child_heat_template_uuid`),
87 key `fk_heat_nested_template__heat_template2_idx` (`child_heat_template_uuid`),
88 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,
89 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
90) engine=innodb default charset=latin1;
91
92
93
94
95create table `heat_template_params` (
96 `heat_template_artifact_uuid` varchar(200) not null,
97 `param_name` varchar(100) not null,
98 `is_required` bit(1) not null,
99 `param_type` varchar(20) default null,
100 `param_alias` varchar(45) default null,
101 primary key (`heat_template_artifact_uuid`,`param_name`),
102 constraint `fk_heat_template_params__heat_template1` foreign key (`heat_template_artifact_uuid`) references `heat_template` (`artifact_uuid`) on delete cascade on update cascade
103) engine=innodb default charset=latin1;
104
105
106
107create table `network_recipe` (
108 `id` int(11) not null auto_increment,
109 `model_name` varchar(20) not null,
110 `action` varchar(50) not null,
111 `description` varchar(1200) default null,
112 `orchestration_uri` varchar(256) not null,
113 `network_param_xsd` varchar(2048) default null,
114 `recipe_timeout` int(11) default null,
115 `service_type` varchar(45) default null,
116 `creation_timestamp` datetime not null default current_timestamp,
117 `version_str` varchar(20) not null,
118 primary key (`id`),
119 unique key `uk_rl4f296i0p8lyokxveaiwkayi` (`model_name`,`action`,`version_str`)
120) engine=innodb auto_increment=178 default charset=latin1;
121
122
123
124
125create table `temp_network_heat_template_lookup` (
126 `network_resource_model_name` varchar(200) not null,
127 `heat_template_artifact_uuid` varchar(200) not null,
128 `aic_version_min` varchar(20) not null,
129 `aic_version_max` varchar(20) default null,
130 primary key (`network_resource_model_name`),
131 key `fk_temp_network_heat_template_lookup__heat_template1_idx` (`heat_template_artifact_uuid`),
132 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
133) engine=innodb default charset=latin1;
134
135
136
137create table `network_resource` (
138 `model_uuid` varchar(200) not null,
139 `model_name` varchar(200) not null,
140 `model_invariant_uuid` varchar(200) default null,
141 `description` varchar(1200) default null,
subhash kumar singhd5f5d0d2019-01-22 12:56:29 +0530142 `heat_template_artifact_uuid` varchar(200) null,
Benjamin, Max (mb388a)5a6a6de2018-07-30 15:56:09 -0400143 `neutron_network_type` varchar(20) default null,
144 `model_version` varchar(20) default null,
145 `tosca_node_type` varchar(200) default null,
subhash kumar singhd5f5d0d2019-01-22 12:56:29 +0530146 `aic_version_min` varchar(20) null,
Benjamin, Max (mb388a)5a6a6de2018-07-30 15:56:09 -0400147 `aic_version_max` varchar(20) default null,
148 `orchestration_mode` varchar(20) default 'heat',
149 `resource_category` varchar(20) default null,
150 `resource_sub_category` varchar(20) default null,
151 `creation_timestamp` datetime not null default current_timestamp,
152 primary key (`model_uuid`),
153 key `fk_network_resource__temp_network_heat_template_lookup1_idx` (`model_name`),
154 key `fk_network_resource__heat_template1_idx` (`heat_template_artifact_uuid`),
subhash kumar singhd5f5d0d2019-01-22 12:56:29 +0530155 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 -0400156) engine=innodb default charset=latin1;
157
158
159
160
161
162create table `network_resource_customization` (
163 `model_customization_uuid` varchar(200) not null,
164 `model_instance_name` varchar(200) not null,
165 `network_technology` varchar(45) default null,
166 `network_type` varchar(45) default null,
167 `network_role` varchar(200) default null,
168 `network_scope` varchar(45) default null,
169 `creation_timestamp` datetime not null default current_timestamp,
170 `network_resource_model_uuid` varchar(200) not null,
subhash kumar singhf6f326e2019-01-17 14:28:43 +0530171 `resource_input` varchar(20000) default null,
Benjamin, Max (mb388a)5a6a6de2018-07-30 15:56:09 -0400172 primary key (`model_customization_uuid`),
173 key `fk_network_resource_customization__network_resource1_idx` (`network_resource_model_uuid`),
174 constraint `fk_network_resource_customization__network_resource1` foreign key (`network_resource_model_uuid`) references `network_resource` (`model_uuid`) on delete cascade on update cascade
175) engine=innodb default charset=latin1;
176
177
178
179
180
181create table `tosca_csar` (
182 `artifact_uuid` varchar(200) not null,
183 `name` varchar(200) not null,
184 `version` varchar(20) not null,
185 `description` varchar(1200) default null,
186 `artifact_checksum` varchar(200) not null,
187 `url` varchar(200) not null,
188 `creation_timestamp` datetime not null default current_timestamp,
189 primary key (`artifact_uuid`)
190) engine=innodb default charset=latin1;
191
192
193
194
195create table `service` (
196 `model_uuid` varchar(200) not null,
197 `model_name` varchar(200) not null,
198 `model_invariant_uuid` varchar(200) not null,
199 `model_version` varchar(20) not null,
200 `description` varchar(1200) default null,
201 `creation_timestamp` datetime not null default current_timestamp,
202 `tosca_csar_artifact_uuid` varchar(200) default null,
203 `service_type` varchar(200) default null,
204 `service_role` varchar(200) default null,
205 `environment_context` varchar(200) default null,
206 `workload_context` varchar(200) default null,
subhash kumar singh6addc712018-12-14 20:02:29 +0530207 `resource_order` varchar(200) default null,
Benjamin, Max (mb388a)5a6a6de2018-07-30 15:56:09 -0400208 primary key (`model_uuid`),
209 key `fk_service__tosca_csar1_idx` (`tosca_csar_artifact_uuid`),
210 constraint `fk_service__tosca_csar1` foreign key (`tosca_csar_artifact_uuid`) references `tosca_csar` (`artifact_uuid`) on delete cascade on update cascade
211) engine=innodb default charset=latin1;
212
213
214
215create table `service_recipe` (
216 `id` int(11) not null auto_increment,
217 `action` varchar(50) not null,
218 `version_str` varchar(20) default null,
219 `description` varchar(1200) default null,
220 `orchestration_uri` varchar(256) not null,
221 `service_param_xsd` varchar(2048) default null,
222 `recipe_timeout` int(11) default null,
223 `service_timeout_interim` int(11) default null,
224 `creation_timestamp` datetime not null default current_timestamp,
225 `service_model_uuid` varchar(200) not null,
226 primary key (`id`),
227 unique key `uk_7fav5dkux2v8g9d2i5ymudlgc` (`service_model_uuid`,`action`),
228 key `fk_service_recipe__service1_idx` (`service_model_uuid`),
229 constraint `fk_service_recipe__service1` foreign key (`service_model_uuid`) references `service` (`model_uuid`) on delete cascade on update cascade
230) engine=innodb auto_increment=86 default charset=latin1;
231
232
233
234create table `vnf_resource` (
235 `orchestration_mode` varchar(20) not null default 'heat',
236 `description` varchar(1200) default null,
237 `creation_timestamp` datetime not null default current_timestamp,
238 `model_uuid` varchar(200) not null,
239 `aic_version_min` varchar(20) default null,
240 `aic_version_max` varchar(20) default null,
241 `model_invariant_uuid` varchar(200) default null,
242 `model_version` varchar(20) not null,
243 `model_name` varchar(200) default null,
244 `tosca_node_type` varchar(200) default null,
245 `resource_category` varchar(200) default null,
246 `resource_sub_category` varchar(200) default null,
247 `heat_template_artifact_uuid` varchar(200) default null,
248 primary key (`model_uuid`),
249 key `fk_vnf_resource__heat_template1` (`heat_template_artifact_uuid`),
250 constraint `fk_vnf_resource__heat_template1` foreign key (`heat_template_artifact_uuid`) references `heat_template` (`artifact_uuid`) on delete cascade on update cascade
251) engine=innodb default charset=latin1;
252
253
254
255
256create table `vf_module` (
257 `model_uuid` varchar(200) not null,
258 `model_invariant_uuid` varchar(200) default null,
259 `model_version` varchar(20) not null,
260 `model_name` varchar(200) not null,
261 `description` varchar(1200) default null,
262 `is_base` int(11) not null,
263 `heat_template_artifact_uuid` varchar(200) default null,
264 `vol_heat_template_artifact_uuid` varchar(200) default null,
265 `creation_timestamp` datetime not null default current_timestamp,
266 `vnf_resource_model_uuid` varchar(200) not null,
267 primary key (`model_uuid`,`vnf_resource_model_uuid`),
268 key `fk_vf_module__vnf_resource1_idx` (`vnf_resource_model_uuid`),
269 key `fk_vf_module__heat_template_art_uuid__heat_template1_idx` (`heat_template_artifact_uuid`),
270 key `fk_vf_module__vol_heat_template_art_uuid__heat_template2_idx` (`vol_heat_template_artifact_uuid`),
271 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,
272 constraint `fk_vf_module__vnf_resource1` foreign key (`vnf_resource_model_uuid`) references `vnf_resource` (`model_uuid`) on delete cascade on update cascade,
273 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
274) engine=innodb default charset=latin1;
275
276
277
278/*!40101 set @saved_cs_client = @@character_set_client */;
279/*!40101 set character_set_client = utf8 */;
280create table `vf_module_customization` (
281 `model_customization_uuid` varchar(200) not null,
282 `label` varchar(200) default null,
283 `initial_count` int(11) default '0',
284 `min_instances` int(11) default '0',
285 `max_instances` int(11) default null,
286 `availability_zone_count` int(11) default null,
287 `heat_environment_artifact_uuid` varchar(200) default null,
288 `vol_environment_artifact_uuid` varchar(200) default null,
289 `creation_timestamp` datetime not null default current_timestamp,
290 `vf_module_model_uuid` varchar(200) not null,
291 primary key (`model_customization_uuid`),
292 key `fk_vf_module_customization__vf_module1_idx` (`vf_module_model_uuid`),
293 key `fk_vf_module_customization__heat_env__heat_environment1_idx` (`heat_environment_artifact_uuid`),
294 key `fk_vf_module_customization__vol_env__heat_environment2_idx` (`vol_environment_artifact_uuid`),
295 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,
296 constraint `fk_vf_module_customization__vf_module1` foreign key (`vf_module_model_uuid`) references `vf_module` (`model_uuid`) on delete cascade on update cascade,
297 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
298) engine=innodb default charset=latin1;
299/*!40101 set character_set_client = @saved_cs_client */;
300
301
302
303
304
305create table `vf_module_to_heat_files` (
306 `vf_module_model_uuid` varchar(200) not null,
307 `heat_files_artifact_uuid` varchar(200) not null,
308 primary key (`vf_module_model_uuid`,`heat_files_artifact_uuid`),
309 key `fk_vf_module_to_heat_files__heat_files__artifact_uuid1_idx` (`heat_files_artifact_uuid`),
310 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,
311 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
312) engine=innodb default charset=latin1 comment='il fait ce qu''il dit';
313
314
315
316
317create table `vnf_components` (
318 `vnf_id` int(11) not null,
319 `component_type` varchar(20) not null,
320 `heat_template_id` int(11) default null,
321 `heat_environment_id` int(11) default null,
322 `creation_timestamp` datetime not null default current_timestamp,
323 primary key (`vnf_id`,`component_type`)
324) engine=innodb default charset=latin1;
325
326
327
328
329create table `vnf_components_recipe` (
330 `id` int(11) not null auto_increment,
331 `vnf_type` varchar(200) default null,
332 `vnf_component_type` varchar(45) not null,
333 `action` varchar(50) not null,
334 `service_type` varchar(45) default null,
335 `version` varchar(20) not null,
336 `description` varchar(1200) default null,
337 `orchestration_uri` varchar(256) not null,
338 `vnf_component_param_xsd` varchar(2048) default null,
339 `recipe_timeout` int(11) default null,
340 `creation_timestamp` datetime default current_timestamp,
341 `vf_module_model_uuid` varchar(200) default null,
342 primary key (`id`),
343 unique key `uk_4dpdwddaaclhc11wxsb7h59ma` (`vf_module_model_uuid`,`vnf_component_type`,`action`,`version`)
344) engine=innodb auto_increment=26 default charset=latin1;
345
346
347
348
349create table `vnf_recipe` (
350 `id` int(11) not null auto_increment,
351 `vnf_type` varchar(200) default null,
352 `action` varchar(50) not null,
353 `service_type` varchar(45) default null,
354 `version_str` varchar(20) not null,
355 `description` varchar(1200) default null,
356 `orchestration_uri` varchar(256) not null,
357 `vnf_param_xsd` varchar(2048) default null,
358 `recipe_timeout` int(11) default null,
359 `creation_timestamp` datetime default current_timestamp,
360 `vf_module_id` varchar(100) default null,
361 primary key (`id`),
362 unique key `uk_f3tvqau498vrifq3cr8qnigkr` (`vf_module_id`,`action`,`version_str`)
363) engine=innodb auto_increment=10006 default charset=latin1;
364
365
366ALTER TABLE `catalogdb`.`vnf_recipe`
367CHANGE COLUMN `VNF_TYPE` `NF_ROLE` VARCHAR(200) NULL DEFAULT NULL ;
368
369
370
371
372
373create table `vnf_resource_customization` (
374 `model_customization_uuid` varchar(200) not null,
375 `model_instance_name` varchar(200) not null,
376 `min_instances` int(11) default null,
377 `max_instances` int(11) default null,
378 `availability_zone_max_count` int(11) default null,
379 `nf_type` varchar(200) default null,
380 `nf_role` varchar(200) default null,
381 `nf_function` varchar(200) default null,
382 `nf_naming_code` varchar(200) default null,
383 `creation_timestamp` datetime not null default current_timestamp,
384 `vnf_resource_model_uuid` varchar(200) not null,
385 `multi_stage_design` varchar(20) default null,
subhash kumar singhf6f326e2019-01-17 14:28:43 +0530386 `resource_input` varchar(20000) default null,
eeginux53bb2f22019-03-09 00:57:00 +0000387 `cds_blueprint_name` varchar(200),
388 `cds_blueprint_version` varchar(200),
Benjamin, Max (mb388a)5a6a6de2018-07-30 15:56:09 -0400389 primary key (`model_customization_uuid`),
390 key `fk_vnf_resource_customization__vnf_resource1_idx` (`vnf_resource_model_uuid`),
391 constraint `fk_vnf_resource_customization__vnf_resource1` foreign key (`vnf_resource_model_uuid`) references `vnf_resource` (`model_uuid`) on delete cascade on update cascade
392) engine=innodb default charset=latin1;
393
394
395
396
397create table `vnf_res_custom_to_vf_module_custom` (
398 `vnf_resource_cust_model_customization_uuid` varchar(200) not null,
399 `vf_module_cust_model_customization_uuid` varchar(200) not null,
400 `creation_timestamp` datetime not null default current_timestamp,
401 primary key (`vnf_resource_cust_model_customization_uuid`,`vf_module_cust_model_customization_uuid`),
402 key `fk_vnf_res_custom_to_vf_module_custom__vf_module_customizat_idx` (`vf_module_cust_model_customization_uuid`),
403 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,
404 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
405) engine=innodb default charset=latin1;
406
407
408create table if not exists external_service_to_internal_model_mapping (
409id int(11) not null,
410service_name varchar(200) not null,
411product_flavor varchar(200) null,
412subscription_service_type varchar(200) not null,
413service_model_uuid varchar(200) not null,
414primary key (id),
415unique index uk_external_service_to_internal_model_mapping
416(service_name asc, product_flavor asc, service_model_uuid asc));
417
418create table if not exists `collection_resource` (
419 model_uuid varchar(200) not null,
420 model_name varchar(200) not null,
421 model_invariant_uuid varchar(200) not null,
422 model_version varchar(20) not null,
423 tosca_node_type varchar(200) not null,
424 description varchar(200),
425 creation_timestamp datetime not null default current_timestamp,
426 primary key (`model_uuid`)
427)engine=innodb default charset=latin1;
428
429create table if not exists `collection_resource_customization` (
430 model_customization_uuid varchar(200) not null,
431 model_instance_name varchar(200) not null,
432 role varchar(200) NULL,
433 object_type varchar(200) not null,
434 function varchar(200) NULL,
435 collection_resource_type varchar(200) NULL,
436 creation_timestamp datetime not null default current_timestamp,
437 cr_model_uuid varchar(200) not null,
438 primary key (`model_customization_uuid`)
439)engine=innodb default charset=latin1;
440
441create table if not exists `instance_group` (
442 model_uuid varchar(200) not null,
443 model_name varchar(200) not null,
444 model_invariant_uuid varchar(200) not null,
445 model_version varchar(20) not null,
446 tosca_node_type varchar(200) NULL,
447 role varchar(200) not null,
448 object_type varchar(200) not null,
449 creation_timestamp datetime not null default current_timestamp,
450 cr_model_uuid varchar(200) not null,
451 instance_group_type varchar(200) not null,
452 primary key (`model_uuid`)
453)engine=innodb default charset=latin1;
454
455create table if not exists `collection_resource_instance_group_customization` (
456 `collection_resource_customization_model_uuid` varchar(200) not null,
457 `instance_group_model_uuid` varchar(200) not null,
458 `function` varchar(200) null,
459 `description` varchar(1200) null,
460 `subinterface_network_quantity` int(11) null,
461 `creation_timestamp` datetime not null default current_timestamp,
462 primary key (`collection_resource_customization_model_uuid`, `instance_group_model_uuid`),
463 index `fk_collection_resource_instance_group_customization__instan_idx` (`instance_group_model_uuid` asc),
464 constraint `fk_collection_resource_instance_group_customization__collecti1`
465 foreign key (`collection_resource_customization_model_uuid`)
466 references `collection_resource_customization` (`model_customization_uuid`)
467 on delete cascade
468 on update cascade,
469 constraint `fk_collection_resource_instance_group_customization__instance1`
470 foreign key (`instance_group_model_uuid`)
471 references `instance_group` (`model_uuid`)
472 on delete cascade
473 on update cascade)
474engine = innodb
475default character set = latin1;
476
477create table if not exists `vnfc_instance_group_customization` (
478 `vnf_resource_customization_model_uuid` varchar(200) not null,
479 `instance_group_model_uuid` varchar(200) not null,
480 `function` varchar(200) null,
481 `description` varchar(1200) null,
482 `creation_timestamp` datetime not null default current_timestamp,
483 primary key (`vnf_resource_customization_model_uuid`, `instance_group_model_uuid`),
484 index `fk_vnfc_instance_group_customization__instance_group1_idx` (`instance_group_model_uuid` asc),
485 constraint `fk_vnfc_instance_group_customization__vnf_resource_customizat1`
486 foreign key (`vnf_resource_customization_model_uuid`)
487 references `vnf_resource_customization` (`model_customization_uuid`)
488 on delete cascade
489 on update cascade,
490 constraint `fk_vnfc_instance_group_customization__instance_group1`
491 foreign key (`instance_group_model_uuid`)
492 references `instance_group` (`model_uuid`)
493 on delete cascade
494 on update cascade)
495engine = innodb
496default character set = latin1;
497
498 create table if not exists `configuration`
499 ( `model_uuid` varchar(200) not null,
500 `model_invariant_uuid` varchar(200) not null,
501 `model_version` varchar(20) not null,
502 `model_name` varchar(200) not null,
503 `tosca_node_type` varchar(200) not null,
504 `description` varchar(1200) null,
505 `creation_timestamp` datetime not null default current_timestamp,
506 primary key (`model_uuid`))
507 engine = innodb auto_increment = 20654
508 default character set = latin1;
509
Benjamin, Max (mb388a)a85dc142019-01-11 21:14:32 -0500510 CREATE TABLE IF NOT EXISTS `service_proxy_customization` (
511 `MODEL_CUSTOMIZATION_UUID` VARCHAR(200) NOT NULL,
512 `MODEL_INSTANCE_NAME` VARCHAR(200) NOT NULL,
513 `MODEL_UUID` VARCHAR(200) NOT NULL,
514 `MODEL_INVARIANT_UUID` VARCHAR(200) NOT NULL,
515 `MODEL_VERSION` VARCHAR(20) NOT NULL,
516 `MODEL_NAME` VARCHAR(200) NOT NULL,
517 `TOSCA_NODE_TYPE` VARCHAR(200) NOT NULL,
518 `DESCRIPTION` VARCHAR(1200) NULL,
519 `SOURCE_SERVICE_MODEL_UUID` VARCHAR(200) NOT NULL,
520 `CREATION_TIMESTAMP` DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
521 PRIMARY KEY (`MODEL_CUSTOMIZATION_UUID`),
522 INDEX `fk_service_proxy_customization__service1_idx` (`SOURCE_SERVICE_MODEL_UUID` ASC),
523 UNIQUE INDEX `UK_service_proxy_customization` (`MODEL_CUSTOMIZATION_UUID` ASC),
524 INDEX `fk_service_proxy_customization__serv_prox_to_serv` (`MODEL_CUSTOMIZATION_UUID` ASC),
525 CONSTRAINT `fk_service_proxy_resource_customization__service1`
526 FOREIGN KEY (`SOURCE_SERVICE_MODEL_UUID`)
527 REFERENCES `service` (`MODEL_UUID`)
528 ON DELETE CASCADE
529 ON UPDATE CASCADE)
530ENGINE = InnoDB
531AUTO_INCREMENT = 20654
532DEFAULT CHARACTER SET = latin1;
Benjamin, Max (mb388a)5a6a6de2018-07-30 15:56:09 -0400533
Benjamin, Max (mb388a)5a6a6de2018-07-30 15:56:09 -0400534
535create table if not exists `configuration_customization` (
536`model_customization_uuid` varchar(200) not null,
537`model_instance_name` varchar(200) not null,
538`configuration_type` varchar(200) null,
539`configuration_role` varchar(200) null,
540`configuration_function` varchar(200) null,
541`creation_timestamp` datetime not null default current_timestamp,
542`configuration_model_uuid` varchar(200) not null,
543`service_proxy_customization_model_customization_uuid` varchar(200) null,
544`configuration_customization_model_customization_uuid` varchar(200) null,
545primary key (`model_customization_uuid`),
546index `fk_configuration_customization__configuration_idx` (`configuration_model_uuid` asc),
547index `fk_configuration_customization__service_proxy_customization_idx`
548(`service_proxy_customization_model_customization_uuid` asc),
549index `fk_configuration_customization__configuration_customization_idx`
550(`configuration_customization_model_customization_uuid` asc),
551constraint `fk_configuration_resource_customization__configuration_resour1`
552foreign key (`configuration_model_uuid`) references `configuration` (`model_uuid`)
553on delete cascade on update cascade,
554constraint `fk_configuration_customization__service_proxy_customization1` foreign
555key (`service_proxy_customization_model_customization_uuid`) references
556`service_proxy_customization` (`model_customization_uuid`)
557on delete cascade on update cascade, constraint
558`fk_configuration_customization__configuration_customization1` foreign
559key (`configuration_customization_model_customization_uuid`) references
560`configuration_customization` (`model_customization_uuid`)
561on delete cascade on update cascade)
562engine = innodb
563auto_increment =20654
564default character set = latin1;
565
566
567create table `service_proxy_customization_to_service` (
568 `service_model_uuid` varchar(200) not null,
569 `resource_model_customization_uuid` varchar(200) not null,
570 primary key (`service_model_uuid`,`resource_model_customization_uuid`)
571)engine=innodb default charset=latin1;
572
573
574create table `configuration_customization_to_service` (
575 `service_model_uuid` varchar(200) not null,
576 `resource_model_customization_uuid` varchar(200) not null,
577 primary key (`service_model_uuid`,`resource_model_customization_uuid`)
578)engine=innodb default charset=latin1;
579
580
581create table if not exists `collection_resource_customization_to_service` (
582 `service_model_uuid` varchar(200) not null,
583 `resource_model_customization_uuid` varchar(200) not null,
584 primary key (`service_model_uuid`,`resource_model_customization_uuid`)
585)engine=innodb default charset=latin1;
586
587
588create table `network_resource_customization_to_service` (
589 `service_model_uuid` varchar(200) not null,
590 `resource_model_customization_uuid` varchar(200) not null,
591 primary key (`service_model_uuid`,`resource_model_customization_uuid`)
592)engine=innodb default charset=latin1;
593
594create table `vnf_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 `allotted_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
606
607alter table collection_resource_customization
608add foreign key ( cr_model_uuid)
609references collection_resource(model_uuid)
610on delete cascade;
611
612alter table vnf_resource_customization
613add column
614instance_group_model_uuid varchar(200);
615
616alter table network_resource_customization
617add column
618instance_group_model_uuid varchar(200);
619
620
621alter table network_resource_customization
622add foreign key ( instance_group_model_uuid)
623references instance_group(model_uuid)
624on delete cascade;
625
626alter table collection_resource_customization_to_service
627add foreign key (service_model_uuid)
628references service(model_uuid)
629on delete cascade;
630
631alter table allotted_resource_customization_to_service
632add foreign key (service_model_uuid)
633references service(model_uuid)
634on delete cascade;
635
636
637alter table vnf_resource_customization_to_service
638add foreign key (service_model_uuid)
639references service(model_uuid)
640on delete cascade;
641
642
643alter table network_resource_customization_to_service
644add foreign key (service_model_uuid)
645references service(model_uuid)
646on delete cascade;
647
648
649alter table network_resource_customization_to_service
650add foreign key (resource_model_customization_uuid)
651references network_resource_customization(model_customization_uuid)
652on delete cascade;
653
654alter table vnf_resource_customization_to_service
655add foreign key (resource_model_customization_uuid)
656references vnf_resource_customization(model_customization_uuid)
657on delete cascade;
658
659alter table allotted_resource_customization_to_service
660add foreign key (resource_model_customization_uuid)
661references allotted_resource_customization(model_customization_uuid)
662on delete cascade;
663
664alter table collection_resource_customization_to_service
665add foreign key (resource_model_customization_uuid)
666references collection_resource_customization(model_customization_uuid)
667on delete cascade;
668
669create table ar_recipe (
670 ID INT(11) not null auto_increment,
671 MODEL_NAME VARCHAR(200) NOT NULL,
672 `ACTION` VARCHAR(200) NOT NULL,
673 VERSION_STR VARCHAR(200) NOT NULL,
674 SERVICE_TYPE VARCHAR(200),
675 DESCRIPTION VARCHAR(200),
676 ORCHESTRATION_URI VARCHAR(200) NOT NULL,
677 AR_PARAM_XSD VARCHAR(200),
678 RECIPE_TIMEOUT INT(10),
679 CREATION_TIMESTAMP DATETIME NOT NULL default current_timestamp,
680 primary key (ID),
681 unique key `uk_ar_recipe` (`model_name`,`action`,`version_str`)
682) ENGINE=InnoDB DEFAULT CHARSET=latin1;
683
684create table if not exists `collection_network_resource_customization` (
685`model_customization_uuid` varchar(200) not null,
686`model_instance_name` varchar(200) not null,
687`network_technology` varchar(45) null,
688`network_type` varchar(45) null,
689`network_role` varchar(200) null,
690`network_scope` varchar(45) null,
691`creation_timestamp` datetime not null default current_timestamp,
692`network_resource_model_uuid` varchar(200) not null, `instance_group_model_uuid` varchar(200) null,
693`crc_model_customization_uuid` varchar(200) not null, primary key
694(`model_customization_uuid`, `crc_model_customization_uuid`),
695index `fk_collection_net_resource_customization__network_resource1_idx`
696(`network_resource_model_uuid` asc), index
697`fk_collection_net_resource_customization__instance_group1_idx`
698(`instance_group_model_uuid` asc), index
699`fk_col_net_res_customization__collection_res_customization_idx`
700(`crc_model_customization_uuid` asc), constraint
701`fk_collection_net_resource_customization__network_resource10` foreign
702key (`network_resource_model_uuid`) references
703`network_resource` (`model_uuid`) on delete cascade on
704update cascade, constraint
705`fk_collection_net_resource_customization__instance_group10` foreign key
706(`instance_group_model_uuid`) references `instance_group`
707(`model_uuid`) on delete cascade on update cascade, constraint
708`fk_collection_network_resource_customization__collection_reso1` foreign
709key (`crc_model_customization_uuid`) references
710`collection_resource_customization`
711(`model_customization_uuid`) on delete cascade on update cascade) engine
712= innodb default character set = latin1;
713
714CREATE TABLE IF NOT EXISTS `northbound_request_ref_lookup` (
715`id` INT(11) NOT NULL AUTO_INCREMENT,
716`REQUEST_SCOPE` VARCHAR(200) NOT NULL,
717`ACTION` VARCHAR(200) NOT NULL,
718`MACRO_ACTION` VARCHAR(200) NOT NULL,
719`IS_ALACARTE` TINYINT(1) NOT NULL DEFAULT 0,
720`IS_TOPLEVELFLOW` TINYINT(1) NOT NULL DEFAULT 0,
721`MIN_API_VERSION` DOUBLE NOT NULL,
722`MAX_API_VERSION` DOUBLE NULL,
723PRIMARY KEY (`id`),
724UNIQUE INDEX `UK_northbound_request_ref_lookup` (`MIN_API_VERSION` ASC, `REQUEST_SCOPE` ASC, `ACTION` ASC, `IS_ALACARTE` ASC))
725ENGINE = InnoDB
726DEFAULT CHARACTER SET = latin1;
727
728CREATE TABLE IF NOT EXISTS `orchestration_flow_reference` (
729`id` INT(11) NOT NULL AUTO_INCREMENT,
730`COMPOSITE_ACTION` VARCHAR(200) NOT NULL,
731`SEQ_NO` INT(11) NOT NULL,
732`FLOW_NAME` VARCHAR(200) NOT NULL,
733`FLOW_VERSION` DOUBLE NOT NULL,
734`NB_REQ_REF_LOOKUP_ID` INT(11) NOT NULL,
735PRIMARY KEY (`id`),
736INDEX `fk_orchestration_flow_reference__northbound_req_ref_look_idx` (`NB_REQ_REF_LOOKUP_ID` ASC),
737UNIQUE INDEX `UK_orchestration_flow_reference` (`COMPOSITE_ACTION` ASC, `FLOW_NAME` ASC, `SEQ_NO` ASC, `NB_REQ_REF_LOOKUP_ID` ASC),
738CONSTRAINT `fk_orchestration_flow_reference__northbound_request_ref_look1`
739FOREIGN KEY (`NB_REQ_REF_LOOKUP_ID`) REFERENCES `northbound_request_ref_lookup` (`id`)
740ON DELETE CASCADE ON UPDATE CASCADE)
741ENGINE = InnoDB DEFAULT CHARACTER SET = latin1;
742
743CREATE TABLE IF NOT EXISTS `rainy_day_handler_macro` (
744`id` INT(11) NOT NULL AUTO_INCREMENT,
745`FLOW_NAME` VARCHAR(200) NOT NULL,
746`SERVICE_TYPE` VARCHAR(200) NOT NULL,
747`VNF_TYPE` VARCHAR(200) NOT NULL,
748`ERROR_CODE` VARCHAR(200) NOT NULL,
749`WORK_STEP` VARCHAR(200) NOT NULL,
750`POLICY` VARCHAR(200) NOT NULL,
751PRIMARY KEY (`id`))
752ENGINE = InnoDB
753DEFAULT CHARACTER SET = latin1;
754
755create table if not exists model_recipe (
756 `ID` INT(11) NOT NULL AUTO_INCREMENT,
757 `MODEL_ID` INT(11),
758 `ACTION` VARCHAR(40),
759 `SCHEMA_VERSION` VARCHAR(40),
760 `DESCRIPTION` VARCHAR(40),
761 `ORCHESTRATION_URI` VARCHAR(20),
762 `MODEL_PARAM_XSD` VARCHAR(20),
763 `RECIPE_TIMEOUT` INT(11),
764 `CREATION_TIMESTAMP` datetime not null default current_timestamp,
765 PRIMARY KEY (`ID`),
766 CONSTRAINT uk1_model_recipe UNIQUE (`MODEL_ID`, `ACTION`)
767) ENGINE=InnoDB DEFAULT CHARSET=latin1;
768
769create table if not exists model (
770 `ID` INT(11) NOT NULL AUTO_INCREMENT,
771 `MODEL_CUSTOMIZATION_ID` VARCHAR(40),
772 `MODEL_CUSTOMIZATION_NAME` VARCHAR(40),
773 `MODEL_INVARIANT_ID` VARCHAR(40),
774 `MODEL_NAME` VARCHAR(40),
775 `MODEL_TYPE` VARCHAR(20),
776 `MODEL_VERSION` VARCHAR(20),
777 `MODEL_VERSION_ID` VARCHAR(40),
778 `CREATION_TIMESTAMP` datetime not null default current_timestamp,
779 `RECIPE` INT(11),
780 PRIMARY KEY (`ID`),
781 CONSTRAINT uk1_model UNIQUE (`MODEL_TYPE`, `MODEL_VERSION_ID`),
782 FOREIGN KEY (`RECIPE`) REFERENCES `model_recipe` (`MODEL_ID`) ON DELETE CASCADE ON UPDATE CASCADE
Benjamin, Max (mb388a)a81aef22018-08-13 09:48:57 -0400783) ENGINE=InnoDB DEFAULT CHARSET=latin1;
784
785CREATE TABLE IF NOT EXISTS `identity_services` (
786 `ID` varchar(50) NOT NULL,
787 `IDENTITY_URL` varchar(200) DEFAULT NULL,
788 `MSO_ID` varchar(255) DEFAULT NULL,
789 `MSO_PASS` varchar(255) DEFAULT NULL,
Benjamin, Max (mb388a)37547ac2018-11-16 12:23:48 -0500790 `PROJECT_DOMAIN_NAME` varchar(255) DEFAULT NULL,
791 `USER_DOMAIN_NAME` varchar(255) DEFAULT NULL,
Benjamin, Max (mb388a)a81aef22018-08-13 09:48:57 -0400792 `ADMIN_TENANT` varchar(50) DEFAULT NULL,
793 `MEMBER_ROLE` varchar(50) DEFAULT NULL,
794 `TENANT_METADATA` tinyint(1) DEFAULT 0,
795 `IDENTITY_SERVER_TYPE` varchar(50) DEFAULT NULL,
796 `IDENTITY_AUTHENTICATION_TYPE` varchar(50) DEFAULT NULL,
797 `LAST_UPDATED_BY` varchar(120) DEFAULT NULL,
798 `CREATION_TIMESTAMP` timestamp NULL DEFAULT current_timestamp(),
799 `UPDATE_TIMESTAMP` timestamp NULL DEFAULT current_timestamp(),
800 PRIMARY KEY (`ID`)
801) ;
802
803
804
805CREATE TABLE IF NOT EXISTS `cloudify_managers` (
806 `ID` varchar(50) NOT NULL,
807 `CLOUDIFY_URL` varchar(200) DEFAULT NULL,
808 `USERNAME` varchar(255) DEFAULT NULL,
809 `PASSWORD` varchar(255) DEFAULT NULL,
810 `VERSION` varchar(20) DEFAULT NULL,
811 `LAST_UPDATED_BY` varchar(120) DEFAULT NULL,
812 `CREATION_TIMESTAMP` timestamp NULL DEFAULT current_timestamp(),
813 `UPDATE_TIMESTAMP` timestamp NULL DEFAULT current_timestamp(),
814 PRIMARY KEY (`ID`)
815) ;
816
817
818
819CREATE TABLE IF NOT EXISTS `cloud_sites` (
820 `ID` varchar(50) NOT NULL,
821 `REGION_ID` varchar(11) DEFAULT NULL,
822 `IDENTITY_SERVICE_ID` varchar(50) DEFAULT NULL,
823 `CLOUD_VERSION` varchar(20) DEFAULT NULL,
824 `CLLI` varchar(11) DEFAULT NULL,
825 `CLOUDIFY_ID` varchar(50) DEFAULT NULL,
826 `PLATFORM` varchar(50) DEFAULT NULL,
827 `ORCHESTRATOR` varchar(50) DEFAULT NULL,
828 `LAST_UPDATED_BY` varchar(120) DEFAULT NULL,
829 `CREATION_TIMESTAMP` timestamp NULL DEFAULT current_timestamp(),
830 `UPDATE_TIMESTAMP` timestamp NULL DEFAULT current_timestamp(),
831 PRIMARY KEY (`ID`),
832 KEY `FK_cloud_sites_identity_services` (`IDENTITY_SERVICE_ID`),
833 CONSTRAINT `FK_cloud_sites_identity_services` FOREIGN KEY (`IDENTITY_SERVICE_ID`) REFERENCES `identity_services` (`ID`)
834) ;