blob: dc926310acf7847276bba4c88b569c6db9fe2744 [file] [log] [blame]
Benjamin, Max (mb388a)5a6a6de2018-07-30 15:56:09 -04001
2--------START Catalog DB SCHEMA --------
3use catalogdb;
Benjamin, Max (mb388a)86f04e12019-04-02 22:54:57 -04004set foreign_key_checks=0;
5DROP TABLE IF EXISTS `allotted_resource`;
6/*!40101 SET @saved_cs_client = @@character_set_client */;
7/*!40101 SET character_set_client = utf8 */;
8CREATE TABLE `allotted_resource` (
9 `MODEL_UUID` varchar(200) NOT NULL,
10 `MODEL_INVARIANT_UUID` varchar(200) NOT NULL,
11 `MODEL_VERSION` varchar(20) NOT NULL,
12 `MODEL_NAME` varchar(200) NOT NULL,
13 `TOSCA_NODE_TYPE` varchar(200) DEFAULT NULL,
14 `SUBCATEGORY` varchar(200) DEFAULT NULL,
15 `DESCRIPTION` varchar(1200) DEFAULT NULL,
16 `CREATION_TIMESTAMP` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
17 PRIMARY KEY (`MODEL_UUID`)
Benjamin, Max (mb388a)5a6a6de2018-07-30 15:56:09 -040018) ENGINE=InnoDB DEFAULT CHARSET=latin1;
Benjamin, Max (mb388a)86f04e12019-04-02 22:54:57 -040019/*!40101 SET character_set_client = @saved_cs_client */;
Benjamin, Max (mb388a)5a6a6de2018-07-30 15:56:09 -040020
Benjamin, Max (mb388a)86f04e12019-04-02 22:54:57 -040021--
22-- Table structure for table `allotted_resource_customization`
23--
Benjamin, Max (mb388a)5a6a6de2018-07-30 15:56:09 -040024
Benjamin, Max (mb388a)86f04e12019-04-02 22:54:57 -040025DROP TABLE IF EXISTS `allotted_resource_customization`;
26/*!40101 SET @saved_cs_client = @@character_set_client */;
27/*!40101 SET character_set_client = utf8 */;
28CREATE TABLE `allotted_resource_customization` (
29 `MODEL_CUSTOMIZATION_UUID` varchar(200) NOT NULL,
30 `MODEL_INSTANCE_NAME` varchar(200) NOT NULL,
31 `PROVIDING_SERVICE_MODEL_UUID` varchar(200) DEFAULT NULL,
32 `PROVIDING_SERVICE_MODEL_INVARIANT_UUID` varchar(200) DEFAULT NULL,
33 `PROVIDING_SERVICE_MODEL_NAME` varchar(200) DEFAULT NULL,
34 `TARGET_NETWORK_ROLE` varchar(200) DEFAULT NULL,
35 `NF_TYPE` varchar(200) DEFAULT NULL,
36 `NF_ROLE` varchar(200) DEFAULT NULL,
37 `NF_FUNCTION` varchar(200) DEFAULT NULL,
38 `NF_NAMING_CODE` varchar(200) DEFAULT NULL,
39 `MIN_INSTANCES` int(11) DEFAULT NULL,
40 `MAX_INSTANCES` int(11) DEFAULT NULL,
41 `RESOURCE_INPUT` varchar(20000) DEFAULT NULL,
42 `AR_MODEL_UUID` varchar(200) NOT NULL,
43 `CREATION_TIMESTAMP` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
44 PRIMARY KEY (`MODEL_CUSTOMIZATION_UUID`),
45 KEY `fk_allotted_resource_customization__allotted_resource1_idx` (`AR_MODEL_UUID`),
46 CONSTRAINT `fk_allotted_resource_customization__allotted_resource1` FOREIGN KEY (`AR_MODEL_UUID`) REFERENCES `allotted_resource` (`MODEL_UUID`) ON DELETE CASCADE ON UPDATE CASCADE
47) ENGINE=InnoDB DEFAULT CHARSET=latin1;
48/*!40101 SET character_set_client = @saved_cs_client */;
Benjamin, Max (mb388a)5a6a6de2018-07-30 15:56:09 -040049
Benjamin, Max (mb388a)86f04e12019-04-02 22:54:57 -040050--
51-- Table structure for table `allotted_resource_customization_to_service`
52--
Benjamin, Max (mb388a)5a6a6de2018-07-30 15:56:09 -040053
Benjamin, Max (mb388a)86f04e12019-04-02 22:54:57 -040054DROP TABLE IF EXISTS `allotted_resource_customization_to_service`;
55/*!40101 SET @saved_cs_client = @@character_set_client */;
56/*!40101 SET character_set_client = utf8 */;
57CREATE TABLE `allotted_resource_customization_to_service` (
58 `SERVICE_MODEL_UUID` varchar(200) NOT NULL,
59 `RESOURCE_MODEL_CUSTOMIZATION_UUID` varchar(200) NOT NULL,
60 PRIMARY KEY (`SERVICE_MODEL_UUID`,`RESOURCE_MODEL_CUSTOMIZATION_UUID`),
61 KEY `RESOURCE_MODEL_CUSTOMIZATION_UUID` (`RESOURCE_MODEL_CUSTOMIZATION_UUID`),
62 CONSTRAINT `allotted_resource_customization_to_service_ibfk_1` FOREIGN KEY (`SERVICE_MODEL_UUID`) REFERENCES `service` (`MODEL_UUID`) ON DELETE CASCADE,
63 CONSTRAINT `allotted_resource_customization_to_service_ibfk_2` FOREIGN KEY (`RESOURCE_MODEL_CUSTOMIZATION_UUID`) REFERENCES `allotted_resource_customization` (`MODEL_CUSTOMIZATION_UUID`) ON DELETE CASCADE
64) ENGINE=InnoDB DEFAULT CHARSET=latin1;
65/*!40101 SET character_set_client = @saved_cs_client */;
Benjamin, Max (mb388a)5a6a6de2018-07-30 15:56:09 -040066
Benjamin, Max (mb388a)86f04e12019-04-02 22:54:57 -040067--
68-- Table structure for table `ar_recipe`
69--
Benjamin, Max (mb388a)5a6a6de2018-07-30 15:56:09 -040070
Benjamin, Max (mb388a)86f04e12019-04-02 22:54:57 -040071DROP TABLE IF EXISTS `ar_recipe`;
72/*!40101 SET @saved_cs_client = @@character_set_client */;
73/*!40101 SET character_set_client = utf8 */;
74CREATE TABLE `ar_recipe` (
75 `ID` int(11) NOT NULL AUTO_INCREMENT,
76 `MODEL_NAME` varchar(200) NOT NULL,
77 `ACTION` varchar(200) NOT NULL,
78 `VERSION_STR` varchar(200) NOT NULL,
79 `SERVICE_TYPE` varchar(200) DEFAULT NULL,
80 `DESCRIPTION` varchar(200) DEFAULT NULL,
81 `ORCHESTRATION_URI` varchar(200) NOT NULL,
82 `AR_PARAM_XSD` varchar(200) DEFAULT NULL,
83 `RECIPE_TIMEOUT` int(11) DEFAULT NULL,
84 `CREATION_TIMESTAMP` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
85 PRIMARY KEY (`ID`),
86 UNIQUE KEY `uk_ar_recipe` (`MODEL_NAME`,`ACTION`,`VERSION_STR`)
87) ENGINE=InnoDB DEFAULT CHARSET=latin1;
88/*!40101 SET character_set_client = @saved_cs_client */;
Benjamin, Max (mb388a)5a6a6de2018-07-30 15:56:09 -040089
Benjamin, Max (mb388a)86f04e12019-04-02 22:54:57 -040090--
91-- Table structure for table `building_block_detail`
92--
Benjamin, Max (mb388a)5a6a6de2018-07-30 15:56:09 -040093
Benjamin, Max (mb388a)86f04e12019-04-02 22:54:57 -040094DROP TABLE IF EXISTS `building_block_detail`;
95/*!40101 SET @saved_cs_client = @@character_set_client */;
96/*!40101 SET character_set_client = utf8 */;
97CREATE TABLE `building_block_detail` (
98 `id` int(11) NOT NULL AUTO_INCREMENT,
99 `BUILDING_BLOCK_NAME` varchar(200) NOT NULL,
100 `RESOURCE_TYPE` varchar(25) NOT NULL,
101 `TARGET_ACTION` varchar(25) NOT NULL,
102 PRIMARY KEY (`id`),
103 UNIQUE KEY `UK_building_block_name` (`BUILDING_BLOCK_NAME`)
104) ENGINE=InnoDB AUTO_INCREMENT=104 DEFAULT CHARSET=latin1;
105/*!40101 SET character_set_client = @saved_cs_client */;
Benjamin, Max (mb388a)5a6a6de2018-07-30 15:56:09 -0400106
Benjamin, Max (mb388a)86f04e12019-04-02 22:54:57 -0400107--
108-- Table structure for table `cloud_sites`
109--
Benjamin, Max (mb388a)5a6a6de2018-07-30 15:56:09 -0400110
Benjamin, Max (mb388a)86f04e12019-04-02 22:54:57 -0400111DROP TABLE IF EXISTS `cloud_sites`;
112/*!40101 SET @saved_cs_client = @@character_set_client */;
113/*!40101 SET character_set_client = utf8 */;
114CREATE TABLE `cloud_sites` (
115 `ID` varchar(50) NOT NULL,
116 `REGION_ID` varchar(11) DEFAULT NULL,
117 `IDENTITY_SERVICE_ID` varchar(50) DEFAULT NULL,
118 `CLOUD_VERSION` varchar(20) DEFAULT NULL,
119 `CLLI` varchar(11) DEFAULT NULL,
120 `CLOUDIFY_ID` varchar(50) DEFAULT NULL,
121 `PLATFORM` varchar(50) DEFAULT NULL,
122 `ORCHESTRATOR` varchar(50) DEFAULT NULL,
123 `LAST_UPDATED_BY` varchar(120) DEFAULT NULL,
124 `CREATION_TIMESTAMP` timestamp NULL DEFAULT CURRENT_TIMESTAMP,
125 `UPDATE_TIMESTAMP` timestamp NULL DEFAULT CURRENT_TIMESTAMP,
126 PRIMARY KEY (`ID`),
127 KEY `FK_cloud_sites_identity_services` (`IDENTITY_SERVICE_ID`),
128 CONSTRAINT `FK_cloud_sites_identity_services` FOREIGN KEY (`IDENTITY_SERVICE_ID`) REFERENCES `identity_services` (`ID`)
129) ENGINE=InnoDB DEFAULT CHARSET=latin1;
130/*!40101 SET character_set_client = @saved_cs_client */;
Benjamin, Max (mb388a)5a6a6de2018-07-30 15:56:09 -0400131
Benjamin, Max (mb388a)86f04e12019-04-02 22:54:57 -0400132--
133-- Table structure for table `cloudify_managers`
134--
Benjamin, Max (mb388a)5a6a6de2018-07-30 15:56:09 -0400135
Benjamin, Max (mb388a)86f04e12019-04-02 22:54:57 -0400136DROP TABLE IF EXISTS `cloudify_managers`;
137/*!40101 SET @saved_cs_client = @@character_set_client */;
138/*!40101 SET character_set_client = utf8 */;
139CREATE TABLE `cloudify_managers` (
140 `ID` varchar(50) NOT NULL,
141 `CLOUDIFY_URL` varchar(200) DEFAULT NULL,
142 `USERNAME` varchar(255) DEFAULT NULL,
143 `PASSWORD` varchar(255) DEFAULT NULL,
144 `VERSION` varchar(20) DEFAULT NULL,
145 `LAST_UPDATED_BY` varchar(120) DEFAULT NULL,
146 `CREATION_TIMESTAMP` timestamp NULL DEFAULT CURRENT_TIMESTAMP,
147 `UPDATE_TIMESTAMP` timestamp NULL DEFAULT CURRENT_TIMESTAMP,
148 PRIMARY KEY (`ID`)
149) ENGINE=InnoDB DEFAULT CHARSET=latin1;
150/*!40101 SET character_set_client = @saved_cs_client */;
Benjamin, Max (mb388a)5a6a6de2018-07-30 15:56:09 -0400151
Benjamin, Max (mb388a)86f04e12019-04-02 22:54:57 -0400152--
153-- Table structure for table `collection_network_resource_customization`
154--
Benjamin, Max (mb388a)5a6a6de2018-07-30 15:56:09 -0400155
Benjamin, Max (mb388a)86f04e12019-04-02 22:54:57 -0400156DROP TABLE IF EXISTS `collection_network_resource_customization`;
157/*!40101 SET @saved_cs_client = @@character_set_client */;
158/*!40101 SET character_set_client = utf8 */;
159CREATE TABLE `collection_network_resource_customization` (
160 `MODEL_CUSTOMIZATION_UUID` varchar(200) NOT NULL,
161 `MODEL_INSTANCE_NAME` varchar(200) NOT NULL,
162 `NETWORK_TECHNOLOGY` varchar(45) DEFAULT NULL,
163 `NETWORK_TYPE` varchar(45) DEFAULT NULL,
164 `NETWORK_ROLE` varchar(200) DEFAULT NULL,
165 `NETWORK_SCOPE` varchar(45) DEFAULT NULL,
166 `CREATION_TIMESTAMP` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
167 `NETWORK_RESOURCE_MODEL_UUID` varchar(200) NOT NULL,
168 `INSTANCE_GROUP_MODEL_UUID` varchar(200) DEFAULT NULL,
169 `CRC_MODEL_CUSTOMIZATION_UUID` varchar(200) NOT NULL,
170 PRIMARY KEY (`MODEL_CUSTOMIZATION_UUID`,`CRC_MODEL_CUSTOMIZATION_UUID`),
171 KEY `fk_collection_net_resource_customization__network_resource1_idx` (`NETWORK_RESOURCE_MODEL_UUID`),
172 KEY `fk_collection_net_resource_customization__instance_group1_idx` (`INSTANCE_GROUP_MODEL_UUID`),
173 KEY `fk_col_net_res_customization__collection_res_customization_idx` (`CRC_MODEL_CUSTOMIZATION_UUID`),
174 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,
175 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,
176 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
177) ENGINE=InnoDB DEFAULT CHARSET=latin1;
178/*!40101 SET character_set_client = @saved_cs_client */;
Benjamin, Max (mb388a)5a6a6de2018-07-30 15:56:09 -0400179
Benjamin, Max (mb388a)86f04e12019-04-02 22:54:57 -0400180--
181-- Table structure for table `collection_resource`
182--
Benjamin, Max (mb388a)5a6a6de2018-07-30 15:56:09 -0400183
Benjamin, Max (mb388a)86f04e12019-04-02 22:54:57 -0400184DROP TABLE IF EXISTS `collection_resource`;
185/*!40101 SET @saved_cs_client = @@character_set_client */;
186/*!40101 SET character_set_client = utf8 */;
187CREATE TABLE `collection_resource` (
188 `MODEL_UUID` varchar(200) NOT NULL,
189 `MODEL_NAME` varchar(200) NOT NULL,
190 `MODEL_INVARIANT_UUID` varchar(200) NOT NULL,
191 `MODEL_VERSION` varchar(20) NOT NULL,
192 `TOSCA_NODE_TYPE` varchar(200) NOT NULL,
193 `DESCRIPTION` varchar(1200) DEFAULT NULL,
194 `CREATION_TIMESTAMP` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
195 PRIMARY KEY (`MODEL_UUID`)
196) ENGINE=InnoDB DEFAULT CHARSET=latin1;
197/*!40101 SET character_set_client = @saved_cs_client */;
Benjamin, Max (mb388a)5a6a6de2018-07-30 15:56:09 -0400198
Benjamin, Max (mb388a)86f04e12019-04-02 22:54:57 -0400199--
200-- Table structure for table `collection_resource_customization`
201--
Benjamin, Max (mb388a)5a6a6de2018-07-30 15:56:09 -0400202
Benjamin, Max (mb388a)86f04e12019-04-02 22:54:57 -0400203DROP TABLE IF EXISTS `collection_resource_customization`;
204/*!40101 SET @saved_cs_client = @@character_set_client */;
205/*!40101 SET character_set_client = utf8 */;
206CREATE TABLE `collection_resource_customization` (
207 `MODEL_CUSTOMIZATION_UUID` varchar(200) NOT NULL,
208 `MODEL_INSTANCE_NAME` varchar(200) NOT NULL,
209 `role` varchar(200) DEFAULT NULL,
210 `object_type` varchar(200) NOT NULL,
211 `function` varchar(200) DEFAULT NULL,
212 `collection_resource_type` varchar(200) DEFAULT NULL,
213 `CREATION_TIMESTAMP` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
214 `CR_MODEL_UUID` varchar(200) NOT NULL,
215 PRIMARY KEY (`MODEL_CUSTOMIZATION_UUID`),
216 KEY `CR_MODEL_UUID` (`CR_MODEL_UUID`),
217 CONSTRAINT `collection_resource_customization_ibfk_1` FOREIGN KEY (`CR_MODEL_UUID`) REFERENCES `collection_resource` (`MODEL_UUID`) ON DELETE CASCADE
218) ENGINE=InnoDB DEFAULT CHARSET=latin1;
219/*!40101 SET character_set_client = @saved_cs_client */;
Benjamin, Max (mb388a)5a6a6de2018-07-30 15:56:09 -0400220
Benjamin, Max (mb388a)86f04e12019-04-02 22:54:57 -0400221--
222-- Table structure for table `collection_resource_customization_to_service`
223--
Benjamin, Max (mb388a)5a6a6de2018-07-30 15:56:09 -0400224
Benjamin, Max (mb388a)86f04e12019-04-02 22:54:57 -0400225DROP TABLE IF EXISTS `collection_resource_customization_to_service`;
226/*!40101 SET @saved_cs_client = @@character_set_client */;
227/*!40101 SET character_set_client = utf8 */;
228CREATE TABLE `collection_resource_customization_to_service` (
229 `SERVICE_MODEL_UUID` varchar(200) NOT NULL,
230 `RESOURCE_MODEL_CUSTOMIZATION_UUID` varchar(200) NOT NULL,
231 PRIMARY KEY (`SERVICE_MODEL_UUID`,`RESOURCE_MODEL_CUSTOMIZATION_UUID`),
232 KEY `RESOURCE_MODEL_CUSTOMIZATION_UUID` (`RESOURCE_MODEL_CUSTOMIZATION_UUID`),
233 CONSTRAINT `collection_resource_customization_to_service_ibfk_1` FOREIGN KEY (`SERVICE_MODEL_UUID`) REFERENCES `service` (`MODEL_UUID`) ON DELETE CASCADE,
234 CONSTRAINT `collection_resource_customization_to_service_ibfk_2` FOREIGN KEY (`RESOURCE_MODEL_CUSTOMIZATION_UUID`) REFERENCES `collection_resource_customization` (`MODEL_CUSTOMIZATION_UUID`) ON DELETE CASCADE
235) ENGINE=InnoDB DEFAULT CHARSET=latin1;
236/*!40101 SET character_set_client = @saved_cs_client */;
Benjamin, Max (mb388a)5a6a6de2018-07-30 15:56:09 -0400237
Benjamin, Max (mb388a)86f04e12019-04-02 22:54:57 -0400238--
239-- Table structure for table `collection_resource_instance_group_customization`
240--
Benjamin, Max (mb388a)5a6a6de2018-07-30 15:56:09 -0400241
Benjamin, Max (mb388a)86f04e12019-04-02 22:54:57 -0400242DROP TABLE IF EXISTS `collection_resource_instance_group_customization`;
243/*!40101 SET @saved_cs_client = @@character_set_client */;
244/*!40101 SET character_set_client = utf8 */;
245CREATE TABLE `collection_resource_instance_group_customization` (
246 `COLLECTION_RESOURCE_CUSTOMIZATION_MODEL_UUID` varchar(200) NOT NULL,
247 `INSTANCE_GROUP_MODEL_UUID` varchar(200) NOT NULL,
248 `FUNCTION` varchar(200) DEFAULT NULL,
249 `DESCRIPTION` varchar(1200) DEFAULT NULL,
250 `SUBINTERFACE_NETWORK_QUANTITY` int(11) DEFAULT NULL,
251 `CREATION_TIMESTAMP` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
252 PRIMARY KEY (`COLLECTION_RESOURCE_CUSTOMIZATION_MODEL_UUID`,`INSTANCE_GROUP_MODEL_UUID`),
253 KEY `fk_collection_resource_instance_group_customization__instan_idx` (`INSTANCE_GROUP_MODEL_UUID`),
254 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,
255 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
256) ENGINE=InnoDB DEFAULT CHARSET=latin1;
257/*!40101 SET character_set_client = @saved_cs_client */;
Benjamin, Max (mb388a)69455a22018-09-04 11:21:02 -0400258
Benjamin, Max (mb388a)86f04e12019-04-02 22:54:57 -0400259--
260-- Table structure for table `configuration`
261--
Benjamin, Max (mb388a)69455a22018-09-04 11:21:02 -0400262
Benjamin, Max (mb388a)86f04e12019-04-02 22:54:57 -0400263DROP TABLE IF EXISTS `configuration`;
264/*!40101 SET @saved_cs_client = @@character_set_client */;
265/*!40101 SET character_set_client = utf8 */;
266CREATE TABLE `configuration` (
267 `MODEL_UUID` varchar(200) NOT NULL,
268 `MODEL_INVARIANT_UUID` varchar(200) NOT NULL,
269 `MODEL_VERSION` varchar(20) NOT NULL,
270 `MODEL_NAME` varchar(200) NOT NULL,
271 `TOSCA_NODE_TYPE` varchar(200) NOT NULL,
272 `DESCRIPTION` varchar(1200) DEFAULT NULL,
273 `CREATION_TIMESTAMP` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
274 PRIMARY KEY (`MODEL_UUID`)
275) ENGINE=InnoDB DEFAULT CHARSET=latin1;
276/*!40101 SET character_set_client = @saved_cs_client */;
Benjamin, Max (mb388a)69455a22018-09-04 11:21:02 -0400277
Benjamin, Max (mb388a)86f04e12019-04-02 22:54:57 -0400278--
279-- Table structure for table `configuration_customization`
280--
eeginux66481e12019-03-16 16:07:16 +0000281
Benjamin, Max (mb388a)86f04e12019-04-02 22:54:57 -0400282DROP TABLE IF EXISTS `configuration_customization`;
283/*!40101 SET @saved_cs_client = @@character_set_client */;
284/*!40101 SET character_set_client = utf8 */;
285CREATE TABLE `configuration_customization` (
286 `MODEL_CUSTOMIZATION_UUID` varchar(200) NOT NULL,
287 `MODEL_INSTANCE_NAME` varchar(200) NOT NULL,
288 `CONFIGURATION_TYPE` varchar(200) DEFAULT NULL,
289 `CONFIGURATION_ROLE` varchar(200) DEFAULT NULL,
290 `CONFIGURATION_FUNCTION` varchar(200) DEFAULT NULL,
291 `CREATION_TIMESTAMP` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
292 `CONFIGURATION_MODEL_UUID` varchar(200) NOT NULL,
293 `SERVICE_PROXY_CUSTOMIZATION_MODEL_CUSTOMIZATION_UUID` varchar(200) DEFAULT NULL,
294 `CONFIGURATION_CUSTOMIZATION_MODEL_CUSTOMIZATION_UUID` varchar(200) DEFAULT NULL,
295 PRIMARY KEY (`MODEL_CUSTOMIZATION_UUID`),
296 KEY `fk_configuration_customization__configuration_idx` (`CONFIGURATION_MODEL_UUID`),
297 KEY `fk_configuration_customization__service_proxy_customization_idx` (`SERVICE_PROXY_CUSTOMIZATION_MODEL_CUSTOMIZATION_UUID`),
298 KEY `fk_configuration_customization__configuration_customization_idx` (`CONFIGURATION_CUSTOMIZATION_MODEL_CUSTOMIZATION_UUID`),
299 CONSTRAINT `fk_configuration_customization__configuration_customization1` FOREIGN KEY (`CONFIGURATION_CUSTOMIZATION_MODEL_CUSTOMIZATION_UUID`) REFERENCES `configuration_customization` (`MODEL_CUSTOMIZATION_UUID`) ON DELETE CASCADE ON UPDATE CASCADE,
300 CONSTRAINT `fk_configuration_resource_customization__configuration_resour1` FOREIGN KEY (`CONFIGURATION_MODEL_UUID`) REFERENCES `configuration` (`MODEL_UUID`) ON DELETE CASCADE ON UPDATE CASCADE
301) ENGINE=InnoDB DEFAULT CHARSET=latin1;
302/*!40101 SET character_set_client = @saved_cs_client */;
303
304--
305-- Table structure for table `configuration_customization_to_service`
306--
307
308DROP TABLE IF EXISTS `configuration_customization_to_service`;
309/*!40101 SET @saved_cs_client = @@character_set_client */;
310/*!40101 SET character_set_client = utf8 */;
311CREATE TABLE `configuration_customization_to_service` (
312 `SERVICE_MODEL_UUID` varchar(200) NOT NULL,
313 `RESOURCE_MODEL_CUSTOMIZATION_UUID` varchar(200) NOT NULL,
314 PRIMARY KEY (`SERVICE_MODEL_UUID`,`RESOURCE_MODEL_CUSTOMIZATION_UUID`)
315) ENGINE=InnoDB DEFAULT CHARSET=latin1;
316/*!40101 SET character_set_client = @saved_cs_client */;
317
318--
319-- Table structure for table `controller_selection_reference`
320--
321
322DROP TABLE IF EXISTS `controller_selection_reference`;
323/*!40101 SET @saved_cs_client = @@character_set_client */;
324/*!40101 SET character_set_client = utf8 */;
325CREATE TABLE `controller_selection_reference` (
326 `VNF_TYPE` varchar(50) NOT NULL,
327 `CONTROLLER_NAME` varchar(100) NOT NULL,
328 `ACTION_CATEGORY` varchar(15) NOT NULL,
329 PRIMARY KEY (`VNF_TYPE`,`CONTROLLER_NAME`,`ACTION_CATEGORY`)
330) ENGINE=InnoDB DEFAULT CHARSET=latin1;
331/*!40101 SET character_set_client = @saved_cs_client */;
332
333--
334-- Table structure for table `cvnfc_configuration_customization`
335--
336
337DROP TABLE IF EXISTS `cvnfc_configuration_customization`;
338/*!40101 SET @saved_cs_client = @@character_set_client */;
339/*!40101 SET character_set_client = utf8 */;
340CREATE TABLE `cvnfc_configuration_customization` (
341 `ID` int(11) NOT NULL AUTO_INCREMENT,
342 `MODEL_CUSTOMIZATION_UUID` varchar(200) NOT NULL,
343 `MODEL_INSTANCE_NAME` varchar(200) NOT NULL,
344 `CONFIGURATION_TYPE` varchar(200) DEFAULT NULL,
345 `CONFIGURATION_ROLE` varchar(200) DEFAULT NULL,
346 `CONFIGURATION_FUNCTION` varchar(200) DEFAULT NULL,
347 `POLICY_NAME` varchar(200) DEFAULT NULL,
348 `CREATION_TIMESTAMP` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
349 `CONFIGURATION_MODEL_UUID` varchar(200) NOT NULL,
350 `CVNFC_CUSTOMIZATION_ID` int(11) DEFAULT NULL,
351 PRIMARY KEY (`ID`),
352 KEY `fk_vnf_vfmodule_cvnfc_config_cust__configuration_idx` (`CONFIGURATION_MODEL_UUID`),
353 CONSTRAINT `fk_vnf_vfmod_cvnfc_config_cust__configuration_resource` FOREIGN KEY (`CONFIGURATION_MODEL_UUID`) REFERENCES `configuration` (`MODEL_UUID`) ON DELETE CASCADE ON UPDATE CASCADE
354) ENGINE=InnoDB AUTO_INCREMENT=20655 DEFAULT CHARSET=latin1;
355/*!40101 SET character_set_client = @saved_cs_client */;
356
357--
358-- Table structure for table `cvnfc_customization`
359--
360
361DROP TABLE IF EXISTS `cvnfc_customization`;
362/*!40101 SET @saved_cs_client = @@character_set_client */;
363/*!40101 SET character_set_client = utf8 */;
364CREATE TABLE `cvnfc_customization` (
365 `ID` int(11) NOT NULL AUTO_INCREMENT,
366 `MODEL_CUSTOMIZATION_UUID` varchar(200) NOT NULL,
367 `MODEL_INSTANCE_NAME` varchar(200) NOT NULL,
368 `MODEL_UUID` varchar(200) NOT NULL,
369 `MODEL_INVARIANT_UUID` varchar(200) NOT NULL,
370 `MODEL_VERSION` varchar(20) NOT NULL,
371 `MODEL_NAME` varchar(200) NOT NULL,
372 `TOSCA_NODE_TYPE` varchar(200) NOT NULL,
373 `DESCRIPTION` varchar(1200) DEFAULT NULL,
374 `NFC_FUNCTION` varchar(200) DEFAULT NULL,
375 `NFC_NAMING_CODE` varchar(200) DEFAULT NULL,
376 `CREATION_TIMESTAMP` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
377 `VNFC_CUST_MODEL_CUSTOMIZATION_UUID` varchar(200) DEFAULT NULL,
378 `VF_MODULE_CUSTOMIZATION_ID` int(13) DEFAULT NULL,
379 PRIMARY KEY (`ID`),
380 KEY `fk_cvnfc_customization__vnfc_customization1_idx` (`VNFC_CUST_MODEL_CUSTOMIZATION_UUID`),
381 KEY `fk_cvnfc_customization__vnf_vfmod_cvnfc_config_cust1_idx` (`MODEL_CUSTOMIZATION_UUID`),
382 KEY `fk_cvnfc_customization_to_vf_module_resource_customization` (`VF_MODULE_CUSTOMIZATION_ID`),
383 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,
384 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
385) ENGINE=InnoDB AUTO_INCREMENT=20655 DEFAULT CHARSET=latin1;
386/*!40101 SET character_set_client = @saved_cs_client */;
387
388--
389-- Table structure for table `external_service_to_internal_model_mapping`
390--
391
392DROP TABLE IF EXISTS `external_service_to_internal_model_mapping`;
393/*!40101 SET @saved_cs_client = @@character_set_client */;
394/*!40101 SET character_set_client = utf8 */;
395CREATE TABLE `external_service_to_internal_model_mapping` (
396 `id` int(11) NOT NULL AUTO_INCREMENT,
397 `SERVICE_NAME` varchar(200) NOT NULL,
398 `PRODUCT_FLAVOR` varchar(200) DEFAULT NULL,
399 `SUBSCRIPTION_SERVICE_TYPE` varchar(200) NOT NULL,
400 `SERVICE_MODEL_UUID` varchar(200) NOT NULL,
401 PRIMARY KEY (`id`),
402 UNIQUE KEY `UK_external_service_to_internal_model_mapping` (`SERVICE_NAME`,`PRODUCT_FLAVOR`,`SERVICE_MODEL_UUID`)
403) ENGINE=InnoDB DEFAULT CHARSET=latin1;
404/*!40101 SET character_set_client = @saved_cs_client */;
405
406--
407-- Table structure for table `flyway_schema_history`
408--
409
410DROP TABLE IF EXISTS `flyway_schema_history`;
411/*!40101 SET @saved_cs_client = @@character_set_client */;
412/*!40101 SET character_set_client = utf8 */;
413CREATE TABLE `flyway_schema_history` (
414 `installed_rank` int(11) NOT NULL,
415 `version` varchar(50) DEFAULT NULL,
416 `description` varchar(200) NOT NULL,
417 `type` varchar(20) NOT NULL,
418 `script` varchar(1000) NOT NULL,
419 `checksum` int(11) DEFAULT NULL,
420 `installed_by` varchar(100) NOT NULL,
421 `installed_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
422 `execution_time` int(11) NOT NULL,
423 `success` tinyint(1) NOT NULL,
424 PRIMARY KEY (`installed_rank`),
425 KEY `flyway_schema_history_s_idx` (`success`)
426) ENGINE=InnoDB DEFAULT CHARSET=latin1;
427/*!40101 SET character_set_client = @saved_cs_client */;
428
429--
430-- Table structure for table `heat_environment`
431--
432
433DROP TABLE IF EXISTS `heat_environment`;
434/*!40101 SET @saved_cs_client = @@character_set_client */;
435/*!40101 SET character_set_client = utf8 */;
436CREATE TABLE `heat_environment` (
437 `ARTIFACT_UUID` varchar(200) NOT NULL,
438 `NAME` varchar(100) NOT NULL,
439 `VERSION` varchar(20) NOT NULL,
440 `DESCRIPTION` varchar(1200) DEFAULT NULL,
441 `BODY` longtext NOT NULL,
442 `ARTIFACT_CHECKSUM` varchar(200) NOT NULL DEFAULT 'MANUAL RECORD',
443 `CREATION_TIMESTAMP` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
444 PRIMARY KEY (`ARTIFACT_UUID`)
445) ENGINE=InnoDB DEFAULT CHARSET=latin1;
446/*!40101 SET character_set_client = @saved_cs_client */;
447
448--
449-- Table structure for table `heat_files`
450--
451
452DROP TABLE IF EXISTS `heat_files`;
453/*!40101 SET @saved_cs_client = @@character_set_client */;
454/*!40101 SET character_set_client = utf8 */;
455CREATE TABLE `heat_files` (
456 `ARTIFACT_UUID` varchar(200) NOT NULL,
457 `NAME` varchar(200) NOT NULL,
458 `VERSION` varchar(20) NOT NULL,
459 `DESCRIPTION` varchar(1200) DEFAULT NULL,
460 `BODY` longtext NOT NULL,
461 `ARTIFACT_CHECKSUM` varchar(200) NOT NULL DEFAULT 'MANUAL RECORD',
462 `CREATION_TIMESTAMP` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
463 PRIMARY KEY (`ARTIFACT_UUID`)
464) ENGINE=InnoDB DEFAULT CHARSET=latin1;
465/*!40101 SET character_set_client = @saved_cs_client */;
466
467--
468-- Table structure for table `heat_nested_template`
469--
470
471DROP TABLE IF EXISTS `heat_nested_template`;
472/*!40101 SET @saved_cs_client = @@character_set_client */;
473/*!40101 SET character_set_client = utf8 */;
474CREATE TABLE `heat_nested_template` (
475 `PARENT_HEAT_TEMPLATE_UUID` varchar(200) NOT NULL,
476 `CHILD_HEAT_TEMPLATE_UUID` varchar(200) NOT NULL,
477 `PROVIDER_RESOURCE_FILE` varchar(100) DEFAULT NULL,
478 PRIMARY KEY (`PARENT_HEAT_TEMPLATE_UUID`,`CHILD_HEAT_TEMPLATE_UUID`),
479 KEY `fk_heat_nested_template__heat_template2_idx` (`CHILD_HEAT_TEMPLATE_UUID`),
480 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,
481 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
482) ENGINE=InnoDB DEFAULT CHARSET=latin1;
483/*!40101 SET character_set_client = @saved_cs_client */;
484
485--
486-- Table structure for table `heat_template`
487--
488
489DROP TABLE IF EXISTS `heat_template`;
490/*!40101 SET @saved_cs_client = @@character_set_client */;
491/*!40101 SET character_set_client = utf8 */;
492CREATE TABLE `heat_template` (
493 `ARTIFACT_UUID` varchar(200) NOT NULL,
494 `NAME` varchar(200) NOT NULL,
495 `VERSION` varchar(20) NOT NULL,
496 `DESCRIPTION` varchar(1200) DEFAULT NULL,
497 `BODY` longtext NOT NULL,
498 `TIMEOUT_MINUTES` int(11) DEFAULT NULL,
499 `ARTIFACT_CHECKSUM` varchar(200) NOT NULL DEFAULT 'MANUAL RECORD',
500 `CREATION_TIMESTAMP` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
501 PRIMARY KEY (`ARTIFACT_UUID`)
502) ENGINE=InnoDB DEFAULT CHARSET=latin1;
503/*!40101 SET character_set_client = @saved_cs_client */;
504
505--
506-- Table structure for table `heat_template_params`
507--
508
509DROP TABLE IF EXISTS `heat_template_params`;
510/*!40101 SET @saved_cs_client = @@character_set_client */;
511/*!40101 SET character_set_client = utf8 */;
512CREATE TABLE `heat_template_params` (
513 `HEAT_TEMPLATE_ARTIFACT_UUID` varchar(200) NOT NULL,
514 `PARAM_NAME` varchar(100) NOT NULL,
515 `IS_REQUIRED` bit(1) NOT NULL,
516 `PARAM_TYPE` varchar(20) DEFAULT NULL,
517 `PARAM_ALIAS` varchar(45) DEFAULT NULL,
518 PRIMARY KEY (`HEAT_TEMPLATE_ARTIFACT_UUID`,`PARAM_NAME`),
519 CONSTRAINT `fk_heat_template_params__heat_template1` FOREIGN KEY (`HEAT_TEMPLATE_ARTIFACT_UUID`) REFERENCES `heat_template` (`ARTIFACT_UUID`) ON DELETE CASCADE ON UPDATE CASCADE
520) ENGINE=InnoDB DEFAULT CHARSET=latin1;
521/*!40101 SET character_set_client = @saved_cs_client */;
522
523--
524-- Table structure for table `identity_services`
525--
526
527DROP TABLE IF EXISTS `identity_services`;
528/*!40101 SET @saved_cs_client = @@character_set_client */;
529/*!40101 SET character_set_client = utf8 */;
530CREATE TABLE `identity_services` (
531 `ID` varchar(50) NOT NULL,
532 `IDENTITY_URL` varchar(200) DEFAULT NULL,
533 `MSO_ID` varchar(255) DEFAULT NULL,
534 `MSO_PASS` varchar(255) DEFAULT NULL,
535 `ADMIN_TENANT` varchar(50) DEFAULT NULL,
536 `MEMBER_ROLE` varchar(50) DEFAULT NULL,
537 `TENANT_METADATA` tinyint(1) DEFAULT '0',
538 `IDENTITY_SERVER_TYPE` varchar(50) DEFAULT NULL,
539 `IDENTITY_AUTHENTICATION_TYPE` varchar(50) DEFAULT NULL,
540 `LAST_UPDATED_BY` varchar(120) DEFAULT NULL,
541 `CREATION_TIMESTAMP` timestamp NULL DEFAULT CURRENT_TIMESTAMP,
542 `UPDATE_TIMESTAMP` timestamp NULL DEFAULT CURRENT_TIMESTAMP,
543 `PROJECT_DOMAIN_NAME` varchar(255) DEFAULT NULL,
544 `USER_DOMAIN_NAME` varchar(255) DEFAULT NULL,
545 PRIMARY KEY (`ID`)
546) ENGINE=InnoDB DEFAULT CHARSET=latin1;
547/*!40101 SET character_set_client = @saved_cs_client */;
548
549--
550-- Table structure for table `instance_group`
551--
552
553DROP TABLE IF EXISTS `instance_group`;
554/*!40101 SET @saved_cs_client = @@character_set_client */;
555/*!40101 SET character_set_client = utf8 */;
556CREATE TABLE `instance_group` (
557 `MODEL_UUID` varchar(200) NOT NULL,
558 `MODEL_NAME` varchar(200) NOT NULL,
559 `MODEL_INVARIANT_UUID` varchar(200) NOT NULL,
560 `MODEL_VERSION` varchar(20) NOT NULL,
561 `TOSCA_NODE_TYPE` varchar(200) DEFAULT NULL,
562 `ROLE` varchar(200) NOT NULL,
563 `OBJECT_TYPE` varchar(200) NOT NULL,
564 `CREATION_TIMESTAMP` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
565 `CR_MODEL_UUID` varchar(200) DEFAULT NULL,
566 `INSTANCE_GROUP_TYPE` varchar(200) NOT NULL,
567 PRIMARY KEY (`MODEL_UUID`),
568 KEY `CR_MODEL_UUID` (`CR_MODEL_UUID`)
569) ENGINE=InnoDB DEFAULT CHARSET=latin1;
570/*!40101 SET character_set_client = @saved_cs_client */;
571
572--
573-- Table structure for table `model`
574--
575
576DROP TABLE IF EXISTS `model`;
577/*!40101 SET @saved_cs_client = @@character_set_client */;
578/*!40101 SET character_set_client = utf8 */;
579CREATE TABLE `model` (
580 `ID` int(11) NOT NULL AUTO_INCREMENT,
581 `MODEL_CUSTOMIZATION_ID` varchar(40) DEFAULT NULL,
582 `MODEL_CUSTOMIZATION_NAME` varchar(40) DEFAULT NULL,
583 `MODEL_INVARIANT_ID` varchar(40) DEFAULT NULL,
584 `MODEL_NAME` varchar(40) DEFAULT NULL,
585 `MODEL_TYPE` varchar(20) DEFAULT NULL,
586 `MODEL_VERSION` varchar(20) DEFAULT NULL,
587 `MODEL_VERSION_ID` varchar(40) DEFAULT NULL,
588 `CREATION_TIMESTAMP` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
589 `RECIPE` int(11) DEFAULT NULL,
590 PRIMARY KEY (`ID`),
591 UNIQUE KEY `uk1_model` (`MODEL_TYPE`,`MODEL_VERSION_ID`),
592 KEY `RECIPE` (`RECIPE`),
593 CONSTRAINT `model_ibfk_1` FOREIGN KEY (`RECIPE`) REFERENCES `model_recipe` (`MODEL_ID`) ON DELETE CASCADE ON UPDATE CASCADE
594) ENGINE=InnoDB DEFAULT CHARSET=latin1;
595/*!40101 SET character_set_client = @saved_cs_client */;
596
597--
598-- Table structure for table `model_recipe`
599--
600
601DROP TABLE IF EXISTS `model_recipe`;
602/*!40101 SET @saved_cs_client = @@character_set_client */;
603/*!40101 SET character_set_client = utf8 */;
604CREATE TABLE `model_recipe` (
605 `ID` int(11) NOT NULL AUTO_INCREMENT,
606 `MODEL_ID` int(11) DEFAULT NULL,
607 `ACTION` varchar(40) DEFAULT NULL,
608 `SCHEMA_VERSION` varchar(40) DEFAULT NULL,
609 `DESCRIPTION` varchar(40) DEFAULT NULL,
610 `ORCHESTRATION_URI` varchar(20) DEFAULT NULL,
611 `MODEL_PARAM_XSD` varchar(20) DEFAULT NULL,
612 `RECIPE_TIMEOUT` int(11) DEFAULT NULL,
613 `CREATION_TIMESTAMP` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
614 PRIMARY KEY (`ID`),
615 UNIQUE KEY `uk1_model_recipe` (`MODEL_ID`,`ACTION`)
616) ENGINE=InnoDB DEFAULT CHARSET=latin1;
617/*!40101 SET character_set_client = @saved_cs_client */;
618
619--
620-- Table structure for table `network_recipe`
621--
622
623DROP TABLE IF EXISTS `network_recipe`;
624/*!40101 SET @saved_cs_client = @@character_set_client */;
625/*!40101 SET character_set_client = utf8 */;
626CREATE TABLE `network_recipe` (
627 `id` int(11) NOT NULL AUTO_INCREMENT,
628 `MODEL_NAME` varchar(20) NOT NULL,
629 `ACTION` varchar(50) NOT NULL,
630 `DESCRIPTION` varchar(1200) DEFAULT NULL,
631 `ORCHESTRATION_URI` varchar(256) NOT NULL,
632 `NETWORK_PARAM_XSD` varchar(2048) DEFAULT NULL,
633 `RECIPE_TIMEOUT` int(11) DEFAULT NULL,
634 `SERVICE_TYPE` varchar(45) DEFAULT NULL,
635 `CREATION_TIMESTAMP` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
636 `VERSION_STR` varchar(20) NOT NULL,
637 `RESOURCE_CATEGORY` varchar(200) DEFAULT NULL,
638 `RESOURCE_SUB_CATEGORY` varchar(200) DEFAULT NULL,
639 PRIMARY KEY (`id`),
640 UNIQUE KEY `UK_rl4f296i0p8lyokxveaiwkayi` (`MODEL_NAME`,`ACTION`,`VERSION_STR`)
641) ENGINE=InnoDB AUTO_INCREMENT=181 DEFAULT CHARSET=latin1;
642/*!40101 SET character_set_client = @saved_cs_client */;
643
644--
645-- Table structure for table `network_resource`
646--
647
648DROP TABLE IF EXISTS `network_resource`;
649/*!40101 SET @saved_cs_client = @@character_set_client */;
650/*!40101 SET character_set_client = utf8 */;
651CREATE TABLE `network_resource` (
652 `MODEL_UUID` varchar(200) NOT NULL,
653 `MODEL_NAME` varchar(200) NOT NULL,
654 `MODEL_INVARIANT_UUID` varchar(200) DEFAULT NULL,
655 `DESCRIPTION` varchar(1200) DEFAULT NULL,
656 `HEAT_TEMPLATE_ARTIFACT_UUID` varchar(200) NULL,
657 `NEUTRON_NETWORK_TYPE` varchar(20) DEFAULT NULL,
658 `MODEL_VERSION` varchar(20) DEFAULT NULL,
659 `TOSCA_NODE_TYPE` varchar(200) DEFAULT NULL,
660 `AIC_VERSION_MIN` varchar(20) NULL,
661 `AIC_VERSION_MAX` varchar(20) DEFAULT NULL,
662 `ORCHESTRATION_MODE` varchar(20) DEFAULT 'HEAT',
663 `CREATION_TIMESTAMP` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
664 `RESOURCE_CATEGORY` varchar(200) DEFAULT NULL,
665 `RESOURCE_SUB_CATEGORY` varchar(200) DEFAULT NULL,
666 PRIMARY KEY (`MODEL_UUID`),
667 KEY `fk_network_resource__temp_network_heat_template_lookup1_idx` (`MODEL_NAME`),
668 KEY `fk_network_resource__heat_template1_idx` (`HEAT_TEMPLATE_ARTIFACT_UUID`),
669 CONSTRAINT `fk_network_resource__heat_template1` FOREIGN KEY (`HEAT_TEMPLATE_ARTIFACT_UUID`) REFERENCES `heat_template` (`ARTIFACT_UUID`) ON DELETE NO ACTION ON UPDATE CASCADE,
670 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
671) ENGINE=InnoDB DEFAULT CHARSET=latin1;
672/*!40101 SET character_set_client = @saved_cs_client */;
673
674--
675-- Table structure for table `network_resource_customization`
676--
677
678DROP TABLE IF EXISTS `network_resource_customization`;
679/*!40101 SET @saved_cs_client = @@character_set_client */;
680/*!40101 SET character_set_client = utf8 */;
681CREATE TABLE `network_resource_customization` (
682 `MODEL_CUSTOMIZATION_UUID` varchar(200) NOT NULL,
683 `MODEL_INSTANCE_NAME` varchar(200) NOT NULL,
684 `NETWORK_TECHNOLOGY` varchar(45) DEFAULT NULL,
685 `NETWORK_TYPE` varchar(45) DEFAULT NULL,
686 `NETWORK_ROLE` varchar(200) DEFAULT NULL,
687 `NETWORK_SCOPE` varchar(45) DEFAULT NULL,
688 `RESOURCE_INPUT` varchar(20000) DEFAULT NULL,
689 `CREATION_TIMESTAMP` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
690 `NETWORK_RESOURCE_MODEL_UUID` varchar(200) NOT NULL,
691 PRIMARY KEY (`MODEL_CUSTOMIZATION_UUID`),
692 KEY `fk_network_resource_customization__network_resource1_idx` (`NETWORK_RESOURCE_MODEL_UUID`),
693 CONSTRAINT `fk_network_resource_customization__network_resource1` FOREIGN KEY (`NETWORK_RESOURCE_MODEL_UUID`) REFERENCES `network_resource` (`MODEL_UUID`) ON DELETE CASCADE ON UPDATE CASCADE
694) ENGINE=InnoDB DEFAULT CHARSET=latin1;
695/*!40101 SET character_set_client = @saved_cs_client */;
696
697--
698-- Table structure for table `network_resource_customization_to_service`
699--
700
701DROP TABLE IF EXISTS `network_resource_customization_to_service`;
702/*!40101 SET @saved_cs_client = @@character_set_client */;
703/*!40101 SET character_set_client = utf8 */;
704CREATE TABLE `network_resource_customization_to_service` (
705 `SERVICE_MODEL_UUID` varchar(200) NOT NULL,
706 `RESOURCE_MODEL_CUSTOMIZATION_UUID` varchar(200) NOT NULL,
707 PRIMARY KEY (`SERVICE_MODEL_UUID`,`RESOURCE_MODEL_CUSTOMIZATION_UUID`),
708 KEY `RESOURCE_MODEL_CUSTOMIZATION_UUID` (`RESOURCE_MODEL_CUSTOMIZATION_UUID`),
709 CONSTRAINT `network_resource_customization_to_service_ibfk_1` FOREIGN KEY (`SERVICE_MODEL_UUID`) REFERENCES `service` (`MODEL_UUID`) ON DELETE CASCADE,
710 CONSTRAINT `network_resource_customization_to_service_ibfk_2` FOREIGN KEY (`RESOURCE_MODEL_CUSTOMIZATION_UUID`) REFERENCES `network_resource_customization` (`MODEL_CUSTOMIZATION_UUID`) ON DELETE CASCADE
711) ENGINE=InnoDB DEFAULT CHARSET=latin1;
712/*!40101 SET character_set_client = @saved_cs_client */;
713
714--
715-- Table structure for table `northbound_request_ref_lookup`
716--
717
718DROP TABLE IF EXISTS `northbound_request_ref_lookup`;
719/*!40101 SET @saved_cs_client = @@character_set_client */;
720/*!40101 SET character_set_client = utf8 */;
721CREATE TABLE `northbound_request_ref_lookup` (
722 `id` int(11) NOT NULL AUTO_INCREMENT,
723 `REQUEST_SCOPE` varchar(200) NOT NULL,
724 `MACRO_ACTION` varchar(200) NOT NULL,
725 `ACTION` varchar(200) NOT NULL,
726 `IS_ALACARTE` tinyint(1) NOT NULL DEFAULT '0',
727 `MIN_API_VERSION` double NOT NULL,
728 `MAX_API_VERSION` double DEFAULT NULL,
729 `IS_TOPLEVELFLOW` tinyint(1) DEFAULT NULL,
730 `CLOUD_OWNER` varchar(200) NOT NULL,
731 PRIMARY KEY (`id`),
732 UNIQUE KEY `UK_northbound_request_ref_lookup` (`MIN_API_VERSION`,`REQUEST_SCOPE`,`ACTION`,`IS_ALACARTE`,`MACRO_ACTION`,`CLOUD_OWNER`)
733) ENGINE=InnoDB AUTO_INCREMENT=86 DEFAULT CHARSET=latin1;
734/*!40101 SET character_set_client = @saved_cs_client */;
735
736--
737-- Table structure for table `orchestration_flow_reference`
738--
739
740DROP TABLE IF EXISTS `orchestration_flow_reference`;
741/*!40101 SET @saved_cs_client = @@character_set_client */;
742/*!40101 SET character_set_client = utf8 */;
743CREATE TABLE `orchestration_flow_reference` (
744 `id` int(11) NOT NULL AUTO_INCREMENT,
745 `COMPOSITE_ACTION` varchar(200) NOT NULL,
746 `SEQ_NO` int(11) NOT NULL,
747 `FLOW_NAME` varchar(200) NOT NULL,
748 `FLOW_VERSION` double NOT NULL,
749 `NB_REQ_REF_LOOKUP_ID` int(11) NOT NULL,
750 PRIMARY KEY (`id`),
751 UNIQUE KEY `UK_orchestration_flow_reference` (`COMPOSITE_ACTION`,`FLOW_NAME`,`SEQ_NO`,`NB_REQ_REF_LOOKUP_ID`),
752 KEY `fk_orchestration_flow_reference__northbound_req_ref_look_idx` (`NB_REQ_REF_LOOKUP_ID`),
753 KEY `fk_orchestration_flow_reference__building_block_detail` (`FLOW_NAME`),
754 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
755) ENGINE=InnoDB AUTO_INCREMENT=398 DEFAULT CHARSET=latin1;
756/*!40101 SET character_set_client = @saved_cs_client */;
757
758--
759-- Table structure for table `orchestration_status_state_transition_directive`
760--
761
762DROP TABLE IF EXISTS `orchestration_status_state_transition_directive`;
763/*!40101 SET @saved_cs_client = @@character_set_client */;
764/*!40101 SET character_set_client = utf8 */;
765CREATE TABLE `orchestration_status_state_transition_directive` (
766 `id` int(11) NOT NULL AUTO_INCREMENT,
767 `RESOURCE_TYPE` varchar(25) NOT NULL,
768 `ORCHESTRATION_STATUS` varchar(25) NOT NULL,
769 `TARGET_ACTION` varchar(25) NOT NULL,
770 `FLOW_DIRECTIVE` varchar(25) NOT NULL,
771 PRIMARY KEY (`id`),
772 UNIQUE KEY `UK_orchestration_status_state_transition_directive` (`RESOURCE_TYPE`,`ORCHESTRATION_STATUS`,`TARGET_ACTION`)
773) ENGINE=InnoDB AUTO_INCREMENT=686 DEFAULT CHARSET=latin1;
774/*!40101 SET character_set_client = @saved_cs_client */;
775
776--
777-- Table structure for table `rainy_day_handler_macro`
778--
779
780DROP TABLE IF EXISTS `rainy_day_handler_macro`;
781/*!40101 SET @saved_cs_client = @@character_set_client */;
782/*!40101 SET character_set_client = utf8 */;
783CREATE TABLE `rainy_day_handler_macro` (
784 `id` int(11) NOT NULL AUTO_INCREMENT,
785 `FLOW_NAME` varchar(200) NOT NULL,
786 `SERVICE_TYPE` varchar(200) NOT NULL,
787 `VNF_TYPE` varchar(200) NOT NULL,
788 `ERROR_CODE` varchar(200) NOT NULL,
789 `WORK_STEP` varchar(200) NOT NULL,
790 `POLICY` varchar(200) NOT NULL,
791 `SECONDARY_POLICY` varchar(200) DEFAULT NULL,
792 PRIMARY KEY (`id`)
793) ENGINE=InnoDB AUTO_INCREMENT=93 DEFAULT CHARSET=latin1;
794/*!40101 SET character_set_client = @saved_cs_client */;
795
796--
797-- Table structure for table `service`
798--
799
800DROP TABLE IF EXISTS `service`;
801/*!40101 SET @saved_cs_client = @@character_set_client */;
802/*!40101 SET character_set_client = utf8 */;
803CREATE TABLE `service` (
804 `MODEL_UUID` varchar(200) NOT NULL,
805 `MODEL_NAME` varchar(200) NOT NULL,
806 `MODEL_INVARIANT_UUID` varchar(200) NOT NULL,
807 `MODEL_VERSION` varchar(20) NOT NULL,
808 `DESCRIPTION` varchar(1200) DEFAULT NULL,
809 `CREATION_TIMESTAMP` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
810 `TOSCA_CSAR_ARTIFACT_UUID` varchar(200) DEFAULT NULL,
811 `SERVICE_TYPE` varchar(200) DEFAULT NULL,
812 `SERVICE_ROLE` varchar(200) DEFAULT NULL,
813 `ENVIRONMENT_CONTEXT` varchar(200) DEFAULT NULL,
814 `WORKLOAD_CONTEXT` varchar(200) DEFAULT NULL,
815 `SERVICE_CATEGORY` varchar(200) DEFAULT NULL,
816 `RESOURCE_ORDER` varchar(200) default NULL,
817 PRIMARY KEY (`MODEL_UUID`),
818 KEY `fk_service__tosca_csar1_idx` (`TOSCA_CSAR_ARTIFACT_UUID`),
819 CONSTRAINT `fk_service__tosca_csar1` FOREIGN KEY (`TOSCA_CSAR_ARTIFACT_UUID`) REFERENCES `tosca_csar` (`ARTIFACT_UUID`) ON DELETE CASCADE ON UPDATE CASCADE
820) ENGINE=InnoDB DEFAULT CHARSET=latin1;
821/*!40101 SET character_set_client = @saved_cs_client */;
822
823--
824-- Table structure for table `service_proxy_customization`
825--
826
827DROP TABLE IF EXISTS `service_proxy_customization`;
828/*!40101 SET @saved_cs_client = @@character_set_client */;
829/*!40101 SET character_set_client = utf8 */;
830CREATE TABLE `service_proxy_customization` (
831 `MODEL_CUSTOMIZATION_UUID` varchar(200) NOT NULL,
832 `MODEL_INSTANCE_NAME` varchar(200) NOT NULL,
833 `MODEL_UUID` varchar(200) NOT NULL,
834 `MODEL_INVARIANT_UUID` varchar(200) NOT NULL,
835 `MODEL_VERSION` varchar(20) NOT NULL,
836 `MODEL_NAME` varchar(200) NOT NULL,
837 `TOSCA_NODE_TYPE` varchar(200) NOT NULL,
838 `DESCRIPTION` varchar(1200) DEFAULT NULL,
839 `SOURCE_SERVICE_MODEL_UUID` varchar(200) NOT NULL,
840 `CREATION_TIMESTAMP` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
841 PRIMARY KEY (`MODEL_CUSTOMIZATION_UUID`),
842 KEY `fk_service_proxy_customization__service1_idx` (`SOURCE_SERVICE_MODEL_UUID`),
843 CONSTRAINT `fk_service_proxy_resource_customization__service1` FOREIGN KEY (`SOURCE_SERVICE_MODEL_UUID`) REFERENCES `service` (`MODEL_UUID`) ON DELETE CASCADE ON UPDATE CASCADE
844) ENGINE=InnoDB DEFAULT CHARSET=latin1;
845/*!40101 SET character_set_client = @saved_cs_client */;
846
847--
848-- Table structure for table `service_proxy_customization_to_service`
849--
850
851DROP TABLE IF EXISTS `service_proxy_customization_to_service`;
852/*!40101 SET @saved_cs_client = @@character_set_client */;
853/*!40101 SET character_set_client = utf8 */;
854CREATE TABLE `service_proxy_customization_to_service` (
855 `SERVICE_MODEL_UUID` varchar(200) NOT NULL,
856 `RESOURCE_MODEL_CUSTOMIZATION_UUID` varchar(200) NOT NULL,
857 PRIMARY KEY (`SERVICE_MODEL_UUID`,`RESOURCE_MODEL_CUSTOMIZATION_UUID`)
858) ENGINE=InnoDB DEFAULT CHARSET=latin1;
859/*!40101 SET character_set_client = @saved_cs_client */;
860
861--
862-- Table structure for table `service_recipe`
863--
864
865DROP TABLE IF EXISTS `service_recipe`;
866/*!40101 SET @saved_cs_client = @@character_set_client */;
867/*!40101 SET character_set_client = utf8 */;
868CREATE TABLE `service_recipe` (
869 `id` int(11) NOT NULL AUTO_INCREMENT,
870 `ACTION` varchar(50) NOT NULL,
871 `VERSION_STR` varchar(20) DEFAULT NULL,
872 `DESCRIPTION` varchar(1200) DEFAULT NULL,
873 `ORCHESTRATION_URI` varchar(256) NOT NULL,
874 `SERVICE_PARAM_XSD` varchar(2048) DEFAULT NULL,
875 `RECIPE_TIMEOUT` int(11) DEFAULT NULL,
876 `SERVICE_TIMEOUT_INTERIM` int(11) DEFAULT NULL,
877 `CREATION_TIMESTAMP` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
878 `SERVICE_MODEL_UUID` varchar(200) NOT NULL,
879 PRIMARY KEY (`id`),
880 UNIQUE KEY `UK_7fav5dkux2v8g9d2i5ymudlgc` (`SERVICE_MODEL_UUID`,`ACTION`),
881 KEY `fk_service_recipe__service1_idx` (`SERVICE_MODEL_UUID`),
882 CONSTRAINT `fk_service_recipe__service1` FOREIGN KEY (`SERVICE_MODEL_UUID`) REFERENCES `service` (`MODEL_UUID`) ON DELETE CASCADE ON UPDATE CASCADE
883) ENGINE=InnoDB AUTO_INCREMENT=93 DEFAULT CHARSET=latin1;
884/*!40101 SET character_set_client = @saved_cs_client */;
885
886--
887-- Table structure for table `temp_network_heat_template_lookup`
888--
889
890DROP TABLE IF EXISTS `temp_network_heat_template_lookup`;
891/*!40101 SET @saved_cs_client = @@character_set_client */;
892/*!40101 SET character_set_client = utf8 */;
893CREATE TABLE `temp_network_heat_template_lookup` (
894 `NETWORK_RESOURCE_MODEL_NAME` varchar(200) NOT NULL,
895 `HEAT_TEMPLATE_ARTIFACT_UUID` varchar(200) NULL,
896 `AIC_VERSION_MIN` varchar(20) NULL,
897 `AIC_VERSION_MAX` varchar(20) DEFAULT NULL,
898 PRIMARY KEY (`NETWORK_RESOURCE_MODEL_NAME`),
899 KEY `fk_temp_network_heat_template_lookup__heat_template1_idx` (`HEAT_TEMPLATE_ARTIFACT_UUID`),
900 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
901) ENGINE=InnoDB DEFAULT CHARSET=latin1;
902/*!40101 SET character_set_client = @saved_cs_client */;
903
904--
905-- Table structure for table `tosca_csar`
906--
907
908DROP TABLE IF EXISTS `tosca_csar`;
909/*!40101 SET @saved_cs_client = @@character_set_client */;
910/*!40101 SET character_set_client = utf8 */;
911CREATE TABLE `tosca_csar` (
912 `ARTIFACT_UUID` varchar(200) NOT NULL,
913 `NAME` varchar(200) NOT NULL,
914 `VERSION` varchar(20) NOT NULL,
915 `DESCRIPTION` varchar(1200) DEFAULT NULL,
916 `ARTIFACT_CHECKSUM` varchar(200) NOT NULL,
917 `URL` varchar(200) NOT NULL,
918 `CREATION_TIMESTAMP` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
919 PRIMARY KEY (`ARTIFACT_UUID`)
920) ENGINE=InnoDB DEFAULT CHARSET=latin1;
921/*!40101 SET character_set_client = @saved_cs_client */;
922
923--
924-- Table structure for table `vf_module`
925--
926
927DROP TABLE IF EXISTS `vf_module`;
928/*!40101 SET @saved_cs_client = @@character_set_client */;
929/*!40101 SET character_set_client = utf8 */;
930CREATE TABLE `vf_module` (
931 `MODEL_UUID` varchar(200) NOT NULL,
932 `MODEL_INVARIANT_UUID` varchar(200) DEFAULT NULL,
933 `MODEL_VERSION` varchar(20) NOT NULL,
934 `MODEL_NAME` varchar(200) NOT NULL,
935 `DESCRIPTION` varchar(1200) DEFAULT NULL,
936 `IS_BASE` tinyint(1) NOT NULL,
937 `HEAT_TEMPLATE_ARTIFACT_UUID` varchar(200) DEFAULT NULL,
938 `VOL_HEAT_TEMPLATE_ARTIFACT_UUID` varchar(200) DEFAULT NULL,
939 `CREATION_TIMESTAMP` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
940 `VNF_RESOURCE_MODEL_UUID` varchar(200) NOT NULL,
941 PRIMARY KEY (`MODEL_UUID`,`VNF_RESOURCE_MODEL_UUID`),
942 KEY `fk_vf_module__vnf_resource1_idx` (`VNF_RESOURCE_MODEL_UUID`),
943 KEY `fk_vf_module__heat_template_art_uuid__heat_template1_idx` (`HEAT_TEMPLATE_ARTIFACT_UUID`),
944 KEY `fk_vf_module__vol_heat_template_art_uuid__heat_template2_idx` (`VOL_HEAT_TEMPLATE_ARTIFACT_UUID`),
945 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,
946 CONSTRAINT `fk_vf_module__vnf_resource1` FOREIGN KEY (`VNF_RESOURCE_MODEL_UUID`) REFERENCES `vnf_resource` (`MODEL_UUID`) ON DELETE CASCADE ON UPDATE CASCADE,
947 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
948) ENGINE=InnoDB DEFAULT CHARSET=latin1;
949/*!40101 SET character_set_client = @saved_cs_client */;
950
951--
952-- Table structure for table `vf_module_customization`
953--
954
955DROP TABLE IF EXISTS `vf_module_customization`;
956/*!40101 SET @saved_cs_client = @@character_set_client */;
957/*!40101 SET character_set_client = utf8 */;
958CREATE TABLE `vf_module_customization` (
959 `ID` int(13) NOT NULL AUTO_INCREMENT,
960 `MODEL_CUSTOMIZATION_UUID` varchar(200) NOT NULL,
961 `LABEL` varchar(200) DEFAULT NULL,
962 `INITIAL_COUNT` int(11) DEFAULT '0',
963 `MIN_INSTANCES` int(11) DEFAULT '0',
964 `MAX_INSTANCES` int(11) DEFAULT NULL,
965 `AVAILABILITY_ZONE_COUNT` int(11) DEFAULT NULL,
966 `HEAT_ENVIRONMENT_ARTIFACT_UUID` varchar(200) DEFAULT NULL,
967 `VOL_ENVIRONMENT_ARTIFACT_UUID` varchar(200) DEFAULT NULL,
968 `CREATION_TIMESTAMP` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
969 `VF_MODULE_MODEL_UUID` varchar(200) NOT NULL,
970 `VNF_RESOURCE_CUSTOMIZATION_ID` int(13) DEFAULT NULL,
971 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,
1120 PRIMARY KEY (`ID`),
1121 UNIQUE KEY `UK_vnf_resource_customization` (`MODEL_CUSTOMIZATION_UUID`,`SERVICE_MODEL_UUID`),
1122 KEY `fk_vnf_resource_customization__vnf_resource1_idx` (`VNF_RESOURCE_MODEL_UUID`),
1123 KEY `fk_vnf_resource_customization_to_service` (`SERVICE_MODEL_UUID`),
1124 KEY `vnf_resource_customization_mod_cust_uuid_idx` (`MODEL_CUSTOMIZATION_UUID`),
1125 CONSTRAINT `fk_vnf_resource_customization__vnf_resource1` FOREIGN KEY (`VNF_RESOURCE_MODEL_UUID`) REFERENCES `vnf_resource` (`MODEL_UUID`) ON DELETE CASCADE ON UPDATE CASCADE,
1126 CONSTRAINT `fk_vnf_resource_customization_to_service` FOREIGN KEY (`SERVICE_MODEL_UUID`) REFERENCES `service` (`MODEL_UUID`) ON DELETE CASCADE ON UPDATE CASCADE
1127) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=latin1;
1128/*!40101 SET character_set_client = @saved_cs_client */;
1129
1130--
1131-- Table structure for table `vnfc_customization`
1132--
1133
1134DROP TABLE IF EXISTS `vnfc_customization`;
1135/*!40101 SET @saved_cs_client = @@character_set_client */;
1136/*!40101 SET character_set_client = utf8 */;
1137CREATE TABLE `vnfc_customization` (
1138 `MODEL_CUSTOMIZATION_UUID` varchar(200) NOT NULL,
1139 `MODEL_INSTANCE_NAME` varchar(200) NOT NULL,
1140 `MODEL_UUID` varchar(200) NOT NULL,
1141 `MODEL_INVARIANT_UUID` varchar(200) NOT NULL,
1142 `MODEL_VERSION` varchar(20) NOT NULL,
1143 `MODEL_NAME` varchar(200) NOT NULL,
1144 `TOSCA_NODE_TYPE` varchar(200) NOT NULL,
1145 `DESCRIPTION` varchar(1200) DEFAULT NULL,
1146 `CREATION_TIMESTAMP` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
1147 PRIMARY KEY (`MODEL_CUSTOMIZATION_UUID`)
1148) ENGINE=InnoDB DEFAULT CHARSET=latin1;
1149/*!40101 SET character_set_client = @saved_cs_client */;
1150
1151--
1152-- Table structure for table `vnfc_instance_group_customization`
1153--
1154
1155DROP TABLE IF EXISTS `vnfc_instance_group_customization`;
1156/*!40101 SET @saved_cs_client = @@character_set_client */;
1157/*!40101 SET character_set_client = utf8 */;
1158CREATE TABLE `vnfc_instance_group_customization` (
1159 `ID` int(13) NOT NULL AUTO_INCREMENT PRIMARY KEY,
1160 `VNF_RESOURCE_CUSTOMIZATION_ID` int(13) NOT NULL,
1161 `INSTANCE_GROUP_MODEL_UUID` varchar(200) NOT NULL,
1162 `FUNCTION` varchar(200) DEFAULT NULL,
1163 `DESCRIPTION` varchar(1200) DEFAULT NULL,
1164 `CREATION_TIMESTAMP` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
1165 KEY `fk_vnfc_instance_group_customization__instance_group1_idx` (`INSTANCE_GROUP_MODEL_UUID`),
1166 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,
1167 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
1168) ENGINE=InnoDB DEFAULT CHARSET=latin1;
1169set foreign_key_checks=1;
Benjamin, Max (mb388a)69455a22018-09-04 11:21:02 -04001170
Benjamin, Max (mb388a)e8689682019-03-20 16:19:39 -04001171CREATE TABLE IF NOT EXISTS `pnf_resource` (
Smokowski, Steve (ss835w)8b56e8d2019-04-11 12:09:04 -04001172 `ORCHESTRATION_MODE` varchar(20) DEFAULT NULL,
Benjamin, Max (mb388a)e8689682019-03-20 16:19:39 -04001173 `DESCRIPTION` varchar(1200) DEFAULT NULL,
1174 `CREATION_TIMESTAMP` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
1175 `MODEL_UUID` varchar(200) NOT NULL,
1176 `MODEL_INVARIANT_UUID` varchar(200) DEFAULT NULL,
1177 `MODEL_VERSION` varchar(20) NOT NULL,
1178 `MODEL_NAME` varchar(200) DEFAULT NULL,
1179 `TOSCA_NODE_TYPE` varchar(200) DEFAULT NULL,
1180 `RESOURCE_CATEGORY` varchar(200) DEFAULT NULL,
1181 `RESOURCE_SUB_CATEGORY` varchar(200) DEFAULT NULL,
1182 PRIMARY KEY (`MODEL_UUID`)
1183) ENGINE=InnoDB DEFAULT CHARSET=latin1;
1184
1185CREATE TABLE IF NOT EXISTS `pnf_resource_customization` (
1186 `MODEL_CUSTOMIZATION_UUID` varchar(200) NOT NULL,
1187 `MODEL_INSTANCE_NAME` varchar(200) NOT NULL,
1188 `NF_TYPE` varchar(200) DEFAULT NULL,
1189 `NF_ROLE` varchar(200) DEFAULT NULL,
1190 `NF_FUNCTION` varchar(200) DEFAULT NULL,
1191 `NF_NAMING_CODE` varchar(200) DEFAULT NULL,
1192 `CREATION_TIMESTAMP` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
1193 `PNF_RESOURCE_MODEL_UUID` varchar(200) NOT NULL,
1194 `MULTI_STAGE_DESIGN` varchar(20) DEFAULT NULL,
1195 `RESOURCE_INPUT` varchar(2000) DEFAULT NULL,
1196 `CDS_BLUEPRINT_NAME` varchar(200) DEFAULT NULL,
1197 `CDS_BLUEPRINT_VERSION` varchar(20) DEFAULT NULL,
eeginuxfccb6ec2019-04-02 14:11:08 +01001198 `SKIP_POST_INSTANTIATION_CONFIGURATION` boolean default true,
Benjamin, Max (mb388a)e8689682019-03-20 16:19:39 -04001199 PRIMARY KEY (`MODEL_CUSTOMIZATION_UUID`),
1200 KEY `fk_pnf_resource_customization__pnf_resource1_idx` (`PNF_RESOURCE_MODEL_UUID`),
1201 CONSTRAINT `fk_pnf_resource_customization__pnf_resource1` FOREIGN KEY (`PNF_RESOURCE_MODEL_UUID`) REFERENCES `pnf_resource` (`MODEL_UUID`) ON DELETE CASCADE ON UPDATE CASCADE
1202) ENGINE=InnoDB DEFAULT CHARSET=latin1;
1203
1204CREATE TABLE IF NOT EXISTS `pnf_resource_customization_to_service` (
1205 `SERVICE_MODEL_UUID` varchar(200) NOT NULL,
1206 `RESOURCE_MODEL_CUSTOMIZATION_UUID` varchar(200) NOT NULL,
Elena Kuleshova2aea242019-04-10 09:26:02 -04001207 PRIMARY KEY (`SERVICE_MODEL_UUID`,`RESOURCE_MODEL_CUSTOMIZATION_UUID`)
Benjamin, Max (mb388a)e8689682019-03-20 16:19:39 -04001208)ENGINE=InnoDB DEFAULT CHARSET=latin1;
eeginux66481e12019-03-16 16:07:16 +00001209
Elena Kuleshova2aea242019-04-10 09:26:02 -04001210
Smokowski, Steve (ss835w)8b56e8d2019-04-11 12:09:04 -04001211CREATE TABLE IF NOT EXISTS `workflow` (
1212 `ID` int(11) NOT NULL AUTO_INCREMENT,
1213 `ARTIFACT_UUID` varchar(200) NOT NULL,
1214 `ARTIFACT_NAME` varchar(200) NOT NULL,
1215 `NAME` varchar(200) NOT NULL,
1216 `OPERATION_NAME` varchar(200) DEFAULT NULL,
1217 `VERSION` double NOT NULL,
1218 `DESCRIPTION` varchar(1200) DEFAULT NULL,
1219 `BODY` longtext DEFAULT NULL,
1220 `RESOURCE_TARGET` varchar(200) NOT NULL,
1221 `SOURCE` varchar(200) NOT NULL,
1222 `TIMEOUT_MINUTES` int(11) DEFAULT NULL,
1223 `ARTIFACT_CHECKSUM` varchar(200) DEFAULT 'MANUAL RECORD',
1224 `CREATION_TIMESTAMP` datetime NOT NULL DEFAULT current_timestamp(),
1225 PRIMARY KEY (`ID`),
1226 UNIQUE KEY `UK_workflow` (`ARTIFACT_UUID`,`NAME`,`VERSION`,`SOURCE`)
1227) ENGINE=InnoDB DEFAULT CHARSET=latin1;
1228
1229CREATE TABLE IF NOT EXISTS `vnf_resource_to_workflow` (
1230 `ID` int(11) NOT NULL AUTO_INCREMENT,
1231 `VNF_RESOURCE_MODEL_UUID` varchar(200) NOT NULL,
1232 `WORKFLOW_ID` int(11) NOT NULL,
1233 PRIMARY KEY (`ID`),
1234 UNIQUE KEY `UK_vnf_resource_to_workflow` (`VNF_RESOURCE_MODEL_UUID`,`WORKFLOW_ID`),
1235 KEY `fk_vnf_resource_to_workflow__workflow1_idx` (`WORKFLOW_ID`),
1236 KEY `fk_vnf_resource_to_workflow__vnf_res_mod_uuid_idx` (`VNF_RESOURCE_MODEL_UUID`),
1237 CONSTRAINT `fk_vnf_resource_to_workflow__vnf_resource1` FOREIGN KEY (`VNF_RESOURCE_MODEL_UUID`) REFERENCES `vnf_resource` (`MODEL_UUID`) ON DELETE CASCADE ON UPDATE CASCADE,
1238 CONSTRAINT `fk_vnf_resource_to_workflow__workflow1` FOREIGN KEY (`WORKFLOW_ID`) REFERENCES `workflow` (`ID`) ON DELETE CASCADE ON UPDATE CASCADE
1239) ENGINE=InnoDB DEFAULT CHARSET=latin1;
1240
1241CREATE TABLE IF NOT EXISTS `activity_spec` (
1242 `ID` INT(11) NOT NULL AUTO_INCREMENT,
1243 `NAME` VARCHAR(200) NOT NULL,
1244 `DESCRIPTION` VARCHAR(1200) NOT NULL,
1245 `VERSION` DOUBLE NOT NULL,
1246 `CREATION_TIMESTAMP` DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
1247 PRIMARY KEY (`ID`),
1248 UNIQUE INDEX `UK_activity_spec` (`NAME` ASC, `VERSION` ASC))
1249ENGINE = InnoDB
1250DEFAULT CHARACTER SET = latin1;
1251
1252CREATE TABLE IF NOT EXISTS `user_parameters` (
1253 `ID` INT(11) NOT NULL AUTO_INCREMENT,
1254 `NAME` VARCHAR(200) NOT NULL,
1255 `PAYLOAD_LOCATION` VARCHAR(500) NULL,
1256 `LABEL` VARCHAR(200) NOT NULL,
1257 `TYPE` VARCHAR(200) NOT NULL,
1258 `DESCRIPTION` VARCHAR(1200) NULL,
1259 `IS_REQUIRED` TINYINT(1) NOT NULL,
1260 `MAX_LENGTH` INT(11) NULL,
1261 `ALLOWABLE_CHARS` VARCHAR(200) NULL,
1262 `CREATION_TIMESTAMP` DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
1263 PRIMARY KEY (`ID`),
1264 UNIQUE INDEX `UK_user_parameters` (`NAME` ASC))
1265ENGINE = InnoDB
1266DEFAULT CHARACTER SET = latin1;
1267
1268CREATE TABLE IF NOT EXISTS `workflow_activity_spec_sequence` (
1269 `ID` INT(11) NOT NULL AUTO_INCREMENT,
1270 `WORKFLOW_ID` INT(11) NOT NULL,
1271 `ACTIVITY_SPEC_ID` INT(11) NOT NULL,
1272 `SEQ_NO` INT(11) NOT NULL,
1273 PRIMARY KEY (`ID`),
1274 UNIQUE INDEX `UK_workflow_activity_spec_sequence` (`WORKFLOW_ID` ASC, `ACTIVITY_SPEC_ID` ASC, `SEQ_NO` ASC),
1275 INDEX `fk_workflow_activity_spec_sequence__activity_spec_idx` (`ACTIVITY_SPEC_ID` ASC),
1276 INDEX `fk_workflow_activity_spec_sequence__workflow_actifact_uuid_idx` (`WORKFLOW_ID` ASC),
1277 CONSTRAINT `fk_workflow_activity_spec_sequence__activity_spec1`
1278 FOREIGN KEY (`ACTIVITY_SPEC_ID`)
1279 REFERENCES `activity_spec` (`ID`)
1280 ON DELETE CASCADE
1281 ON UPDATE CASCADE,
1282 CONSTRAINT `fk_workflow_activity_spec_sequence__workflow1`
1283 FOREIGN KEY (`WORKFLOW_ID`)
1284 REFERENCES `workflow` (`ID`)
1285 ON DELETE CASCADE
1286 ON UPDATE CASCADE)
1287ENGINE = InnoDB
1288DEFAULT CHARACTER SET = latin1;
1289
1290CREATE TABLE IF NOT EXISTS `activity_spec_parameters` (
1291 `ID` INT(11) NOT NULL AUTO_INCREMENT,
1292 `NAME` VARCHAR(200) NOT NULL,
1293 `TYPE` VARCHAR(200) NOT NULL,
1294 `DIRECTION` VARCHAR(200) NULL,
1295 `DESCRIPTION` VARCHAR(1200) NULL,
1296 `CREATION_TIMESTAMP` DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
1297 PRIMARY KEY (`ID`),
1298 UNIQUE INDEX `UK_activity_spec_parameters` (`NAME` ASC, `DIRECTION` ASC))
1299ENGINE = InnoDB
1300DEFAULT CHARACTER SET = latin1;
1301
1302CREATE TABLE IF NOT EXISTS `activity_spec_categories` (
1303 `ID` INT(11) NOT NULL AUTO_INCREMENT,
1304 `NAME` VARCHAR(200) NOT NULL,
1305 PRIMARY KEY (`ID`),
1306 UNIQUE INDEX `UK_activity_spec_categories` (`NAME` ASC))
1307ENGINE = InnoDB
1308DEFAULT CHARACTER SET = latin1;
1309
1310CREATE TABLE IF NOT EXISTS `activity_spec_to_activity_spec_categories` (
1311 `ID` INT(11) NOT NULL AUTO_INCREMENT,
1312 `ACTIVITY_SPEC_ID` INT(11) NOT NULL,
1313 `ACTIVITY_SPEC_CATEGORIES_ID` INT(11) NOT NULL,
1314 PRIMARY KEY (`ID`),
1315 UNIQUE INDEX `UK_activity_spec_to_activity_spec_categories` (`ACTIVITY_SPEC_ID` ASC, `ACTIVITY_SPEC_CATEGORIES_ID` ASC),
1316 INDEX `fk_activity_spec_to_activity_spec_categories__activity_spec_idx` (`ACTIVITY_SPEC_CATEGORIES_ID` ASC),
1317 INDEX `fk_activity_spec_to_activity_spec_categories__activity_spec_idx1` (`ACTIVITY_SPEC_ID` ASC),
1318 CONSTRAINT `fk_activity_spec_to_activity_spec_categories__activity_spec1`
1319 FOREIGN KEY (`ACTIVITY_SPEC_ID`)
1320 REFERENCES `activity_spec` (`ID`)
1321 ON DELETE CASCADE
1322 ON UPDATE CASCADE,
1323 CONSTRAINT `fk_activity_spec_to_activity_spec_categories__activity_spec_c1`
1324 FOREIGN KEY (`ACTIVITY_SPEC_CATEGORIES_ID`)
1325 REFERENCES `activity_spec_categories` (`ID`)
1326 ON DELETE CASCADE
1327 ON UPDATE CASCADE)
1328ENGINE = InnoDB
1329DEFAULT CHARACTER SET = latin1;
1330
1331CREATE TABLE IF NOT EXISTS `activity_spec_to_activity_spec_parameters` (
1332 `ID` INT(11) NOT NULL AUTO_INCREMENT,
1333 `ACTIVITY_SPEC_ID` INT(11) NOT NULL,
1334 `ACTIVITY_SPEC_PARAMETERS_ID` INT(11) NOT NULL,
1335 PRIMARY KEY (`ID`),
1336 INDEX `fk_activity_spec_to_activity_spec_params__act_sp_param_id_idx` (`ACTIVITY_SPEC_PARAMETERS_ID` ASC),
1337 UNIQUE INDEX `UK_activity_spec_to_activity_spec_parameters` (`ACTIVITY_SPEC_ID` ASC, `ACTIVITY_SPEC_PARAMETERS_ID` ASC),
1338 INDEX `fk_activity_spec_to_activity_spec_parameters__act_spec_id_idx` (`ACTIVITY_SPEC_ID` ASC),
1339 CONSTRAINT `fk_activity_spec_to_activity_spec_parameters__activity_spec_1`
1340 FOREIGN KEY (`ACTIVITY_SPEC_ID`)
1341 REFERENCES `activity_spec` (`ID`)
1342 ON DELETE CASCADE
1343 ON UPDATE CASCADE,
1344 CONSTRAINT `fk_activity_spec_to_activity_spec_parameters__activ_spec_param1`
1345 FOREIGN KEY (`ACTIVITY_SPEC_PARAMETERS_ID`)
1346 REFERENCES `activity_spec_parameters` (`ID`)
1347 ON DELETE CASCADE
1348 ON UPDATE CASCADE)
1349ENGINE = InnoDB
1350DEFAULT CHARACTER SET = latin1;
1351
1352CREATE TABLE IF NOT EXISTS `activity_spec_to_user_parameters` (
1353 `ID` INT(11) NOT NULL AUTO_INCREMENT,
1354 `ACTIVITY_SPEC_ID` INT(11) NOT NULL,
1355 `USER_PARAMETERS_ID` INT(11) NOT NULL,
1356 PRIMARY KEY (`ID`),
1357 UNIQUE INDEX `UK_activity_spec_to_user_parameters` (`ACTIVITY_SPEC_ID` ASC, `USER_PARAMETERS_ID` ASC),
1358 INDEX `fk_activity_spec_to_user_parameters__user_parameters1_idx` (`USER_PARAMETERS_ID` ASC),
1359 INDEX `fk_activity_spec_to_user_parameters__activity_spec1_idx` (`ACTIVITY_SPEC_ID` ASC),
1360 CONSTRAINT `fk_activity_spec_to_user_parameters__activity_spec1`
1361 FOREIGN KEY (`ACTIVITY_SPEC_ID`)
1362 REFERENCES `activity_spec` (`ID`)
1363 ON DELETE CASCADE
1364 ON UPDATE CASCADE,
1365 CONSTRAINT `fk_activity_spec_to_user_parameters__user_parameters1`
1366 FOREIGN KEY (`USER_PARAMETERS_ID`)
1367 REFERENCES `user_parameters` (`ID`)
1368 ON DELETE CASCADE
1369 ON UPDATE CASCADE)
1370ENGINE = InnoDB
1371DEFAULT CHARACTER SET = latin1;
1372
1373
Benjamin, Max (mb388a)5a6a6de2018-07-30 15:56:09 -04001374--------START Request DB SCHEMA --------
1375CREATE DATABASE requestdb;
1376USE requestdb;
1377
1378
1379CREATE TABLE `active_requests` (
1380 `REQUEST_ID` varchar(45) NOT NULL,
1381 `CLIENT_REQUEST_ID` varchar(45) DEFAULT NULL,
1382 `SERVICE_INSTANCE_ID` varchar(50) NOT NULL,
1383 `SUBSCRIBER_NAME` varchar(200) DEFAULT NULL,
1384 `REQUEST_URI` varchar(255) DEFAULT NULL,
1385 `SERVICE_TYPE` varchar(65) NOT NULL,
1386 `REQUEST_ACTION` varchar(45) NOT NULL,
1387 `NOTIFICATION_URL` varchar(255) DEFAULT NULL,
1388 `REQUEST_ID_IN_PROGRESS` varchar(45) DEFAULT NULL,
1389 `START_TIME` datetime DEFAULT NULL,
1390 `MODIFY_TIME` datetime DEFAULT NULL,
1391 `COMPLETION_TIME` datetime DEFAULT NULL,
1392 `RESPONSE_CODE` varchar(20) DEFAULT NULL,
1393 `RESPONSE_BODY` longtext,
1394 `STATUS` varchar(25) DEFAULT NULL,
1395 `SERVICE_REQUEST_TIMEOUT` datetime DEFAULT NULL,
1396 `FINAL_ERROR_CODE` varchar(20) DEFAULT NULL,
1397 `FINAL_ERROR_MESSAGE` varchar(2000) DEFAULT NULL,
1398 `ORDER_NUMBER` varchar(45) DEFAULT NULL,
1399 `SOURCE` varchar(20) DEFAULT NULL,
1400 `RESPONSE_STATUS` varchar(25) DEFAULT NULL,
1401 `ORDER_VERSION` varchar(20) DEFAULT NULL,
1402 `LAST_MODIFIED_BY` varchar(20) DEFAULT NULL,
1403 `MOCARS_TICKET_NUM` varchar(200) DEFAULT NULL,
1404 `REQUEST_BODY` longtext,
1405 `REQUEST_SUB_ACTION` varchar(45) DEFAULT NULL,
1406 `SDNC_CALLBACK_BPEL_URL` varchar(255) DEFAULT NULL,
1407 `FEATURE_TYPE` varchar(255) DEFAULT NULL,
1408 `FEATURE_INSTANCE_ID` varchar(255) DEFAULT NULL,
1409 `REQUEST_TYPE` varchar(255) DEFAULT NULL,
1410 `INTERIM_COMPLETION_TIME` datetime DEFAULT NULL,
1411 `INTERIM_STAGE_COMPLETION` int(11) DEFAULT NULL,
1412 `SERVICE_NAME_VERSION_ID` varchar(50) DEFAULT NULL,
1413 `GLOBAL_SUBSCRIBER_ID` varchar(255) DEFAULT NULL,
1414 `SERVICE_ID` varchar(50) DEFAULT NULL,
1415 `SERVICE_VERSION` varchar(10) DEFAULT NULL,
1416 `CORRELATOR` varchar(50) DEFAULT NULL,
1417 PRIMARY KEY (`REQUEST_ID`),
1418 UNIQUE KEY `UK_f0hdk7xbw5mb2trnxx0fvlh3x` (`CLIENT_REQUEST_ID`)
1419) ENGINE=InnoDB DEFAULT CHARSET=latin1;
1420
1421CREATE TABLE `infra_active_requests` (
1422 `REQUEST_ID` varchar(45) NOT NULL,
1423 `CLIENT_REQUEST_ID` varchar(45) DEFAULT NULL,
1424 `ACTION` varchar(45) DEFAULT NULL,
1425 `REQUEST_STATUS` varchar(20) DEFAULT NULL,
1426 `STATUS_MESSAGE` longtext DEFAULT NULL,
1427 `PROGRESS` bigint(20) DEFAULT NULL,
1428 `START_TIME` datetime DEFAULT NULL,
1429 `END_TIME` datetime DEFAULT NULL,
1430 `SOURCE` varchar(45) DEFAULT NULL,
1431 `VNF_ID` varchar(45) DEFAULT NULL,
1432 `VNF_NAME` varchar(80) DEFAULT NULL,
1433 `VNF_TYPE` varchar(200) DEFAULT NULL,
1434 `SERVICE_TYPE` varchar(45) DEFAULT NULL,
1435 `AIC_NODE_CLLI` varchar(11) DEFAULT NULL,
1436 `TENANT_ID` varchar(45) DEFAULT NULL,
1437 `PROV_STATUS` varchar(20) DEFAULT NULL,
1438 `VNF_PARAMS` longtext,
1439 `VNF_OUTPUTS` longtext,
1440 `REQUEST_BODY` longtext,
1441 `RESPONSE_BODY` longtext,
1442 `LAST_MODIFIED_BY` varchar(100) DEFAULT NULL,
1443 `MODIFY_TIME` datetime DEFAULT NULL,
1444 `REQUEST_TYPE` varchar(20) DEFAULT NULL,
1445 `VOLUME_GROUP_ID` varchar(45) DEFAULT NULL,
1446 `VOLUME_GROUP_NAME` varchar(45) DEFAULT NULL,
1447 `VF_MODULE_ID` varchar(45) DEFAULT NULL,
1448 `VF_MODULE_NAME` varchar(200) DEFAULT NULL,
1449 `VF_MODULE_MODEL_NAME` varchar(200) DEFAULT NULL,
1450 `AAI_SERVICE_ID` varchar(50) DEFAULT NULL,
1451 `AIC_CLOUD_REGION` varchar(11) DEFAULT NULL,
1452 `CALLBACK_URL` varchar(200) DEFAULT NULL,
1453 `CORRELATOR` varchar(80) DEFAULT NULL,
1454 `NETWORK_ID` varchar(45) DEFAULT NULL,
1455 `NETWORK_NAME` varchar(80) DEFAULT NULL,
1456 `NETWORK_TYPE` varchar(80) DEFAULT NULL,
1457 `REQUEST_SCOPE` varchar(20) NOT NULL DEFAULT 'unknown',
1458 `REQUEST_ACTION` varchar(45) NOT NULL DEFAULT 'unknown',
1459 `SERVICE_INSTANCE_ID` varchar(45) DEFAULT NULL,
1460 `SERVICE_INSTANCE_NAME` varchar(80) DEFAULT NULL,
1461 `REQUESTOR_ID` varchar(50) DEFAULT NULL,
1462 `CONFIGURATION_ID` varchar(45) DEFAULT NULL,
1463 `CONFIGURATION_NAME` varchar(200) DEFAULT NULL,
1464 `OPERATIONAL_ENV_ID` varchar(45) DEFAULT NULL,
1465 `OPERATIONAL_ENV_NAME` varchar(200) DEFAULT NULL,
Benjamin, Max (mb388a)61affc62018-11-05 11:00:36 -05001466 `REQUEST_URL` varchar(500) DEFAULT NULL,
Benjamin, Max (mb388a)5a6a6de2018-07-30 15:56:09 -04001467 PRIMARY KEY (`REQUEST_ID`),
1468 UNIQUE KEY `UK_bhu6w8p7wvur4pin0gjw2d5ak` (`CLIENT_REQUEST_ID`)
1469) ENGINE=InnoDB DEFAULT CHARSET=latin1;
1470
1471CREATE TABLE `archived_infra_requests` (
1472 `REQUEST_ID` varchar(45) NOT NULL,
1473 `CLIENT_REQUEST_ID` varchar(45) DEFAULT NULL,
1474 `ACTION` varchar(45) DEFAULT NULL,
1475 `REQUEST_STATUS` varchar(20) DEFAULT NULL,
1476 `STATUS_MESSAGE` longtext DEFAULT NULL,
1477 `PROGRESS` bigint(20) DEFAULT NULL,
1478 `START_TIME` datetime DEFAULT NULL,
1479 `END_TIME` datetime DEFAULT NULL,
1480 `SOURCE` varchar(45) DEFAULT NULL,
1481 `VNF_ID` varchar(45) DEFAULT NULL,
1482 `VNF_NAME` varchar(80) DEFAULT NULL,
1483 `VNF_TYPE` varchar(200) DEFAULT NULL,
1484 `SERVICE_TYPE` varchar(45) DEFAULT NULL,
1485 `AIC_NODE_CLLI` varchar(11) DEFAULT NULL,
1486 `TENANT_ID` varchar(45) DEFAULT NULL,
1487 `PROV_STATUS` varchar(20) DEFAULT NULL,
1488 `VNF_PARAMS` longtext,
1489 `VNF_OUTPUTS` longtext,
1490 `REQUEST_BODY` longtext,
1491 `RESPONSE_BODY` longtext,
1492 `LAST_MODIFIED_BY` varchar(100) DEFAULT NULL,
1493 `MODIFY_TIME` datetime DEFAULT NULL,
1494 `REQUEST_TYPE` varchar(20) DEFAULT NULL,
1495 `VOLUME_GROUP_ID` varchar(45) DEFAULT NULL,
1496 `VOLUME_GROUP_NAME` varchar(45) DEFAULT NULL,
1497 `VF_MODULE_ID` varchar(45) DEFAULT NULL,
1498 `VF_MODULE_NAME` varchar(200) DEFAULT NULL,
1499 `VF_MODULE_MODEL_NAME` varchar(200) DEFAULT NULL,
1500 `AAI_SERVICE_ID` varchar(50) DEFAULT NULL,
1501 `AIC_CLOUD_REGION` varchar(11) DEFAULT NULL,
1502 `CALLBACK_URL` varchar(200) DEFAULT NULL,
1503 `CORRELATOR` varchar(80) DEFAULT NULL,
1504 `NETWORK_ID` varchar(45) DEFAULT NULL,
1505 `NETWORK_NAME` varchar(80) DEFAULT NULL,
1506 `NETWORK_TYPE` varchar(80) DEFAULT NULL,
1507 `REQUEST_SCOPE` varchar(20) NOT NULL DEFAULT 'unknown',
1508 `REQUEST_ACTION` varchar(45) NOT NULL DEFAULT 'unknown',
1509 `SERVICE_INSTANCE_ID` varchar(45) DEFAULT NULL,
1510 `SERVICE_INSTANCE_NAME` varchar(80) DEFAULT NULL,
1511 `REQUESTOR_ID` varchar(50) DEFAULT NULL,
1512 `CONFIGURATION_ID` varchar(45) DEFAULT NULL,
1513 `CONFIGURATION_NAME` varchar(200) DEFAULT NULL,
1514 `OPERATIONAL_ENV_ID` varchar(45) DEFAULT NULL,
1515 `OPERATIONAL_ENV_NAME` varchar(200) DEFAULT NULL,
Benjamin, Max (mb388a)61affc62018-11-05 11:00:36 -05001516 `REQUEST_URL` varchar(500) DEFAULT NULL,
Benjamin, Max (mb388a)5a6a6de2018-07-30 15:56:09 -04001517 PRIMARY KEY (`REQUEST_ID`),
1518 UNIQUE KEY `UK_bhu6w8p7wvur4pin0gjw2d72h` (`CLIENT_REQUEST_ID`)
1519) ENGINE=InnoDB DEFAULT CHARSET=latin1;
1520
1521CREATE TABLE `site_status` (
1522 `SITE_NAME` varchar(255) NOT NULL,
1523 `STATUS` bit(1) DEFAULT NULL,
1524 `CREATION_TIMESTAMP` datetime DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
1525 PRIMARY KEY (`SITE_NAME`)
1526) ENGINE=InnoDB DEFAULT CHARSET=latin1;
1527
1528CREATE TABLE `watchdog_distributionid_status` (
1529 `DISTRIBUTION_ID` varchar(45) NOT NULL,
1530 `DISTRIBUTION_ID_STATUS` varchar(45) DEFAULT NULL,
Benjamin, Max (mb388a)20e1b652019-02-24 10:42:15 -05001531 `LOCK_VERSION` int NOT NULL,
Benjamin, Max (mb388a)5a6a6de2018-07-30 15:56:09 -04001532 `CREATE_TIME` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
1533 `MODIFY_TIME` datetime DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP,
1534 PRIMARY KEY (`DISTRIBUTION_ID`)
1535) ENGINE=InnoDB DEFAULT CHARSET=latin1;
1536
1537CREATE TABLE `watchdog_per_component_distribution_status` (
1538 `DISTRIBUTION_ID` varchar(45) NOT NULL,
1539 `COMPONENT_NAME` varchar(45) NOT NULL,
1540 `COMPONENT_DISTRIBUTION_STATUS` varchar(45) DEFAULT NULL,
1541 `CREATE_TIME` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
1542 `MODIFY_TIME` datetime DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP,
1543 PRIMARY KEY (`DISTRIBUTION_ID`,`COMPONENT_NAME`),
1544 CONSTRAINT `fk_watchdog_component_distribution_status_watchdog_distributi1` FOREIGN KEY (`DISTRIBUTION_ID`) REFERENCES `watchdog_distributionid_status` (`DISTRIBUTION_ID`) ON DELETE CASCADE ON UPDATE CASCADE
1545) ENGINE=InnoDB DEFAULT CHARSET=latin1;
1546
1547CREATE TABLE `watchdog_service_mod_ver_id_lookup` (
1548 `DISTRIBUTION_ID` varchar(45) NOT NULL,
1549 `SERVICE_MODEL_VERSION_ID` varchar(45) NOT NULL,
Benjamin, Max (mb388a)9e795be2019-02-06 21:17:24 -05001550 `DISTRIBUTION_NOTIFICATION` LONGTEXT NULL,
1551 `CONSUMER_ID` varchar(200) NULL,
Benjamin, Max (mb388a)5a6a6de2018-07-30 15:56:09 -04001552 `CREATE_TIME` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
1553 `MODIFY_TIME` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
1554 PRIMARY KEY (`DISTRIBUTION_ID`,`SERVICE_MODEL_VERSION_ID`)
1555) ENGINE=InnoDB DEFAULT CHARSET=latin1;
1556
1557CREATE TABLE `activate_operational_env_service_model_distribution_status` (
1558 `OPERATIONAL_ENV_ID` varchar(45) NOT NULL,
1559 `SERVICE_MODEL_VERSION_ID` varchar(45) NOT NULL,
1560 `REQUEST_ID` varchar(45) NOT NULL,
1561 `SERVICE_MOD_VER_FINAL_DISTR_STATUS` varchar(45) DEFAULT NULL,
1562 `RECOVERY_ACTION` varchar(30) DEFAULT NULL,
1563 `RETRY_COUNT_LEFT` int(11) DEFAULT NULL,
1564 `WORKLOAD_CONTEXT` varchar(80) NOT NULL,
1565 `CREATE_TIME` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
1566 `MODIFY_TIME` datetime DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP,
Benjamin, Max (mb388a)1414f932019-03-14 21:06:49 -04001567 `VNF_OPERATIONAL_ENV_ID` varchar(45) NOT NULL,
Benjamin, Max (mb388a)5a6a6de2018-07-30 15:56:09 -04001568 PRIMARY KEY (`OPERATIONAL_ENV_ID`,`SERVICE_MODEL_VERSION_ID`,`REQUEST_ID`)
1569) ENGINE=InnoDB DEFAULT CHARSET=latin1;
1570
1571CREATE TABLE `activate_operational_env_per_distributionid_status` (
1572 `DISTRIBUTION_ID` varchar(45) NOT NULL,
1573 `DISTRIBUTION_ID_STATUS` varchar(45) DEFAULT NULL,
1574 `DISTRIBUTION_ID_ERROR_REASON` varchar(250) DEFAULT NULL,
1575 `CREATE_TIME` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
1576 `MODIFY_TIME` datetime DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP,
1577 `OPERATIONAL_ENV_ID` varchar(45) NOT NULL,
1578 `SERVICE_MODEL_VERSION_ID` varchar(45) NOT NULL,
1579 `REQUEST_ID` varchar(45) NOT NULL,
1580 PRIMARY KEY (`DISTRIBUTION_ID`),
1581 KEY `fk_activate_op_env_per_distributionid_status__aoesmds1_idx` (`OPERATIONAL_ENV_ID`,`SERVICE_MODEL_VERSION_ID`,`REQUEST_ID`),
1582 CONSTRAINT `fk_activate_op_env_per_distributionid_status__aoesmds1` FOREIGN KEY (`OPERATIONAL_ENV_ID`, `SERVICE_MODEL_VERSION_ID`, `REQUEST_ID`) REFERENCES `activate_operational_env_service_model_distribution_status` (`OPERATIONAL_ENV_ID`, `SERVICE_MODEL_VERSION_ID`, `REQUEST_ID`) ON DELETE CASCADE ON UPDATE CASCADE
1583) ENGINE=InnoDB DEFAULT CHARSET=latin1;
1584
1585create table operation_status (
1586 SERVICE_ID varchar(255) not null,
1587 OPERATION_ID varchar(255) not null,
1588 SERVICE_NAME varchar(255),
1589 OPERATION_TYPE varchar(255),
1590 USER_ID varchar(255),
1591 RESULT varchar(255),
1592 OPERATION_CONTENT varchar(255),
1593 PROGRESS varchar(255),
1594 REASON varchar(255),
1595 OPERATE_AT datetime NOT NULL,
1596 FINISHED_AT datetime NOT NULL,
1597 primary key (SERVICE_ID,OPERATION_ID)
1598) ENGINE=InnoDB DEFAULT CHARSET=latin1;
1599
1600create table resource_operation_status (
1601 SERVICE_ID varchar(255) not null,
1602 OPERATION_ID varchar(255) not null,
1603 RESOURCE_TEMPLATE_UUID varchar(255) not null,
1604 OPER_TYPE varchar(255),
1605 RESOURCE_INSTANCE_ID varchar(255),
1606 JOB_ID varchar(255),
1607 STATUS varchar(255),
1608 PROGRESS varchar(255),
1609 ERROR_CODE varchar(255) ,
1610 STATUS_DESCRIPOTION varchar(255) ,
1611 primary key (SERVICE_ID,OPERATION_ID,RESOURCE_TEMPLATE_UUID)
1612) ENGINE=InnoDB DEFAULT CHARSET=latin1;
1613
1614create table if not exists model_recipe (
1615 `ID` INT(11) NOT NULL AUTO_INCREMENT,
1616 `MODEL_ID` INT(11),
1617 `ACTION` VARCHAR(40),
1618 `SCHEMA_VERSION` VARCHAR(40),
1619 `DESCRIPTION` VARCHAR(40),
1620 `ORCHESTRATION_URI` VARCHAR(20),
1621 `MODEL_PARAM_XSD` VARCHAR(20),
1622 `RECIPE_TIMEOUT` INT(11),
1623 `CREATION_TIMESTAMP` datetime not null default current_timestamp,
1624 PRIMARY KEY (`ID`),
1625 CONSTRAINT uk1_model_recipe UNIQUE (`MODEL_ID`, `ACTION`)
1626) ENGINE=InnoDB DEFAULT CHARSET=latin1;
1627
1628create table if not exists model (
1629 `ID` INT(11) NOT NULL AUTO_INCREMENT,
1630 `MODEL_CUSTOMIZATION_ID` VARCHAR(40),
1631 `MODEL_CUSTOMIZATION_NAME` VARCHAR(40),
1632 `MODEL_INVARIANT_ID` VARCHAR(40),
1633 `MODEL_NAME` VARCHAR(40),
1634 `MODEL_TYPE` VARCHAR(20),
1635 `MODEL_VERSION` VARCHAR(20),
1636 `MODEL_VERSION_ID` VARCHAR(40),
1637 `CREATION_TIMESTAMP` datetime not null default current_timestamp,
1638 `RECIPE` INT(11),
1639 PRIMARY KEY (`ID`),
1640 CONSTRAINT uk1_model UNIQUE (`MODEL_TYPE`, `MODEL_VERSION_ID`),
1641 FOREIGN KEY (`RECIPE`) REFERENCES `model_recipe` (`MODEL_ID`) ON DELETE CASCADE ON UPDATE CASCADE
1642) ENGINE=InnoDB DEFAULT CHARSET=latin1;
Smokowski, Steve (ss835w)8b56e8d2019-04-11 12:09:04 -04001643
1644
1645
1646