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