blob: c700e78868db7bfb7f9665464d206903fec071b9 [file] [log] [blame]
Benjamin, Max (mb388a)86f04e12019-04-02 22:54:57 -04001set foreign_key_checks=0;
2DROP TABLE IF EXISTS `allotted_resource`;
3/*!40101 SET @saved_cs_client = @@character_set_client */;
4/*!40101 SET character_set_client = utf8 */;
5CREATE TABLE `allotted_resource` (
6 `MODEL_UUID` varchar(200) NOT NULL,
7 `MODEL_INVARIANT_UUID` varchar(200) NOT NULL,
8 `MODEL_VERSION` varchar(20) NOT NULL,
9 `MODEL_NAME` varchar(200) NOT NULL,
10 `TOSCA_NODE_TYPE` varchar(200) DEFAULT NULL,
11 `SUBCATEGORY` varchar(200) DEFAULT NULL,
12 `DESCRIPTION` varchar(1200) DEFAULT NULL,
13 `CREATION_TIMESTAMP` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
14 PRIMARY KEY (`MODEL_UUID`)
15) ENGINE=InnoDB DEFAULT CHARSET=latin1;
16/*!40101 SET character_set_client = @saved_cs_client */;
Benjamin, Max (mb388a)5a6a6de2018-07-30 15:56:09 -040017
Benjamin, Max (mb388a)86f04e12019-04-02 22:54:57 -040018--
19-- Table structure for table `allotted_resource_customization`
20--
Benjamin, Max (mb388a)5a6a6de2018-07-30 15:56:09 -040021
Benjamin, Max (mb388a)86f04e12019-04-02 22:54:57 -040022DROP TABLE IF EXISTS `allotted_resource_customization`;
23/*!40101 SET @saved_cs_client = @@character_set_client */;
24/*!40101 SET character_set_client = utf8 */;
25CREATE TABLE `allotted_resource_customization` (
26 `MODEL_CUSTOMIZATION_UUID` varchar(200) NOT NULL,
27 `MODEL_INSTANCE_NAME` varchar(200) NOT NULL,
28 `PROVIDING_SERVICE_MODEL_UUID` varchar(200) DEFAULT NULL,
29 `PROVIDING_SERVICE_MODEL_INVARIANT_UUID` varchar(200) DEFAULT NULL,
30 `PROVIDING_SERVICE_MODEL_NAME` varchar(200) DEFAULT NULL,
31 `TARGET_NETWORK_ROLE` varchar(200) DEFAULT NULL,
32 `NF_TYPE` varchar(200) DEFAULT NULL,
33 `NF_ROLE` varchar(200) DEFAULT NULL,
34 `NF_FUNCTION` varchar(200) DEFAULT NULL,
35 `NF_NAMING_CODE` varchar(200) DEFAULT NULL,
36 `MIN_INSTANCES` int(11) DEFAULT NULL,
37 `MAX_INSTANCES` int(11) DEFAULT NULL,
38 `RESOURCE_INPUT` varchar(20000) DEFAULT NULL,
39 `AR_MODEL_UUID` varchar(200) NOT NULL,
40 `CREATION_TIMESTAMP` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
Benjamin, Max (mb388a)a85dc142019-01-11 21:14:32 -050041 PRIMARY KEY (`MODEL_CUSTOMIZATION_UUID`),
Benjamin, Max (mb388a)86f04e12019-04-02 22:54:57 -040042 KEY `fk_allotted_resource_customization__allotted_resource1_idx` (`AR_MODEL_UUID`),
43 CONSTRAINT `fk_allotted_resource_customization__allotted_resource1` FOREIGN KEY (`AR_MODEL_UUID`) REFERENCES `allotted_resource` (`MODEL_UUID`) ON DELETE CASCADE ON UPDATE CASCADE
Benjamin, Max (mb388a)5a6a6de2018-07-30 15:56:09 -040044) ENGINE=InnoDB DEFAULT CHARSET=latin1;
Benjamin, Max (mb388a)86f04e12019-04-02 22:54:57 -040045/*!40101 SET character_set_client = @saved_cs_client */;
Benjamin, Max (mb388a)5a6a6de2018-07-30 15:56:09 -040046
Benjamin, Max (mb388a)86f04e12019-04-02 22:54:57 -040047--
48-- Table structure for table `allotted_resource_customization_to_service`
49--
Benjamin, Max (mb388a)5a6a6de2018-07-30 15:56:09 -040050
Benjamin, Max (mb388a)86f04e12019-04-02 22:54:57 -040051DROP TABLE IF EXISTS `allotted_resource_customization_to_service`;
52/*!40101 SET @saved_cs_client = @@character_set_client */;
53/*!40101 SET character_set_client = utf8 */;
54CREATE TABLE `allotted_resource_customization_to_service` (
55 `SERVICE_MODEL_UUID` varchar(200) NOT NULL,
56 `RESOURCE_MODEL_CUSTOMIZATION_UUID` varchar(200) NOT NULL,
57 PRIMARY KEY (`SERVICE_MODEL_UUID`,`RESOURCE_MODEL_CUSTOMIZATION_UUID`),
58 KEY `RESOURCE_MODEL_CUSTOMIZATION_UUID` (`RESOURCE_MODEL_CUSTOMIZATION_UUID`),
59 CONSTRAINT `allotted_resource_customization_to_service_ibfk_1` FOREIGN KEY (`SERVICE_MODEL_UUID`) REFERENCES `service` (`MODEL_UUID`) ON DELETE CASCADE,
60 CONSTRAINT `allotted_resource_customization_to_service_ibfk_2` FOREIGN KEY (`RESOURCE_MODEL_CUSTOMIZATION_UUID`) REFERENCES `allotted_resource_customization` (`MODEL_CUSTOMIZATION_UUID`) ON DELETE CASCADE
Benjamin, Max (mb388a)5a6a6de2018-07-30 15:56:09 -040061) ENGINE=InnoDB DEFAULT CHARSET=latin1;
Benjamin, Max (mb388a)86f04e12019-04-02 22:54:57 -040062/*!40101 SET character_set_client = @saved_cs_client */;
Benjamin, Max (mb388a)5a6a6de2018-07-30 15:56:09 -040063
Benjamin, Max (mb388a)86f04e12019-04-02 22:54:57 -040064--
65-- Table structure for table `ar_recipe`
66--
67
68DROP TABLE IF EXISTS `ar_recipe`;
69/*!40101 SET @saved_cs_client = @@character_set_client */;
70/*!40101 SET character_set_client = utf8 */;
71CREATE TABLE `ar_recipe` (
72 `ID` int(11) NOT NULL AUTO_INCREMENT,
73 `MODEL_NAME` varchar(200) NOT NULL,
74 `ACTION` varchar(200) NOT NULL,
75 `VERSION_STR` varchar(200) NOT NULL,
76 `SERVICE_TYPE` varchar(200) DEFAULT NULL,
77 `DESCRIPTION` varchar(200) DEFAULT NULL,
78 `ORCHESTRATION_URI` varchar(200) NOT NULL,
79 `AR_PARAM_XSD` varchar(200) DEFAULT NULL,
80 `RECIPE_TIMEOUT` int(11) DEFAULT NULL,
81 `CREATION_TIMESTAMP` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
82 PRIMARY KEY (`ID`),
83 UNIQUE KEY `uk_ar_recipe` (`MODEL_NAME`,`ACTION`,`VERSION_STR`)
Benjamin, Max (mb388a)a81aef22018-08-13 09:48:57 -040084) ENGINE=InnoDB DEFAULT CHARSET=latin1;
Benjamin, Max (mb388a)86f04e12019-04-02 22:54:57 -040085/*!40101 SET character_set_client = @saved_cs_client */;
Benjamin, Max (mb388a)a81aef22018-08-13 09:48:57 -040086
Benjamin, Max (mb388a)86f04e12019-04-02 22:54:57 -040087--
88-- Table structure for table `building_block_detail`
89--
90
91DROP TABLE IF EXISTS `building_block_detail`;
92/*!40101 SET @saved_cs_client = @@character_set_client */;
93/*!40101 SET character_set_client = utf8 */;
94CREATE TABLE `building_block_detail` (
95 `id` int(11) NOT NULL AUTO_INCREMENT,
96 `BUILDING_BLOCK_NAME` varchar(200) NOT NULL,
97 `RESOURCE_TYPE` varchar(25) NOT NULL,
98 `TARGET_ACTION` varchar(25) NOT NULL,
99 PRIMARY KEY (`id`),
100 UNIQUE KEY `UK_building_block_name` (`BUILDING_BLOCK_NAME`)
101) ENGINE=InnoDB AUTO_INCREMENT=104 DEFAULT CHARSET=latin1;
102/*!40101 SET character_set_client = @saved_cs_client */;
103
104--
105-- Table structure for table `cloud_sites`
106--
107
108DROP TABLE IF EXISTS `cloud_sites`;
109/*!40101 SET @saved_cs_client = @@character_set_client */;
110/*!40101 SET character_set_client = utf8 */;
111CREATE TABLE `cloud_sites` (
Benjamin, Max (mb388a)a81aef22018-08-13 09:48:57 -0400112 `ID` varchar(50) NOT NULL,
Benjamin, Max (mb388a)86f04e12019-04-02 22:54:57 -0400113 `REGION_ID` varchar(11) DEFAULT NULL,
114 `IDENTITY_SERVICE_ID` varchar(50) DEFAULT NULL,
115 `CLOUD_VERSION` varchar(20) DEFAULT NULL,
116 `CLLI` varchar(11) DEFAULT NULL,
117 `CLOUDIFY_ID` varchar(50) DEFAULT NULL,
118 `PLATFORM` varchar(50) DEFAULT NULL,
119 `ORCHESTRATOR` varchar(50) DEFAULT NULL,
Benjamin, Max (mb388a)a81aef22018-08-13 09:48:57 -0400120 `LAST_UPDATED_BY` varchar(120) DEFAULT NULL,
Benjamin, Max (mb388a)86f04e12019-04-02 22:54:57 -0400121 `CREATION_TIMESTAMP` timestamp NULL DEFAULT CURRENT_TIMESTAMP,
122 `UPDATE_TIMESTAMP` timestamp NULL DEFAULT CURRENT_TIMESTAMP,
123 PRIMARY KEY (`ID`),
124 KEY `FK_cloud_sites_identity_services` (`IDENTITY_SERVICE_ID`),
125 CONSTRAINT `FK_cloud_sites_identity_services` FOREIGN KEY (`IDENTITY_SERVICE_ID`) REFERENCES `identity_services` (`ID`)
126) ENGINE=InnoDB DEFAULT CHARSET=latin1;
127/*!40101 SET character_set_client = @saved_cs_client */;
Benjamin, Max (mb388a)a81aef22018-08-13 09:48:57 -0400128
Benjamin, Max (mb388a)86f04e12019-04-02 22:54:57 -0400129--
130-- Table structure for table `cloudify_managers`
131--
Benjamin, Max (mb388a)a81aef22018-08-13 09:48:57 -0400132
Benjamin, Max (mb388a)86f04e12019-04-02 22:54:57 -0400133DROP TABLE IF EXISTS `cloudify_managers`;
134/*!40101 SET @saved_cs_client = @@character_set_client */;
135/*!40101 SET character_set_client = utf8 */;
136CREATE TABLE `cloudify_managers` (
Benjamin, Max (mb388a)a81aef22018-08-13 09:48:57 -0400137 `ID` varchar(50) NOT NULL,
138 `CLOUDIFY_URL` varchar(200) DEFAULT NULL,
139 `USERNAME` varchar(255) DEFAULT NULL,
140 `PASSWORD` varchar(255) DEFAULT NULL,
141 `VERSION` varchar(20) DEFAULT NULL,
142 `LAST_UPDATED_BY` varchar(120) DEFAULT NULL,
Benjamin, Max (mb388a)86f04e12019-04-02 22:54:57 -0400143 `CREATION_TIMESTAMP` timestamp NULL DEFAULT CURRENT_TIMESTAMP,
144 `UPDATE_TIMESTAMP` timestamp NULL DEFAULT CURRENT_TIMESTAMP,
Benjamin, Max (mb388a)a81aef22018-08-13 09:48:57 -0400145 PRIMARY KEY (`ID`)
Benjamin, Max (mb388a)86f04e12019-04-02 22:54:57 -0400146) ENGINE=InnoDB DEFAULT CHARSET=latin1;
147/*!40101 SET character_set_client = @saved_cs_client */;
Benjamin, Max (mb388a)a81aef22018-08-13 09:48:57 -0400148
Benjamin, Max (mb388a)86f04e12019-04-02 22:54:57 -0400149--
150-- Table structure for table `collection_network_resource_customization`
151--
Benjamin, Max (mb388a)a81aef22018-08-13 09:48:57 -0400152
Benjamin, Max (mb388a)86f04e12019-04-02 22:54:57 -0400153DROP TABLE IF EXISTS `collection_network_resource_customization`;
154/*!40101 SET @saved_cs_client = @@character_set_client */;
155/*!40101 SET character_set_client = utf8 */;
156CREATE TABLE `collection_network_resource_customization` (
157 `MODEL_CUSTOMIZATION_UUID` varchar(200) NOT NULL,
158 `MODEL_INSTANCE_NAME` varchar(200) NOT NULL,
159 `NETWORK_TECHNOLOGY` varchar(45) DEFAULT NULL,
160 `NETWORK_TYPE` varchar(45) DEFAULT NULL,
161 `NETWORK_ROLE` varchar(200) DEFAULT NULL,
162 `NETWORK_SCOPE` varchar(45) DEFAULT NULL,
163 `CREATION_TIMESTAMP` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
164 `NETWORK_RESOURCE_MODEL_UUID` varchar(200) NOT NULL,
165 `INSTANCE_GROUP_MODEL_UUID` varchar(200) DEFAULT NULL,
166 `CRC_MODEL_CUSTOMIZATION_UUID` varchar(200) NOT NULL,
167 PRIMARY KEY (`MODEL_CUSTOMIZATION_UUID`,`CRC_MODEL_CUSTOMIZATION_UUID`),
168 KEY `fk_collection_net_resource_customization__network_resource1_idx` (`NETWORK_RESOURCE_MODEL_UUID`),
169 KEY `fk_collection_net_resource_customization__instance_group1_idx` (`INSTANCE_GROUP_MODEL_UUID`),
170 KEY `fk_col_net_res_customization__collection_res_customization_idx` (`CRC_MODEL_CUSTOMIZATION_UUID`),
171 CONSTRAINT `fk_collection_net_resource_customization__instance_group10` FOREIGN KEY (`INSTANCE_GROUP_MODEL_UUID`) REFERENCES `instance_group` (`MODEL_UUID`) ON DELETE CASCADE ON UPDATE CASCADE,
172 CONSTRAINT `fk_collection_net_resource_customization__network_resource10` FOREIGN KEY (`NETWORK_RESOURCE_MODEL_UUID`) REFERENCES `network_resource` (`MODEL_UUID`) ON DELETE CASCADE ON UPDATE CASCADE,
173 CONSTRAINT `fk_collection_network_resource_customization__collection_reso1` FOREIGN KEY (`CRC_MODEL_CUSTOMIZATION_UUID`) REFERENCES `collection_resource_customization` (`MODEL_CUSTOMIZATION_UUID`) ON DELETE CASCADE ON UPDATE CASCADE
174) ENGINE=InnoDB DEFAULT CHARSET=latin1;
175/*!40101 SET character_set_client = @saved_cs_client */;
Benjamin, Max (mb388a)a81aef22018-08-13 09:48:57 -0400176
Benjamin, Max (mb388a)86f04e12019-04-02 22:54:57 -0400177--
178-- Table structure for table `collection_resource`
179--
180
181DROP TABLE IF EXISTS `collection_resource`;
182/*!40101 SET @saved_cs_client = @@character_set_client */;
183/*!40101 SET character_set_client = utf8 */;
184CREATE TABLE `collection_resource` (
185 `MODEL_UUID` varchar(200) NOT NULL,
186 `MODEL_NAME` varchar(200) NOT NULL,
187 `MODEL_INVARIANT_UUID` varchar(200) NOT NULL,
188 `MODEL_VERSION` varchar(20) NOT NULL,
189 `TOSCA_NODE_TYPE` varchar(200) NOT NULL,
190 `DESCRIPTION` varchar(1200) DEFAULT NULL,
191 `CREATION_TIMESTAMP` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
192 PRIMARY KEY (`MODEL_UUID`)
193) ENGINE=InnoDB DEFAULT CHARSET=latin1;
194/*!40101 SET character_set_client = @saved_cs_client */;
195
196--
197-- Table structure for table `collection_resource_customization`
198--
199
200DROP TABLE IF EXISTS `collection_resource_customization`;
201/*!40101 SET @saved_cs_client = @@character_set_client */;
202/*!40101 SET character_set_client = utf8 */;
203CREATE TABLE `collection_resource_customization` (
204 `MODEL_CUSTOMIZATION_UUID` varchar(200) NOT NULL,
205 `MODEL_INSTANCE_NAME` varchar(200) NOT NULL,
206 `role` varchar(200) DEFAULT NULL,
207 `object_type` varchar(200) NOT NULL,
208 `function` varchar(200) DEFAULT NULL,
209 `collection_resource_type` varchar(200) DEFAULT NULL,
210 `CREATION_TIMESTAMP` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
211 `CR_MODEL_UUID` varchar(200) NOT NULL,
212 PRIMARY KEY (`MODEL_CUSTOMIZATION_UUID`),
213 KEY `CR_MODEL_UUID` (`CR_MODEL_UUID`),
214 CONSTRAINT `collection_resource_customization_ibfk_1` FOREIGN KEY (`CR_MODEL_UUID`) REFERENCES `collection_resource` (`MODEL_UUID`) ON DELETE CASCADE
215) ENGINE=InnoDB DEFAULT CHARSET=latin1;
216/*!40101 SET character_set_client = @saved_cs_client */;
217
218--
219-- Table structure for table `collection_resource_customization_to_service`
220--
221
222DROP TABLE IF EXISTS `collection_resource_customization_to_service`;
223/*!40101 SET @saved_cs_client = @@character_set_client */;
224/*!40101 SET character_set_client = utf8 */;
225CREATE TABLE `collection_resource_customization_to_service` (
226 `SERVICE_MODEL_UUID` varchar(200) NOT NULL,
227 `RESOURCE_MODEL_CUSTOMIZATION_UUID` varchar(200) NOT NULL,
228 PRIMARY KEY (`SERVICE_MODEL_UUID`,`RESOURCE_MODEL_CUSTOMIZATION_UUID`),
229 KEY `RESOURCE_MODEL_CUSTOMIZATION_UUID` (`RESOURCE_MODEL_CUSTOMIZATION_UUID`),
230 CONSTRAINT `collection_resource_customization_to_service_ibfk_1` FOREIGN KEY (`SERVICE_MODEL_UUID`) REFERENCES `service` (`MODEL_UUID`) ON DELETE CASCADE,
231 CONSTRAINT `collection_resource_customization_to_service_ibfk_2` FOREIGN KEY (`RESOURCE_MODEL_CUSTOMIZATION_UUID`) REFERENCES `collection_resource_customization` (`MODEL_CUSTOMIZATION_UUID`) ON DELETE CASCADE
232) ENGINE=InnoDB DEFAULT CHARSET=latin1;
233/*!40101 SET character_set_client = @saved_cs_client */;
234
235--
236-- Table structure for table `collection_resource_instance_group_customization`
237--
238
239DROP TABLE IF EXISTS `collection_resource_instance_group_customization`;
240/*!40101 SET @saved_cs_client = @@character_set_client */;
241/*!40101 SET character_set_client = utf8 */;
242CREATE TABLE `collection_resource_instance_group_customization` (
243 `COLLECTION_RESOURCE_CUSTOMIZATION_MODEL_UUID` varchar(200) NOT NULL,
244 `INSTANCE_GROUP_MODEL_UUID` varchar(200) NOT NULL,
245 `FUNCTION` varchar(200) DEFAULT NULL,
246 `DESCRIPTION` varchar(1200) DEFAULT NULL,
247 `SUBINTERFACE_NETWORK_QUANTITY` int(11) DEFAULT NULL,
248 `CREATION_TIMESTAMP` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
249 PRIMARY KEY (`COLLECTION_RESOURCE_CUSTOMIZATION_MODEL_UUID`,`INSTANCE_GROUP_MODEL_UUID`),
250 KEY `fk_collection_resource_instance_group_customization__instan_idx` (`INSTANCE_GROUP_MODEL_UUID`),
251 CONSTRAINT `fk_collection_resource_instance_group_customization__collecti1` FOREIGN KEY (`COLLECTION_RESOURCE_CUSTOMIZATION_MODEL_UUID`) REFERENCES `collection_resource_customization` (`MODEL_CUSTOMIZATION_UUID`) ON DELETE CASCADE ON UPDATE CASCADE,
252 CONSTRAINT `fk_collection_resource_instance_group_customization__instance1` FOREIGN KEY (`INSTANCE_GROUP_MODEL_UUID`) REFERENCES `instance_group` (`MODEL_UUID`) ON DELETE CASCADE ON UPDATE CASCADE
253) ENGINE=InnoDB DEFAULT CHARSET=latin1;
254/*!40101 SET character_set_client = @saved_cs_client */;
255
256--
257-- Table structure for table `configuration`
258--
259
260DROP TABLE IF EXISTS `configuration`;
261/*!40101 SET @saved_cs_client = @@character_set_client */;
262/*!40101 SET character_set_client = utf8 */;
263CREATE TABLE `configuration` (
264 `MODEL_UUID` varchar(200) NOT NULL,
265 `MODEL_INVARIANT_UUID` varchar(200) NOT NULL,
266 `MODEL_VERSION` varchar(20) NOT NULL,
267 `MODEL_NAME` varchar(200) NOT NULL,
268 `TOSCA_NODE_TYPE` varchar(200) NOT NULL,
269 `DESCRIPTION` varchar(1200) DEFAULT NULL,
270 `CREATION_TIMESTAMP` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
271 PRIMARY KEY (`MODEL_UUID`)
272) ENGINE=InnoDB DEFAULT CHARSET=latin1;
273/*!40101 SET character_set_client = @saved_cs_client */;
274
275--
276-- Table structure for table `configuration_customization`
277--
278
279DROP TABLE IF EXISTS `configuration_customization`;
280/*!40101 SET @saved_cs_client = @@character_set_client */;
281/*!40101 SET character_set_client = utf8 */;
282CREATE TABLE `configuration_customization` (
Benjamin, Max (mb388a)52039ed2019-04-11 13:33:09 -0400283 `ID` int(11) NOT NULL AUTO_INCREMENT,
Benjamin, Max (mb388a)86f04e12019-04-02 22:54:57 -0400284 `MODEL_CUSTOMIZATION_UUID` varchar(200) NOT NULL,
285 `MODEL_INSTANCE_NAME` varchar(200) NOT NULL,
286 `CONFIGURATION_TYPE` varchar(200) DEFAULT NULL,
287 `CONFIGURATION_ROLE` varchar(200) DEFAULT NULL,
288 `CONFIGURATION_FUNCTION` varchar(200) DEFAULT NULL,
289 `CREATION_TIMESTAMP` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
290 `CONFIGURATION_MODEL_UUID` varchar(200) NOT NULL,
291 `SERVICE_PROXY_CUSTOMIZATION_MODEL_CUSTOMIZATION_UUID` varchar(200) DEFAULT NULL,
Benjamin, Max (mb388a)52039ed2019-04-11 13:33:09 -0400292 `CONFIGURATION_CUSTOMIZATION_MODEL_CUSTOMIZATION_ID` int(11) DEFAULT NULL,
293 `SERVICE_MODEL_UUID` varchar(200),
294 PRIMARY KEY (`ID`),
295 KEY `fk_configuration_customization__configuration_idx` (`CONFIGURATION_MODEL_UUID`),
296 KEY `fk_configuration_customization__service_idx` (`SERVICE_MODEL_UUID`),
297 UNIQUE KEY `uk_configuration_customization` (`MODEL_CUSTOMIZATION_UUID` ASC, `SERVICE_MODEL_UUID` ASC),
298 CONSTRAINT `fk_configuration_customization__configuration1` FOREIGN KEY (`CONFIGURATION_MODEL_UUID`)
299 REFERENCES `configuration` (`MODEL_UUID`)
300 ON DELETE CASCADE ON UPDATE CASCADE,
301 CONSTRAINT `fk_configuration_customization__service1` FOREIGN KEY (`SERVICE_MODEL_UUID`)
302 REFERENCES `service` (`MODEL_UUID`)
303 ON DELETE CASCADE ON UPDATE CASCADE
Benjamin, Max (mb388a)86f04e12019-04-02 22:54:57 -0400304) ENGINE=InnoDB DEFAULT CHARSET=latin1;
305/*!40101 SET character_set_client = @saved_cs_client */;
306
307--
308-- Table structure for table `controller_selection_reference`
309--
310
311DROP TABLE IF EXISTS `controller_selection_reference`;
312/*!40101 SET @saved_cs_client = @@character_set_client */;
313/*!40101 SET character_set_client = utf8 */;
314CREATE TABLE `controller_selection_reference` (
315 `VNF_TYPE` varchar(50) NOT NULL,
316 `CONTROLLER_NAME` varchar(100) NOT NULL,
317 `ACTION_CATEGORY` varchar(15) NOT NULL,
318 PRIMARY KEY (`VNF_TYPE`,`CONTROLLER_NAME`,`ACTION_CATEGORY`)
319) ENGINE=InnoDB DEFAULT CHARSET=latin1;
320/*!40101 SET character_set_client = @saved_cs_client */;
321
322--
323-- Table structure for table `cvnfc_configuration_customization`
324--
325
326DROP TABLE IF EXISTS `cvnfc_configuration_customization`;
327/*!40101 SET @saved_cs_client = @@character_set_client */;
328/*!40101 SET character_set_client = utf8 */;
329CREATE TABLE `cvnfc_configuration_customization` (
330 `ID` int(11) NOT NULL AUTO_INCREMENT,
331 `MODEL_CUSTOMIZATION_UUID` varchar(200) NOT NULL,
332 `MODEL_INSTANCE_NAME` varchar(200) NOT NULL,
333 `CONFIGURATION_TYPE` varchar(200) DEFAULT NULL,
334 `CONFIGURATION_ROLE` varchar(200) DEFAULT NULL,
335 `CONFIGURATION_FUNCTION` varchar(200) DEFAULT NULL,
336 `POLICY_NAME` varchar(200) DEFAULT NULL,
337 `CREATION_TIMESTAMP` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
338 `CONFIGURATION_MODEL_UUID` varchar(200) NOT NULL,
339 `CVNFC_CUSTOMIZATION_ID` int(11) DEFAULT NULL,
Benjamin, Max (mb388a)a81aef22018-08-13 09:48:57 -0400340 PRIMARY KEY (`ID`),
Benjamin, Max (mb388a)86f04e12019-04-02 22:54:57 -0400341 KEY `fk_vnf_vfmodule_cvnfc_config_cust__configuration_idx` (`CONFIGURATION_MODEL_UUID`),
342 CONSTRAINT `fk_vnf_vfmod_cvnfc_config_cust__configuration_resource` FOREIGN KEY (`CONFIGURATION_MODEL_UUID`) REFERENCES `configuration` (`MODEL_UUID`) ON DELETE CASCADE ON UPDATE CASCADE
343) ENGINE=InnoDB AUTO_INCREMENT=20655 DEFAULT CHARSET=latin1;
344/*!40101 SET character_set_client = @saved_cs_client */;
345
346--
347-- Table structure for table `cvnfc_customization`
348--
349
350DROP TABLE IF EXISTS `cvnfc_customization`;
351/*!40101 SET @saved_cs_client = @@character_set_client */;
352/*!40101 SET character_set_client = utf8 */;
353CREATE TABLE `cvnfc_customization` (
354 `ID` int(11) NOT NULL AUTO_INCREMENT,
355 `MODEL_CUSTOMIZATION_UUID` varchar(200) NOT NULL,
356 `MODEL_INSTANCE_NAME` varchar(200) NOT NULL,
357 `MODEL_UUID` varchar(200) NOT NULL,
358 `MODEL_INVARIANT_UUID` varchar(200) NOT NULL,
359 `MODEL_VERSION` varchar(20) NOT NULL,
360 `MODEL_NAME` varchar(200) NOT NULL,
361 `TOSCA_NODE_TYPE` varchar(200) NOT NULL,
362 `DESCRIPTION` varchar(1200) DEFAULT NULL,
363 `NFC_FUNCTION` varchar(200) DEFAULT NULL,
364 `NFC_NAMING_CODE` varchar(200) DEFAULT NULL,
365 `CREATION_TIMESTAMP` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
366 `VNFC_CUST_MODEL_CUSTOMIZATION_UUID` varchar(200) DEFAULT NULL,
367 `VF_MODULE_CUSTOMIZATION_ID` int(13) DEFAULT NULL,
368 PRIMARY KEY (`ID`),
369 KEY `fk_cvnfc_customization__vnfc_customization1_idx` (`VNFC_CUST_MODEL_CUSTOMIZATION_UUID`),
370 KEY `fk_cvnfc_customization__vnf_vfmod_cvnfc_config_cust1_idx` (`MODEL_CUSTOMIZATION_UUID`),
371 KEY `fk_cvnfc_customization_to_vf_module_resource_customization` (`VF_MODULE_CUSTOMIZATION_ID`),
372 CONSTRAINT `fk_cvnfc_customization__vnfc_customization1` FOREIGN KEY (`VNFC_CUST_MODEL_CUSTOMIZATION_UUID`) REFERENCES `vnfc_customization` (`MODEL_CUSTOMIZATION_UUID`) ON DELETE CASCADE ON UPDATE CASCADE,
373 CONSTRAINT `fk_cvnfc_customization_to_vf_module_resource_customization` FOREIGN KEY (`VF_MODULE_CUSTOMIZATION_ID`) REFERENCES `vf_module_customization` (`ID`) ON DELETE CASCADE ON UPDATE CASCADE
374) ENGINE=InnoDB AUTO_INCREMENT=20655 DEFAULT CHARSET=latin1;
375/*!40101 SET character_set_client = @saved_cs_client */;
376
377--
378-- Table structure for table `external_service_to_internal_model_mapping`
379--
380
381DROP TABLE IF EXISTS `external_service_to_internal_model_mapping`;
382/*!40101 SET @saved_cs_client = @@character_set_client */;
383/*!40101 SET character_set_client = utf8 */;
384CREATE TABLE `external_service_to_internal_model_mapping` (
385 `id` int(11) NOT NULL AUTO_INCREMENT,
386 `SERVICE_NAME` varchar(200) NOT NULL,
387 `PRODUCT_FLAVOR` varchar(200) DEFAULT NULL,
388 `SUBSCRIPTION_SERVICE_TYPE` varchar(200) NOT NULL,
389 `SERVICE_MODEL_UUID` varchar(200) NOT NULL,
390 PRIMARY KEY (`id`),
391 UNIQUE KEY `UK_external_service_to_internal_model_mapping` (`SERVICE_NAME`,`PRODUCT_FLAVOR`,`SERVICE_MODEL_UUID`)
392) ENGINE=InnoDB DEFAULT CHARSET=latin1;
393/*!40101 SET character_set_client = @saved_cs_client */;
394
395--
396-- Table structure for table `flyway_schema_history`
397--
398
399DROP TABLE IF EXISTS `flyway_schema_history`;
400/*!40101 SET @saved_cs_client = @@character_set_client */;
401/*!40101 SET character_set_client = utf8 */;
402CREATE TABLE `flyway_schema_history` (
403 `installed_rank` int(11) NOT NULL,
404 `version` varchar(50) DEFAULT NULL,
405 `description` varchar(200) NOT NULL,
406 `type` varchar(20) NOT NULL,
407 `script` varchar(1000) NOT NULL,
408 `checksum` int(11) DEFAULT NULL,
409 `installed_by` varchar(100) NOT NULL,
410 `installed_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
411 `execution_time` int(11) NOT NULL,
412 `success` tinyint(1) NOT NULL,
413 PRIMARY KEY (`installed_rank`),
414 KEY `flyway_schema_history_s_idx` (`success`)
415) ENGINE=InnoDB DEFAULT CHARSET=latin1;
416/*!40101 SET character_set_client = @saved_cs_client */;
417
418--
419-- Table structure for table `heat_environment`
420--
421
422DROP TABLE IF EXISTS `heat_environment`;
423/*!40101 SET @saved_cs_client = @@character_set_client */;
424/*!40101 SET character_set_client = utf8 */;
425CREATE TABLE `heat_environment` (
426 `ARTIFACT_UUID` varchar(200) NOT NULL,
427 `NAME` varchar(100) NOT NULL,
428 `VERSION` varchar(20) NOT NULL,
429 `DESCRIPTION` varchar(1200) DEFAULT NULL,
430 `BODY` longtext NOT NULL,
431 `ARTIFACT_CHECKSUM` varchar(200) NOT NULL DEFAULT 'MANUAL RECORD',
432 `CREATION_TIMESTAMP` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
433 PRIMARY KEY (`ARTIFACT_UUID`)
434) ENGINE=InnoDB DEFAULT CHARSET=latin1;
435/*!40101 SET character_set_client = @saved_cs_client */;
436
437--
438-- Table structure for table `heat_files`
439--
440
441DROP TABLE IF EXISTS `heat_files`;
442/*!40101 SET @saved_cs_client = @@character_set_client */;
443/*!40101 SET character_set_client = utf8 */;
444CREATE TABLE `heat_files` (
445 `ARTIFACT_UUID` varchar(200) NOT NULL,
446 `NAME` varchar(200) NOT NULL,
447 `VERSION` varchar(20) NOT NULL,
448 `DESCRIPTION` varchar(1200) DEFAULT NULL,
449 `BODY` longtext NOT NULL,
450 `ARTIFACT_CHECKSUM` varchar(200) NOT NULL DEFAULT 'MANUAL RECORD',
451 `CREATION_TIMESTAMP` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
452 PRIMARY KEY (`ARTIFACT_UUID`)
453) ENGINE=InnoDB DEFAULT CHARSET=latin1;
454/*!40101 SET character_set_client = @saved_cs_client */;
455
456--
457-- Table structure for table `heat_nested_template`
458--
459
460DROP TABLE IF EXISTS `heat_nested_template`;
461/*!40101 SET @saved_cs_client = @@character_set_client */;
462/*!40101 SET character_set_client = utf8 */;
463CREATE TABLE `heat_nested_template` (
464 `PARENT_HEAT_TEMPLATE_UUID` varchar(200) NOT NULL,
465 `CHILD_HEAT_TEMPLATE_UUID` varchar(200) NOT NULL,
466 `PROVIDER_RESOURCE_FILE` varchar(100) DEFAULT NULL,
467 PRIMARY KEY (`PARENT_HEAT_TEMPLATE_UUID`,`CHILD_HEAT_TEMPLATE_UUID`),
468 KEY `fk_heat_nested_template__heat_template2_idx` (`CHILD_HEAT_TEMPLATE_UUID`),
469 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,
470 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
471) ENGINE=InnoDB DEFAULT CHARSET=latin1;
472/*!40101 SET character_set_client = @saved_cs_client */;
473
474--
475-- Table structure for table `heat_template`
476--
477
478DROP TABLE IF EXISTS `heat_template`;
479/*!40101 SET @saved_cs_client = @@character_set_client */;
480/*!40101 SET character_set_client = utf8 */;
481CREATE TABLE `heat_template` (
482 `ARTIFACT_UUID` varchar(200) NOT NULL,
483 `NAME` varchar(200) NOT NULL,
484 `VERSION` varchar(20) NOT NULL,
485 `DESCRIPTION` varchar(1200) DEFAULT NULL,
486 `BODY` longtext NOT NULL,
487 `TIMEOUT_MINUTES` int(11) DEFAULT NULL,
488 `ARTIFACT_CHECKSUM` varchar(200) NOT NULL DEFAULT 'MANUAL RECORD',
489 `CREATION_TIMESTAMP` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
490 PRIMARY KEY (`ARTIFACT_UUID`)
491) ENGINE=InnoDB DEFAULT CHARSET=latin1;
492/*!40101 SET character_set_client = @saved_cs_client */;
493
494--
495-- Table structure for table `heat_template_params`
496--
497
498DROP TABLE IF EXISTS `heat_template_params`;
499/*!40101 SET @saved_cs_client = @@character_set_client */;
500/*!40101 SET character_set_client = utf8 */;
501CREATE TABLE `heat_template_params` (
502 `HEAT_TEMPLATE_ARTIFACT_UUID` varchar(200) NOT NULL,
503 `PARAM_NAME` varchar(100) NOT NULL,
504 `IS_REQUIRED` bit(1) NOT NULL,
505 `PARAM_TYPE` varchar(20) DEFAULT NULL,
506 `PARAM_ALIAS` varchar(45) DEFAULT NULL,
507 PRIMARY KEY (`HEAT_TEMPLATE_ARTIFACT_UUID`,`PARAM_NAME`),
508 CONSTRAINT `fk_heat_template_params__heat_template1` FOREIGN KEY (`HEAT_TEMPLATE_ARTIFACT_UUID`) REFERENCES `heat_template` (`ARTIFACT_UUID`) ON DELETE CASCADE ON UPDATE CASCADE
509) ENGINE=InnoDB DEFAULT CHARSET=latin1;
510/*!40101 SET character_set_client = @saved_cs_client */;
511
512--
513-- Table structure for table `identity_services`
514--
515
516DROP TABLE IF EXISTS `identity_services`;
517/*!40101 SET @saved_cs_client = @@character_set_client */;
518/*!40101 SET character_set_client = utf8 */;
519CREATE TABLE `identity_services` (
520 `ID` varchar(50) NOT NULL,
521 `IDENTITY_URL` varchar(200) DEFAULT NULL,
522 `MSO_ID` varchar(255) DEFAULT NULL,
523 `MSO_PASS` varchar(255) DEFAULT NULL,
524 `ADMIN_TENANT` varchar(50) DEFAULT NULL,
525 `MEMBER_ROLE` varchar(50) DEFAULT NULL,
526 `TENANT_METADATA` tinyint(1) DEFAULT '0',
527 `IDENTITY_SERVER_TYPE` varchar(50) DEFAULT NULL,
528 `IDENTITY_AUTHENTICATION_TYPE` varchar(50) DEFAULT NULL,
529 `LAST_UPDATED_BY` varchar(120) DEFAULT NULL,
530 `CREATION_TIMESTAMP` timestamp NULL DEFAULT CURRENT_TIMESTAMP,
531 `UPDATE_TIMESTAMP` timestamp NULL DEFAULT CURRENT_TIMESTAMP,
532 `PROJECT_DOMAIN_NAME` varchar(255) DEFAULT NULL,
533 `USER_DOMAIN_NAME` varchar(255) DEFAULT NULL,
534 PRIMARY KEY (`ID`)
535) ENGINE=InnoDB DEFAULT CHARSET=latin1;
536/*!40101 SET character_set_client = @saved_cs_client */;
537
538--
539-- Table structure for table `instance_group`
540--
541
542DROP TABLE IF EXISTS `instance_group`;
543/*!40101 SET @saved_cs_client = @@character_set_client */;
544/*!40101 SET character_set_client = utf8 */;
545CREATE TABLE `instance_group` (
546 `MODEL_UUID` varchar(200) NOT NULL,
547 `MODEL_NAME` varchar(200) NOT NULL,
548 `MODEL_INVARIANT_UUID` varchar(200) NOT NULL,
549 `MODEL_VERSION` varchar(20) NOT NULL,
550 `TOSCA_NODE_TYPE` varchar(200) DEFAULT NULL,
551 `ROLE` varchar(200) NOT NULL,
552 `OBJECT_TYPE` varchar(200) NOT NULL,
553 `CREATION_TIMESTAMP` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
554 `CR_MODEL_UUID` varchar(200) DEFAULT NULL,
555 `INSTANCE_GROUP_TYPE` varchar(200) NOT NULL,
556 PRIMARY KEY (`MODEL_UUID`),
557 KEY `CR_MODEL_UUID` (`CR_MODEL_UUID`)
558) ENGINE=InnoDB DEFAULT CHARSET=latin1;
559/*!40101 SET character_set_client = @saved_cs_client */;
560
561--
562-- Table structure for table `model`
563--
564
565DROP TABLE IF EXISTS `model`;
566/*!40101 SET @saved_cs_client = @@character_set_client */;
567/*!40101 SET character_set_client = utf8 */;
568CREATE TABLE `model` (
569 `ID` int(11) NOT NULL AUTO_INCREMENT,
570 `MODEL_CUSTOMIZATION_ID` varchar(40) DEFAULT NULL,
571 `MODEL_CUSTOMIZATION_NAME` varchar(40) DEFAULT NULL,
572 `MODEL_INVARIANT_ID` varchar(40) DEFAULT NULL,
573 `MODEL_NAME` varchar(40) DEFAULT NULL,
574 `MODEL_TYPE` varchar(20) DEFAULT NULL,
575 `MODEL_VERSION` varchar(20) DEFAULT NULL,
576 `MODEL_VERSION_ID` varchar(40) DEFAULT NULL,
577 `CREATION_TIMESTAMP` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
578 `RECIPE` int(11) DEFAULT NULL,
579 PRIMARY KEY (`ID`),
580 UNIQUE KEY `uk1_model` (`MODEL_TYPE`,`MODEL_VERSION_ID`),
581 KEY `RECIPE` (`RECIPE`),
582 CONSTRAINT `model_ibfk_1` FOREIGN KEY (`RECIPE`) REFERENCES `model_recipe` (`MODEL_ID`) ON DELETE CASCADE ON UPDATE CASCADE
583) ENGINE=InnoDB DEFAULT CHARSET=latin1;
584/*!40101 SET character_set_client = @saved_cs_client */;
585
586--
587-- Table structure for table `model_recipe`
588--
589
590DROP TABLE IF EXISTS `model_recipe`;
591/*!40101 SET @saved_cs_client = @@character_set_client */;
592/*!40101 SET character_set_client = utf8 */;
593CREATE TABLE `model_recipe` (
594 `ID` int(11) NOT NULL AUTO_INCREMENT,
595 `MODEL_ID` int(11) DEFAULT NULL,
596 `ACTION` varchar(40) DEFAULT NULL,
597 `SCHEMA_VERSION` varchar(40) DEFAULT NULL,
598 `DESCRIPTION` varchar(40) DEFAULT NULL,
599 `ORCHESTRATION_URI` varchar(20) DEFAULT NULL,
600 `MODEL_PARAM_XSD` varchar(20) DEFAULT NULL,
601 `RECIPE_TIMEOUT` int(11) DEFAULT NULL,
602 `CREATION_TIMESTAMP` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
603 PRIMARY KEY (`ID`),
604 UNIQUE KEY `uk1_model_recipe` (`MODEL_ID`,`ACTION`)
605) ENGINE=InnoDB DEFAULT CHARSET=latin1;
606/*!40101 SET character_set_client = @saved_cs_client */;
607
608--
609-- Table structure for table `network_recipe`
610--
611
612DROP TABLE IF EXISTS `network_recipe`;
613/*!40101 SET @saved_cs_client = @@character_set_client */;
614/*!40101 SET character_set_client = utf8 */;
615CREATE TABLE `network_recipe` (
616 `id` int(11) NOT NULL AUTO_INCREMENT,
617 `MODEL_NAME` varchar(20) NOT NULL,
618 `ACTION` varchar(50) NOT NULL,
619 `DESCRIPTION` varchar(1200) DEFAULT NULL,
620 `ORCHESTRATION_URI` varchar(256) NOT NULL,
621 `NETWORK_PARAM_XSD` varchar(2048) DEFAULT NULL,
622 `RECIPE_TIMEOUT` int(11) DEFAULT NULL,
623 `SERVICE_TYPE` varchar(45) DEFAULT NULL,
624 `CREATION_TIMESTAMP` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
625 `VERSION_STR` varchar(20) NOT NULL,
626 `RESOURCE_CATEGORY` varchar(200) DEFAULT NULL,
627 `RESOURCE_SUB_CATEGORY` varchar(200) DEFAULT NULL,
628 PRIMARY KEY (`id`),
629 UNIQUE KEY `UK_rl4f296i0p8lyokxveaiwkayi` (`MODEL_NAME`,`ACTION`,`VERSION_STR`)
630) ENGINE=InnoDB AUTO_INCREMENT=181 DEFAULT CHARSET=latin1;
631/*!40101 SET character_set_client = @saved_cs_client */;
632
633--
634-- Table structure for table `network_resource`
635--
636
637DROP TABLE IF EXISTS `network_resource`;
638/*!40101 SET @saved_cs_client = @@character_set_client */;
639/*!40101 SET character_set_client = utf8 */;
640CREATE TABLE `network_resource` (
641 `MODEL_UUID` varchar(200) NOT NULL,
642 `MODEL_NAME` varchar(200) NOT NULL,
643 `MODEL_INVARIANT_UUID` varchar(200) DEFAULT NULL,
644 `DESCRIPTION` varchar(1200) DEFAULT NULL,
645 `HEAT_TEMPLATE_ARTIFACT_UUID` varchar(200) NULL,
646 `NEUTRON_NETWORK_TYPE` varchar(20) DEFAULT NULL,
647 `MODEL_VERSION` varchar(20) DEFAULT NULL,
648 `TOSCA_NODE_TYPE` varchar(200) DEFAULT NULL,
649 `AIC_VERSION_MIN` varchar(20) NULL,
650 `AIC_VERSION_MAX` varchar(20) DEFAULT NULL,
651 `ORCHESTRATION_MODE` varchar(20) DEFAULT 'HEAT',
652 `CREATION_TIMESTAMP` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
653 `RESOURCE_CATEGORY` varchar(200) DEFAULT NULL,
654 `RESOURCE_SUB_CATEGORY` varchar(200) DEFAULT NULL,
655 PRIMARY KEY (`MODEL_UUID`),
656 KEY `fk_network_resource__temp_network_heat_template_lookup1_idx` (`MODEL_NAME`),
657 KEY `fk_network_resource__heat_template1_idx` (`HEAT_TEMPLATE_ARTIFACT_UUID`),
658 CONSTRAINT `fk_network_resource__heat_template1` FOREIGN KEY (`HEAT_TEMPLATE_ARTIFACT_UUID`) REFERENCES `heat_template` (`ARTIFACT_UUID`) ON DELETE NO ACTION ON UPDATE CASCADE,
659 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
660) ENGINE=InnoDB DEFAULT CHARSET=latin1;
661/*!40101 SET character_set_client = @saved_cs_client */;
662
663--
664-- Table structure for table `network_resource_customization`
665--
666
667DROP TABLE IF EXISTS `network_resource_customization`;
668/*!40101 SET @saved_cs_client = @@character_set_client */;
669/*!40101 SET character_set_client = utf8 */;
670CREATE TABLE `network_resource_customization` (
671 `MODEL_CUSTOMIZATION_UUID` varchar(200) NOT NULL,
672 `MODEL_INSTANCE_NAME` varchar(200) NOT NULL,
673 `NETWORK_TECHNOLOGY` varchar(45) DEFAULT NULL,
674 `NETWORK_TYPE` varchar(45) DEFAULT NULL,
675 `NETWORK_ROLE` varchar(200) DEFAULT NULL,
676 `NETWORK_SCOPE` varchar(45) DEFAULT NULL,
677 `RESOURCE_INPUT` varchar(20000) DEFAULT NULL,
678 `CREATION_TIMESTAMP` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
679 `NETWORK_RESOURCE_MODEL_UUID` varchar(200) NOT NULL,
680 PRIMARY KEY (`MODEL_CUSTOMIZATION_UUID`),
681 KEY `fk_network_resource_customization__network_resource1_idx` (`NETWORK_RESOURCE_MODEL_UUID`),
682 CONSTRAINT `fk_network_resource_customization__network_resource1` FOREIGN KEY (`NETWORK_RESOURCE_MODEL_UUID`) REFERENCES `network_resource` (`MODEL_UUID`) ON DELETE CASCADE ON UPDATE CASCADE
683) ENGINE=InnoDB DEFAULT CHARSET=latin1;
684/*!40101 SET character_set_client = @saved_cs_client */;
685
686--
687-- Table structure for table `network_resource_customization_to_service`
688--
689
690DROP TABLE IF EXISTS `network_resource_customization_to_service`;
691/*!40101 SET @saved_cs_client = @@character_set_client */;
692/*!40101 SET character_set_client = utf8 */;
693CREATE TABLE `network_resource_customization_to_service` (
694 `SERVICE_MODEL_UUID` varchar(200) NOT NULL,
695 `RESOURCE_MODEL_CUSTOMIZATION_UUID` varchar(200) NOT NULL,
696 PRIMARY KEY (`SERVICE_MODEL_UUID`,`RESOURCE_MODEL_CUSTOMIZATION_UUID`),
697 KEY `RESOURCE_MODEL_CUSTOMIZATION_UUID` (`RESOURCE_MODEL_CUSTOMIZATION_UUID`),
698 CONSTRAINT `network_resource_customization_to_service_ibfk_1` FOREIGN KEY (`SERVICE_MODEL_UUID`) REFERENCES `service` (`MODEL_UUID`) ON DELETE CASCADE,
699 CONSTRAINT `network_resource_customization_to_service_ibfk_2` FOREIGN KEY (`RESOURCE_MODEL_CUSTOMIZATION_UUID`) REFERENCES `network_resource_customization` (`MODEL_CUSTOMIZATION_UUID`) ON DELETE CASCADE
700) ENGINE=InnoDB DEFAULT CHARSET=latin1;
701/*!40101 SET character_set_client = @saved_cs_client */;
702
703--
704-- Table structure for table `northbound_request_ref_lookup`
705--
706
707DROP TABLE IF EXISTS `northbound_request_ref_lookup`;
708/*!40101 SET @saved_cs_client = @@character_set_client */;
709/*!40101 SET character_set_client = utf8 */;
710CREATE TABLE `northbound_request_ref_lookup` (
711 `id` int(11) NOT NULL AUTO_INCREMENT,
712 `REQUEST_SCOPE` varchar(200) NOT NULL,
713 `MACRO_ACTION` varchar(200) NOT NULL,
714 `ACTION` varchar(200) NOT NULL,
715 `IS_ALACARTE` tinyint(1) NOT NULL DEFAULT '0',
716 `MIN_API_VERSION` double NOT NULL,
717 `MAX_API_VERSION` double DEFAULT NULL,
718 `IS_TOPLEVELFLOW` tinyint(1) DEFAULT NULL,
719 `CLOUD_OWNER` varchar(200) NOT NULL,
Benjamin, Max (mb388a)7328b3f2019-04-21 11:11:21 -0400720 `service_type` varchar(50) NOT NULL,
Benjamin, Max (mb388a)86f04e12019-04-02 22:54:57 -0400721 PRIMARY KEY (`id`),
722 UNIQUE KEY `UK_northbound_request_ref_lookup` (`MIN_API_VERSION`,`REQUEST_SCOPE`,`ACTION`,`IS_ALACARTE`,`MACRO_ACTION`,`CLOUD_OWNER`)
723) ENGINE=InnoDB AUTO_INCREMENT=86 DEFAULT CHARSET=latin1;
724/*!40101 SET character_set_client = @saved_cs_client */;
725
726--
727-- Table structure for table `orchestration_flow_reference`
728--
729
730DROP TABLE IF EXISTS `orchestration_flow_reference`;
731/*!40101 SET @saved_cs_client = @@character_set_client */;
732/*!40101 SET character_set_client = utf8 */;
733CREATE TABLE `orchestration_flow_reference` (
734 `id` int(11) NOT NULL AUTO_INCREMENT,
735 `COMPOSITE_ACTION` varchar(200) NOT NULL,
736 `SEQ_NO` int(11) NOT NULL,
737 `FLOW_NAME` varchar(200) NOT NULL,
738 `FLOW_VERSION` double NOT NULL,
739 `NB_REQ_REF_LOOKUP_ID` int(11) NOT NULL,
740 PRIMARY KEY (`id`),
741 UNIQUE KEY `UK_orchestration_flow_reference` (`COMPOSITE_ACTION`,`FLOW_NAME`,`SEQ_NO`,`NB_REQ_REF_LOOKUP_ID`),
742 KEY `fk_orchestration_flow_reference__northbound_req_ref_look_idx` (`NB_REQ_REF_LOOKUP_ID`),
743 KEY `fk_orchestration_flow_reference__building_block_detail` (`FLOW_NAME`),
744 CONSTRAINT `fk_orchestration_flow_reference__northbound_request_ref_look1` FOREIGN KEY (`NB_REQ_REF_LOOKUP_ID`) REFERENCES `northbound_request_ref_lookup` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
745) ENGINE=InnoDB AUTO_INCREMENT=398 DEFAULT CHARSET=latin1;
746/*!40101 SET character_set_client = @saved_cs_client */;
747
748--
749-- Table structure for table `orchestration_status_state_transition_directive`
750--
751
752DROP TABLE IF EXISTS `orchestration_status_state_transition_directive`;
753/*!40101 SET @saved_cs_client = @@character_set_client */;
754/*!40101 SET character_set_client = utf8 */;
755CREATE TABLE `orchestration_status_state_transition_directive` (
756 `id` int(11) NOT NULL AUTO_INCREMENT,
757 `RESOURCE_TYPE` varchar(25) NOT NULL,
758 `ORCHESTRATION_STATUS` varchar(25) NOT NULL,
759 `TARGET_ACTION` varchar(25) NOT NULL,
760 `FLOW_DIRECTIVE` varchar(25) NOT NULL,
761 PRIMARY KEY (`id`),
762 UNIQUE KEY `UK_orchestration_status_state_transition_directive` (`RESOURCE_TYPE`,`ORCHESTRATION_STATUS`,`TARGET_ACTION`)
763) ENGINE=InnoDB AUTO_INCREMENT=686 DEFAULT CHARSET=latin1;
764/*!40101 SET character_set_client = @saved_cs_client */;
765
766--
767-- Table structure for table `rainy_day_handler_macro`
768--
769
770DROP TABLE IF EXISTS `rainy_day_handler_macro`;
771/*!40101 SET @saved_cs_client = @@character_set_client */;
772/*!40101 SET character_set_client = utf8 */;
773CREATE TABLE `rainy_day_handler_macro` (
774 `id` int(11) NOT NULL AUTO_INCREMENT,
775 `FLOW_NAME` varchar(200) NOT NULL,
776 `SERVICE_TYPE` varchar(200) NOT NULL,
777 `VNF_TYPE` varchar(200) NOT NULL,
778 `ERROR_CODE` varchar(200) NOT NULL,
779 `WORK_STEP` varchar(200) NOT NULL,
780 `POLICY` varchar(200) NOT NULL,
781 `SECONDARY_POLICY` varchar(200) DEFAULT NULL,
782 PRIMARY KEY (`id`)
783) ENGINE=InnoDB AUTO_INCREMENT=93 DEFAULT CHARSET=latin1;
784/*!40101 SET character_set_client = @saved_cs_client */;
785
786--
787-- Table structure for table `service`
788--
789
790DROP TABLE IF EXISTS `service`;
791/*!40101 SET @saved_cs_client = @@character_set_client */;
792/*!40101 SET character_set_client = utf8 */;
793CREATE TABLE `service` (
794 `MODEL_UUID` varchar(200) NOT NULL,
795 `MODEL_NAME` varchar(200) NOT NULL,
796 `MODEL_INVARIANT_UUID` varchar(200) NOT NULL,
797 `MODEL_VERSION` varchar(20) NOT NULL,
798 `DESCRIPTION` varchar(1200) DEFAULT NULL,
799 `CREATION_TIMESTAMP` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
800 `TOSCA_CSAR_ARTIFACT_UUID` varchar(200) DEFAULT NULL,
801 `SERVICE_TYPE` varchar(200) DEFAULT NULL,
802 `SERVICE_ROLE` varchar(200) DEFAULT NULL,
803 `ENVIRONMENT_CONTEXT` varchar(200) DEFAULT NULL,
804 `WORKLOAD_CONTEXT` varchar(200) DEFAULT NULL,
805 `SERVICE_CATEGORY` varchar(200) DEFAULT NULL,
806 `RESOURCE_ORDER` varchar(200) default NULL,
807 PRIMARY KEY (`MODEL_UUID`),
808 KEY `fk_service__tosca_csar1_idx` (`TOSCA_CSAR_ARTIFACT_UUID`),
809 CONSTRAINT `fk_service__tosca_csar1` FOREIGN KEY (`TOSCA_CSAR_ARTIFACT_UUID`) REFERENCES `tosca_csar` (`ARTIFACT_UUID`) ON DELETE CASCADE ON UPDATE CASCADE
810) ENGINE=InnoDB DEFAULT CHARSET=latin1;
811/*!40101 SET character_set_client = @saved_cs_client */;
812
813--
814-- Table structure for table `service_proxy_customization`
815--
816
817DROP TABLE IF EXISTS `service_proxy_customization`;
818/*!40101 SET @saved_cs_client = @@character_set_client */;
819/*!40101 SET character_set_client = utf8 */;
820CREATE TABLE `service_proxy_customization` (
821 `MODEL_CUSTOMIZATION_UUID` varchar(200) NOT NULL,
822 `MODEL_INSTANCE_NAME` varchar(200) NOT NULL,
823 `MODEL_UUID` varchar(200) NOT NULL,
824 `MODEL_INVARIANT_UUID` varchar(200) NOT NULL,
825 `MODEL_VERSION` varchar(20) NOT NULL,
826 `MODEL_NAME` varchar(200) NOT NULL,
827 `TOSCA_NODE_TYPE` varchar(200) NOT NULL,
828 `DESCRIPTION` varchar(1200) DEFAULT NULL,
829 `SOURCE_SERVICE_MODEL_UUID` varchar(200) NOT NULL,
830 `CREATION_TIMESTAMP` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
831 PRIMARY KEY (`MODEL_CUSTOMIZATION_UUID`),
832 KEY `fk_service_proxy_customization__service1_idx` (`SOURCE_SERVICE_MODEL_UUID`),
833 CONSTRAINT `fk_service_proxy_resource_customization__service1` FOREIGN KEY (`SOURCE_SERVICE_MODEL_UUID`) REFERENCES `service` (`MODEL_UUID`) ON DELETE CASCADE ON UPDATE CASCADE
834) ENGINE=InnoDB DEFAULT CHARSET=latin1;
835/*!40101 SET character_set_client = @saved_cs_client */;
836
837--
838-- Table structure for table `service_proxy_customization_to_service`
839--
840
841DROP TABLE IF EXISTS `service_proxy_customization_to_service`;
842/*!40101 SET @saved_cs_client = @@character_set_client */;
843/*!40101 SET character_set_client = utf8 */;
844CREATE TABLE `service_proxy_customization_to_service` (
845 `SERVICE_MODEL_UUID` varchar(200) NOT NULL,
846 `RESOURCE_MODEL_CUSTOMIZATION_UUID` varchar(200) NOT NULL,
847 PRIMARY KEY (`SERVICE_MODEL_UUID`,`RESOURCE_MODEL_CUSTOMIZATION_UUID`)
848) ENGINE=InnoDB DEFAULT CHARSET=latin1;
849/*!40101 SET character_set_client = @saved_cs_client */;
850
851--
852-- Table structure for table `service_recipe`
853--
854
855DROP TABLE IF EXISTS `service_recipe`;
856/*!40101 SET @saved_cs_client = @@character_set_client */;
857/*!40101 SET character_set_client = utf8 */;
858CREATE TABLE `service_recipe` (
859 `id` int(11) NOT NULL AUTO_INCREMENT,
860 `ACTION` varchar(50) NOT NULL,
861 `VERSION_STR` varchar(20) DEFAULT NULL,
862 `DESCRIPTION` varchar(1200) DEFAULT NULL,
863 `ORCHESTRATION_URI` varchar(256) NOT NULL,
864 `SERVICE_PARAM_XSD` varchar(2048) DEFAULT NULL,
865 `RECIPE_TIMEOUT` int(11) DEFAULT NULL,
866 `SERVICE_TIMEOUT_INTERIM` int(11) DEFAULT NULL,
867 `CREATION_TIMESTAMP` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
868 `SERVICE_MODEL_UUID` varchar(200) NOT NULL,
869 PRIMARY KEY (`id`),
870 UNIQUE KEY `UK_7fav5dkux2v8g9d2i5ymudlgc` (`SERVICE_MODEL_UUID`,`ACTION`),
871 KEY `fk_service_recipe__service1_idx` (`SERVICE_MODEL_UUID`),
872 CONSTRAINT `fk_service_recipe__service1` FOREIGN KEY (`SERVICE_MODEL_UUID`) REFERENCES `service` (`MODEL_UUID`) ON DELETE CASCADE ON UPDATE CASCADE
873) ENGINE=InnoDB AUTO_INCREMENT=93 DEFAULT CHARSET=latin1;
874/*!40101 SET character_set_client = @saved_cs_client */;
875
876--
877-- Table structure for table `temp_network_heat_template_lookup`
878--
879
880DROP TABLE IF EXISTS `temp_network_heat_template_lookup`;
881/*!40101 SET @saved_cs_client = @@character_set_client */;
882/*!40101 SET character_set_client = utf8 */;
883CREATE TABLE `temp_network_heat_template_lookup` (
884 `NETWORK_RESOURCE_MODEL_NAME` varchar(200) NOT NULL,
885 `HEAT_TEMPLATE_ARTIFACT_UUID` varchar(200) NULL,
886 `AIC_VERSION_MIN` varchar(20) NULL,
887 `AIC_VERSION_MAX` varchar(20) DEFAULT NULL,
888 PRIMARY KEY (`NETWORK_RESOURCE_MODEL_NAME`),
889 KEY `fk_temp_network_heat_template_lookup__heat_template1_idx` (`HEAT_TEMPLATE_ARTIFACT_UUID`),
890 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
891) ENGINE=InnoDB DEFAULT CHARSET=latin1;
892/*!40101 SET character_set_client = @saved_cs_client */;
893
894--
895-- Table structure for table `tosca_csar`
896--
897
898DROP TABLE IF EXISTS `tosca_csar`;
899/*!40101 SET @saved_cs_client = @@character_set_client */;
900/*!40101 SET character_set_client = utf8 */;
901CREATE TABLE `tosca_csar` (
902 `ARTIFACT_UUID` varchar(200) NOT NULL,
903 `NAME` varchar(200) NOT NULL,
904 `VERSION` varchar(20) NOT NULL,
905 `DESCRIPTION` varchar(1200) DEFAULT NULL,
906 `ARTIFACT_CHECKSUM` varchar(200) NOT NULL,
907 `URL` varchar(200) NOT NULL,
908 `CREATION_TIMESTAMP` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
909 PRIMARY KEY (`ARTIFACT_UUID`)
910) ENGINE=InnoDB DEFAULT CHARSET=latin1;
911/*!40101 SET character_set_client = @saved_cs_client */;
912
913--
914-- Table structure for table `vf_module`
915--
916
917DROP TABLE IF EXISTS `vf_module`;
918/*!40101 SET @saved_cs_client = @@character_set_client */;
919/*!40101 SET character_set_client = utf8 */;
920CREATE TABLE `vf_module` (
921 `MODEL_UUID` varchar(200) NOT NULL,
922 `MODEL_INVARIANT_UUID` varchar(200) DEFAULT NULL,
923 `MODEL_VERSION` varchar(20) NOT NULL,
924 `MODEL_NAME` varchar(200) NOT NULL,
925 `DESCRIPTION` varchar(1200) DEFAULT NULL,
926 `IS_BASE` tinyint(1) NOT NULL,
927 `HEAT_TEMPLATE_ARTIFACT_UUID` varchar(200) DEFAULT NULL,
928 `VOL_HEAT_TEMPLATE_ARTIFACT_UUID` varchar(200) DEFAULT NULL,
929 `CREATION_TIMESTAMP` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
930 `VNF_RESOURCE_MODEL_UUID` varchar(200) NOT NULL,
931 PRIMARY KEY (`MODEL_UUID`,`VNF_RESOURCE_MODEL_UUID`),
932 KEY `fk_vf_module__vnf_resource1_idx` (`VNF_RESOURCE_MODEL_UUID`),
933 KEY `fk_vf_module__heat_template_art_uuid__heat_template1_idx` (`HEAT_TEMPLATE_ARTIFACT_UUID`),
934 KEY `fk_vf_module__vol_heat_template_art_uuid__heat_template2_idx` (`VOL_HEAT_TEMPLATE_ARTIFACT_UUID`),
935 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,
936 CONSTRAINT `fk_vf_module__vnf_resource1` FOREIGN KEY (`VNF_RESOURCE_MODEL_UUID`) REFERENCES `vnf_resource` (`MODEL_UUID`) ON DELETE CASCADE ON UPDATE CASCADE,
937 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
938) ENGINE=InnoDB DEFAULT CHARSET=latin1;
939/*!40101 SET character_set_client = @saved_cs_client */;
940
941--
942-- Table structure for table `vf_module_customization`
943--
944
945DROP TABLE IF EXISTS `vf_module_customization`;
946/*!40101 SET @saved_cs_client = @@character_set_client */;
947/*!40101 SET character_set_client = utf8 */;
948CREATE TABLE `vf_module_customization` (
949 `ID` int(13) NOT NULL AUTO_INCREMENT,
950 `MODEL_CUSTOMIZATION_UUID` varchar(200) NOT NULL,
951 `LABEL` varchar(200) DEFAULT NULL,
952 `INITIAL_COUNT` int(11) DEFAULT '0',
953 `MIN_INSTANCES` int(11) DEFAULT '0',
954 `MAX_INSTANCES` int(11) DEFAULT NULL,
955 `AVAILABILITY_ZONE_COUNT` int(11) DEFAULT NULL,
956 `HEAT_ENVIRONMENT_ARTIFACT_UUID` varchar(200) DEFAULT NULL,
957 `VOL_ENVIRONMENT_ARTIFACT_UUID` varchar(200) DEFAULT NULL,
958 `CREATION_TIMESTAMP` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
959 `VF_MODULE_MODEL_UUID` varchar(200) NOT NULL,
960 `VNF_RESOURCE_CUSTOMIZATION_ID` int(13) DEFAULT NULL,
961 PRIMARY KEY (`ID`),
962 KEY `fk_vf_module_customization__vf_module1_idx` (`VF_MODULE_MODEL_UUID`),
963 KEY `fk_vf_module_customization__heat_env__heat_environment1_idx` (`HEAT_ENVIRONMENT_ARTIFACT_UUID`),
964 KEY `fk_vf_module_customization__vol_env__heat_environment2_idx` (`VOL_ENVIRONMENT_ARTIFACT_UUID`),
965 KEY `fk_vf_module_customization_to_vnf_resource_customization` (`VNF_RESOURCE_CUSTOMIZATION_ID`),
966 KEY `vf_module_customization_model_cust_uuid_idx` (`MODEL_CUSTOMIZATION_UUID`),
967 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,
968 CONSTRAINT `fk_vf_module_customization__vf_module1` FOREIGN KEY (`VF_MODULE_MODEL_UUID`) REFERENCES `vf_module` (`MODEL_UUID`) ON DELETE CASCADE ON UPDATE CASCADE,
969 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,
970 CONSTRAINT `fk_vf_module_customization_to_vnf_resource_customization` FOREIGN KEY (`VNF_RESOURCE_CUSTOMIZATION_ID`) REFERENCES `vnf_resource_customization` (`ID`) ON DELETE CASCADE ON UPDATE CASCADE
971) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=latin1;
972/*!40101 SET character_set_client = @saved_cs_client */;
973
974--
975-- Table structure for table `vf_module_to_heat_files`
976--
977
978DROP TABLE IF EXISTS `vf_module_to_heat_files`;
979/*!40101 SET @saved_cs_client = @@character_set_client */;
980/*!40101 SET character_set_client = utf8 */;
981CREATE TABLE `vf_module_to_heat_files` (
982 `VF_MODULE_MODEL_UUID` varchar(200) NOT NULL,
983 `HEAT_FILES_ARTIFACT_UUID` varchar(200) NOT NULL,
984 PRIMARY KEY (`VF_MODULE_MODEL_UUID`,`HEAT_FILES_ARTIFACT_UUID`),
985 KEY `fk_vf_module_to_heat_files__heat_files__artifact_uuid1_idx` (`HEAT_FILES_ARTIFACT_UUID`),
986 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,
987 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
988) ENGINE=InnoDB DEFAULT CHARSET=latin1 COMMENT='il fait ce qu''il dit';
989/*!40101 SET character_set_client = @saved_cs_client */;
990
991--
992-- Table structure for table `vnf_components`
993--
994
995DROP TABLE IF EXISTS `vnf_components`;
996/*!40101 SET @saved_cs_client = @@character_set_client */;
997/*!40101 SET character_set_client = utf8 */;
998CREATE TABLE `vnf_components` (
999 `VNF_ID` int(11) NOT NULL,
1000 `COMPONENT_TYPE` varchar(20) NOT NULL,
1001 `HEAT_TEMPLATE_ID` int(11) DEFAULT NULL,
1002 `HEAT_ENVIRONMENT_ID` int(11) DEFAULT NULL,
1003 `CREATION_TIMESTAMP` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
1004 PRIMARY KEY (`VNF_ID`,`COMPONENT_TYPE`)
1005) ENGINE=InnoDB DEFAULT CHARSET=latin1;
1006/*!40101 SET character_set_client = @saved_cs_client */;
1007
1008--
1009-- Table structure for table `vnf_components_recipe`
1010--
1011
1012DROP TABLE IF EXISTS `vnf_components_recipe`;
1013/*!40101 SET @saved_cs_client = @@character_set_client */;
1014/*!40101 SET character_set_client = utf8 */;
1015CREATE TABLE `vnf_components_recipe` (
1016 `id` int(11) NOT NULL AUTO_INCREMENT,
1017 `VNF_TYPE` varchar(200) DEFAULT NULL,
1018 `VNF_COMPONENT_TYPE` varchar(45) NOT NULL,
1019 `ACTION` varchar(50) NOT NULL,
1020 `SERVICE_TYPE` varchar(45) DEFAULT NULL,
1021 `VERSION` varchar(20) NOT NULL,
1022 `DESCRIPTION` varchar(1200) DEFAULT NULL,
1023 `ORCHESTRATION_URI` varchar(256) NOT NULL,
1024 `VNF_COMPONENT_PARAM_XSD` varchar(2048) DEFAULT NULL,
1025 `RECIPE_TIMEOUT` int(11) DEFAULT NULL,
1026 `CREATION_TIMESTAMP` datetime DEFAULT CURRENT_TIMESTAMP,
1027 `VF_MODULE_MODEL_UUID` varchar(200) DEFAULT NULL,
1028 PRIMARY KEY (`id`),
1029 UNIQUE KEY `UK_4dpdwddaaclhc11wxsb7h59ma` (`VF_MODULE_MODEL_UUID`,`VNF_COMPONENT_TYPE`,`ACTION`,`VERSION`)
1030) ENGINE=InnoDB AUTO_INCREMENT=38 DEFAULT CHARSET=latin1;
1031/*!40101 SET character_set_client = @saved_cs_client */;
1032
1033--
1034-- Table structure for table `vnf_recipe`
1035--
1036
1037DROP TABLE IF EXISTS `vnf_recipe`;
1038/*!40101 SET @saved_cs_client = @@character_set_client */;
1039/*!40101 SET character_set_client = utf8 */;
1040CREATE TABLE `vnf_recipe` (
1041 `id` int(11) NOT NULL AUTO_INCREMENT,
1042 `NF_ROLE` varchar(200) DEFAULT NULL,
1043 `ACTION` varchar(50) NOT NULL,
1044 `SERVICE_TYPE` varchar(45) DEFAULT NULL,
1045 `VERSION_STR` varchar(20) NOT NULL,
1046 `DESCRIPTION` varchar(1200) DEFAULT NULL,
1047 `ORCHESTRATION_URI` varchar(256) NOT NULL,
1048 `VNF_PARAM_XSD` varchar(2048) DEFAULT NULL,
1049 `RECIPE_TIMEOUT` int(11) DEFAULT NULL,
1050 `CREATION_TIMESTAMP` datetime DEFAULT CURRENT_TIMESTAMP,
1051 `VF_MODULE_ID` varchar(100) DEFAULT NULL,
1052 PRIMARY KEY (`id`),
1053 UNIQUE KEY `UK_f3tvqau498vrifq3cr8qnigkr` (`VF_MODULE_ID`,`ACTION`,`VERSION_STR`)
1054) ENGINE=InnoDB AUTO_INCREMENT=10015 DEFAULT CHARSET=latin1;
1055/*!40101 SET character_set_client = @saved_cs_client */;
1056
1057--
1058-- Table structure for table `vnf_resource`
1059--
1060
1061DROP TABLE IF EXISTS `vnf_resource`;
1062/*!40101 SET @saved_cs_client = @@character_set_client */;
1063/*!40101 SET character_set_client = utf8 */;
1064CREATE TABLE `vnf_resource` (
1065 `ORCHESTRATION_MODE` varchar(20) NOT NULL DEFAULT 'HEAT',
1066 `DESCRIPTION` varchar(1200) DEFAULT NULL,
1067 `CREATION_TIMESTAMP` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
1068 `MODEL_UUID` varchar(200) NOT NULL,
1069 `AIC_VERSION_MIN` varchar(20) DEFAULT NULL,
1070 `AIC_VERSION_MAX` varchar(20) DEFAULT NULL,
1071 `MODEL_INVARIANT_UUID` varchar(200) DEFAULT NULL,
1072 `MODEL_VERSION` varchar(20) NOT NULL,
1073 `MODEL_NAME` varchar(200) DEFAULT NULL,
1074 `TOSCA_NODE_TYPE` varchar(200) DEFAULT NULL,
1075 `HEAT_TEMPLATE_ARTIFACT_UUID` varchar(200) DEFAULT NULL,
1076 `RESOURCE_CATEGORY` varchar(200) DEFAULT NULL,
1077 `RESOURCE_SUB_CATEGORY` varchar(200) DEFAULT NULL,
1078 PRIMARY KEY (`MODEL_UUID`),
1079 KEY `fk_vnf_resource__heat_template1` (`HEAT_TEMPLATE_ARTIFACT_UUID`),
1080 CONSTRAINT `fk_vnf_resource__heat_template1` FOREIGN KEY (`HEAT_TEMPLATE_ARTIFACT_UUID`) REFERENCES `heat_template` (`ARTIFACT_UUID`) ON DELETE CASCADE ON UPDATE CASCADE
1081) ENGINE=InnoDB DEFAULT CHARSET=latin1;
1082/*!40101 SET character_set_client = @saved_cs_client */;
1083
1084--
1085-- Table structure for table `vnf_resource_customization`
1086--
1087
1088DROP TABLE IF EXISTS `vnf_resource_customization`;
1089/*!40101 SET @saved_cs_client = @@character_set_client */;
1090/*!40101 SET character_set_client = utf8 */;
1091CREATE TABLE `vnf_resource_customization` (
1092 `ID` int(13) NOT NULL AUTO_INCREMENT,
1093 `MODEL_CUSTOMIZATION_UUID` varchar(200) NOT NULL,
1094 `MODEL_INSTANCE_NAME` varchar(200) NOT NULL,
1095 `MIN_INSTANCES` int(11) DEFAULT NULL,
1096 `MAX_INSTANCES` int(11) DEFAULT NULL,
1097 `AVAILABILITY_ZONE_MAX_COUNT` int(11) DEFAULT NULL,
1098 `NF_TYPE` varchar(200) DEFAULT NULL,
1099 `NF_ROLE` varchar(200) DEFAULT NULL,
1100 `NF_FUNCTION` varchar(200) DEFAULT NULL,
1101 `NF_NAMING_CODE` varchar(200) DEFAULT NULL,
1102 `MULTI_STAGE_DESIGN` varchar(20) DEFAULT NULL,
1103 `RESOURCE_INPUT` varchar(20000) DEFAULT NULL,
1104 `CDS_BLUEPRINT_NAME` varchar(200) default null,
1105 `CDS_BLUEPRINT_VERSION` varchar(20) default null,
eeginuxfccb6ec2019-04-02 14:11:08 +01001106 `SKIP_POST_INSTANTIATION_CONFIGURATION` boolean default true,
Benjamin, Max (mb388a)86f04e12019-04-02 22:54:57 -04001107 `CREATION_TIMESTAMP` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
1108 `VNF_RESOURCE_MODEL_UUID` varchar(200) NOT NULL,
1109 `SERVICE_MODEL_UUID` varchar(200) NOT NULL,
zm330458cc8d2019-04-23 10:46:53 +08001110 `VNFCINSTANCEGROUP_ORDER` varchar(200) default NULL,
Benjamin, Max (mb388a)86f04e12019-04-02 22:54:57 -04001111 PRIMARY KEY (`ID`),
1112 UNIQUE KEY `UK_vnf_resource_customization` (`MODEL_CUSTOMIZATION_UUID`,`SERVICE_MODEL_UUID`),
1113 KEY `fk_vnf_resource_customization__vnf_resource1_idx` (`VNF_RESOURCE_MODEL_UUID`),
1114 KEY `fk_vnf_resource_customization_to_service` (`SERVICE_MODEL_UUID`),
1115 KEY `vnf_resource_customization_mod_cust_uuid_idx` (`MODEL_CUSTOMIZATION_UUID`),
1116 CONSTRAINT `fk_vnf_resource_customization__vnf_resource1` FOREIGN KEY (`VNF_RESOURCE_MODEL_UUID`) REFERENCES `vnf_resource` (`MODEL_UUID`) ON DELETE CASCADE ON UPDATE CASCADE,
1117 CONSTRAINT `fk_vnf_resource_customization_to_service` FOREIGN KEY (`SERVICE_MODEL_UUID`) REFERENCES `service` (`MODEL_UUID`) ON DELETE CASCADE ON UPDATE CASCADE
1118) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=latin1;
1119/*!40101 SET character_set_client = @saved_cs_client */;
1120
1121--
1122-- Table structure for table `vnfc_customization`
1123--
1124
1125DROP TABLE IF EXISTS `vnfc_customization`;
1126/*!40101 SET @saved_cs_client = @@character_set_client */;
1127/*!40101 SET character_set_client = utf8 */;
1128CREATE TABLE `vnfc_customization` (
1129 `MODEL_CUSTOMIZATION_UUID` varchar(200) NOT NULL,
1130 `MODEL_INSTANCE_NAME` varchar(200) NOT NULL,
1131 `MODEL_UUID` varchar(200) NOT NULL,
1132 `MODEL_INVARIANT_UUID` varchar(200) NOT NULL,
1133 `MODEL_VERSION` varchar(20) NOT NULL,
1134 `MODEL_NAME` varchar(200) NOT NULL,
1135 `TOSCA_NODE_TYPE` varchar(200) NOT NULL,
1136 `DESCRIPTION` varchar(1200) DEFAULT NULL,
zm33084a1b182019-04-23 18:08:56 +08001137 `RESOURCE_INPUT` varchar(20000) DEFAULT NULL,
subhash kumar singh9797ba02019-04-20 15:41:18 +05301138 `VNFC_INSTANCE_GROUP_CUSTOMIZATION_ID` integer DEFAULT NULL,
Benjamin, Max (mb388a)86f04e12019-04-02 22:54:57 -04001139 `CREATION_TIMESTAMP` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
1140 PRIMARY KEY (`MODEL_CUSTOMIZATION_UUID`)
1141) ENGINE=InnoDB DEFAULT CHARSET=latin1;
1142/*!40101 SET character_set_client = @saved_cs_client */;
1143
1144--
1145-- Table structure for table `vnfc_instance_group_customization`
1146--
1147
1148DROP TABLE IF EXISTS `vnfc_instance_group_customization`;
1149/*!40101 SET @saved_cs_client = @@character_set_client */;
1150/*!40101 SET character_set_client = utf8 */;
1151CREATE TABLE `vnfc_instance_group_customization` (
1152 `ID` int(13) NOT NULL AUTO_INCREMENT PRIMARY KEY,
1153 `VNF_RESOURCE_CUSTOMIZATION_ID` int(13) NOT NULL,
1154 `INSTANCE_GROUP_MODEL_UUID` varchar(200) NOT NULL,
1155 `FUNCTION` varchar(200) DEFAULT NULL,
1156 `DESCRIPTION` varchar(1200) DEFAULT NULL,
1157 `CREATION_TIMESTAMP` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
1158 KEY `fk_vnfc_instance_group_customization__instance_group1_idx` (`INSTANCE_GROUP_MODEL_UUID`),
1159 CONSTRAINT `fk_vnfc_instance_group_customization__instance_group1` FOREIGN KEY (`INSTANCE_GROUP_MODEL_UUID`) REFERENCES `instance_group` (`MODEL_UUID`) ON DELETE CASCADE ON UPDATE CASCADE,
1160 CONSTRAINT `fk_vnfc_instance_group_customization_vnf_customization` FOREIGN KEY (`VNF_RESOURCE_CUSTOMIZATION_ID`) REFERENCES `vnf_resource_customization` (`ID`) ON DELETE CASCADE ON UPDATE CASCADE
1161) ENGINE=InnoDB DEFAULT CHARSET=latin1;
1162set foreign_key_checks=1;
1163
1164CREATE TABLE IF NOT EXISTS `pnf_resource` (
1165 `ORCHESTRATION_MODE` varchar(20) NOT NULL DEFAULT 'HEAT',
1166 `DESCRIPTION` varchar(1200) DEFAULT NULL,
1167 `CREATION_TIMESTAMP` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
1168 `MODEL_UUID` varchar(200) NOT NULL,
1169 `MODEL_INVARIANT_UUID` varchar(200) DEFAULT NULL,
1170 `MODEL_VERSION` varchar(20) NOT NULL,
1171 `MODEL_NAME` varchar(200) DEFAULT NULL,
1172 `TOSCA_NODE_TYPE` varchar(200) DEFAULT NULL,
1173 `RESOURCE_CATEGORY` varchar(200) DEFAULT NULL,
1174 `RESOURCE_SUB_CATEGORY` varchar(200) DEFAULT NULL,
1175 PRIMARY KEY (`MODEL_UUID`)
1176) ENGINE=InnoDB DEFAULT CHARSET=latin1;
1177
1178CREATE TABLE IF NOT EXISTS `pnf_resource_customization` (
1179 `MODEL_CUSTOMIZATION_UUID` varchar(200) NOT NULL,
1180 `MODEL_INSTANCE_NAME` varchar(200) NOT NULL,
1181 `NF_TYPE` varchar(200) DEFAULT NULL,
1182 `NF_ROLE` varchar(200) DEFAULT NULL,
1183 `NF_FUNCTION` varchar(200) DEFAULT NULL,
1184 `NF_NAMING_CODE` varchar(200) DEFAULT NULL,
1185 `CREATION_TIMESTAMP` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
1186 `PNF_RESOURCE_MODEL_UUID` varchar(200) NOT NULL,
1187 `MULTI_STAGE_DESIGN` varchar(20) DEFAULT NULL,
1188 `RESOURCE_INPUT` varchar(2000) DEFAULT NULL,
1189 `CDS_BLUEPRINT_NAME` varchar(200) DEFAULT NULL,
1190 `CDS_BLUEPRINT_VERSION` varchar(20) DEFAULT NULL,
eeginuxfccb6ec2019-04-02 14:11:08 +01001191 `SKIP_POST_INSTANTIATION_CONFIGURATION` boolean default true,
Benjamin, Max (mb388a)86f04e12019-04-02 22:54:57 -04001192 PRIMARY KEY (`MODEL_CUSTOMIZATION_UUID`),
1193 KEY `fk_pnf_resource_customization__pnf_resource1_idx` (`PNF_RESOURCE_MODEL_UUID`),
1194 CONSTRAINT `fk_pnf_resource_customization__pnf_resource1` FOREIGN KEY (`PNF_RESOURCE_MODEL_UUID`) REFERENCES `pnf_resource` (`MODEL_UUID`) ON DELETE CASCADE ON UPDATE CASCADE
1195) ENGINE=InnoDB DEFAULT CHARSET=latin1;
1196
1197CREATE TABLE IF NOT EXISTS `pnf_resource_customization_to_service` (
1198 `SERVICE_MODEL_UUID` varchar(200) NOT NULL,
1199 `RESOURCE_MODEL_CUSTOMIZATION_UUID` varchar(200) NOT NULL,
1200 PRIMARY KEY (`SERVICE_MODEL_UUID`,`RESOURCE_MODEL_CUSTOMIZATION_UUID`)
1201)ENGINE=InnoDB DEFAULT CHARSET=latin1;
Elena Kuleshoveeaa9572019-04-08 01:17:53 -04001202
Benjamin, Max (mb388a)7328b3f2019-04-21 11:11:21 -04001203CREATE TABLE IF NOT EXISTS `homing_instances` (
1204`SERVICE_INSTANCE_ID` varchar(50) NOT NULL,
1205`CLOUD_OWNER` VARCHAR(200) NOT NULL,
1206`CLOUD_REGION_ID` VARCHAR(200) NOT NULL,
1207`OOF_DIRECTIVES` longtext NULL DEFAULT NULL,
1208PRIMARY KEY (`SERVICE_INSTANCE_ID`)
1209) ENGINE=InnoDB DEFAULT CHARSET=latin1;
1210
Elena Kuleshoveeaa9572019-04-08 01:17:53 -04001211CREATE TABLE IF NOT EXISTS `workflow` (
1212 `ID` int(11) NOT NULL AUTO_INCREMENT,
1213 `ARTIFACT_UUID` varchar(200) NOT NULL,
1214 `ARTIFACT_NAME` varchar(200) NOT NULL,
1215 `NAME` varchar(200) NOT NULL,
1216 `OPERATION_NAME` varchar(200) DEFAULT NULL,
1217 `VERSION` double NOT NULL,
1218 `DESCRIPTION` varchar(1200) DEFAULT NULL,
1219 `BODY` longtext DEFAULT NULL,
1220 `RESOURCE_TARGET` varchar(200) NOT NULL,
1221 `SOURCE` varchar(200) NOT NULL,
1222 `TIMEOUT_MINUTES` int(11) DEFAULT NULL,
1223 `ARTIFACT_CHECKSUM` varchar(200) DEFAULT 'MANUAL RECORD',
1224 `CREATION_TIMESTAMP` datetime NOT NULL DEFAULT current_timestamp(),
1225 PRIMARY KEY (`ID`),
1226 UNIQUE KEY `UK_workflow` (`ARTIFACT_UUID`,`NAME`,`VERSION`,`SOURCE`)
1227) ENGINE=InnoDB DEFAULT CHARSET=latin1;
1228
1229CREATE TABLE IF NOT EXISTS `vnf_resource_to_workflow` (
1230 `ID` int(11) NOT NULL AUTO_INCREMENT,
1231 `VNF_RESOURCE_MODEL_UUID` varchar(200) NOT NULL,
1232 `WORKFLOW_ID` int(11) NOT NULL,
1233 PRIMARY KEY (`ID`),
1234 UNIQUE KEY `UK_vnf_resource_to_workflow` (`VNF_RESOURCE_MODEL_UUID`,`WORKFLOW_ID`),
1235 KEY `fk_vnf_resource_to_workflow__workflow1_idx` (`WORKFLOW_ID`),
1236 KEY `fk_vnf_resource_to_workflow__vnf_res_mod_uuid_idx` (`VNF_RESOURCE_MODEL_UUID`),
1237 CONSTRAINT `fk_vnf_resource_to_workflow__vnf_resource1` FOREIGN KEY (`VNF_RESOURCE_MODEL_UUID`) REFERENCES `vnf_resource` (`MODEL_UUID`) ON DELETE CASCADE ON UPDATE CASCADE,
1238 CONSTRAINT `fk_vnf_resource_to_workflow__workflow1` FOREIGN KEY (`WORKFLOW_ID`) REFERENCES `workflow` (`ID`) ON DELETE CASCADE ON UPDATE CASCADE
1239) ENGINE=InnoDB DEFAULT CHARSET=latin1;
1240
Benjamin, Max (mb388a)7328b3f2019-04-21 11:11:21 -04001241CREATE TABLE IF NOT EXISTS `activity_spec` (
1242 `ID` INT(11) NOT NULL AUTO_INCREMENT,
1243 `NAME` VARCHAR(200) NOT NULL,
1244 `DESCRIPTION` VARCHAR(1200) NOT NULL,
1245 `VERSION` DOUBLE NOT NULL,
1246 `CREATION_TIMESTAMP` DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
1247 PRIMARY KEY (`ID`),
1248 UNIQUE INDEX `UK_activity_spec` (`NAME` ASC, `VERSION` ASC))
1249ENGINE = InnoDB
1250DEFAULT CHARACTER SET = latin1;
Elena Kuleshoveeaa9572019-04-08 01:17:53 -04001251
Benjamin, Max (mb388a)7328b3f2019-04-21 11:11:21 -04001252CREATE TABLE IF NOT EXISTS `user_parameters` (
1253 `ID` INT(11) NOT NULL AUTO_INCREMENT,
1254 `NAME` VARCHAR(200) NOT NULL,
1255 `PAYLOAD_LOCATION` VARCHAR(500) NULL,
1256 `LABEL` VARCHAR(200) NOT NULL,
1257 `TYPE` VARCHAR(200) NOT NULL,
1258 `DESCRIPTION` VARCHAR(1200) NULL,
1259 `IS_REQUIRED` TINYINT(1) NOT NULL,
1260 `MAX_LENGTH` INT(11) NULL,
1261 `ALLOWABLE_CHARS` VARCHAR(200) NULL,
1262 `CREATION_TIMESTAMP` DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
1263 PRIMARY KEY (`ID`),
1264 UNIQUE INDEX `UK_user_parameters` (`NAME` ASC))
1265ENGINE = InnoDB
1266DEFAULT CHARACTER SET = latin1;
1267
1268CREATE TABLE IF NOT EXISTS `workflow_activity_spec_sequence` (
1269 `ID` INT(11) NOT NULL AUTO_INCREMENT,
1270 `WORKFLOW_ID` INT(11) NOT NULL,
1271 `ACTIVITY_SPEC_ID` INT(11) NOT NULL,
1272 `SEQ_NO` INT(11) NOT NULL,
1273 PRIMARY KEY (`ID`),
1274 UNIQUE INDEX `UK_workflow_activity_spec_sequence` (`WORKFLOW_ID` ASC, `ACTIVITY_SPEC_ID` ASC, `SEQ_NO` ASC),
1275 INDEX `fk_workflow_activity_spec_sequence__activity_spec_idx` (`ACTIVITY_SPEC_ID` ASC),
1276 INDEX `fk_workflow_activity_spec_sequence__workflow_actifact_uuid_idx` (`WORKFLOW_ID` ASC),
1277 CONSTRAINT `fk_workflow_activity_spec_sequence__activity_spec1`
1278 FOREIGN KEY (`ACTIVITY_SPEC_ID`)
1279 REFERENCES `activity_spec` (`ID`)
1280 ON DELETE CASCADE
1281 ON UPDATE CASCADE,
1282 CONSTRAINT `fk_workflow_activity_spec_sequence__workflow1`
1283 FOREIGN KEY (`WORKFLOW_ID`)
1284 REFERENCES `workflow` (`ID`)
1285 ON DELETE CASCADE
1286 ON UPDATE CASCADE)
1287ENGINE = InnoDB
1288DEFAULT CHARACTER SET = latin1;
1289
1290CREATE TABLE IF NOT EXISTS `activity_spec_parameters` (
1291 `ID` INT(11) NOT NULL AUTO_INCREMENT,
1292 `NAME` VARCHAR(200) NOT NULL,
1293 `TYPE` VARCHAR(200) NOT NULL,
1294 `DIRECTION` VARCHAR(200) NULL,
1295 `DESCRIPTION` VARCHAR(1200) NULL,
1296 `CREATION_TIMESTAMP` DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
1297 PRIMARY KEY (`ID`),
1298 UNIQUE INDEX `UK_activity_spec_parameters` (`NAME` ASC, `DIRECTION` ASC))
1299ENGINE = InnoDB
1300DEFAULT CHARACTER SET = latin1;
1301
1302CREATE TABLE IF NOT EXISTS `activity_spec_categories` (
1303 `ID` INT(11) NOT NULL AUTO_INCREMENT,
1304 `NAME` VARCHAR(200) NOT NULL,
1305 PRIMARY KEY (`ID`),
1306 UNIQUE INDEX `UK_activity_spec_categories` (`NAME` ASC))
1307ENGINE = InnoDB
1308DEFAULT CHARACTER SET = latin1;
1309
1310CREATE TABLE IF NOT EXISTS `activity_spec_to_activity_spec_categories` (
1311 `ID` INT(11) NOT NULL AUTO_INCREMENT,
1312 `ACTIVITY_SPEC_ID` INT(11) NOT NULL,
1313 `ACTIVITY_SPEC_CATEGORIES_ID` INT(11) NOT NULL,
1314 PRIMARY KEY (`ID`),
1315 UNIQUE INDEX `UK_activity_spec_to_activity_spec_categories` (`ACTIVITY_SPEC_ID` ASC, `ACTIVITY_SPEC_CATEGORIES_ID` ASC),
1316 INDEX `fk_activity_spec_to_activity_spec_categories__activity_spec_idx` (`ACTIVITY_SPEC_CATEGORIES_ID` ASC),
1317 INDEX `fk_activity_spec_to_activity_spec_categories__activity_spec_idx1` (`ACTIVITY_SPEC_ID` ASC),
1318 CONSTRAINT `fk_activity_spec_to_activity_spec_categories__activity_spec1`
1319 FOREIGN KEY (`ACTIVITY_SPEC_ID`)
1320 REFERENCES `activity_spec` (`ID`)
1321 ON DELETE CASCADE
1322 ON UPDATE CASCADE,
1323 CONSTRAINT `fk_activity_spec_to_activity_spec_categories__activity_spec_c1`
1324 FOREIGN KEY (`ACTIVITY_SPEC_CATEGORIES_ID`)
1325 REFERENCES `activity_spec_categories` (`ID`)
1326 ON DELETE CASCADE
1327 ON UPDATE CASCADE)
1328ENGINE = InnoDB
1329DEFAULT CHARACTER SET = latin1;
1330
1331CREATE TABLE IF NOT EXISTS `activity_spec_to_activity_spec_parameters` (
1332 `ID` INT(11) NOT NULL AUTO_INCREMENT,
1333 `ACTIVITY_SPEC_ID` INT(11) NOT NULL,
1334 `ACTIVITY_SPEC_PARAMETERS_ID` INT(11) NOT NULL,
1335 PRIMARY KEY (`ID`),
1336 INDEX `fk_activity_spec_to_activity_spec_params__act_sp_param_id_idx` (`ACTIVITY_SPEC_PARAMETERS_ID` ASC),
1337 UNIQUE INDEX `UK_activity_spec_to_activity_spec_parameters` (`ACTIVITY_SPEC_ID` ASC, `ACTIVITY_SPEC_PARAMETERS_ID` ASC),
1338 INDEX `fk_activity_spec_to_activity_spec_parameters__act_spec_id_idx` (`ACTIVITY_SPEC_ID` ASC),
1339 CONSTRAINT `fk_activity_spec_to_activity_spec_parameters__activity_spec_1`
1340 FOREIGN KEY (`ACTIVITY_SPEC_ID`)
1341 REFERENCES `activity_spec` (`ID`)
1342 ON DELETE CASCADE
1343 ON UPDATE CASCADE,
1344 CONSTRAINT `fk_activity_spec_to_activity_spec_parameters__activ_spec_param1`
1345 FOREIGN KEY (`ACTIVITY_SPEC_PARAMETERS_ID`)
1346 REFERENCES `activity_spec_parameters` (`ID`)
1347 ON DELETE CASCADE
1348 ON UPDATE CASCADE)
1349ENGINE = InnoDB
1350DEFAULT CHARACTER SET = latin1;
1351
1352CREATE TABLE IF NOT EXISTS `activity_spec_to_user_parameters` (
1353 `ID` INT(11) NOT NULL AUTO_INCREMENT,
1354 `ACTIVITY_SPEC_ID` INT(11) NOT NULL,
1355 `USER_PARAMETERS_ID` INT(11) NOT NULL,
1356 PRIMARY KEY (`ID`),
1357 UNIQUE INDEX `UK_activity_spec_to_user_parameters` (`ACTIVITY_SPEC_ID` ASC, `USER_PARAMETERS_ID` ASC),
1358 INDEX `fk_activity_spec_to_user_parameters__user_parameters1_idx` (`USER_PARAMETERS_ID` ASC),
1359 INDEX `fk_activity_spec_to_user_parameters__activity_spec1_idx` (`ACTIVITY_SPEC_ID` ASC),
1360 CONSTRAINT `fk_activity_spec_to_user_parameters__activity_spec1`
1361 FOREIGN KEY (`ACTIVITY_SPEC_ID`)
1362 REFERENCES `activity_spec` (`ID`)
1363 ON DELETE CASCADE
1364 ON UPDATE CASCADE,
1365 CONSTRAINT `fk_activity_spec_to_user_parameters__user_parameters1`
1366 FOREIGN KEY (`USER_PARAMETERS_ID`)
1367 REFERENCES `user_parameters` (`ID`)
1368 ON DELETE CASCADE
1369 ON UPDATE CASCADE)
1370ENGINE = InnoDB
1371DEFAULT CHARACTER SET = latin1;