blob: 72810d6f3ccd4b33c6ab5fcaf9426d692605da7a [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
Benjamin, Max (mb388a)a85dc142019-01-11 21:14:32 -0500505 CREATE TABLE IF NOT EXISTS `service_proxy_customization` (
506 `MODEL_CUSTOMIZATION_UUID` VARCHAR(200) NOT NULL,
507 `MODEL_INSTANCE_NAME` VARCHAR(200) NOT NULL,
508 `MODEL_UUID` VARCHAR(200) NOT NULL,
509 `MODEL_INVARIANT_UUID` VARCHAR(200) NOT NULL,
510 `MODEL_VERSION` VARCHAR(20) NOT NULL,
511 `MODEL_NAME` VARCHAR(200) NOT NULL,
512 `TOSCA_NODE_TYPE` VARCHAR(200) NOT NULL,
513 `DESCRIPTION` VARCHAR(1200) NULL,
514 `SOURCE_SERVICE_MODEL_UUID` VARCHAR(200) NOT NULL,
515 `CREATION_TIMESTAMP` DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
516 PRIMARY KEY (`MODEL_CUSTOMIZATION_UUID`),
517 INDEX `fk_service_proxy_customization__service1_idx` (`SOURCE_SERVICE_MODEL_UUID` ASC),
518 UNIQUE INDEX `UK_service_proxy_customization` (`MODEL_CUSTOMIZATION_UUID` ASC),
519 INDEX `fk_service_proxy_customization__serv_prox_to_serv` (`MODEL_CUSTOMIZATION_UUID` ASC),
520 CONSTRAINT `fk_service_proxy_resource_customization__service1`
521 FOREIGN KEY (`SOURCE_SERVICE_MODEL_UUID`)
522 REFERENCES `service` (`MODEL_UUID`)
523 ON DELETE CASCADE
524 ON UPDATE CASCADE)
525ENGINE = InnoDB
526AUTO_INCREMENT = 20654
527DEFAULT CHARACTER SET = latin1;
Benjamin, Max (mb388a)5a6a6de2018-07-30 15:56:09 -0400528
Benjamin, Max (mb388a)5a6a6de2018-07-30 15:56:09 -0400529
530create table if not exists `configuration_customization` (
531`model_customization_uuid` varchar(200) not null,
532`model_instance_name` varchar(200) not null,
533`configuration_type` varchar(200) null,
534`configuration_role` varchar(200) null,
535`configuration_function` varchar(200) null,
536`creation_timestamp` datetime not null default current_timestamp,
537`configuration_model_uuid` varchar(200) not null,
538`service_proxy_customization_model_customization_uuid` varchar(200) null,
539`configuration_customization_model_customization_uuid` varchar(200) null,
540primary key (`model_customization_uuid`),
541index `fk_configuration_customization__configuration_idx` (`configuration_model_uuid` asc),
542index `fk_configuration_customization__service_proxy_customization_idx`
543(`service_proxy_customization_model_customization_uuid` asc),
544index `fk_configuration_customization__configuration_customization_idx`
545(`configuration_customization_model_customization_uuid` asc),
546constraint `fk_configuration_resource_customization__configuration_resour1`
547foreign key (`configuration_model_uuid`) references `configuration` (`model_uuid`)
548on delete cascade on update cascade,
549constraint `fk_configuration_customization__service_proxy_customization1` foreign
550key (`service_proxy_customization_model_customization_uuid`) references
551`service_proxy_customization` (`model_customization_uuid`)
552on delete cascade on update cascade, constraint
553`fk_configuration_customization__configuration_customization1` foreign
554key (`configuration_customization_model_customization_uuid`) references
555`configuration_customization` (`model_customization_uuid`)
556on delete cascade on update cascade)
557engine = innodb
558auto_increment =20654
559default character set = latin1;
560
561
562create table `service_proxy_customization_to_service` (
563 `service_model_uuid` varchar(200) not null,
564 `resource_model_customization_uuid` varchar(200) not null,
565 primary key (`service_model_uuid`,`resource_model_customization_uuid`)
566)engine=innodb default charset=latin1;
567
568
569create table `configuration_customization_to_service` (
570 `service_model_uuid` varchar(200) not null,
571 `resource_model_customization_uuid` varchar(200) not null,
572 primary key (`service_model_uuid`,`resource_model_customization_uuid`)
573)engine=innodb default charset=latin1;
574
575
576create table if not exists `collection_resource_customization_to_service` (
577 `service_model_uuid` varchar(200) not null,
578 `resource_model_customization_uuid` varchar(200) not null,
579 primary key (`service_model_uuid`,`resource_model_customization_uuid`)
580)engine=innodb default charset=latin1;
581
582
583create table `network_resource_customization_to_service` (
584 `service_model_uuid` varchar(200) not null,
585 `resource_model_customization_uuid` varchar(200) not null,
586 primary key (`service_model_uuid`,`resource_model_customization_uuid`)
587)engine=innodb default charset=latin1;
588
589create table `vnf_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 `allotted_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
601
602alter table collection_resource_customization
603add foreign key ( cr_model_uuid)
604references collection_resource(model_uuid)
605on delete cascade;
606
607alter table vnf_resource_customization
608add column
609instance_group_model_uuid varchar(200);
610
611alter table network_resource_customization
612add column
613instance_group_model_uuid varchar(200);
614
615
616alter table network_resource_customization
617add foreign key ( instance_group_model_uuid)
618references instance_group(model_uuid)
619on delete cascade;
620
621alter table collection_resource_customization_to_service
622add foreign key (service_model_uuid)
623references service(model_uuid)
624on delete cascade;
625
626alter table allotted_resource_customization_to_service
627add foreign key (service_model_uuid)
628references service(model_uuid)
629on delete cascade;
630
631
632alter table vnf_resource_customization_to_service
633add foreign key (service_model_uuid)
634references service(model_uuid)
635on delete cascade;
636
637
638alter table network_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 (resource_model_customization_uuid)
646references network_resource_customization(model_customization_uuid)
647on delete cascade;
648
649alter table vnf_resource_customization_to_service
650add foreign key (resource_model_customization_uuid)
651references vnf_resource_customization(model_customization_uuid)
652on delete cascade;
653
654alter table allotted_resource_customization_to_service
655add foreign key (resource_model_customization_uuid)
656references allotted_resource_customization(model_customization_uuid)
657on delete cascade;
658
659alter table collection_resource_customization_to_service
660add foreign key (resource_model_customization_uuid)
661references collection_resource_customization(model_customization_uuid)
662on delete cascade;
663
664create table ar_recipe (
665 ID INT(11) not null auto_increment,
666 MODEL_NAME VARCHAR(200) NOT NULL,
667 `ACTION` VARCHAR(200) NOT NULL,
668 VERSION_STR VARCHAR(200) NOT NULL,
669 SERVICE_TYPE VARCHAR(200),
670 DESCRIPTION VARCHAR(200),
671 ORCHESTRATION_URI VARCHAR(200) NOT NULL,
672 AR_PARAM_XSD VARCHAR(200),
673 RECIPE_TIMEOUT INT(10),
674 CREATION_TIMESTAMP DATETIME NOT NULL default current_timestamp,
675 primary key (ID),
676 unique key `uk_ar_recipe` (`model_name`,`action`,`version_str`)
677) ENGINE=InnoDB DEFAULT CHARSET=latin1;
678
679create table if not exists `collection_network_resource_customization` (
680`model_customization_uuid` varchar(200) not null,
681`model_instance_name` varchar(200) not null,
682`network_technology` varchar(45) null,
683`network_type` varchar(45) null,
684`network_role` varchar(200) null,
685`network_scope` varchar(45) null,
686`creation_timestamp` datetime not null default current_timestamp,
687`network_resource_model_uuid` varchar(200) not null, `instance_group_model_uuid` varchar(200) null,
688`crc_model_customization_uuid` varchar(200) not null, primary key
689(`model_customization_uuid`, `crc_model_customization_uuid`),
690index `fk_collection_net_resource_customization__network_resource1_idx`
691(`network_resource_model_uuid` asc), index
692`fk_collection_net_resource_customization__instance_group1_idx`
693(`instance_group_model_uuid` asc), index
694`fk_col_net_res_customization__collection_res_customization_idx`
695(`crc_model_customization_uuid` asc), constraint
696`fk_collection_net_resource_customization__network_resource10` foreign
697key (`network_resource_model_uuid`) references
698`network_resource` (`model_uuid`) on delete cascade on
699update cascade, constraint
700`fk_collection_net_resource_customization__instance_group10` foreign key
701(`instance_group_model_uuid`) references `instance_group`
702(`model_uuid`) on delete cascade on update cascade, constraint
703`fk_collection_network_resource_customization__collection_reso1` foreign
704key (`crc_model_customization_uuid`) references
705`collection_resource_customization`
706(`model_customization_uuid`) on delete cascade on update cascade) engine
707= innodb default character set = latin1;
708
709CREATE TABLE IF NOT EXISTS `northbound_request_ref_lookup` (
710`id` INT(11) NOT NULL AUTO_INCREMENT,
711`REQUEST_SCOPE` VARCHAR(200) NOT NULL,
712`ACTION` VARCHAR(200) NOT NULL,
713`MACRO_ACTION` VARCHAR(200) NOT NULL,
714`IS_ALACARTE` TINYINT(1) NOT NULL DEFAULT 0,
715`IS_TOPLEVELFLOW` TINYINT(1) NOT NULL DEFAULT 0,
716`MIN_API_VERSION` DOUBLE NOT NULL,
717`MAX_API_VERSION` DOUBLE NULL,
718PRIMARY KEY (`id`),
719UNIQUE INDEX `UK_northbound_request_ref_lookup` (`MIN_API_VERSION` ASC, `REQUEST_SCOPE` ASC, `ACTION` ASC, `IS_ALACARTE` ASC))
720ENGINE = InnoDB
721DEFAULT CHARACTER SET = latin1;
722
723CREATE TABLE IF NOT EXISTS `orchestration_flow_reference` (
724`id` INT(11) NOT NULL AUTO_INCREMENT,
725`COMPOSITE_ACTION` VARCHAR(200) NOT NULL,
726`SEQ_NO` INT(11) NOT NULL,
727`FLOW_NAME` VARCHAR(200) NOT NULL,
728`FLOW_VERSION` DOUBLE NOT NULL,
729`NB_REQ_REF_LOOKUP_ID` INT(11) NOT NULL,
730PRIMARY KEY (`id`),
731INDEX `fk_orchestration_flow_reference__northbound_req_ref_look_idx` (`NB_REQ_REF_LOOKUP_ID` ASC),
732UNIQUE INDEX `UK_orchestration_flow_reference` (`COMPOSITE_ACTION` ASC, `FLOW_NAME` ASC, `SEQ_NO` ASC, `NB_REQ_REF_LOOKUP_ID` ASC),
733CONSTRAINT `fk_orchestration_flow_reference__northbound_request_ref_look1`
734FOREIGN KEY (`NB_REQ_REF_LOOKUP_ID`) REFERENCES `northbound_request_ref_lookup` (`id`)
735ON DELETE CASCADE ON UPDATE CASCADE)
736ENGINE = InnoDB DEFAULT CHARACTER SET = latin1;
737
738CREATE TABLE IF NOT EXISTS `rainy_day_handler_macro` (
739`id` INT(11) NOT NULL AUTO_INCREMENT,
740`FLOW_NAME` VARCHAR(200) NOT NULL,
741`SERVICE_TYPE` VARCHAR(200) NOT NULL,
742`VNF_TYPE` VARCHAR(200) NOT NULL,
743`ERROR_CODE` VARCHAR(200) NOT NULL,
744`WORK_STEP` VARCHAR(200) NOT NULL,
745`POLICY` VARCHAR(200) NOT NULL,
746PRIMARY KEY (`id`))
747ENGINE = InnoDB
748DEFAULT CHARACTER SET = latin1;
749
750create table if not exists model_recipe (
751 `ID` INT(11) NOT NULL AUTO_INCREMENT,
752 `MODEL_ID` INT(11),
753 `ACTION` VARCHAR(40),
754 `SCHEMA_VERSION` VARCHAR(40),
755 `DESCRIPTION` VARCHAR(40),
756 `ORCHESTRATION_URI` VARCHAR(20),
757 `MODEL_PARAM_XSD` VARCHAR(20),
758 `RECIPE_TIMEOUT` INT(11),
759 `CREATION_TIMESTAMP` datetime not null default current_timestamp,
760 PRIMARY KEY (`ID`),
761 CONSTRAINT uk1_model_recipe UNIQUE (`MODEL_ID`, `ACTION`)
762) ENGINE=InnoDB DEFAULT CHARSET=latin1;
763
764create table if not exists model (
765 `ID` INT(11) NOT NULL AUTO_INCREMENT,
766 `MODEL_CUSTOMIZATION_ID` VARCHAR(40),
767 `MODEL_CUSTOMIZATION_NAME` VARCHAR(40),
768 `MODEL_INVARIANT_ID` VARCHAR(40),
769 `MODEL_NAME` VARCHAR(40),
770 `MODEL_TYPE` VARCHAR(20),
771 `MODEL_VERSION` VARCHAR(20),
772 `MODEL_VERSION_ID` VARCHAR(40),
773 `CREATION_TIMESTAMP` datetime not null default current_timestamp,
774 `RECIPE` INT(11),
775 PRIMARY KEY (`ID`),
776 CONSTRAINT uk1_model UNIQUE (`MODEL_TYPE`, `MODEL_VERSION_ID`),
777 FOREIGN KEY (`RECIPE`) REFERENCES `model_recipe` (`MODEL_ID`) ON DELETE CASCADE ON UPDATE CASCADE
Benjamin, Max (mb388a)a81aef22018-08-13 09:48:57 -0400778) ENGINE=InnoDB DEFAULT CHARSET=latin1;
779
780CREATE TABLE IF NOT EXISTS `identity_services` (
781 `ID` varchar(50) NOT NULL,
782 `IDENTITY_URL` varchar(200) DEFAULT NULL,
783 `MSO_ID` varchar(255) DEFAULT NULL,
784 `MSO_PASS` varchar(255) DEFAULT NULL,
Benjamin, Max (mb388a)37547ac2018-11-16 12:23:48 -0500785 `PROJECT_DOMAIN_NAME` varchar(255) DEFAULT NULL,
786 `USER_DOMAIN_NAME` varchar(255) DEFAULT NULL,
Benjamin, Max (mb388a)a81aef22018-08-13 09:48:57 -0400787 `ADMIN_TENANT` varchar(50) DEFAULT NULL,
788 `MEMBER_ROLE` varchar(50) DEFAULT NULL,
789 `TENANT_METADATA` tinyint(1) DEFAULT 0,
790 `IDENTITY_SERVER_TYPE` varchar(50) DEFAULT NULL,
791 `IDENTITY_AUTHENTICATION_TYPE` varchar(50) DEFAULT NULL,
792 `LAST_UPDATED_BY` varchar(120) DEFAULT NULL,
793 `CREATION_TIMESTAMP` timestamp NULL DEFAULT current_timestamp(),
794 `UPDATE_TIMESTAMP` timestamp NULL DEFAULT current_timestamp(),
795 PRIMARY KEY (`ID`)
796) ;
797
798
799
800CREATE TABLE IF NOT EXISTS `cloudify_managers` (
801 `ID` varchar(50) NOT NULL,
802 `CLOUDIFY_URL` varchar(200) DEFAULT NULL,
803 `USERNAME` varchar(255) DEFAULT NULL,
804 `PASSWORD` varchar(255) DEFAULT NULL,
805 `VERSION` varchar(20) DEFAULT NULL,
806 `LAST_UPDATED_BY` varchar(120) DEFAULT NULL,
807 `CREATION_TIMESTAMP` timestamp NULL DEFAULT current_timestamp(),
808 `UPDATE_TIMESTAMP` timestamp NULL DEFAULT current_timestamp(),
809 PRIMARY KEY (`ID`)
810) ;
811
812
813
814CREATE TABLE IF NOT EXISTS `cloud_sites` (
815 `ID` varchar(50) NOT NULL,
816 `REGION_ID` varchar(11) DEFAULT NULL,
817 `IDENTITY_SERVICE_ID` varchar(50) DEFAULT NULL,
818 `CLOUD_VERSION` varchar(20) DEFAULT NULL,
819 `CLLI` varchar(11) DEFAULT NULL,
820 `CLOUDIFY_ID` varchar(50) DEFAULT NULL,
821 `PLATFORM` varchar(50) DEFAULT NULL,
822 `ORCHESTRATOR` varchar(50) DEFAULT NULL,
823 `LAST_UPDATED_BY` varchar(120) DEFAULT NULL,
824 `CREATION_TIMESTAMP` timestamp NULL DEFAULT current_timestamp(),
825 `UPDATE_TIMESTAMP` timestamp NULL DEFAULT current_timestamp(),
826 PRIMARY KEY (`ID`),
827 KEY `FK_cloud_sites_identity_services` (`IDENTITY_SERVICE_ID`),
828 CONSTRAINT `FK_cloud_sites_identity_services` FOREIGN KEY (`IDENTITY_SERVICE_ID`) REFERENCES `identity_services` (`ID`)
829) ;