blob: 9406bc445dd1d77525a95703142420c36d208604 [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,
720 PRIMARY KEY (`id`),
721 UNIQUE KEY `UK_northbound_request_ref_lookup` (`MIN_API_VERSION`,`REQUEST_SCOPE`,`ACTION`,`IS_ALACARTE`,`MACRO_ACTION`,`CLOUD_OWNER`)
722) ENGINE=InnoDB AUTO_INCREMENT=86 DEFAULT CHARSET=latin1;
723/*!40101 SET character_set_client = @saved_cs_client */;
724
725--
726-- Table structure for table `orchestration_flow_reference`
727--
728
729DROP TABLE IF EXISTS `orchestration_flow_reference`;
730/*!40101 SET @saved_cs_client = @@character_set_client */;
731/*!40101 SET character_set_client = utf8 */;
732CREATE TABLE `orchestration_flow_reference` (
733 `id` int(11) NOT NULL AUTO_INCREMENT,
734 `COMPOSITE_ACTION` varchar(200) NOT NULL,
735 `SEQ_NO` int(11) NOT NULL,
736 `FLOW_NAME` varchar(200) NOT NULL,
737 `FLOW_VERSION` double NOT NULL,
738 `NB_REQ_REF_LOOKUP_ID` int(11) NOT NULL,
739 PRIMARY KEY (`id`),
740 UNIQUE KEY `UK_orchestration_flow_reference` (`COMPOSITE_ACTION`,`FLOW_NAME`,`SEQ_NO`,`NB_REQ_REF_LOOKUP_ID`),
741 KEY `fk_orchestration_flow_reference__northbound_req_ref_look_idx` (`NB_REQ_REF_LOOKUP_ID`),
742 KEY `fk_orchestration_flow_reference__building_block_detail` (`FLOW_NAME`),
743 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
744) ENGINE=InnoDB AUTO_INCREMENT=398 DEFAULT CHARSET=latin1;
745/*!40101 SET character_set_client = @saved_cs_client */;
746
747--
748-- Table structure for table `orchestration_status_state_transition_directive`
749--
750
751DROP TABLE IF EXISTS `orchestration_status_state_transition_directive`;
752/*!40101 SET @saved_cs_client = @@character_set_client */;
753/*!40101 SET character_set_client = utf8 */;
754CREATE TABLE `orchestration_status_state_transition_directive` (
755 `id` int(11) NOT NULL AUTO_INCREMENT,
756 `RESOURCE_TYPE` varchar(25) NOT NULL,
757 `ORCHESTRATION_STATUS` varchar(25) NOT NULL,
758 `TARGET_ACTION` varchar(25) NOT NULL,
759 `FLOW_DIRECTIVE` varchar(25) NOT NULL,
760 PRIMARY KEY (`id`),
761 UNIQUE KEY `UK_orchestration_status_state_transition_directive` (`RESOURCE_TYPE`,`ORCHESTRATION_STATUS`,`TARGET_ACTION`)
762) ENGINE=InnoDB AUTO_INCREMENT=686 DEFAULT CHARSET=latin1;
763/*!40101 SET character_set_client = @saved_cs_client */;
764
765--
766-- Table structure for table `rainy_day_handler_macro`
767--
768
769DROP TABLE IF EXISTS `rainy_day_handler_macro`;
770/*!40101 SET @saved_cs_client = @@character_set_client */;
771/*!40101 SET character_set_client = utf8 */;
772CREATE TABLE `rainy_day_handler_macro` (
773 `id` int(11) NOT NULL AUTO_INCREMENT,
774 `FLOW_NAME` varchar(200) NOT NULL,
775 `SERVICE_TYPE` varchar(200) NOT NULL,
776 `VNF_TYPE` varchar(200) NOT NULL,
777 `ERROR_CODE` varchar(200) NOT NULL,
778 `WORK_STEP` varchar(200) NOT NULL,
779 `POLICY` varchar(200) NOT NULL,
780 `SECONDARY_POLICY` varchar(200) DEFAULT NULL,
781 PRIMARY KEY (`id`)
782) ENGINE=InnoDB AUTO_INCREMENT=93 DEFAULT CHARSET=latin1;
783/*!40101 SET character_set_client = @saved_cs_client */;
784
785--
786-- Table structure for table `service`
787--
788
789DROP TABLE IF EXISTS `service`;
790/*!40101 SET @saved_cs_client = @@character_set_client */;
791/*!40101 SET character_set_client = utf8 */;
792CREATE TABLE `service` (
793 `MODEL_UUID` varchar(200) NOT NULL,
794 `MODEL_NAME` varchar(200) NOT NULL,
795 `MODEL_INVARIANT_UUID` varchar(200) NOT NULL,
796 `MODEL_VERSION` varchar(20) NOT NULL,
797 `DESCRIPTION` varchar(1200) DEFAULT NULL,
798 `CREATION_TIMESTAMP` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
799 `TOSCA_CSAR_ARTIFACT_UUID` varchar(200) DEFAULT NULL,
800 `SERVICE_TYPE` varchar(200) DEFAULT NULL,
801 `SERVICE_ROLE` varchar(200) DEFAULT NULL,
802 `ENVIRONMENT_CONTEXT` varchar(200) DEFAULT NULL,
803 `WORKLOAD_CONTEXT` varchar(200) DEFAULT NULL,
804 `SERVICE_CATEGORY` varchar(200) DEFAULT NULL,
805 `RESOURCE_ORDER` varchar(200) default NULL,
Gamboa, Gilbert62b2e472019-06-06 14:23:36 -0400806 `OVERALL_DISTRIBUTION_STATUS` varchar(45),
807 `ONAP_GENERATED_NAMING` TINYINT(1) DEFAULT NULL,
808 `NAMING_POLICY` varchar(200) DEFAULT NULL,
Benjamin, Max (mb388a)86f04e12019-04-02 22:54:57 -0400809 PRIMARY KEY (`MODEL_UUID`),
810 KEY `fk_service__tosca_csar1_idx` (`TOSCA_CSAR_ARTIFACT_UUID`),
811 CONSTRAINT `fk_service__tosca_csar1` FOREIGN KEY (`TOSCA_CSAR_ARTIFACT_UUID`) REFERENCES `tosca_csar` (`ARTIFACT_UUID`) ON DELETE CASCADE ON UPDATE CASCADE
812) ENGINE=InnoDB DEFAULT CHARSET=latin1;
813/*!40101 SET character_set_client = @saved_cs_client */;
814
815--
816-- Table structure for table `service_proxy_customization`
817--
818
819DROP TABLE IF EXISTS `service_proxy_customization`;
820/*!40101 SET @saved_cs_client = @@character_set_client */;
821/*!40101 SET character_set_client = utf8 */;
822CREATE TABLE `service_proxy_customization` (
823 `MODEL_CUSTOMIZATION_UUID` varchar(200) NOT NULL,
824 `MODEL_INSTANCE_NAME` varchar(200) NOT NULL,
825 `MODEL_UUID` varchar(200) NOT NULL,
826 `MODEL_INVARIANT_UUID` varchar(200) NOT NULL,
827 `MODEL_VERSION` varchar(20) NOT NULL,
828 `MODEL_NAME` varchar(200) NOT NULL,
829 `TOSCA_NODE_TYPE` varchar(200) NOT NULL,
830 `DESCRIPTION` varchar(1200) DEFAULT NULL,
831 `SOURCE_SERVICE_MODEL_UUID` varchar(200) NOT NULL,
832 `CREATION_TIMESTAMP` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
833 PRIMARY KEY (`MODEL_CUSTOMIZATION_UUID`),
834 KEY `fk_service_proxy_customization__service1_idx` (`SOURCE_SERVICE_MODEL_UUID`),
835 CONSTRAINT `fk_service_proxy_resource_customization__service1` FOREIGN KEY (`SOURCE_SERVICE_MODEL_UUID`) REFERENCES `service` (`MODEL_UUID`) ON DELETE CASCADE ON UPDATE CASCADE
836) ENGINE=InnoDB DEFAULT CHARSET=latin1;
837/*!40101 SET character_set_client = @saved_cs_client */;
838
839--
840-- Table structure for table `service_proxy_customization_to_service`
841--
842
843DROP TABLE IF EXISTS `service_proxy_customization_to_service`;
844/*!40101 SET @saved_cs_client = @@character_set_client */;
845/*!40101 SET character_set_client = utf8 */;
846CREATE TABLE `service_proxy_customization_to_service` (
847 `SERVICE_MODEL_UUID` varchar(200) NOT NULL,
848 `RESOURCE_MODEL_CUSTOMIZATION_UUID` varchar(200) NOT NULL,
849 PRIMARY KEY (`SERVICE_MODEL_UUID`,`RESOURCE_MODEL_CUSTOMIZATION_UUID`)
850) ENGINE=InnoDB DEFAULT CHARSET=latin1;
851/*!40101 SET character_set_client = @saved_cs_client */;
852
853--
854-- Table structure for table `service_recipe`
855--
856
857DROP TABLE IF EXISTS `service_recipe`;
858/*!40101 SET @saved_cs_client = @@character_set_client */;
859/*!40101 SET character_set_client = utf8 */;
860CREATE TABLE `service_recipe` (
861 `id` int(11) NOT NULL AUTO_INCREMENT,
862 `ACTION` varchar(50) NOT NULL,
863 `VERSION_STR` varchar(20) DEFAULT NULL,
864 `DESCRIPTION` varchar(1200) DEFAULT NULL,
865 `ORCHESTRATION_URI` varchar(256) NOT NULL,
866 `SERVICE_PARAM_XSD` varchar(2048) DEFAULT NULL,
867 `RECIPE_TIMEOUT` int(11) DEFAULT NULL,
868 `SERVICE_TIMEOUT_INTERIM` int(11) DEFAULT NULL,
869 `CREATION_TIMESTAMP` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
870 `SERVICE_MODEL_UUID` varchar(200) NOT NULL,
871 PRIMARY KEY (`id`),
872 UNIQUE KEY `UK_7fav5dkux2v8g9d2i5ymudlgc` (`SERVICE_MODEL_UUID`,`ACTION`),
873 KEY `fk_service_recipe__service1_idx` (`SERVICE_MODEL_UUID`),
874 CONSTRAINT `fk_service_recipe__service1` FOREIGN KEY (`SERVICE_MODEL_UUID`) REFERENCES `service` (`MODEL_UUID`) ON DELETE CASCADE ON UPDATE CASCADE
875) ENGINE=InnoDB AUTO_INCREMENT=93 DEFAULT CHARSET=latin1;
876/*!40101 SET character_set_client = @saved_cs_client */;
877
878--
879-- Table structure for table `temp_network_heat_template_lookup`
880--
881
882DROP TABLE IF EXISTS `temp_network_heat_template_lookup`;
883/*!40101 SET @saved_cs_client = @@character_set_client */;
884/*!40101 SET character_set_client = utf8 */;
885CREATE TABLE `temp_network_heat_template_lookup` (
886 `NETWORK_RESOURCE_MODEL_NAME` varchar(200) NOT NULL,
887 `HEAT_TEMPLATE_ARTIFACT_UUID` varchar(200) NULL,
888 `AIC_VERSION_MIN` varchar(20) NULL,
889 `AIC_VERSION_MAX` varchar(20) DEFAULT NULL,
890 PRIMARY KEY (`NETWORK_RESOURCE_MODEL_NAME`),
891 KEY `fk_temp_network_heat_template_lookup__heat_template1_idx` (`HEAT_TEMPLATE_ARTIFACT_UUID`),
892 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
893) ENGINE=InnoDB DEFAULT CHARSET=latin1;
894/*!40101 SET character_set_client = @saved_cs_client */;
895
896--
897-- Table structure for table `tosca_csar`
898--
899
900DROP TABLE IF EXISTS `tosca_csar`;
901/*!40101 SET @saved_cs_client = @@character_set_client */;
902/*!40101 SET character_set_client = utf8 */;
903CREATE TABLE `tosca_csar` (
904 `ARTIFACT_UUID` varchar(200) NOT NULL,
905 `NAME` varchar(200) NOT NULL,
906 `VERSION` varchar(20) NOT NULL,
907 `DESCRIPTION` varchar(1200) DEFAULT NULL,
908 `ARTIFACT_CHECKSUM` varchar(200) NOT NULL,
909 `URL` varchar(200) NOT NULL,
910 `CREATION_TIMESTAMP` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
911 PRIMARY KEY (`ARTIFACT_UUID`)
912) ENGINE=InnoDB DEFAULT CHARSET=latin1;
913/*!40101 SET character_set_client = @saved_cs_client */;
914
915--
916-- Table structure for table `vf_module`
917--
918
919DROP TABLE IF EXISTS `vf_module`;
920/*!40101 SET @saved_cs_client = @@character_set_client */;
921/*!40101 SET character_set_client = utf8 */;
922CREATE TABLE `vf_module` (
923 `MODEL_UUID` varchar(200) NOT NULL,
924 `MODEL_INVARIANT_UUID` varchar(200) DEFAULT NULL,
925 `MODEL_VERSION` varchar(20) NOT NULL,
926 `MODEL_NAME` varchar(200) NOT NULL,
927 `DESCRIPTION` varchar(1200) DEFAULT NULL,
928 `IS_BASE` tinyint(1) NOT NULL,
929 `HEAT_TEMPLATE_ARTIFACT_UUID` varchar(200) DEFAULT NULL,
930 `VOL_HEAT_TEMPLATE_ARTIFACT_UUID` varchar(200) DEFAULT NULL,
931 `CREATION_TIMESTAMP` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
932 `VNF_RESOURCE_MODEL_UUID` varchar(200) NOT NULL,
933 PRIMARY KEY (`MODEL_UUID`,`VNF_RESOURCE_MODEL_UUID`),
934 KEY `fk_vf_module__vnf_resource1_idx` (`VNF_RESOURCE_MODEL_UUID`),
935 KEY `fk_vf_module__heat_template_art_uuid__heat_template1_idx` (`HEAT_TEMPLATE_ARTIFACT_UUID`),
936 KEY `fk_vf_module__vol_heat_template_art_uuid__heat_template2_idx` (`VOL_HEAT_TEMPLATE_ARTIFACT_UUID`),
937 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,
938 CONSTRAINT `fk_vf_module__vnf_resource1` FOREIGN KEY (`VNF_RESOURCE_MODEL_UUID`) REFERENCES `vnf_resource` (`MODEL_UUID`) ON DELETE CASCADE ON UPDATE CASCADE,
939 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
940) ENGINE=InnoDB DEFAULT CHARSET=latin1;
941/*!40101 SET character_set_client = @saved_cs_client */;
942
943--
944-- Table structure for table `vf_module_customization`
945--
946
947DROP TABLE IF EXISTS `vf_module_customization`;
948/*!40101 SET @saved_cs_client = @@character_set_client */;
949/*!40101 SET character_set_client = utf8 */;
950CREATE TABLE `vf_module_customization` (
951 `ID` int(13) NOT NULL AUTO_INCREMENT,
952 `MODEL_CUSTOMIZATION_UUID` varchar(200) NOT NULL,
953 `LABEL` varchar(200) DEFAULT NULL,
954 `INITIAL_COUNT` int(11) DEFAULT '0',
955 `MIN_INSTANCES` int(11) DEFAULT '0',
956 `MAX_INSTANCES` int(11) DEFAULT NULL,
957 `AVAILABILITY_ZONE_COUNT` int(11) DEFAULT NULL,
958 `HEAT_ENVIRONMENT_ARTIFACT_UUID` varchar(200) DEFAULT NULL,
959 `VOL_ENVIRONMENT_ARTIFACT_UUID` varchar(200) DEFAULT NULL,
960 `CREATION_TIMESTAMP` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
961 `VF_MODULE_MODEL_UUID` varchar(200) NOT NULL,
962 `VNF_RESOURCE_CUSTOMIZATION_ID` int(13) DEFAULT NULL,
963 PRIMARY KEY (`ID`),
964 KEY `fk_vf_module_customization__vf_module1_idx` (`VF_MODULE_MODEL_UUID`),
965 KEY `fk_vf_module_customization__heat_env__heat_environment1_idx` (`HEAT_ENVIRONMENT_ARTIFACT_UUID`),
966 KEY `fk_vf_module_customization__vol_env__heat_environment2_idx` (`VOL_ENVIRONMENT_ARTIFACT_UUID`),
967 KEY `fk_vf_module_customization_to_vnf_resource_customization` (`VNF_RESOURCE_CUSTOMIZATION_ID`),
968 KEY `vf_module_customization_model_cust_uuid_idx` (`MODEL_CUSTOMIZATION_UUID`),
969 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,
970 CONSTRAINT `fk_vf_module_customization__vf_module1` FOREIGN KEY (`VF_MODULE_MODEL_UUID`) REFERENCES `vf_module` (`MODEL_UUID`) ON DELETE CASCADE ON UPDATE CASCADE,
971 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,
972 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
973) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=latin1;
974/*!40101 SET character_set_client = @saved_cs_client */;
975
976--
977-- Table structure for table `vf_module_to_heat_files`
978--
979
980DROP TABLE IF EXISTS `vf_module_to_heat_files`;
981/*!40101 SET @saved_cs_client = @@character_set_client */;
982/*!40101 SET character_set_client = utf8 */;
983CREATE TABLE `vf_module_to_heat_files` (
984 `VF_MODULE_MODEL_UUID` varchar(200) NOT NULL,
985 `HEAT_FILES_ARTIFACT_UUID` varchar(200) NOT NULL,
986 PRIMARY KEY (`VF_MODULE_MODEL_UUID`,`HEAT_FILES_ARTIFACT_UUID`),
987 KEY `fk_vf_module_to_heat_files__heat_files__artifact_uuid1_idx` (`HEAT_FILES_ARTIFACT_UUID`),
988 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,
989 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
990) ENGINE=InnoDB DEFAULT CHARSET=latin1 COMMENT='il fait ce qu''il dit';
991/*!40101 SET character_set_client = @saved_cs_client */;
992
993--
994-- Table structure for table `vnf_components`
995--
996
997DROP TABLE IF EXISTS `vnf_components`;
998/*!40101 SET @saved_cs_client = @@character_set_client */;
999/*!40101 SET character_set_client = utf8 */;
1000CREATE TABLE `vnf_components` (
1001 `VNF_ID` int(11) NOT NULL,
1002 `COMPONENT_TYPE` varchar(20) NOT NULL,
1003 `HEAT_TEMPLATE_ID` int(11) DEFAULT NULL,
1004 `HEAT_ENVIRONMENT_ID` int(11) DEFAULT NULL,
1005 `CREATION_TIMESTAMP` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
1006 PRIMARY KEY (`VNF_ID`,`COMPONENT_TYPE`)
1007) ENGINE=InnoDB DEFAULT CHARSET=latin1;
1008/*!40101 SET character_set_client = @saved_cs_client */;
1009
1010--
1011-- Table structure for table `vnf_components_recipe`
1012--
1013
1014DROP TABLE IF EXISTS `vnf_components_recipe`;
1015/*!40101 SET @saved_cs_client = @@character_set_client */;
1016/*!40101 SET character_set_client = utf8 */;
1017CREATE TABLE `vnf_components_recipe` (
1018 `id` int(11) NOT NULL AUTO_INCREMENT,
1019 `VNF_TYPE` varchar(200) DEFAULT NULL,
1020 `VNF_COMPONENT_TYPE` varchar(45) NOT NULL,
1021 `ACTION` varchar(50) NOT NULL,
1022 `SERVICE_TYPE` varchar(45) DEFAULT NULL,
1023 `VERSION` varchar(20) NOT NULL,
1024 `DESCRIPTION` varchar(1200) DEFAULT NULL,
1025 `ORCHESTRATION_URI` varchar(256) NOT NULL,
1026 `VNF_COMPONENT_PARAM_XSD` varchar(2048) DEFAULT NULL,
1027 `RECIPE_TIMEOUT` int(11) DEFAULT NULL,
1028 `CREATION_TIMESTAMP` datetime DEFAULT CURRENT_TIMESTAMP,
1029 `VF_MODULE_MODEL_UUID` varchar(200) DEFAULT NULL,
1030 PRIMARY KEY (`id`),
1031 UNIQUE KEY `UK_4dpdwddaaclhc11wxsb7h59ma` (`VF_MODULE_MODEL_UUID`,`VNF_COMPONENT_TYPE`,`ACTION`,`VERSION`)
1032) ENGINE=InnoDB AUTO_INCREMENT=38 DEFAULT CHARSET=latin1;
1033/*!40101 SET character_set_client = @saved_cs_client */;
1034
1035--
1036-- Table structure for table `vnf_recipe`
1037--
1038
1039DROP TABLE IF EXISTS `vnf_recipe`;
1040/*!40101 SET @saved_cs_client = @@character_set_client */;
1041/*!40101 SET character_set_client = utf8 */;
1042CREATE TABLE `vnf_recipe` (
1043 `id` int(11) NOT NULL AUTO_INCREMENT,
1044 `NF_ROLE` varchar(200) DEFAULT NULL,
1045 `ACTION` varchar(50) NOT NULL,
1046 `SERVICE_TYPE` varchar(45) DEFAULT NULL,
1047 `VERSION_STR` varchar(20) NOT NULL,
1048 `DESCRIPTION` varchar(1200) DEFAULT NULL,
1049 `ORCHESTRATION_URI` varchar(256) NOT NULL,
1050 `VNF_PARAM_XSD` varchar(2048) DEFAULT NULL,
1051 `RECIPE_TIMEOUT` int(11) DEFAULT NULL,
1052 `CREATION_TIMESTAMP` datetime DEFAULT CURRENT_TIMESTAMP,
1053 `VF_MODULE_ID` varchar(100) DEFAULT NULL,
1054 PRIMARY KEY (`id`),
1055 UNIQUE KEY `UK_f3tvqau498vrifq3cr8qnigkr` (`VF_MODULE_ID`,`ACTION`,`VERSION_STR`)
1056) ENGINE=InnoDB AUTO_INCREMENT=10015 DEFAULT CHARSET=latin1;
1057/*!40101 SET character_set_client = @saved_cs_client */;
1058
1059--
1060-- Table structure for table `vnf_resource`
1061--
1062
1063DROP TABLE IF EXISTS `vnf_resource`;
1064/*!40101 SET @saved_cs_client = @@character_set_client */;
1065/*!40101 SET character_set_client = utf8 */;
1066CREATE TABLE `vnf_resource` (
1067 `ORCHESTRATION_MODE` varchar(20) NOT NULL DEFAULT 'HEAT',
1068 `DESCRIPTION` varchar(1200) DEFAULT NULL,
1069 `CREATION_TIMESTAMP` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
1070 `MODEL_UUID` varchar(200) NOT NULL,
1071 `AIC_VERSION_MIN` varchar(20) DEFAULT NULL,
1072 `AIC_VERSION_MAX` varchar(20) DEFAULT NULL,
1073 `MODEL_INVARIANT_UUID` varchar(200) DEFAULT NULL,
1074 `MODEL_VERSION` varchar(20) NOT NULL,
1075 `MODEL_NAME` varchar(200) DEFAULT NULL,
1076 `TOSCA_NODE_TYPE` varchar(200) DEFAULT NULL,
1077 `HEAT_TEMPLATE_ARTIFACT_UUID` varchar(200) DEFAULT NULL,
1078 `RESOURCE_CATEGORY` varchar(200) DEFAULT NULL,
1079 `RESOURCE_SUB_CATEGORY` varchar(200) DEFAULT NULL,
1080 PRIMARY KEY (`MODEL_UUID`),
1081 KEY `fk_vnf_resource__heat_template1` (`HEAT_TEMPLATE_ARTIFACT_UUID`),
1082 CONSTRAINT `fk_vnf_resource__heat_template1` FOREIGN KEY (`HEAT_TEMPLATE_ARTIFACT_UUID`) REFERENCES `heat_template` (`ARTIFACT_UUID`) ON DELETE CASCADE ON UPDATE CASCADE
1083) ENGINE=InnoDB DEFAULT CHARSET=latin1;
1084/*!40101 SET character_set_client = @saved_cs_client */;
1085
1086--
1087-- Table structure for table `vnf_resource_customization`
1088--
1089
1090DROP TABLE IF EXISTS `vnf_resource_customization`;
1091/*!40101 SET @saved_cs_client = @@character_set_client */;
1092/*!40101 SET character_set_client = utf8 */;
1093CREATE TABLE `vnf_resource_customization` (
1094 `ID` int(13) NOT NULL AUTO_INCREMENT,
1095 `MODEL_CUSTOMIZATION_UUID` varchar(200) NOT NULL,
1096 `MODEL_INSTANCE_NAME` varchar(200) NOT NULL,
1097 `MIN_INSTANCES` int(11) DEFAULT NULL,
1098 `MAX_INSTANCES` int(11) DEFAULT NULL,
1099 `AVAILABILITY_ZONE_MAX_COUNT` int(11) DEFAULT NULL,
1100 `NF_TYPE` varchar(200) DEFAULT NULL,
1101 `NF_ROLE` varchar(200) DEFAULT NULL,
1102 `NF_FUNCTION` varchar(200) DEFAULT NULL,
1103 `NF_NAMING_CODE` varchar(200) DEFAULT NULL,
1104 `MULTI_STAGE_DESIGN` varchar(20) DEFAULT NULL,
1105 `RESOURCE_INPUT` varchar(20000) DEFAULT NULL,
1106 `CDS_BLUEPRINT_NAME` varchar(200) default null,
1107 `CDS_BLUEPRINT_VERSION` varchar(20) default null,
eeginuxfccb6ec2019-04-02 14:11:08 +01001108 `SKIP_POST_INSTANTIATION_CONFIGURATION` boolean default true,
Benjamin, Max (mb388a)86f04e12019-04-02 22:54:57 -04001109 `CREATION_TIMESTAMP` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
1110 `VNF_RESOURCE_MODEL_UUID` varchar(200) NOT NULL,
1111 `SERVICE_MODEL_UUID` varchar(200) NOT NULL,
Smokowski, Stevenfa36daa2019-08-15 21:40:16 -04001112 `NF_DATA_VALID` tinyint(1) DEFAULT '0',
zm330458cc8d2019-04-23 10:46:53 +08001113 `VNFCINSTANCEGROUP_ORDER` varchar(200) default NULL,
Benjamin, Max (mb388a)86f04e12019-04-02 22:54:57 -04001114 PRIMARY KEY (`ID`),
1115 UNIQUE KEY `UK_vnf_resource_customization` (`MODEL_CUSTOMIZATION_UUID`,`SERVICE_MODEL_UUID`),
1116 KEY `fk_vnf_resource_customization__vnf_resource1_idx` (`VNF_RESOURCE_MODEL_UUID`),
1117 KEY `fk_vnf_resource_customization_to_service` (`SERVICE_MODEL_UUID`),
1118 KEY `vnf_resource_customization_mod_cust_uuid_idx` (`MODEL_CUSTOMIZATION_UUID`),
1119 CONSTRAINT `fk_vnf_resource_customization__vnf_resource1` FOREIGN KEY (`VNF_RESOURCE_MODEL_UUID`) REFERENCES `vnf_resource` (`MODEL_UUID`) ON DELETE CASCADE ON UPDATE CASCADE,
1120 CONSTRAINT `fk_vnf_resource_customization_to_service` FOREIGN KEY (`SERVICE_MODEL_UUID`) REFERENCES `service` (`MODEL_UUID`) ON DELETE CASCADE ON UPDATE CASCADE
1121) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=latin1;
1122/*!40101 SET character_set_client = @saved_cs_client */;
1123
1124--
1125-- Table structure for table `vnfc_customization`
1126--
1127
1128DROP TABLE IF EXISTS `vnfc_customization`;
1129/*!40101 SET @saved_cs_client = @@character_set_client */;
1130/*!40101 SET character_set_client = utf8 */;
1131CREATE TABLE `vnfc_customization` (
1132 `MODEL_CUSTOMIZATION_UUID` varchar(200) NOT NULL,
1133 `MODEL_INSTANCE_NAME` varchar(200) NOT NULL,
1134 `MODEL_UUID` varchar(200) NOT NULL,
1135 `MODEL_INVARIANT_UUID` varchar(200) NOT NULL,
1136 `MODEL_VERSION` varchar(20) NOT NULL,
1137 `MODEL_NAME` varchar(200) NOT NULL,
1138 `TOSCA_NODE_TYPE` varchar(200) NOT NULL,
1139 `DESCRIPTION` varchar(1200) DEFAULT NULL,
zm33084a1b182019-04-23 18:08:56 +08001140 `RESOURCE_INPUT` varchar(20000) DEFAULT NULL,
subhash kumar singh9797ba02019-04-20 15:41:18 +05301141 `VNFC_INSTANCE_GROUP_CUSTOMIZATION_ID` integer DEFAULT NULL,
Benjamin, Max (mb388a)86f04e12019-04-02 22:54:57 -04001142 `CREATION_TIMESTAMP` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
1143 PRIMARY KEY (`MODEL_CUSTOMIZATION_UUID`)
1144) ENGINE=InnoDB DEFAULT CHARSET=latin1;
1145/*!40101 SET character_set_client = @saved_cs_client */;
1146
1147--
1148-- Table structure for table `vnfc_instance_group_customization`
1149--
1150
1151DROP TABLE IF EXISTS `vnfc_instance_group_customization`;
1152/*!40101 SET @saved_cs_client = @@character_set_client */;
1153/*!40101 SET character_set_client = utf8 */;
1154CREATE TABLE `vnfc_instance_group_customization` (
1155 `ID` int(13) NOT NULL AUTO_INCREMENT PRIMARY KEY,
1156 `VNF_RESOURCE_CUSTOMIZATION_ID` int(13) NOT NULL,
1157 `INSTANCE_GROUP_MODEL_UUID` varchar(200) NOT NULL,
1158 `FUNCTION` varchar(200) DEFAULT NULL,
1159 `DESCRIPTION` varchar(1200) DEFAULT NULL,
1160 `CREATION_TIMESTAMP` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
1161 KEY `fk_vnfc_instance_group_customization__instance_group1_idx` (`INSTANCE_GROUP_MODEL_UUID`),
1162 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,
1163 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
1164) ENGINE=InnoDB DEFAULT CHARSET=latin1;
1165set foreign_key_checks=1;
1166
1167CREATE TABLE IF NOT EXISTS `pnf_resource` (
1168 `ORCHESTRATION_MODE` varchar(20) NOT NULL DEFAULT 'HEAT',
1169 `DESCRIPTION` varchar(1200) DEFAULT NULL,
1170 `CREATION_TIMESTAMP` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
1171 `MODEL_UUID` varchar(200) NOT NULL,
1172 `MODEL_INVARIANT_UUID` varchar(200) DEFAULT NULL,
1173 `MODEL_VERSION` varchar(20) NOT NULL,
1174 `MODEL_NAME` varchar(200) DEFAULT NULL,
1175 `TOSCA_NODE_TYPE` varchar(200) DEFAULT NULL,
1176 `RESOURCE_CATEGORY` varchar(200) DEFAULT NULL,
1177 `RESOURCE_SUB_CATEGORY` varchar(200) DEFAULT NULL,
1178 PRIMARY KEY (`MODEL_UUID`)
1179) ENGINE=InnoDB DEFAULT CHARSET=latin1;
1180
1181CREATE TABLE IF NOT EXISTS `pnf_resource_customization` (
1182 `MODEL_CUSTOMIZATION_UUID` varchar(200) NOT NULL,
1183 `MODEL_INSTANCE_NAME` varchar(200) NOT NULL,
1184 `NF_TYPE` varchar(200) DEFAULT NULL,
1185 `NF_ROLE` varchar(200) DEFAULT NULL,
1186 `NF_FUNCTION` varchar(200) DEFAULT NULL,
1187 `NF_NAMING_CODE` varchar(200) DEFAULT NULL,
1188 `CREATION_TIMESTAMP` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
1189 `PNF_RESOURCE_MODEL_UUID` varchar(200) NOT NULL,
1190 `MULTI_STAGE_DESIGN` varchar(20) DEFAULT NULL,
1191 `RESOURCE_INPUT` varchar(2000) DEFAULT NULL,
1192 `CDS_BLUEPRINT_NAME` varchar(200) DEFAULT NULL,
1193 `CDS_BLUEPRINT_VERSION` varchar(20) DEFAULT NULL,
eeginuxfccb6ec2019-04-02 14:11:08 +01001194 `SKIP_POST_INSTANTIATION_CONFIGURATION` boolean default true,
Benjamin, Max (mb388a)86f04e12019-04-02 22:54:57 -04001195 PRIMARY KEY (`MODEL_CUSTOMIZATION_UUID`),
1196 KEY `fk_pnf_resource_customization__pnf_resource1_idx` (`PNF_RESOURCE_MODEL_UUID`),
1197 CONSTRAINT `fk_pnf_resource_customization__pnf_resource1` FOREIGN KEY (`PNF_RESOURCE_MODEL_UUID`) REFERENCES `pnf_resource` (`MODEL_UUID`) ON DELETE CASCADE ON UPDATE CASCADE
1198) ENGINE=InnoDB DEFAULT CHARSET=latin1;
1199
1200CREATE TABLE IF NOT EXISTS `pnf_resource_customization_to_service` (
1201 `SERVICE_MODEL_UUID` varchar(200) NOT NULL,
1202 `RESOURCE_MODEL_CUSTOMIZATION_UUID` varchar(200) NOT NULL,
1203 PRIMARY KEY (`SERVICE_MODEL_UUID`,`RESOURCE_MODEL_CUSTOMIZATION_UUID`)
1204)ENGINE=InnoDB DEFAULT CHARSET=latin1;
Elena Kuleshoveeaa9572019-04-08 01:17:53 -04001205
Benjamin, Max (mb388a)7328b3f2019-04-21 11:11:21 -04001206CREATE TABLE IF NOT EXISTS `homing_instances` (
1207`SERVICE_INSTANCE_ID` varchar(50) NOT NULL,
1208`CLOUD_OWNER` VARCHAR(200) NOT NULL,
1209`CLOUD_REGION_ID` VARCHAR(200) NOT NULL,
1210`OOF_DIRECTIVES` longtext NULL DEFAULT NULL,
1211PRIMARY KEY (`SERVICE_INSTANCE_ID`)
1212) ENGINE=InnoDB DEFAULT CHARSET=latin1;
1213
Elena Kuleshoveeaa9572019-04-08 01:17:53 -04001214CREATE TABLE IF NOT EXISTS `workflow` (
1215 `ID` int(11) NOT NULL AUTO_INCREMENT,
1216 `ARTIFACT_UUID` varchar(200) NOT NULL,
1217 `ARTIFACT_NAME` varchar(200) NOT NULL,
1218 `NAME` varchar(200) NOT NULL,
1219 `OPERATION_NAME` varchar(200) DEFAULT NULL,
1220 `VERSION` double NOT NULL,
1221 `DESCRIPTION` varchar(1200) DEFAULT NULL,
1222 `BODY` longtext DEFAULT NULL,
1223 `RESOURCE_TARGET` varchar(200) NOT NULL,
1224 `SOURCE` varchar(200) NOT NULL,
1225 `TIMEOUT_MINUTES` int(11) DEFAULT NULL,
1226 `ARTIFACT_CHECKSUM` varchar(200) DEFAULT 'MANUAL RECORD',
1227 `CREATION_TIMESTAMP` datetime NOT NULL DEFAULT current_timestamp(),
1228 PRIMARY KEY (`ID`),
1229 UNIQUE KEY `UK_workflow` (`ARTIFACT_UUID`,`NAME`,`VERSION`,`SOURCE`)
1230) ENGINE=InnoDB DEFAULT CHARSET=latin1;
1231
1232CREATE TABLE IF NOT EXISTS `vnf_resource_to_workflow` (
1233 `ID` int(11) NOT NULL AUTO_INCREMENT,
1234 `VNF_RESOURCE_MODEL_UUID` varchar(200) NOT NULL,
1235 `WORKFLOW_ID` int(11) NOT NULL,
1236 PRIMARY KEY (`ID`),
1237 UNIQUE KEY `UK_vnf_resource_to_workflow` (`VNF_RESOURCE_MODEL_UUID`,`WORKFLOW_ID`),
1238 KEY `fk_vnf_resource_to_workflow__workflow1_idx` (`WORKFLOW_ID`),
1239 KEY `fk_vnf_resource_to_workflow__vnf_res_mod_uuid_idx` (`VNF_RESOURCE_MODEL_UUID`),
1240 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,
1241 CONSTRAINT `fk_vnf_resource_to_workflow__workflow1` FOREIGN KEY (`WORKFLOW_ID`) REFERENCES `workflow` (`ID`) ON DELETE CASCADE ON UPDATE CASCADE
1242) ENGINE=InnoDB DEFAULT CHARSET=latin1;
1243
Benjamin, Max (mb388a)7328b3f2019-04-21 11:11:21 -04001244CREATE TABLE IF NOT EXISTS `activity_spec` (
1245 `ID` INT(11) NOT NULL AUTO_INCREMENT,
1246 `NAME` VARCHAR(200) NOT NULL,
1247 `DESCRIPTION` VARCHAR(1200) NOT NULL,
1248 `VERSION` DOUBLE NOT NULL,
1249 `CREATION_TIMESTAMP` DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
1250 PRIMARY KEY (`ID`),
1251 UNIQUE INDEX `UK_activity_spec` (`NAME` ASC, `VERSION` ASC))
1252ENGINE = InnoDB
1253DEFAULT CHARACTER SET = latin1;
Elena Kuleshoveeaa9572019-04-08 01:17:53 -04001254
Benjamin, Max (mb388a)7328b3f2019-04-21 11:11:21 -04001255CREATE TABLE IF NOT EXISTS `user_parameters` (
1256 `ID` INT(11) NOT NULL AUTO_INCREMENT,
1257 `NAME` VARCHAR(200) NOT NULL,
1258 `PAYLOAD_LOCATION` VARCHAR(500) NULL,
1259 `LABEL` VARCHAR(200) NOT NULL,
1260 `TYPE` VARCHAR(200) NOT NULL,
1261 `DESCRIPTION` VARCHAR(1200) NULL,
1262 `IS_REQUIRED` TINYINT(1) NOT NULL,
1263 `MAX_LENGTH` INT(11) NULL,
1264 `ALLOWABLE_CHARS` VARCHAR(200) NULL,
1265 `CREATION_TIMESTAMP` DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
1266 PRIMARY KEY (`ID`),
1267 UNIQUE INDEX `UK_user_parameters` (`NAME` ASC))
1268ENGINE = InnoDB
1269DEFAULT CHARACTER SET = latin1;
1270
1271CREATE TABLE IF NOT EXISTS `workflow_activity_spec_sequence` (
1272 `ID` INT(11) NOT NULL AUTO_INCREMENT,
1273 `WORKFLOW_ID` INT(11) NOT NULL,
1274 `ACTIVITY_SPEC_ID` INT(11) NOT NULL,
1275 `SEQ_NO` INT(11) NOT NULL,
1276 PRIMARY KEY (`ID`),
1277 UNIQUE INDEX `UK_workflow_activity_spec_sequence` (`WORKFLOW_ID` ASC, `ACTIVITY_SPEC_ID` ASC, `SEQ_NO` ASC),
1278 INDEX `fk_workflow_activity_spec_sequence__activity_spec_idx` (`ACTIVITY_SPEC_ID` ASC),
1279 INDEX `fk_workflow_activity_spec_sequence__workflow_actifact_uuid_idx` (`WORKFLOW_ID` ASC),
1280 CONSTRAINT `fk_workflow_activity_spec_sequence__activity_spec1`
1281 FOREIGN KEY (`ACTIVITY_SPEC_ID`)
1282 REFERENCES `activity_spec` (`ID`)
1283 ON DELETE CASCADE
1284 ON UPDATE CASCADE,
1285 CONSTRAINT `fk_workflow_activity_spec_sequence__workflow1`
1286 FOREIGN KEY (`WORKFLOW_ID`)
1287 REFERENCES `workflow` (`ID`)
1288 ON DELETE CASCADE
1289 ON UPDATE CASCADE)
1290ENGINE = InnoDB
1291DEFAULT CHARACTER SET = latin1;
1292
1293CREATE TABLE IF NOT EXISTS `activity_spec_parameters` (
1294 `ID` INT(11) NOT NULL AUTO_INCREMENT,
1295 `NAME` VARCHAR(200) NOT NULL,
1296 `TYPE` VARCHAR(200) NOT NULL,
1297 `DIRECTION` VARCHAR(200) NULL,
1298 `DESCRIPTION` VARCHAR(1200) NULL,
1299 `CREATION_TIMESTAMP` DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
1300 PRIMARY KEY (`ID`),
1301 UNIQUE INDEX `UK_activity_spec_parameters` (`NAME` ASC, `DIRECTION` ASC))
1302ENGINE = InnoDB
1303DEFAULT CHARACTER SET = latin1;
1304
1305CREATE TABLE IF NOT EXISTS `activity_spec_categories` (
1306 `ID` INT(11) NOT NULL AUTO_INCREMENT,
1307 `NAME` VARCHAR(200) NOT NULL,
1308 PRIMARY KEY (`ID`),
1309 UNIQUE INDEX `UK_activity_spec_categories` (`NAME` ASC))
1310ENGINE = InnoDB
1311DEFAULT CHARACTER SET = latin1;
1312
1313CREATE TABLE IF NOT EXISTS `activity_spec_to_activity_spec_categories` (
1314 `ID` INT(11) NOT NULL AUTO_INCREMENT,
1315 `ACTIVITY_SPEC_ID` INT(11) NOT NULL,
1316 `ACTIVITY_SPEC_CATEGORIES_ID` INT(11) NOT NULL,
1317 PRIMARY KEY (`ID`),
1318 UNIQUE INDEX `UK_activity_spec_to_activity_spec_categories` (`ACTIVITY_SPEC_ID` ASC, `ACTIVITY_SPEC_CATEGORIES_ID` ASC),
1319 INDEX `fk_activity_spec_to_activity_spec_categories__activity_spec_idx` (`ACTIVITY_SPEC_CATEGORIES_ID` ASC),
1320 INDEX `fk_activity_spec_to_activity_spec_categories__activity_spec_idx1` (`ACTIVITY_SPEC_ID` ASC),
1321 CONSTRAINT `fk_activity_spec_to_activity_spec_categories__activity_spec1`
1322 FOREIGN KEY (`ACTIVITY_SPEC_ID`)
1323 REFERENCES `activity_spec` (`ID`)
1324 ON DELETE CASCADE
1325 ON UPDATE CASCADE,
1326 CONSTRAINT `fk_activity_spec_to_activity_spec_categories__activity_spec_c1`
1327 FOREIGN KEY (`ACTIVITY_SPEC_CATEGORIES_ID`)
1328 REFERENCES `activity_spec_categories` (`ID`)
1329 ON DELETE CASCADE
1330 ON UPDATE CASCADE)
1331ENGINE = InnoDB
1332DEFAULT CHARACTER SET = latin1;
1333
1334CREATE TABLE IF NOT EXISTS `activity_spec_to_activity_spec_parameters` (
1335 `ID` INT(11) NOT NULL AUTO_INCREMENT,
1336 `ACTIVITY_SPEC_ID` INT(11) NOT NULL,
1337 `ACTIVITY_SPEC_PARAMETERS_ID` INT(11) NOT NULL,
1338 PRIMARY KEY (`ID`),
1339 INDEX `fk_activity_spec_to_activity_spec_params__act_sp_param_id_idx` (`ACTIVITY_SPEC_PARAMETERS_ID` ASC),
1340 UNIQUE INDEX `UK_activity_spec_to_activity_spec_parameters` (`ACTIVITY_SPEC_ID` ASC, `ACTIVITY_SPEC_PARAMETERS_ID` ASC),
1341 INDEX `fk_activity_spec_to_activity_spec_parameters__act_spec_id_idx` (`ACTIVITY_SPEC_ID` ASC),
1342 CONSTRAINT `fk_activity_spec_to_activity_spec_parameters__activity_spec_1`
1343 FOREIGN KEY (`ACTIVITY_SPEC_ID`)
1344 REFERENCES `activity_spec` (`ID`)
1345 ON DELETE CASCADE
1346 ON UPDATE CASCADE,
1347 CONSTRAINT `fk_activity_spec_to_activity_spec_parameters__activ_spec_param1`
1348 FOREIGN KEY (`ACTIVITY_SPEC_PARAMETERS_ID`)
1349 REFERENCES `activity_spec_parameters` (`ID`)
1350 ON DELETE CASCADE
1351 ON UPDATE CASCADE)
1352ENGINE = InnoDB
1353DEFAULT CHARACTER SET = latin1;
1354
1355CREATE TABLE IF NOT EXISTS `activity_spec_to_user_parameters` (
1356 `ID` INT(11) NOT NULL AUTO_INCREMENT,
1357 `ACTIVITY_SPEC_ID` INT(11) NOT NULL,
1358 `USER_PARAMETERS_ID` INT(11) NOT NULL,
1359 PRIMARY KEY (`ID`),
1360 UNIQUE INDEX `UK_activity_spec_to_user_parameters` (`ACTIVITY_SPEC_ID` ASC, `USER_PARAMETERS_ID` ASC),
1361 INDEX `fk_activity_spec_to_user_parameters__user_parameters1_idx` (`USER_PARAMETERS_ID` ASC),
1362 INDEX `fk_activity_spec_to_user_parameters__activity_spec1_idx` (`ACTIVITY_SPEC_ID` ASC),
1363 CONSTRAINT `fk_activity_spec_to_user_parameters__activity_spec1`
1364 FOREIGN KEY (`ACTIVITY_SPEC_ID`)
1365 REFERENCES `activity_spec` (`ID`)
1366 ON DELETE CASCADE
1367 ON UPDATE CASCADE,
1368 CONSTRAINT `fk_activity_spec_to_user_parameters__user_parameters1`
1369 FOREIGN KEY (`USER_PARAMETERS_ID`)
1370 REFERENCES `user_parameters` (`ID`)
1371 ON DELETE CASCADE
1372 ON UPDATE CASCADE)
1373ENGINE = InnoDB
1374DEFAULT CHARACTER SET = latin1;