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