blob: 0821ebc97c6e10168e69aab76b30909abcb36a93 [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` (
Benjamin, Max (mb388a)52039ed2019-04-11 13:33:09 -0400286 `ID` int(11) NOT NULL AUTO_INCREMENT,
Benjamin, Max (mb388a)86f04e12019-04-02 22:54:57 -0400287 `MODEL_CUSTOMIZATION_UUID` varchar(200) NOT NULL,
288 `MODEL_INSTANCE_NAME` varchar(200) NOT NULL,
289 `CONFIGURATION_TYPE` varchar(200) DEFAULT NULL,
290 `CONFIGURATION_ROLE` varchar(200) DEFAULT NULL,
291 `CONFIGURATION_FUNCTION` varchar(200) DEFAULT NULL,
292 `CREATION_TIMESTAMP` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
293 `CONFIGURATION_MODEL_UUID` varchar(200) NOT NULL,
294 `SERVICE_PROXY_CUSTOMIZATION_MODEL_CUSTOMIZATION_UUID` varchar(200) DEFAULT NULL,
Benjamin, Max (mb388a)52039ed2019-04-11 13:33:09 -0400295 `CONFIGURATION_CUSTOMIZATION_MODEL_CUSTOMIZATION_ID` int(11) DEFAULT NULL,
296 `SERVICE_MODEL_UUID` varchar(200),
297 PRIMARY KEY (`ID`),
298 KEY `fk_configuration_customization__configuration_idx` (`CONFIGURATION_MODEL_UUID`),
299 KEY `fk_configuration_customization__service_idx` (`SERVICE_MODEL_UUID`),
300 UNIQUE KEY `uk_configuration_customization` (`MODEL_CUSTOMIZATION_UUID` ASC, `SERVICE_MODEL_UUID` ASC),
301 CONSTRAINT `fk_configuration_customization__configuration1` FOREIGN KEY (`CONFIGURATION_MODEL_UUID`)
302 REFERENCES `configuration` (`MODEL_UUID`)
303 ON DELETE CASCADE ON UPDATE CASCADE,
304 CONSTRAINT `fk_configuration_customization__service1` FOREIGN KEY (`SERVICE_MODEL_UUID`)
305 REFERENCES `service` (`MODEL_UUID`)
306 ON DELETE CASCADE ON UPDATE CASCADE
Benjamin, Max (mb388a)86f04e12019-04-02 22:54:57 -0400307) ENGINE=InnoDB DEFAULT CHARSET=latin1;
308/*!40101 SET character_set_client = @saved_cs_client */;
309
310--
311-- Table structure for table `controller_selection_reference`
312--
313
314DROP TABLE IF EXISTS `controller_selection_reference`;
315/*!40101 SET @saved_cs_client = @@character_set_client */;
316/*!40101 SET character_set_client = utf8 */;
317CREATE TABLE `controller_selection_reference` (
318 `VNF_TYPE` varchar(50) NOT NULL,
319 `CONTROLLER_NAME` varchar(100) NOT NULL,
320 `ACTION_CATEGORY` varchar(15) NOT NULL,
321 PRIMARY KEY (`VNF_TYPE`,`CONTROLLER_NAME`,`ACTION_CATEGORY`)
322) ENGINE=InnoDB DEFAULT CHARSET=latin1;
323/*!40101 SET character_set_client = @saved_cs_client */;
324
325--
326-- Table structure for table `cvnfc_configuration_customization`
327--
328
329DROP TABLE IF EXISTS `cvnfc_configuration_customization`;
330/*!40101 SET @saved_cs_client = @@character_set_client */;
331/*!40101 SET character_set_client = utf8 */;
332CREATE TABLE `cvnfc_configuration_customization` (
333 `ID` int(11) NOT NULL AUTO_INCREMENT,
334 `MODEL_CUSTOMIZATION_UUID` varchar(200) NOT NULL,
335 `MODEL_INSTANCE_NAME` varchar(200) NOT NULL,
336 `CONFIGURATION_TYPE` varchar(200) DEFAULT NULL,
337 `CONFIGURATION_ROLE` varchar(200) DEFAULT NULL,
338 `CONFIGURATION_FUNCTION` varchar(200) DEFAULT NULL,
339 `POLICY_NAME` varchar(200) DEFAULT NULL,
340 `CREATION_TIMESTAMP` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
341 `CONFIGURATION_MODEL_UUID` varchar(200) NOT NULL,
342 `CVNFC_CUSTOMIZATION_ID` int(11) DEFAULT NULL,
343 PRIMARY KEY (`ID`),
344 KEY `fk_vnf_vfmodule_cvnfc_config_cust__configuration_idx` (`CONFIGURATION_MODEL_UUID`),
345 CONSTRAINT `fk_vnf_vfmod_cvnfc_config_cust__configuration_resource` FOREIGN KEY (`CONFIGURATION_MODEL_UUID`) REFERENCES `configuration` (`MODEL_UUID`) ON DELETE CASCADE ON UPDATE CASCADE
346) ENGINE=InnoDB AUTO_INCREMENT=20655 DEFAULT CHARSET=latin1;
347/*!40101 SET character_set_client = @saved_cs_client */;
348
349--
350-- Table structure for table `cvnfc_customization`
351--
352
353DROP TABLE IF EXISTS `cvnfc_customization`;
354/*!40101 SET @saved_cs_client = @@character_set_client */;
355/*!40101 SET character_set_client = utf8 */;
356CREATE TABLE `cvnfc_customization` (
357 `ID` int(11) NOT NULL AUTO_INCREMENT,
358 `MODEL_CUSTOMIZATION_UUID` varchar(200) NOT NULL,
359 `MODEL_INSTANCE_NAME` varchar(200) NOT NULL,
360 `MODEL_UUID` varchar(200) NOT NULL,
361 `MODEL_INVARIANT_UUID` varchar(200) NOT NULL,
362 `MODEL_VERSION` varchar(20) NOT NULL,
363 `MODEL_NAME` varchar(200) NOT NULL,
364 `TOSCA_NODE_TYPE` varchar(200) NOT NULL,
365 `DESCRIPTION` varchar(1200) DEFAULT NULL,
366 `NFC_FUNCTION` varchar(200) DEFAULT NULL,
367 `NFC_NAMING_CODE` varchar(200) DEFAULT NULL,
368 `CREATION_TIMESTAMP` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
369 `VNFC_CUST_MODEL_CUSTOMIZATION_UUID` varchar(200) DEFAULT NULL,
370 `VF_MODULE_CUSTOMIZATION_ID` int(13) DEFAULT NULL,
371 PRIMARY KEY (`ID`),
372 KEY `fk_cvnfc_customization__vnfc_customization1_idx` (`VNFC_CUST_MODEL_CUSTOMIZATION_UUID`),
373 KEY `fk_cvnfc_customization__vnf_vfmod_cvnfc_config_cust1_idx` (`MODEL_CUSTOMIZATION_UUID`),
374 KEY `fk_cvnfc_customization_to_vf_module_resource_customization` (`VF_MODULE_CUSTOMIZATION_ID`),
375 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,
376 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
377) ENGINE=InnoDB AUTO_INCREMENT=20655 DEFAULT CHARSET=latin1;
378/*!40101 SET character_set_client = @saved_cs_client */;
379
380--
381-- Table structure for table `external_service_to_internal_model_mapping`
382--
383
384DROP TABLE IF EXISTS `external_service_to_internal_model_mapping`;
385/*!40101 SET @saved_cs_client = @@character_set_client */;
386/*!40101 SET character_set_client = utf8 */;
387CREATE TABLE `external_service_to_internal_model_mapping` (
388 `id` int(11) NOT NULL AUTO_INCREMENT,
389 `SERVICE_NAME` varchar(200) NOT NULL,
390 `PRODUCT_FLAVOR` varchar(200) DEFAULT NULL,
391 `SUBSCRIPTION_SERVICE_TYPE` varchar(200) NOT NULL,
392 `SERVICE_MODEL_UUID` varchar(200) NOT NULL,
393 PRIMARY KEY (`id`),
394 UNIQUE KEY `UK_external_service_to_internal_model_mapping` (`SERVICE_NAME`,`PRODUCT_FLAVOR`,`SERVICE_MODEL_UUID`)
395) ENGINE=InnoDB DEFAULT CHARSET=latin1;
396/*!40101 SET character_set_client = @saved_cs_client */;
397
398--
399-- Table structure for table `flyway_schema_history`
400--
401
402DROP TABLE IF EXISTS `flyway_schema_history`;
403/*!40101 SET @saved_cs_client = @@character_set_client */;
404/*!40101 SET character_set_client = utf8 */;
405CREATE TABLE `flyway_schema_history` (
406 `installed_rank` int(11) NOT NULL,
407 `version` varchar(50) DEFAULT NULL,
408 `description` varchar(200) NOT NULL,
409 `type` varchar(20) NOT NULL,
410 `script` varchar(1000) NOT NULL,
411 `checksum` int(11) DEFAULT NULL,
412 `installed_by` varchar(100) NOT NULL,
413 `installed_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
414 `execution_time` int(11) NOT NULL,
415 `success` tinyint(1) NOT NULL,
416 PRIMARY KEY (`installed_rank`),
417 KEY `flyway_schema_history_s_idx` (`success`)
418) ENGINE=InnoDB DEFAULT CHARSET=latin1;
419/*!40101 SET character_set_client = @saved_cs_client */;
420
421--
422-- Table structure for table `heat_environment`
423--
424
425DROP TABLE IF EXISTS `heat_environment`;
426/*!40101 SET @saved_cs_client = @@character_set_client */;
427/*!40101 SET character_set_client = utf8 */;
428CREATE TABLE `heat_environment` (
429 `ARTIFACT_UUID` varchar(200) NOT NULL,
430 `NAME` varchar(100) NOT NULL,
431 `VERSION` varchar(20) NOT NULL,
432 `DESCRIPTION` varchar(1200) DEFAULT NULL,
433 `BODY` longtext NOT NULL,
434 `ARTIFACT_CHECKSUM` varchar(200) NOT NULL DEFAULT 'MANUAL RECORD',
435 `CREATION_TIMESTAMP` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
436 PRIMARY KEY (`ARTIFACT_UUID`)
437) ENGINE=InnoDB DEFAULT CHARSET=latin1;
438/*!40101 SET character_set_client = @saved_cs_client */;
439
440--
441-- Table structure for table `heat_files`
442--
443
444DROP TABLE IF EXISTS `heat_files`;
445/*!40101 SET @saved_cs_client = @@character_set_client */;
446/*!40101 SET character_set_client = utf8 */;
447CREATE TABLE `heat_files` (
448 `ARTIFACT_UUID` varchar(200) NOT NULL,
449 `NAME` varchar(200) NOT NULL,
450 `VERSION` varchar(20) NOT NULL,
451 `DESCRIPTION` varchar(1200) DEFAULT NULL,
452 `BODY` longtext NOT NULL,
453 `ARTIFACT_CHECKSUM` varchar(200) NOT NULL DEFAULT 'MANUAL RECORD',
454 `CREATION_TIMESTAMP` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
455 PRIMARY KEY (`ARTIFACT_UUID`)
456) ENGINE=InnoDB DEFAULT CHARSET=latin1;
457/*!40101 SET character_set_client = @saved_cs_client */;
458
459--
460-- Table structure for table `heat_nested_template`
461--
462
463DROP TABLE IF EXISTS `heat_nested_template`;
464/*!40101 SET @saved_cs_client = @@character_set_client */;
465/*!40101 SET character_set_client = utf8 */;
466CREATE TABLE `heat_nested_template` (
467 `PARENT_HEAT_TEMPLATE_UUID` varchar(200) NOT NULL,
468 `CHILD_HEAT_TEMPLATE_UUID` varchar(200) NOT NULL,
469 `PROVIDER_RESOURCE_FILE` varchar(100) DEFAULT NULL,
470 PRIMARY KEY (`PARENT_HEAT_TEMPLATE_UUID`,`CHILD_HEAT_TEMPLATE_UUID`),
471 KEY `fk_heat_nested_template__heat_template2_idx` (`CHILD_HEAT_TEMPLATE_UUID`),
472 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,
473 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
474) ENGINE=InnoDB DEFAULT CHARSET=latin1;
475/*!40101 SET character_set_client = @saved_cs_client */;
476
477--
478-- Table structure for table `heat_template`
479--
480
481DROP TABLE IF EXISTS `heat_template`;
482/*!40101 SET @saved_cs_client = @@character_set_client */;
483/*!40101 SET character_set_client = utf8 */;
484CREATE TABLE `heat_template` (
485 `ARTIFACT_UUID` varchar(200) NOT NULL,
486 `NAME` varchar(200) NOT NULL,
487 `VERSION` varchar(20) NOT NULL,
488 `DESCRIPTION` varchar(1200) DEFAULT NULL,
489 `BODY` longtext NOT NULL,
490 `TIMEOUT_MINUTES` int(11) DEFAULT NULL,
491 `ARTIFACT_CHECKSUM` varchar(200) NOT NULL DEFAULT 'MANUAL RECORD',
492 `CREATION_TIMESTAMP` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
493 PRIMARY KEY (`ARTIFACT_UUID`)
494) ENGINE=InnoDB DEFAULT CHARSET=latin1;
495/*!40101 SET character_set_client = @saved_cs_client */;
496
497--
498-- Table structure for table `heat_template_params`
499--
500
501DROP TABLE IF EXISTS `heat_template_params`;
502/*!40101 SET @saved_cs_client = @@character_set_client */;
503/*!40101 SET character_set_client = utf8 */;
504CREATE TABLE `heat_template_params` (
505 `HEAT_TEMPLATE_ARTIFACT_UUID` varchar(200) NOT NULL,
506 `PARAM_NAME` varchar(100) NOT NULL,
507 `IS_REQUIRED` bit(1) NOT NULL,
508 `PARAM_TYPE` varchar(20) DEFAULT NULL,
509 `PARAM_ALIAS` varchar(45) DEFAULT NULL,
510 PRIMARY KEY (`HEAT_TEMPLATE_ARTIFACT_UUID`,`PARAM_NAME`),
511 CONSTRAINT `fk_heat_template_params__heat_template1` FOREIGN KEY (`HEAT_TEMPLATE_ARTIFACT_UUID`) REFERENCES `heat_template` (`ARTIFACT_UUID`) ON DELETE CASCADE ON UPDATE CASCADE
512) ENGINE=InnoDB DEFAULT CHARSET=latin1;
513/*!40101 SET character_set_client = @saved_cs_client */;
514
515--
516-- Table structure for table `identity_services`
517--
518
519DROP TABLE IF EXISTS `identity_services`;
520/*!40101 SET @saved_cs_client = @@character_set_client */;
521/*!40101 SET character_set_client = utf8 */;
522CREATE TABLE `identity_services` (
523 `ID` varchar(50) NOT NULL,
524 `IDENTITY_URL` varchar(200) DEFAULT NULL,
525 `MSO_ID` varchar(255) DEFAULT NULL,
526 `MSO_PASS` varchar(255) DEFAULT NULL,
527 `ADMIN_TENANT` varchar(50) DEFAULT NULL,
528 `MEMBER_ROLE` varchar(50) DEFAULT NULL,
529 `TENANT_METADATA` tinyint(1) DEFAULT '0',
530 `IDENTITY_SERVER_TYPE` varchar(50) DEFAULT NULL,
531 `IDENTITY_AUTHENTICATION_TYPE` varchar(50) DEFAULT NULL,
532 `LAST_UPDATED_BY` varchar(120) DEFAULT NULL,
533 `CREATION_TIMESTAMP` timestamp NULL DEFAULT CURRENT_TIMESTAMP,
534 `UPDATE_TIMESTAMP` timestamp NULL DEFAULT CURRENT_TIMESTAMP,
535 `PROJECT_DOMAIN_NAME` varchar(255) DEFAULT NULL,
536 `USER_DOMAIN_NAME` varchar(255) DEFAULT NULL,
537 PRIMARY KEY (`ID`)
538) ENGINE=InnoDB DEFAULT CHARSET=latin1;
539/*!40101 SET character_set_client = @saved_cs_client */;
540
541--
542-- Table structure for table `instance_group`
543--
544
545DROP TABLE IF EXISTS `instance_group`;
546/*!40101 SET @saved_cs_client = @@character_set_client */;
547/*!40101 SET character_set_client = utf8 */;
548CREATE TABLE `instance_group` (
549 `MODEL_UUID` varchar(200) NOT NULL,
550 `MODEL_NAME` varchar(200) NOT NULL,
551 `MODEL_INVARIANT_UUID` varchar(200) NOT NULL,
552 `MODEL_VERSION` varchar(20) NOT NULL,
553 `TOSCA_NODE_TYPE` varchar(200) DEFAULT NULL,
554 `ROLE` varchar(200) NOT NULL,
555 `OBJECT_TYPE` varchar(200) NOT NULL,
556 `CREATION_TIMESTAMP` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
557 `CR_MODEL_UUID` varchar(200) DEFAULT NULL,
558 `INSTANCE_GROUP_TYPE` varchar(200) NOT NULL,
559 PRIMARY KEY (`MODEL_UUID`),
560 KEY `CR_MODEL_UUID` (`CR_MODEL_UUID`)
561) ENGINE=InnoDB DEFAULT CHARSET=latin1;
562/*!40101 SET character_set_client = @saved_cs_client */;
563
564--
565-- Table structure for table `model`
566--
567
568DROP TABLE IF EXISTS `model`;
569/*!40101 SET @saved_cs_client = @@character_set_client */;
570/*!40101 SET character_set_client = utf8 */;
571CREATE TABLE `model` (
572 `ID` int(11) NOT NULL AUTO_INCREMENT,
573 `MODEL_CUSTOMIZATION_ID` varchar(40) DEFAULT NULL,
574 `MODEL_CUSTOMIZATION_NAME` varchar(40) DEFAULT NULL,
575 `MODEL_INVARIANT_ID` varchar(40) DEFAULT NULL,
576 `MODEL_NAME` varchar(40) DEFAULT NULL,
577 `MODEL_TYPE` varchar(20) DEFAULT NULL,
578 `MODEL_VERSION` varchar(20) DEFAULT NULL,
579 `MODEL_VERSION_ID` varchar(40) DEFAULT NULL,
580 `CREATION_TIMESTAMP` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
581 `RECIPE` int(11) DEFAULT NULL,
582 PRIMARY KEY (`ID`),
583 UNIQUE KEY `uk1_model` (`MODEL_TYPE`,`MODEL_VERSION_ID`),
584 KEY `RECIPE` (`RECIPE`),
585 CONSTRAINT `model_ibfk_1` FOREIGN KEY (`RECIPE`) REFERENCES `model_recipe` (`MODEL_ID`) ON DELETE CASCADE ON UPDATE CASCADE
586) ENGINE=InnoDB DEFAULT CHARSET=latin1;
587/*!40101 SET character_set_client = @saved_cs_client */;
588
589--
590-- Table structure for table `model_recipe`
591--
592
593DROP TABLE IF EXISTS `model_recipe`;
594/*!40101 SET @saved_cs_client = @@character_set_client */;
595/*!40101 SET character_set_client = utf8 */;
596CREATE TABLE `model_recipe` (
597 `ID` int(11) NOT NULL AUTO_INCREMENT,
598 `MODEL_ID` int(11) DEFAULT NULL,
599 `ACTION` varchar(40) DEFAULT NULL,
600 `SCHEMA_VERSION` varchar(40) DEFAULT NULL,
601 `DESCRIPTION` varchar(40) DEFAULT NULL,
602 `ORCHESTRATION_URI` varchar(20) DEFAULT NULL,
603 `MODEL_PARAM_XSD` varchar(20) DEFAULT NULL,
604 `RECIPE_TIMEOUT` int(11) DEFAULT NULL,
605 `CREATION_TIMESTAMP` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
606 PRIMARY KEY (`ID`),
607 UNIQUE KEY `uk1_model_recipe` (`MODEL_ID`,`ACTION`)
608) ENGINE=InnoDB DEFAULT CHARSET=latin1;
609/*!40101 SET character_set_client = @saved_cs_client */;
610
611--
612-- Table structure for table `network_recipe`
613--
614
615DROP TABLE IF EXISTS `network_recipe`;
616/*!40101 SET @saved_cs_client = @@character_set_client */;
617/*!40101 SET character_set_client = utf8 */;
618CREATE TABLE `network_recipe` (
619 `id` int(11) NOT NULL AUTO_INCREMENT,
620 `MODEL_NAME` varchar(20) NOT NULL,
621 `ACTION` varchar(50) NOT NULL,
622 `DESCRIPTION` varchar(1200) DEFAULT NULL,
623 `ORCHESTRATION_URI` varchar(256) NOT NULL,
624 `NETWORK_PARAM_XSD` varchar(2048) DEFAULT NULL,
625 `RECIPE_TIMEOUT` int(11) DEFAULT NULL,
626 `SERVICE_TYPE` varchar(45) DEFAULT NULL,
627 `CREATION_TIMESTAMP` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
628 `VERSION_STR` varchar(20) NOT NULL,
629 `RESOURCE_CATEGORY` varchar(200) DEFAULT NULL,
630 `RESOURCE_SUB_CATEGORY` varchar(200) DEFAULT NULL,
631 PRIMARY KEY (`id`),
632 UNIQUE KEY `UK_rl4f296i0p8lyokxveaiwkayi` (`MODEL_NAME`,`ACTION`,`VERSION_STR`)
633) ENGINE=InnoDB AUTO_INCREMENT=181 DEFAULT CHARSET=latin1;
634/*!40101 SET character_set_client = @saved_cs_client */;
635
636--
637-- Table structure for table `network_resource`
638--
639
640DROP TABLE IF EXISTS `network_resource`;
641/*!40101 SET @saved_cs_client = @@character_set_client */;
642/*!40101 SET character_set_client = utf8 */;
643CREATE TABLE `network_resource` (
644 `MODEL_UUID` varchar(200) NOT NULL,
645 `MODEL_NAME` varchar(200) NOT NULL,
646 `MODEL_INVARIANT_UUID` varchar(200) DEFAULT NULL,
647 `DESCRIPTION` varchar(1200) DEFAULT NULL,
648 `HEAT_TEMPLATE_ARTIFACT_UUID` varchar(200) NULL,
649 `NEUTRON_NETWORK_TYPE` varchar(20) DEFAULT NULL,
650 `MODEL_VERSION` varchar(20) DEFAULT NULL,
651 `TOSCA_NODE_TYPE` varchar(200) DEFAULT NULL,
652 `AIC_VERSION_MIN` varchar(20) NULL,
653 `AIC_VERSION_MAX` varchar(20) DEFAULT NULL,
654 `ORCHESTRATION_MODE` varchar(20) DEFAULT 'HEAT',
655 `CREATION_TIMESTAMP` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
656 `RESOURCE_CATEGORY` varchar(200) DEFAULT NULL,
657 `RESOURCE_SUB_CATEGORY` varchar(200) DEFAULT NULL,
658 PRIMARY KEY (`MODEL_UUID`),
659 KEY `fk_network_resource__temp_network_heat_template_lookup1_idx` (`MODEL_NAME`),
660 KEY `fk_network_resource__heat_template1_idx` (`HEAT_TEMPLATE_ARTIFACT_UUID`),
661 CONSTRAINT `fk_network_resource__heat_template1` FOREIGN KEY (`HEAT_TEMPLATE_ARTIFACT_UUID`) REFERENCES `heat_template` (`ARTIFACT_UUID`) ON DELETE NO ACTION ON UPDATE CASCADE,
662 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
663) ENGINE=InnoDB DEFAULT CHARSET=latin1;
664/*!40101 SET character_set_client = @saved_cs_client */;
665
666--
667-- Table structure for table `network_resource_customization`
668--
669
670DROP TABLE IF EXISTS `network_resource_customization`;
671/*!40101 SET @saved_cs_client = @@character_set_client */;
672/*!40101 SET character_set_client = utf8 */;
673CREATE TABLE `network_resource_customization` (
674 `MODEL_CUSTOMIZATION_UUID` varchar(200) NOT NULL,
675 `MODEL_INSTANCE_NAME` varchar(200) NOT NULL,
676 `NETWORK_TECHNOLOGY` varchar(45) DEFAULT NULL,
677 `NETWORK_TYPE` varchar(45) DEFAULT NULL,
678 `NETWORK_ROLE` varchar(200) DEFAULT NULL,
679 `NETWORK_SCOPE` varchar(45) DEFAULT NULL,
680 `RESOURCE_INPUT` varchar(20000) DEFAULT NULL,
681 `CREATION_TIMESTAMP` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
682 `NETWORK_RESOURCE_MODEL_UUID` varchar(200) NOT NULL,
683 PRIMARY KEY (`MODEL_CUSTOMIZATION_UUID`),
684 KEY `fk_network_resource_customization__network_resource1_idx` (`NETWORK_RESOURCE_MODEL_UUID`),
685 CONSTRAINT `fk_network_resource_customization__network_resource1` FOREIGN KEY (`NETWORK_RESOURCE_MODEL_UUID`) REFERENCES `network_resource` (`MODEL_UUID`) ON DELETE CASCADE ON UPDATE CASCADE
686) ENGINE=InnoDB DEFAULT CHARSET=latin1;
687/*!40101 SET character_set_client = @saved_cs_client */;
688
689--
690-- Table structure for table `network_resource_customization_to_service`
691--
692
693DROP TABLE IF EXISTS `network_resource_customization_to_service`;
694/*!40101 SET @saved_cs_client = @@character_set_client */;
695/*!40101 SET character_set_client = utf8 */;
696CREATE TABLE `network_resource_customization_to_service` (
697 `SERVICE_MODEL_UUID` varchar(200) NOT NULL,
698 `RESOURCE_MODEL_CUSTOMIZATION_UUID` varchar(200) NOT NULL,
699 PRIMARY KEY (`SERVICE_MODEL_UUID`,`RESOURCE_MODEL_CUSTOMIZATION_UUID`),
700 KEY `RESOURCE_MODEL_CUSTOMIZATION_UUID` (`RESOURCE_MODEL_CUSTOMIZATION_UUID`),
701 CONSTRAINT `network_resource_customization_to_service_ibfk_1` FOREIGN KEY (`SERVICE_MODEL_UUID`) REFERENCES `service` (`MODEL_UUID`) ON DELETE CASCADE,
702 CONSTRAINT `network_resource_customization_to_service_ibfk_2` FOREIGN KEY (`RESOURCE_MODEL_CUSTOMIZATION_UUID`) REFERENCES `network_resource_customization` (`MODEL_CUSTOMIZATION_UUID`) ON DELETE CASCADE
703) ENGINE=InnoDB DEFAULT CHARSET=latin1;
704/*!40101 SET character_set_client = @saved_cs_client */;
705
706--
707-- Table structure for table `northbound_request_ref_lookup`
708--
709
710DROP TABLE IF EXISTS `northbound_request_ref_lookup`;
711/*!40101 SET @saved_cs_client = @@character_set_client */;
712/*!40101 SET character_set_client = utf8 */;
713CREATE TABLE `northbound_request_ref_lookup` (
714 `id` int(11) NOT NULL AUTO_INCREMENT,
715 `REQUEST_SCOPE` varchar(200) NOT NULL,
716 `MACRO_ACTION` varchar(200) NOT NULL,
717 `ACTION` varchar(200) NOT NULL,
718 `IS_ALACARTE` tinyint(1) NOT NULL DEFAULT '0',
719 `MIN_API_VERSION` double NOT NULL,
720 `MAX_API_VERSION` double DEFAULT NULL,
721 `IS_TOPLEVELFLOW` tinyint(1) DEFAULT NULL,
722 `CLOUD_OWNER` varchar(200) NOT NULL,
723 PRIMARY KEY (`id`),
724 UNIQUE KEY `UK_northbound_request_ref_lookup` (`MIN_API_VERSION`,`REQUEST_SCOPE`,`ACTION`,`IS_ALACARTE`,`MACRO_ACTION`,`CLOUD_OWNER`)
725) ENGINE=InnoDB AUTO_INCREMENT=86 DEFAULT CHARSET=latin1;
726/*!40101 SET character_set_client = @saved_cs_client */;
727
728--
729-- Table structure for table `orchestration_flow_reference`
730--
731
732DROP TABLE IF EXISTS `orchestration_flow_reference`;
733/*!40101 SET @saved_cs_client = @@character_set_client */;
734/*!40101 SET character_set_client = utf8 */;
735CREATE TABLE `orchestration_flow_reference` (
736 `id` int(11) NOT NULL AUTO_INCREMENT,
737 `COMPOSITE_ACTION` varchar(200) NOT NULL,
738 `SEQ_NO` int(11) NOT NULL,
739 `FLOW_NAME` varchar(200) NOT NULL,
740 `FLOW_VERSION` double NOT NULL,
Manamohanb3950902019-12-12 15:15:46 +0530741 `SCOPE` varchar(200) DEFAULT NULL,
742 `ACTION` varchar(200) DEFAULT NULL,
Benjamin, Max (mb388a)86f04e12019-04-02 22:54:57 -0400743 `NB_REQ_REF_LOOKUP_ID` int(11) NOT NULL,
744 PRIMARY KEY (`id`),
745 UNIQUE KEY `UK_orchestration_flow_reference` (`COMPOSITE_ACTION`,`FLOW_NAME`,`SEQ_NO`,`NB_REQ_REF_LOOKUP_ID`),
746 KEY `fk_orchestration_flow_reference__northbound_req_ref_look_idx` (`NB_REQ_REF_LOOKUP_ID`),
747 KEY `fk_orchestration_flow_reference__building_block_detail` (`FLOW_NAME`),
748 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
749) ENGINE=InnoDB AUTO_INCREMENT=398 DEFAULT CHARSET=latin1;
750/*!40101 SET character_set_client = @saved_cs_client */;
751
752--
753-- Table structure for table `orchestration_status_state_transition_directive`
754--
755
756DROP TABLE IF EXISTS `orchestration_status_state_transition_directive`;
757/*!40101 SET @saved_cs_client = @@character_set_client */;
758/*!40101 SET character_set_client = utf8 */;
759CREATE TABLE `orchestration_status_state_transition_directive` (
760 `id` int(11) NOT NULL AUTO_INCREMENT,
761 `RESOURCE_TYPE` varchar(25) NOT NULL,
762 `ORCHESTRATION_STATUS` varchar(25) NOT NULL,
763 `TARGET_ACTION` varchar(25) NOT NULL,
764 `FLOW_DIRECTIVE` varchar(25) NOT NULL,
765 PRIMARY KEY (`id`),
766 UNIQUE KEY `UK_orchestration_status_state_transition_directive` (`RESOURCE_TYPE`,`ORCHESTRATION_STATUS`,`TARGET_ACTION`)
767) ENGINE=InnoDB AUTO_INCREMENT=686 DEFAULT CHARSET=latin1;
768/*!40101 SET character_set_client = @saved_cs_client */;
769
770--
771-- Table structure for table `rainy_day_handler_macro`
772--
773
774DROP TABLE IF EXISTS `rainy_day_handler_macro`;
775/*!40101 SET @saved_cs_client = @@character_set_client */;
776/*!40101 SET character_set_client = utf8 */;
777CREATE TABLE `rainy_day_handler_macro` (
778 `id` int(11) NOT NULL AUTO_INCREMENT,
779 `FLOW_NAME` varchar(200) NOT NULL,
780 `SERVICE_TYPE` varchar(200) NOT NULL,
781 `VNF_TYPE` varchar(200) NOT NULL,
782 `ERROR_CODE` varchar(200) NOT NULL,
783 `WORK_STEP` varchar(200) NOT NULL,
784 `POLICY` varchar(200) NOT NULL,
785 `SECONDARY_POLICY` varchar(200) DEFAULT NULL,
786 PRIMARY KEY (`id`)
787) ENGINE=InnoDB AUTO_INCREMENT=93 DEFAULT CHARSET=latin1;
788/*!40101 SET character_set_client = @saved_cs_client */;
789
790--
791-- Table structure for table `service`
792--
793
794DROP TABLE IF EXISTS `service`;
795/*!40101 SET @saved_cs_client = @@character_set_client */;
796/*!40101 SET character_set_client = utf8 */;
797CREATE TABLE `service` (
798 `MODEL_UUID` varchar(200) NOT NULL,
799 `MODEL_NAME` varchar(200) NOT NULL,
800 `MODEL_INVARIANT_UUID` varchar(200) NOT NULL,
801 `MODEL_VERSION` varchar(20) NOT NULL,
802 `DESCRIPTION` varchar(1200) DEFAULT NULL,
803 `CREATION_TIMESTAMP` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
804 `TOSCA_CSAR_ARTIFACT_UUID` varchar(200) DEFAULT NULL,
805 `SERVICE_TYPE` varchar(200) DEFAULT NULL,
806 `SERVICE_ROLE` varchar(200) DEFAULT NULL,
807 `ENVIRONMENT_CONTEXT` varchar(200) DEFAULT NULL,
808 `WORKLOAD_CONTEXT` varchar(200) DEFAULT NULL,
809 `SERVICE_CATEGORY` varchar(200) DEFAULT NULL,
810 `RESOURCE_ORDER` varchar(200) default NULL,
Gamboa, Gilbert62b2e472019-06-06 14:23:36 -0400811 `OVERALL_DISTRIBUTION_STATUS` varchar(45),
812 `ONAP_GENERATED_NAMING` TINYINT(1) DEFAULT NULL,
813 `NAMING_POLICY` varchar(200) DEFAULT NULL,
eeginux0f65f072019-11-07 15:19:58 +0000814 `CDS_BLUEPRINT_NAME` varchar(200) DEFAULT NULL,
815 `CDS_BLUEPRINT_VERSION` varchar(20) DEFAULT NULL,
816 `CONTROLLER_ACTOR` varchar(200) DEFAULT NULL,
817 `SKIP_POST_INSTANTIATION_CONFIGURATION` boolean default true,
Benjamin, Max (mb388a)86f04e12019-04-02 22:54:57 -0400818 PRIMARY KEY (`MODEL_UUID`),
819 KEY `fk_service__tosca_csar1_idx` (`TOSCA_CSAR_ARTIFACT_UUID`),
820 CONSTRAINT `fk_service__tosca_csar1` FOREIGN KEY (`TOSCA_CSAR_ARTIFACT_UUID`) REFERENCES `tosca_csar` (`ARTIFACT_UUID`) ON DELETE CASCADE ON UPDATE CASCADE
821) ENGINE=InnoDB DEFAULT CHARSET=latin1;
822/*!40101 SET character_set_client = @saved_cs_client */;
823
824--
825-- Table structure for table `service_proxy_customization`
826--
827
828DROP TABLE IF EXISTS `service_proxy_customization`;
829/*!40101 SET @saved_cs_client = @@character_set_client */;
830/*!40101 SET character_set_client = utf8 */;
831CREATE TABLE `service_proxy_customization` (
832 `MODEL_CUSTOMIZATION_UUID` varchar(200) NOT NULL,
833 `MODEL_INSTANCE_NAME` varchar(200) NOT NULL,
834 `MODEL_UUID` varchar(200) NOT NULL,
835 `MODEL_INVARIANT_UUID` varchar(200) NOT NULL,
836 `MODEL_VERSION` varchar(20) NOT NULL,
837 `MODEL_NAME` varchar(200) NOT NULL,
838 `TOSCA_NODE_TYPE` varchar(200) NOT NULL,
839 `DESCRIPTION` varchar(1200) DEFAULT NULL,
840 `SOURCE_SERVICE_MODEL_UUID` varchar(200) NOT NULL,
841 `CREATION_TIMESTAMP` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
842 PRIMARY KEY (`MODEL_CUSTOMIZATION_UUID`),
843 KEY `fk_service_proxy_customization__service1_idx` (`SOURCE_SERVICE_MODEL_UUID`),
844 CONSTRAINT `fk_service_proxy_resource_customization__service1` FOREIGN KEY (`SOURCE_SERVICE_MODEL_UUID`) REFERENCES `service` (`MODEL_UUID`) ON DELETE CASCADE ON UPDATE CASCADE
845) ENGINE=InnoDB DEFAULT CHARSET=latin1;
846/*!40101 SET character_set_client = @saved_cs_client */;
847
848--
849-- Table structure for table `service_proxy_customization_to_service`
850--
851
852DROP TABLE IF EXISTS `service_proxy_customization_to_service`;
853/*!40101 SET @saved_cs_client = @@character_set_client */;
854/*!40101 SET character_set_client = utf8 */;
855CREATE TABLE `service_proxy_customization_to_service` (
856 `SERVICE_MODEL_UUID` varchar(200) NOT NULL,
857 `RESOURCE_MODEL_CUSTOMIZATION_UUID` varchar(200) NOT NULL,
858 PRIMARY KEY (`SERVICE_MODEL_UUID`,`RESOURCE_MODEL_CUSTOMIZATION_UUID`)
859) ENGINE=InnoDB DEFAULT CHARSET=latin1;
860/*!40101 SET character_set_client = @saved_cs_client */;
861
862--
863-- Table structure for table `service_recipe`
864--
865
866DROP TABLE IF EXISTS `service_recipe`;
867/*!40101 SET @saved_cs_client = @@character_set_client */;
868/*!40101 SET character_set_client = utf8 */;
869CREATE TABLE `service_recipe` (
870 `id` int(11) NOT NULL AUTO_INCREMENT,
871 `ACTION` varchar(50) NOT NULL,
872 `VERSION_STR` varchar(20) DEFAULT NULL,
873 `DESCRIPTION` varchar(1200) DEFAULT NULL,
874 `ORCHESTRATION_URI` varchar(256) NOT NULL,
875 `SERVICE_PARAM_XSD` varchar(2048) DEFAULT NULL,
876 `RECIPE_TIMEOUT` int(11) DEFAULT NULL,
877 `SERVICE_TIMEOUT_INTERIM` int(11) DEFAULT NULL,
878 `CREATION_TIMESTAMP` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
879 `SERVICE_MODEL_UUID` varchar(200) NOT NULL,
880 PRIMARY KEY (`id`),
881 UNIQUE KEY `UK_7fav5dkux2v8g9d2i5ymudlgc` (`SERVICE_MODEL_UUID`,`ACTION`),
882 KEY `fk_service_recipe__service1_idx` (`SERVICE_MODEL_UUID`),
883 CONSTRAINT `fk_service_recipe__service1` FOREIGN KEY (`SERVICE_MODEL_UUID`) REFERENCES `service` (`MODEL_UUID`) ON DELETE CASCADE ON UPDATE CASCADE
884) ENGINE=InnoDB AUTO_INCREMENT=93 DEFAULT CHARSET=latin1;
885/*!40101 SET character_set_client = @saved_cs_client */;
886
887--
888-- Table structure for table `temp_network_heat_template_lookup`
889--
890
891DROP TABLE IF EXISTS `temp_network_heat_template_lookup`;
892/*!40101 SET @saved_cs_client = @@character_set_client */;
893/*!40101 SET character_set_client = utf8 */;
894CREATE TABLE `temp_network_heat_template_lookup` (
895 `NETWORK_RESOURCE_MODEL_NAME` varchar(200) NOT NULL,
896 `HEAT_TEMPLATE_ARTIFACT_UUID` varchar(200) NULL,
897 `AIC_VERSION_MIN` varchar(20) NULL,
898 `AIC_VERSION_MAX` varchar(20) DEFAULT NULL,
899 PRIMARY KEY (`NETWORK_RESOURCE_MODEL_NAME`),
900 KEY `fk_temp_network_heat_template_lookup__heat_template1_idx` (`HEAT_TEMPLATE_ARTIFACT_UUID`),
901 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
902) ENGINE=InnoDB DEFAULT CHARSET=latin1;
903/*!40101 SET character_set_client = @saved_cs_client */;
904
905--
906-- Table structure for table `tosca_csar`
907--
908
909DROP TABLE IF EXISTS `tosca_csar`;
910/*!40101 SET @saved_cs_client = @@character_set_client */;
911/*!40101 SET character_set_client = utf8 */;
912CREATE TABLE `tosca_csar` (
913 `ARTIFACT_UUID` varchar(200) NOT NULL,
914 `NAME` varchar(200) NOT NULL,
915 `VERSION` varchar(20) NOT NULL,
916 `DESCRIPTION` varchar(1200) DEFAULT NULL,
917 `ARTIFACT_CHECKSUM` varchar(200) NOT NULL,
918 `URL` varchar(200) NOT NULL,
919 `CREATION_TIMESTAMP` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
920 PRIMARY KEY (`ARTIFACT_UUID`)
921) ENGINE=InnoDB DEFAULT CHARSET=latin1;
922/*!40101 SET character_set_client = @saved_cs_client */;
923
924--
925-- Table structure for table `vf_module`
926--
927
928DROP TABLE IF EXISTS `vf_module`;
929/*!40101 SET @saved_cs_client = @@character_set_client */;
930/*!40101 SET character_set_client = utf8 */;
931CREATE TABLE `vf_module` (
932 `MODEL_UUID` varchar(200) NOT NULL,
933 `MODEL_INVARIANT_UUID` varchar(200) DEFAULT NULL,
934 `MODEL_VERSION` varchar(20) NOT NULL,
935 `MODEL_NAME` varchar(200) NOT NULL,
936 `DESCRIPTION` varchar(1200) DEFAULT NULL,
937 `IS_BASE` tinyint(1) NOT NULL,
938 `HEAT_TEMPLATE_ARTIFACT_UUID` varchar(200) DEFAULT NULL,
939 `VOL_HEAT_TEMPLATE_ARTIFACT_UUID` varchar(200) DEFAULT NULL,
940 `CREATION_TIMESTAMP` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
941 `VNF_RESOURCE_MODEL_UUID` varchar(200) NOT NULL,
942 PRIMARY KEY (`MODEL_UUID`,`VNF_RESOURCE_MODEL_UUID`),
943 KEY `fk_vf_module__vnf_resource1_idx` (`VNF_RESOURCE_MODEL_UUID`),
944 KEY `fk_vf_module__heat_template_art_uuid__heat_template1_idx` (`HEAT_TEMPLATE_ARTIFACT_UUID`),
945 KEY `fk_vf_module__vol_heat_template_art_uuid__heat_template2_idx` (`VOL_HEAT_TEMPLATE_ARTIFACT_UUID`),
946 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,
947 CONSTRAINT `fk_vf_module__vnf_resource1` FOREIGN KEY (`VNF_RESOURCE_MODEL_UUID`) REFERENCES `vnf_resource` (`MODEL_UUID`) ON DELETE CASCADE ON UPDATE CASCADE,
948 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
949) ENGINE=InnoDB DEFAULT CHARSET=latin1;
950/*!40101 SET character_set_client = @saved_cs_client */;
951
952--
953-- Table structure for table `vf_module_customization`
954--
955
956DROP TABLE IF EXISTS `vf_module_customization`;
957/*!40101 SET @saved_cs_client = @@character_set_client */;
958/*!40101 SET character_set_client = utf8 */;
959CREATE TABLE `vf_module_customization` (
960 `ID` int(13) NOT NULL AUTO_INCREMENT,
961 `MODEL_CUSTOMIZATION_UUID` varchar(200) NOT NULL,
962 `LABEL` varchar(200) DEFAULT NULL,
963 `INITIAL_COUNT` int(11) DEFAULT '0',
964 `MIN_INSTANCES` int(11) DEFAULT '0',
965 `MAX_INSTANCES` int(11) DEFAULT NULL,
966 `AVAILABILITY_ZONE_COUNT` int(11) DEFAULT NULL,
967 `HEAT_ENVIRONMENT_ARTIFACT_UUID` varchar(200) DEFAULT NULL,
968 `VOL_ENVIRONMENT_ARTIFACT_UUID` varchar(200) DEFAULT NULL,
969 `CREATION_TIMESTAMP` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
970 `VF_MODULE_MODEL_UUID` varchar(200) NOT NULL,
971 `VNF_RESOURCE_CUSTOMIZATION_ID` int(13) DEFAULT NULL,
eeginux0f65f072019-11-07 15:19:58 +0000972 `SKIP_POST_INSTANTIATION_CONFIGURATION` boolean default true,
Benjamin, Max (mb388a)86f04e12019-04-02 22:54:57 -0400973 PRIMARY KEY (`ID`),
974 KEY `fk_vf_module_customization__vf_module1_idx` (`VF_MODULE_MODEL_UUID`),
975 KEY `fk_vf_module_customization__heat_env__heat_environment1_idx` (`HEAT_ENVIRONMENT_ARTIFACT_UUID`),
976 KEY `fk_vf_module_customization__vol_env__heat_environment2_idx` (`VOL_ENVIRONMENT_ARTIFACT_UUID`),
977 KEY `fk_vf_module_customization_to_vnf_resource_customization` (`VNF_RESOURCE_CUSTOMIZATION_ID`),
978 KEY `vf_module_customization_model_cust_uuid_idx` (`MODEL_CUSTOMIZATION_UUID`),
979 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,
980 CONSTRAINT `fk_vf_module_customization__vf_module1` FOREIGN KEY (`VF_MODULE_MODEL_UUID`) REFERENCES `vf_module` (`MODEL_UUID`) ON DELETE CASCADE ON UPDATE CASCADE,
981 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,
982 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
983) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=latin1;
984/*!40101 SET character_set_client = @saved_cs_client */;
985
986--
987-- Table structure for table `vf_module_to_heat_files`
988--
989
990DROP TABLE IF EXISTS `vf_module_to_heat_files`;
991/*!40101 SET @saved_cs_client = @@character_set_client */;
992/*!40101 SET character_set_client = utf8 */;
993CREATE TABLE `vf_module_to_heat_files` (
994 `VF_MODULE_MODEL_UUID` varchar(200) NOT NULL,
995 `HEAT_FILES_ARTIFACT_UUID` varchar(200) NOT NULL,
996 PRIMARY KEY (`VF_MODULE_MODEL_UUID`,`HEAT_FILES_ARTIFACT_UUID`),
997 KEY `fk_vf_module_to_heat_files__heat_files__artifact_uuid1_idx` (`HEAT_FILES_ARTIFACT_UUID`),
998 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,
999 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
1000) ENGINE=InnoDB DEFAULT CHARSET=latin1 COMMENT='il fait ce qu''il dit';
1001/*!40101 SET character_set_client = @saved_cs_client */;
1002
1003--
1004-- Table structure for table `vnf_components`
1005--
1006
1007DROP TABLE IF EXISTS `vnf_components`;
1008/*!40101 SET @saved_cs_client = @@character_set_client */;
1009/*!40101 SET character_set_client = utf8 */;
1010CREATE TABLE `vnf_components` (
1011 `VNF_ID` int(11) NOT NULL,
1012 `COMPONENT_TYPE` varchar(20) NOT NULL,
1013 `HEAT_TEMPLATE_ID` int(11) DEFAULT NULL,
1014 `HEAT_ENVIRONMENT_ID` int(11) DEFAULT NULL,
1015 `CREATION_TIMESTAMP` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
1016 PRIMARY KEY (`VNF_ID`,`COMPONENT_TYPE`)
1017) ENGINE=InnoDB DEFAULT CHARSET=latin1;
1018/*!40101 SET character_set_client = @saved_cs_client */;
1019
1020--
1021-- Table structure for table `vnf_components_recipe`
1022--
1023
1024DROP TABLE IF EXISTS `vnf_components_recipe`;
1025/*!40101 SET @saved_cs_client = @@character_set_client */;
1026/*!40101 SET character_set_client = utf8 */;
1027CREATE TABLE `vnf_components_recipe` (
1028 `id` int(11) NOT NULL AUTO_INCREMENT,
1029 `VNF_TYPE` varchar(200) DEFAULT NULL,
1030 `VNF_COMPONENT_TYPE` varchar(45) NOT NULL,
1031 `ACTION` varchar(50) NOT NULL,
1032 `SERVICE_TYPE` varchar(45) DEFAULT NULL,
1033 `VERSION` varchar(20) NOT NULL,
1034 `DESCRIPTION` varchar(1200) DEFAULT NULL,
1035 `ORCHESTRATION_URI` varchar(256) NOT NULL,
1036 `VNF_COMPONENT_PARAM_XSD` varchar(2048) DEFAULT NULL,
1037 `RECIPE_TIMEOUT` int(11) DEFAULT NULL,
1038 `CREATION_TIMESTAMP` datetime DEFAULT CURRENT_TIMESTAMP,
1039 `VF_MODULE_MODEL_UUID` varchar(200) DEFAULT NULL,
1040 PRIMARY KEY (`id`),
1041 UNIQUE KEY `UK_4dpdwddaaclhc11wxsb7h59ma` (`VF_MODULE_MODEL_UUID`,`VNF_COMPONENT_TYPE`,`ACTION`,`VERSION`)
1042) ENGINE=InnoDB AUTO_INCREMENT=38 DEFAULT CHARSET=latin1;
1043/*!40101 SET character_set_client = @saved_cs_client */;
1044
1045--
1046-- Table structure for table `vnf_recipe`
1047--
1048
1049DROP TABLE IF EXISTS `vnf_recipe`;
1050/*!40101 SET @saved_cs_client = @@character_set_client */;
1051/*!40101 SET character_set_client = utf8 */;
1052CREATE TABLE `vnf_recipe` (
1053 `id` int(11) NOT NULL AUTO_INCREMENT,
1054 `NF_ROLE` varchar(200) DEFAULT NULL,
1055 `ACTION` varchar(50) NOT NULL,
1056 `SERVICE_TYPE` varchar(45) DEFAULT NULL,
1057 `VERSION_STR` varchar(20) NOT NULL,
1058 `DESCRIPTION` varchar(1200) DEFAULT NULL,
1059 `ORCHESTRATION_URI` varchar(256) NOT NULL,
1060 `VNF_PARAM_XSD` varchar(2048) DEFAULT NULL,
1061 `RECIPE_TIMEOUT` int(11) DEFAULT NULL,
1062 `CREATION_TIMESTAMP` datetime DEFAULT CURRENT_TIMESTAMP,
1063 `VF_MODULE_ID` varchar(100) DEFAULT NULL,
1064 PRIMARY KEY (`id`),
1065 UNIQUE KEY `UK_f3tvqau498vrifq3cr8qnigkr` (`VF_MODULE_ID`,`ACTION`,`VERSION_STR`)
1066) ENGINE=InnoDB AUTO_INCREMENT=10015 DEFAULT CHARSET=latin1;
1067/*!40101 SET character_set_client = @saved_cs_client */;
1068
1069--
1070-- Table structure for table `vnf_resource`
1071--
1072
1073DROP TABLE IF EXISTS `vnf_resource`;
1074/*!40101 SET @saved_cs_client = @@character_set_client */;
1075/*!40101 SET character_set_client = utf8 */;
1076CREATE TABLE `vnf_resource` (
1077 `ORCHESTRATION_MODE` varchar(20) NOT NULL DEFAULT 'HEAT',
1078 `DESCRIPTION` varchar(1200) DEFAULT NULL,
1079 `CREATION_TIMESTAMP` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
1080 `MODEL_UUID` varchar(200) NOT NULL,
1081 `AIC_VERSION_MIN` varchar(20) DEFAULT NULL,
1082 `AIC_VERSION_MAX` varchar(20) DEFAULT NULL,
1083 `MODEL_INVARIANT_UUID` varchar(200) DEFAULT NULL,
1084 `MODEL_VERSION` varchar(20) NOT NULL,
1085 `MODEL_NAME` varchar(200) DEFAULT NULL,
1086 `TOSCA_NODE_TYPE` varchar(200) DEFAULT NULL,
1087 `HEAT_TEMPLATE_ARTIFACT_UUID` varchar(200) DEFAULT NULL,
1088 `RESOURCE_CATEGORY` varchar(200) DEFAULT NULL,
1089 `RESOURCE_SUB_CATEGORY` varchar(200) DEFAULT NULL,
1090 PRIMARY KEY (`MODEL_UUID`),
1091 KEY `fk_vnf_resource__heat_template1` (`HEAT_TEMPLATE_ARTIFACT_UUID`),
1092 CONSTRAINT `fk_vnf_resource__heat_template1` FOREIGN KEY (`HEAT_TEMPLATE_ARTIFACT_UUID`) REFERENCES `heat_template` (`ARTIFACT_UUID`) ON DELETE CASCADE ON UPDATE CASCADE
1093) ENGINE=InnoDB DEFAULT CHARSET=latin1;
1094/*!40101 SET character_set_client = @saved_cs_client */;
1095
1096--
1097-- Table structure for table `vnf_resource_customization`
1098--
1099
1100DROP TABLE IF EXISTS `vnf_resource_customization`;
1101/*!40101 SET @saved_cs_client = @@character_set_client */;
1102/*!40101 SET character_set_client = utf8 */;
1103CREATE TABLE `vnf_resource_customization` (
1104 `ID` int(13) NOT NULL AUTO_INCREMENT,
1105 `MODEL_CUSTOMIZATION_UUID` varchar(200) NOT NULL,
1106 `MODEL_INSTANCE_NAME` varchar(200) NOT NULL,
1107 `MIN_INSTANCES` int(11) DEFAULT NULL,
1108 `MAX_INSTANCES` int(11) DEFAULT NULL,
1109 `AVAILABILITY_ZONE_MAX_COUNT` int(11) DEFAULT NULL,
1110 `NF_TYPE` varchar(200) DEFAULT NULL,
1111 `NF_ROLE` varchar(200) DEFAULT NULL,
1112 `NF_FUNCTION` varchar(200) DEFAULT NULL,
1113 `NF_NAMING_CODE` varchar(200) DEFAULT NULL,
1114 `MULTI_STAGE_DESIGN` varchar(20) DEFAULT NULL,
1115 `RESOURCE_INPUT` varchar(20000) DEFAULT NULL,
1116 `CDS_BLUEPRINT_NAME` varchar(200) default null,
1117 `CDS_BLUEPRINT_VERSION` varchar(20) default null,
eeginuxfccb6ec2019-04-02 14:11:08 +01001118 `SKIP_POST_INSTANTIATION_CONFIGURATION` boolean default true,
Benjamin, Max (mb388a)86f04e12019-04-02 22:54:57 -04001119 `CREATION_TIMESTAMP` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
1120 `VNF_RESOURCE_MODEL_UUID` varchar(200) NOT NULL,
1121 `SERVICE_MODEL_UUID` varchar(200) NOT NULL,
zm330458cc8d2019-04-23 10:46:53 +08001122 `VNFCINSTANCEGROUP_ORDER` varchar(200) default NULL,
eeginux0f65f072019-11-07 15:19:58 +00001123 `NF_DATA_VALID` tinyint(1) DEFAULT '0',
1124 `CONTROLLER_ACTOR` varchar(200) DEFAULT NULL,
Benjamin, Max (mb388a)86f04e12019-04-02 22:54:57 -04001125 PRIMARY KEY (`ID`),
1126 UNIQUE KEY `UK_vnf_resource_customization` (`MODEL_CUSTOMIZATION_UUID`,`SERVICE_MODEL_UUID`),
1127 KEY `fk_vnf_resource_customization__vnf_resource1_idx` (`VNF_RESOURCE_MODEL_UUID`),
1128 KEY `fk_vnf_resource_customization_to_service` (`SERVICE_MODEL_UUID`),
1129 KEY `vnf_resource_customization_mod_cust_uuid_idx` (`MODEL_CUSTOMIZATION_UUID`),
1130 CONSTRAINT `fk_vnf_resource_customization__vnf_resource1` FOREIGN KEY (`VNF_RESOURCE_MODEL_UUID`) REFERENCES `vnf_resource` (`MODEL_UUID`) ON DELETE CASCADE ON UPDATE CASCADE,
1131 CONSTRAINT `fk_vnf_resource_customization_to_service` FOREIGN KEY (`SERVICE_MODEL_UUID`) REFERENCES `service` (`MODEL_UUID`) ON DELETE CASCADE ON UPDATE CASCADE
1132) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=latin1;
1133/*!40101 SET character_set_client = @saved_cs_client */;
1134
1135--
1136-- Table structure for table `vnfc_customization`
1137--
1138
1139DROP TABLE IF EXISTS `vnfc_customization`;
1140/*!40101 SET @saved_cs_client = @@character_set_client */;
1141/*!40101 SET character_set_client = utf8 */;
1142CREATE TABLE `vnfc_customization` (
1143 `MODEL_CUSTOMIZATION_UUID` varchar(200) NOT NULL,
1144 `MODEL_INSTANCE_NAME` varchar(200) NOT NULL,
1145 `MODEL_UUID` varchar(200) NOT NULL,
1146 `MODEL_INVARIANT_UUID` varchar(200) NOT NULL,
1147 `MODEL_VERSION` varchar(20) NOT NULL,
1148 `MODEL_NAME` varchar(200) NOT NULL,
1149 `TOSCA_NODE_TYPE` varchar(200) NOT NULL,
1150 `DESCRIPTION` varchar(1200) DEFAULT NULL,
zm33084a1b182019-04-23 18:08:56 +08001151 `RESOURCE_INPUT` varchar(20000) DEFAULT NULL,
subhash kumar singh9797ba02019-04-20 15:41:18 +05301152 `VNFC_INSTANCE_GROUP_CUSTOMIZATION_ID` integer DEFAULT NULL,
Benjamin, Max (mb388a)86f04e12019-04-02 22:54:57 -04001153 `CREATION_TIMESTAMP` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
1154 PRIMARY KEY (`MODEL_CUSTOMIZATION_UUID`)
1155) ENGINE=InnoDB DEFAULT CHARSET=latin1;
1156/*!40101 SET character_set_client = @saved_cs_client */;
1157
1158--
1159-- Table structure for table `vnfc_instance_group_customization`
1160--
1161
1162DROP TABLE IF EXISTS `vnfc_instance_group_customization`;
1163/*!40101 SET @saved_cs_client = @@character_set_client */;
1164/*!40101 SET character_set_client = utf8 */;
1165CREATE TABLE `vnfc_instance_group_customization` (
1166 `ID` int(13) NOT NULL AUTO_INCREMENT PRIMARY KEY,
1167 `VNF_RESOURCE_CUSTOMIZATION_ID` int(13) NOT NULL,
1168 `INSTANCE_GROUP_MODEL_UUID` varchar(200) NOT NULL,
1169 `FUNCTION` varchar(200) DEFAULT NULL,
1170 `DESCRIPTION` varchar(1200) DEFAULT NULL,
1171 `CREATION_TIMESTAMP` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
1172 KEY `fk_vnfc_instance_group_customization__instance_group1_idx` (`INSTANCE_GROUP_MODEL_UUID`),
1173 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,
1174 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
1175) ENGINE=InnoDB DEFAULT CHARSET=latin1;
1176set foreign_key_checks=1;
Benjamin, Max (mb388a)69455a22018-09-04 11:21:02 -04001177
Benjamin, Max (mb388a)e8689682019-03-20 16:19:39 -04001178CREATE TABLE IF NOT EXISTS `pnf_resource` (
Smokowski, Steve (ss835w)8b56e8d2019-04-11 12:09:04 -04001179 `ORCHESTRATION_MODE` varchar(20) DEFAULT NULL,
Benjamin, Max (mb388a)e8689682019-03-20 16:19:39 -04001180 `DESCRIPTION` varchar(1200) DEFAULT NULL,
1181 `CREATION_TIMESTAMP` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
1182 `MODEL_UUID` varchar(200) NOT NULL,
1183 `MODEL_INVARIANT_UUID` varchar(200) DEFAULT NULL,
1184 `MODEL_VERSION` varchar(20) NOT NULL,
1185 `MODEL_NAME` varchar(200) DEFAULT NULL,
1186 `TOSCA_NODE_TYPE` varchar(200) DEFAULT NULL,
1187 `RESOURCE_CATEGORY` varchar(200) DEFAULT NULL,
1188 `RESOURCE_SUB_CATEGORY` varchar(200) DEFAULT NULL,
1189 PRIMARY KEY (`MODEL_UUID`)
1190) ENGINE=InnoDB DEFAULT CHARSET=latin1;
1191
1192CREATE TABLE IF NOT EXISTS `pnf_resource_customization` (
1193 `MODEL_CUSTOMIZATION_UUID` varchar(200) NOT NULL,
1194 `MODEL_INSTANCE_NAME` varchar(200) NOT NULL,
1195 `NF_TYPE` varchar(200) DEFAULT NULL,
1196 `NF_ROLE` varchar(200) DEFAULT NULL,
1197 `NF_FUNCTION` varchar(200) DEFAULT NULL,
1198 `NF_NAMING_CODE` varchar(200) DEFAULT NULL,
1199 `CREATION_TIMESTAMP` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
1200 `PNF_RESOURCE_MODEL_UUID` varchar(200) NOT NULL,
1201 `MULTI_STAGE_DESIGN` varchar(20) DEFAULT NULL,
1202 `RESOURCE_INPUT` varchar(2000) DEFAULT NULL,
1203 `CDS_BLUEPRINT_NAME` varchar(200) DEFAULT NULL,
1204 `CDS_BLUEPRINT_VERSION` varchar(20) DEFAULT NULL,
eeginuxfccb6ec2019-04-02 14:11:08 +01001205 `SKIP_POST_INSTANTIATION_CONFIGURATION` boolean default true,
eeginux0f65f072019-11-07 15:19:58 +00001206 `CONTROLLER_ACTOR` varchar(200) DEFAULT NULL,
Benjamin, Max (mb388a)e8689682019-03-20 16:19:39 -04001207 PRIMARY KEY (`MODEL_CUSTOMIZATION_UUID`),
1208 KEY `fk_pnf_resource_customization__pnf_resource1_idx` (`PNF_RESOURCE_MODEL_UUID`),
1209 CONSTRAINT `fk_pnf_resource_customization__pnf_resource1` FOREIGN KEY (`PNF_RESOURCE_MODEL_UUID`) REFERENCES `pnf_resource` (`MODEL_UUID`) ON DELETE CASCADE ON UPDATE CASCADE
1210) ENGINE=InnoDB DEFAULT CHARSET=latin1;
1211
1212CREATE TABLE IF NOT EXISTS `pnf_resource_customization_to_service` (
1213 `SERVICE_MODEL_UUID` varchar(200) NOT NULL,
1214 `RESOURCE_MODEL_CUSTOMIZATION_UUID` varchar(200) NOT NULL,
Elena Kuleshova2aea242019-04-10 09:26:02 -04001215 PRIMARY KEY (`SERVICE_MODEL_UUID`,`RESOURCE_MODEL_CUSTOMIZATION_UUID`)
Benjamin, Max (mb388a)e8689682019-03-20 16:19:39 -04001216)ENGINE=InnoDB DEFAULT CHARSET=latin1;
eeginux66481e12019-03-16 16:07:16 +00001217
Elena Kuleshova2aea242019-04-10 09:26:02 -04001218
Smokowski, Steve (ss835w)8b56e8d2019-04-11 12:09:04 -04001219CREATE TABLE IF NOT EXISTS `workflow` (
1220 `ID` int(11) NOT NULL AUTO_INCREMENT,
1221 `ARTIFACT_UUID` varchar(200) NOT NULL,
1222 `ARTIFACT_NAME` varchar(200) NOT NULL,
1223 `NAME` varchar(200) NOT NULL,
1224 `OPERATION_NAME` varchar(200) DEFAULT NULL,
1225 `VERSION` double NOT NULL,
1226 `DESCRIPTION` varchar(1200) DEFAULT NULL,
1227 `BODY` longtext DEFAULT NULL,
1228 `RESOURCE_TARGET` varchar(200) NOT NULL,
1229 `SOURCE` varchar(200) NOT NULL,
1230 `TIMEOUT_MINUTES` int(11) DEFAULT NULL,
1231 `ARTIFACT_CHECKSUM` varchar(200) DEFAULT 'MANUAL RECORD',
1232 `CREATION_TIMESTAMP` datetime NOT NULL DEFAULT current_timestamp(),
1233 PRIMARY KEY (`ID`),
1234 UNIQUE KEY `UK_workflow` (`ARTIFACT_UUID`,`NAME`,`VERSION`,`SOURCE`)
1235) ENGINE=InnoDB DEFAULT CHARSET=latin1;
1236
1237CREATE TABLE IF NOT EXISTS `vnf_resource_to_workflow` (
1238 `ID` int(11) NOT NULL AUTO_INCREMENT,
1239 `VNF_RESOURCE_MODEL_UUID` varchar(200) NOT NULL,
1240 `WORKFLOW_ID` int(11) NOT NULL,
1241 PRIMARY KEY (`ID`),
1242 UNIQUE KEY `UK_vnf_resource_to_workflow` (`VNF_RESOURCE_MODEL_UUID`,`WORKFLOW_ID`),
1243 KEY `fk_vnf_resource_to_workflow__workflow1_idx` (`WORKFLOW_ID`),
1244 KEY `fk_vnf_resource_to_workflow__vnf_res_mod_uuid_idx` (`VNF_RESOURCE_MODEL_UUID`),
1245 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,
1246 CONSTRAINT `fk_vnf_resource_to_workflow__workflow1` FOREIGN KEY (`WORKFLOW_ID`) REFERENCES `workflow` (`ID`) ON DELETE CASCADE ON UPDATE CASCADE
1247) ENGINE=InnoDB DEFAULT CHARSET=latin1;
1248
1249CREATE TABLE IF NOT EXISTS `activity_spec` (
1250 `ID` INT(11) NOT NULL AUTO_INCREMENT,
1251 `NAME` VARCHAR(200) NOT NULL,
1252 `DESCRIPTION` VARCHAR(1200) NOT NULL,
1253 `VERSION` DOUBLE NOT NULL,
1254 `CREATION_TIMESTAMP` DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
1255 PRIMARY KEY (`ID`),
1256 UNIQUE INDEX `UK_activity_spec` (`NAME` ASC, `VERSION` ASC))
1257ENGINE = InnoDB
1258DEFAULT CHARACTER SET = latin1;
1259
1260CREATE TABLE IF NOT EXISTS `user_parameters` (
1261 `ID` INT(11) NOT NULL AUTO_INCREMENT,
1262 `NAME` VARCHAR(200) NOT NULL,
1263 `PAYLOAD_LOCATION` VARCHAR(500) NULL,
1264 `LABEL` VARCHAR(200) NOT NULL,
1265 `TYPE` VARCHAR(200) NOT NULL,
1266 `DESCRIPTION` VARCHAR(1200) NULL,
1267 `IS_REQUIRED` TINYINT(1) NOT NULL,
1268 `MAX_LENGTH` INT(11) NULL,
1269 `ALLOWABLE_CHARS` VARCHAR(200) NULL,
1270 `CREATION_TIMESTAMP` DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
1271 PRIMARY KEY (`ID`),
1272 UNIQUE INDEX `UK_user_parameters` (`NAME` ASC))
1273ENGINE = InnoDB
1274DEFAULT CHARACTER SET = latin1;
1275
1276CREATE TABLE IF NOT EXISTS `workflow_activity_spec_sequence` (
1277 `ID` INT(11) NOT NULL AUTO_INCREMENT,
1278 `WORKFLOW_ID` INT(11) NOT NULL,
1279 `ACTIVITY_SPEC_ID` INT(11) NOT NULL,
1280 `SEQ_NO` INT(11) NOT NULL,
1281 PRIMARY KEY (`ID`),
1282 UNIQUE INDEX `UK_workflow_activity_spec_sequence` (`WORKFLOW_ID` ASC, `ACTIVITY_SPEC_ID` ASC, `SEQ_NO` ASC),
1283 INDEX `fk_workflow_activity_spec_sequence__activity_spec_idx` (`ACTIVITY_SPEC_ID` ASC),
1284 INDEX `fk_workflow_activity_spec_sequence__workflow_actifact_uuid_idx` (`WORKFLOW_ID` ASC),
1285 CONSTRAINT `fk_workflow_activity_spec_sequence__activity_spec1`
1286 FOREIGN KEY (`ACTIVITY_SPEC_ID`)
1287 REFERENCES `activity_spec` (`ID`)
1288 ON DELETE CASCADE
1289 ON UPDATE CASCADE,
1290 CONSTRAINT `fk_workflow_activity_spec_sequence__workflow1`
1291 FOREIGN KEY (`WORKFLOW_ID`)
1292 REFERENCES `workflow` (`ID`)
1293 ON DELETE CASCADE
1294 ON UPDATE CASCADE)
1295ENGINE = InnoDB
1296DEFAULT CHARACTER SET = latin1;
1297
1298CREATE TABLE IF NOT EXISTS `activity_spec_parameters` (
1299 `ID` INT(11) NOT NULL AUTO_INCREMENT,
1300 `NAME` VARCHAR(200) NOT NULL,
1301 `TYPE` VARCHAR(200) NOT NULL,
1302 `DIRECTION` VARCHAR(200) NULL,
1303 `DESCRIPTION` VARCHAR(1200) NULL,
1304 `CREATION_TIMESTAMP` DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
1305 PRIMARY KEY (`ID`),
1306 UNIQUE INDEX `UK_activity_spec_parameters` (`NAME` ASC, `DIRECTION` ASC))
1307ENGINE = InnoDB
1308DEFAULT CHARACTER SET = latin1;
1309
1310CREATE TABLE IF NOT EXISTS `activity_spec_categories` (
1311 `ID` INT(11) NOT NULL AUTO_INCREMENT,
1312 `NAME` VARCHAR(200) NOT NULL,
1313 PRIMARY KEY (`ID`),
1314 UNIQUE INDEX `UK_activity_spec_categories` (`NAME` ASC))
1315ENGINE = InnoDB
1316DEFAULT CHARACTER SET = latin1;
1317
1318CREATE TABLE IF NOT EXISTS `activity_spec_to_activity_spec_categories` (
1319 `ID` INT(11) NOT NULL AUTO_INCREMENT,
1320 `ACTIVITY_SPEC_ID` INT(11) NOT NULL,
1321 `ACTIVITY_SPEC_CATEGORIES_ID` INT(11) NOT NULL,
1322 PRIMARY KEY (`ID`),
1323 UNIQUE INDEX `UK_activity_spec_to_activity_spec_categories` (`ACTIVITY_SPEC_ID` ASC, `ACTIVITY_SPEC_CATEGORIES_ID` ASC),
1324 INDEX `fk_activity_spec_to_activity_spec_categories__activity_spec_idx` (`ACTIVITY_SPEC_CATEGORIES_ID` ASC),
1325 INDEX `fk_activity_spec_to_activity_spec_categories__activity_spec_idx1` (`ACTIVITY_SPEC_ID` ASC),
1326 CONSTRAINT `fk_activity_spec_to_activity_spec_categories__activity_spec1`
1327 FOREIGN KEY (`ACTIVITY_SPEC_ID`)
1328 REFERENCES `activity_spec` (`ID`)
1329 ON DELETE CASCADE
1330 ON UPDATE CASCADE,
1331 CONSTRAINT `fk_activity_spec_to_activity_spec_categories__activity_spec_c1`
1332 FOREIGN KEY (`ACTIVITY_SPEC_CATEGORIES_ID`)
1333 REFERENCES `activity_spec_categories` (`ID`)
1334 ON DELETE CASCADE
1335 ON UPDATE CASCADE)
1336ENGINE = InnoDB
1337DEFAULT CHARACTER SET = latin1;
1338
1339CREATE TABLE IF NOT EXISTS `activity_spec_to_activity_spec_parameters` (
1340 `ID` INT(11) NOT NULL AUTO_INCREMENT,
1341 `ACTIVITY_SPEC_ID` INT(11) NOT NULL,
1342 `ACTIVITY_SPEC_PARAMETERS_ID` INT(11) NOT NULL,
1343 PRIMARY KEY (`ID`),
1344 INDEX `fk_activity_spec_to_activity_spec_params__act_sp_param_id_idx` (`ACTIVITY_SPEC_PARAMETERS_ID` ASC),
1345 UNIQUE INDEX `UK_activity_spec_to_activity_spec_parameters` (`ACTIVITY_SPEC_ID` ASC, `ACTIVITY_SPEC_PARAMETERS_ID` ASC),
1346 INDEX `fk_activity_spec_to_activity_spec_parameters__act_spec_id_idx` (`ACTIVITY_SPEC_ID` ASC),
1347 CONSTRAINT `fk_activity_spec_to_activity_spec_parameters__activity_spec_1`
1348 FOREIGN KEY (`ACTIVITY_SPEC_ID`)
1349 REFERENCES `activity_spec` (`ID`)
1350 ON DELETE CASCADE
1351 ON UPDATE CASCADE,
1352 CONSTRAINT `fk_activity_spec_to_activity_spec_parameters__activ_spec_param1`
1353 FOREIGN KEY (`ACTIVITY_SPEC_PARAMETERS_ID`)
1354 REFERENCES `activity_spec_parameters` (`ID`)
1355 ON DELETE CASCADE
1356 ON UPDATE CASCADE)
1357ENGINE = InnoDB
1358DEFAULT CHARACTER SET = latin1;
1359
1360CREATE TABLE IF NOT EXISTS `activity_spec_to_user_parameters` (
1361 `ID` INT(11) NOT NULL AUTO_INCREMENT,
1362 `ACTIVITY_SPEC_ID` INT(11) NOT NULL,
1363 `USER_PARAMETERS_ID` INT(11) NOT NULL,
1364 PRIMARY KEY (`ID`),
1365 UNIQUE INDEX `UK_activity_spec_to_user_parameters` (`ACTIVITY_SPEC_ID` ASC, `USER_PARAMETERS_ID` ASC),
1366 INDEX `fk_activity_spec_to_user_parameters__user_parameters1_idx` (`USER_PARAMETERS_ID` ASC),
1367 INDEX `fk_activity_spec_to_user_parameters__activity_spec1_idx` (`ACTIVITY_SPEC_ID` ASC),
1368 CONSTRAINT `fk_activity_spec_to_user_parameters__activity_spec1`
1369 FOREIGN KEY (`ACTIVITY_SPEC_ID`)
1370 REFERENCES `activity_spec` (`ID`)
1371 ON DELETE CASCADE
1372 ON UPDATE CASCADE,
1373 CONSTRAINT `fk_activity_spec_to_user_parameters__user_parameters1`
1374 FOREIGN KEY (`USER_PARAMETERS_ID`)
1375 REFERENCES `user_parameters` (`ID`)
1376 ON DELETE CASCADE
1377 ON UPDATE CASCADE)
1378ENGINE = InnoDB
1379DEFAULT CHARACTER SET = latin1;
1380
1381
Benjamin, Max (mb388a)5a6a6de2018-07-30 15:56:09 -04001382--------START Request DB SCHEMA --------
1383CREATE DATABASE requestdb;
1384USE requestdb;
1385
1386
1387CREATE TABLE `active_requests` (
1388 `REQUEST_ID` varchar(45) NOT NULL,
1389 `CLIENT_REQUEST_ID` varchar(45) DEFAULT NULL,
1390 `SERVICE_INSTANCE_ID` varchar(50) NOT NULL,
1391 `SUBSCRIBER_NAME` varchar(200) DEFAULT NULL,
1392 `REQUEST_URI` varchar(255) DEFAULT NULL,
1393 `SERVICE_TYPE` varchar(65) NOT NULL,
1394 `REQUEST_ACTION` varchar(45) NOT NULL,
1395 `NOTIFICATION_URL` varchar(255) DEFAULT NULL,
1396 `REQUEST_ID_IN_PROGRESS` varchar(45) DEFAULT NULL,
1397 `START_TIME` datetime DEFAULT NULL,
1398 `MODIFY_TIME` datetime DEFAULT NULL,
1399 `COMPLETION_TIME` datetime DEFAULT NULL,
1400 `RESPONSE_CODE` varchar(20) DEFAULT NULL,
1401 `RESPONSE_BODY` longtext,
1402 `STATUS` varchar(25) DEFAULT NULL,
1403 `SERVICE_REQUEST_TIMEOUT` datetime DEFAULT NULL,
1404 `FINAL_ERROR_CODE` varchar(20) DEFAULT NULL,
1405 `FINAL_ERROR_MESSAGE` varchar(2000) DEFAULT NULL,
1406 `ORDER_NUMBER` varchar(45) DEFAULT NULL,
1407 `SOURCE` varchar(20) DEFAULT NULL,
1408 `RESPONSE_STATUS` varchar(25) DEFAULT NULL,
1409 `ORDER_VERSION` varchar(20) DEFAULT NULL,
1410 `LAST_MODIFIED_BY` varchar(20) DEFAULT NULL,
1411 `MOCARS_TICKET_NUM` varchar(200) DEFAULT NULL,
1412 `REQUEST_BODY` longtext,
1413 `REQUEST_SUB_ACTION` varchar(45) DEFAULT NULL,
1414 `SDNC_CALLBACK_BPEL_URL` varchar(255) DEFAULT NULL,
1415 `FEATURE_TYPE` varchar(255) DEFAULT NULL,
1416 `FEATURE_INSTANCE_ID` varchar(255) DEFAULT NULL,
1417 `REQUEST_TYPE` varchar(255) DEFAULT NULL,
1418 `INTERIM_COMPLETION_TIME` datetime DEFAULT NULL,
1419 `INTERIM_STAGE_COMPLETION` int(11) DEFAULT NULL,
1420 `SERVICE_NAME_VERSION_ID` varchar(50) DEFAULT NULL,
1421 `GLOBAL_SUBSCRIBER_ID` varchar(255) DEFAULT NULL,
1422 `SERVICE_ID` varchar(50) DEFAULT NULL,
1423 `SERVICE_VERSION` varchar(10) DEFAULT NULL,
1424 `CORRELATOR` varchar(50) DEFAULT NULL,
1425 PRIMARY KEY (`REQUEST_ID`),
1426 UNIQUE KEY `UK_f0hdk7xbw5mb2trnxx0fvlh3x` (`CLIENT_REQUEST_ID`)
1427) ENGINE=InnoDB DEFAULT CHARSET=latin1;
1428
1429CREATE TABLE `infra_active_requests` (
1430 `REQUEST_ID` varchar(45) NOT NULL,
Benjamin, Max (mb388a)5a6a6de2018-07-30 15:56:09 -04001431 `REQUEST_STATUS` varchar(20) DEFAULT NULL,
1432 `STATUS_MESSAGE` longtext DEFAULT NULL,
1433 `PROGRESS` bigint(20) DEFAULT NULL,
1434 `START_TIME` datetime DEFAULT NULL,
1435 `END_TIME` datetime DEFAULT NULL,
1436 `SOURCE` varchar(45) DEFAULT NULL,
1437 `VNF_ID` varchar(45) DEFAULT NULL,
1438 `VNF_NAME` varchar(80) DEFAULT NULL,
1439 `VNF_TYPE` varchar(200) DEFAULT NULL,
1440 `SERVICE_TYPE` varchar(45) DEFAULT NULL,
Benjamin, Max (mb388a)5a6a6de2018-07-30 15:56:09 -04001441 `TENANT_ID` varchar(45) DEFAULT NULL,
Benjamin, Max (mb388a)5a6a6de2018-07-30 15:56:09 -04001442 `VNF_PARAMS` longtext,
1443 `VNF_OUTPUTS` longtext,
1444 `REQUEST_BODY` longtext,
1445 `RESPONSE_BODY` longtext,
1446 `LAST_MODIFIED_BY` varchar(100) DEFAULT NULL,
1447 `MODIFY_TIME` datetime DEFAULT NULL,
Benjamin, Max (mb388a)5a6a6de2018-07-30 15:56:09 -04001448 `VOLUME_GROUP_ID` varchar(45) DEFAULT NULL,
1449 `VOLUME_GROUP_NAME` varchar(45) DEFAULT NULL,
1450 `VF_MODULE_ID` varchar(45) DEFAULT NULL,
1451 `VF_MODULE_NAME` varchar(200) DEFAULT NULL,
1452 `VF_MODULE_MODEL_NAME` varchar(200) DEFAULT NULL,
Chan, Mercydb073432019-09-09 16:41:56 -04001453 `CLOUD_REGION` varchar(11) DEFAULT NULL,
Benjamin, Max (mb388a)5a6a6de2018-07-30 15:56:09 -04001454 `CALLBACK_URL` varchar(200) DEFAULT NULL,
1455 `CORRELATOR` varchar(80) DEFAULT NULL,
1456 `NETWORK_ID` varchar(45) DEFAULT NULL,
1457 `NETWORK_NAME` varchar(80) DEFAULT NULL,
1458 `NETWORK_TYPE` varchar(80) DEFAULT NULL,
1459 `REQUEST_SCOPE` varchar(20) NOT NULL DEFAULT 'unknown',
1460 `REQUEST_ACTION` varchar(45) NOT NULL DEFAULT 'unknown',
1461 `SERVICE_INSTANCE_ID` varchar(45) DEFAULT NULL,
1462 `SERVICE_INSTANCE_NAME` varchar(80) DEFAULT NULL,
1463 `REQUESTOR_ID` varchar(50) DEFAULT NULL,
1464 `CONFIGURATION_ID` varchar(45) DEFAULT NULL,
1465 `CONFIGURATION_NAME` varchar(200) DEFAULT NULL,
1466 `OPERATIONAL_ENV_ID` varchar(45) DEFAULT NULL,
1467 `OPERATIONAL_ENV_NAME` varchar(200) DEFAULT NULL,
Plummer, Brittanyb75b28b2019-06-26 10:58:22 -04001468 `REQUEST_URL` varchar(500) DEFAULT NULL,
1469 `ORIGINAL_REQUEST_ID` varchar(45) DEFAULT NULL,
1470 `EXT_SYSTEM_ERROR_SOURCE` varchar(80) DEFAULT NULL,
1471 `ROLLBACK_EXT_SYSTEM_ERROR_SOURCE` varchar(80) DEFAULT NULL,
Chan, Mercy1711d552019-11-07 12:06:57 -05001472 PRIMARY KEY (`REQUEST_ID`)
Benjamin, Max (mb388a)5a6a6de2018-07-30 15:56:09 -04001473) ENGINE=InnoDB DEFAULT CHARSET=latin1;
1474
1475CREATE TABLE `archived_infra_requests` (
1476 `REQUEST_ID` varchar(45) NOT NULL,
Benjamin, Max (mb388a)5a6a6de2018-07-30 15:56:09 -04001477 `REQUEST_STATUS` varchar(20) DEFAULT NULL,
1478 `STATUS_MESSAGE` longtext DEFAULT NULL,
1479 `PROGRESS` bigint(20) DEFAULT NULL,
1480 `START_TIME` datetime DEFAULT NULL,
1481 `END_TIME` datetime DEFAULT NULL,
1482 `SOURCE` varchar(45) DEFAULT NULL,
1483 `VNF_ID` varchar(45) DEFAULT NULL,
1484 `VNF_NAME` varchar(80) DEFAULT NULL,
1485 `VNF_TYPE` varchar(200) DEFAULT NULL,
1486 `SERVICE_TYPE` varchar(45) DEFAULT NULL,
Benjamin, Max (mb388a)5a6a6de2018-07-30 15:56:09 -04001487 `TENANT_ID` varchar(45) DEFAULT NULL,
Benjamin, Max (mb388a)5a6a6de2018-07-30 15:56:09 -04001488 `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,
Benjamin, Max (mb388a)5a6a6de2018-07-30 15:56:09 -04001494 `VOLUME_GROUP_ID` varchar(45) DEFAULT NULL,
1495 `VOLUME_GROUP_NAME` varchar(45) DEFAULT NULL,
1496 `VF_MODULE_ID` varchar(45) DEFAULT NULL,
1497 `VF_MODULE_NAME` varchar(200) DEFAULT NULL,
1498 `VF_MODULE_MODEL_NAME` varchar(200) DEFAULT NULL,
Chan, Mercydb073432019-09-09 16:41:56 -04001499 `CLOUD_REGION` varchar(11) DEFAULT NULL,
Benjamin, Max (mb388a)5a6a6de2018-07-30 15:56:09 -04001500 `CALLBACK_URL` varchar(200) DEFAULT NULL,
1501 `CORRELATOR` varchar(80) DEFAULT NULL,
1502 `NETWORK_ID` varchar(45) DEFAULT NULL,
1503 `NETWORK_NAME` varchar(80) DEFAULT NULL,
1504 `NETWORK_TYPE` varchar(80) DEFAULT NULL,
1505 `REQUEST_SCOPE` varchar(20) NOT NULL DEFAULT 'unknown',
1506 `REQUEST_ACTION` varchar(45) NOT NULL DEFAULT 'unknown',
1507 `SERVICE_INSTANCE_ID` varchar(45) DEFAULT NULL,
1508 `SERVICE_INSTANCE_NAME` varchar(80) DEFAULT NULL,
1509 `REQUESTOR_ID` varchar(50) DEFAULT NULL,
1510 `CONFIGURATION_ID` varchar(45) DEFAULT NULL,
1511 `CONFIGURATION_NAME` varchar(200) DEFAULT NULL,
1512 `OPERATIONAL_ENV_ID` varchar(45) DEFAULT NULL,
1513 `OPERATIONAL_ENV_NAME` varchar(200) DEFAULT NULL,
Benjamin, Max (mb388a)61affc62018-11-05 11:00:36 -05001514 `REQUEST_URL` varchar(500) DEFAULT NULL,
Chan, Mercy1711d552019-11-07 12:06:57 -05001515 PRIMARY KEY (`REQUEST_ID`)
Benjamin, Max (mb388a)5a6a6de2018-07-30 15:56:09 -04001516) ENGINE=InnoDB DEFAULT CHARSET=latin1;
1517
1518CREATE TABLE `site_status` (
1519 `SITE_NAME` varchar(255) NOT NULL,
1520 `STATUS` bit(1) DEFAULT NULL,
1521 `CREATION_TIMESTAMP` datetime DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
1522 PRIMARY KEY (`SITE_NAME`)
1523) ENGINE=InnoDB DEFAULT CHARSET=latin1;
1524
1525CREATE TABLE `watchdog_distributionid_status` (
1526 `DISTRIBUTION_ID` varchar(45) NOT NULL,
1527 `DISTRIBUTION_ID_STATUS` varchar(45) DEFAULT NULL,
Benjamin, Max (mb388a)20e1b652019-02-24 10:42:15 -05001528 `LOCK_VERSION` int NOT NULL,
Benjamin, Max (mb388a)5a6a6de2018-07-30 15:56:09 -04001529 `CREATE_TIME` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
1530 `MODIFY_TIME` datetime DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP,
1531 PRIMARY KEY (`DISTRIBUTION_ID`)
1532) ENGINE=InnoDB DEFAULT CHARSET=latin1;
1533
1534CREATE TABLE `watchdog_per_component_distribution_status` (
1535 `DISTRIBUTION_ID` varchar(45) NOT NULL,
1536 `COMPONENT_NAME` varchar(45) NOT NULL,
1537 `COMPONENT_DISTRIBUTION_STATUS` varchar(45) DEFAULT NULL,
1538 `CREATE_TIME` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
1539 `MODIFY_TIME` datetime DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP,
1540 PRIMARY KEY (`DISTRIBUTION_ID`,`COMPONENT_NAME`),
1541 CONSTRAINT `fk_watchdog_component_distribution_status_watchdog_distributi1` FOREIGN KEY (`DISTRIBUTION_ID`) REFERENCES `watchdog_distributionid_status` (`DISTRIBUTION_ID`) ON DELETE CASCADE ON UPDATE CASCADE
1542) ENGINE=InnoDB DEFAULT CHARSET=latin1;
1543
1544CREATE TABLE `watchdog_service_mod_ver_id_lookup` (
1545 `DISTRIBUTION_ID` varchar(45) NOT NULL,
1546 `SERVICE_MODEL_VERSION_ID` varchar(45) NOT NULL,
Benjamin, Max (mb388a)9e795be2019-02-06 21:17:24 -05001547 `DISTRIBUTION_NOTIFICATION` LONGTEXT NULL,
1548 `CONSUMER_ID` varchar(200) NULL,
Benjamin, Max (mb388a)5a6a6de2018-07-30 15:56:09 -04001549 `CREATE_TIME` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
1550 `MODIFY_TIME` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
1551 PRIMARY KEY (`DISTRIBUTION_ID`,`SERVICE_MODEL_VERSION_ID`)
1552) ENGINE=InnoDB DEFAULT CHARSET=latin1;
1553
1554CREATE TABLE `activate_operational_env_service_model_distribution_status` (
1555 `OPERATIONAL_ENV_ID` varchar(45) NOT NULL,
1556 `SERVICE_MODEL_VERSION_ID` varchar(45) NOT NULL,
1557 `REQUEST_ID` varchar(45) NOT NULL,
1558 `SERVICE_MOD_VER_FINAL_DISTR_STATUS` varchar(45) DEFAULT NULL,
1559 `RECOVERY_ACTION` varchar(30) DEFAULT NULL,
1560 `RETRY_COUNT_LEFT` int(11) DEFAULT NULL,
1561 `WORKLOAD_CONTEXT` varchar(80) NOT NULL,
1562 `CREATE_TIME` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
1563 `MODIFY_TIME` datetime DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP,
Benjamin, Max (mb388a)1414f932019-03-14 21:06:49 -04001564 `VNF_OPERATIONAL_ENV_ID` varchar(45) NOT NULL,
Benjamin, Max (mb388a)5a6a6de2018-07-30 15:56:09 -04001565 PRIMARY KEY (`OPERATIONAL_ENV_ID`,`SERVICE_MODEL_VERSION_ID`,`REQUEST_ID`)
1566) ENGINE=InnoDB DEFAULT CHARSET=latin1;
1567
1568CREATE TABLE `activate_operational_env_per_distributionid_status` (
1569 `DISTRIBUTION_ID` varchar(45) NOT NULL,
1570 `DISTRIBUTION_ID_STATUS` varchar(45) DEFAULT NULL,
1571 `DISTRIBUTION_ID_ERROR_REASON` varchar(250) DEFAULT NULL,
1572 `CREATE_TIME` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
1573 `MODIFY_TIME` datetime DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP,
1574 `OPERATIONAL_ENV_ID` varchar(45) NOT NULL,
1575 `SERVICE_MODEL_VERSION_ID` varchar(45) NOT NULL,
1576 `REQUEST_ID` varchar(45) NOT NULL,
1577 PRIMARY KEY (`DISTRIBUTION_ID`),
1578 KEY `fk_activate_op_env_per_distributionid_status__aoesmds1_idx` (`OPERATIONAL_ENV_ID`,`SERVICE_MODEL_VERSION_ID`,`REQUEST_ID`),
1579 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
1580) ENGINE=InnoDB DEFAULT CHARSET=latin1;
1581
1582create table operation_status (
1583 SERVICE_ID varchar(255) not null,
1584 OPERATION_ID varchar(255) not null,
1585 SERVICE_NAME varchar(255),
1586 OPERATION_TYPE varchar(255),
1587 USER_ID varchar(255),
1588 RESULT varchar(255),
1589 OPERATION_CONTENT varchar(255),
1590 PROGRESS varchar(255),
1591 REASON varchar(255),
1592 OPERATE_AT datetime NOT NULL,
1593 FINISHED_AT datetime NOT NULL,
1594 primary key (SERVICE_ID,OPERATION_ID)
1595) ENGINE=InnoDB DEFAULT CHARSET=latin1;
1596
1597create table resource_operation_status (
1598 SERVICE_ID varchar(255) not null,
1599 OPERATION_ID varchar(255) not null,
1600 RESOURCE_TEMPLATE_UUID varchar(255) not null,
1601 OPER_TYPE varchar(255),
1602 RESOURCE_INSTANCE_ID varchar(255),
1603 JOB_ID varchar(255),
1604 STATUS varchar(255),
1605 PROGRESS varchar(255),
1606 ERROR_CODE varchar(255) ,
1607 STATUS_DESCRIPOTION varchar(255) ,
1608 primary key (SERVICE_ID,OPERATION_ID,RESOURCE_TEMPLATE_UUID)
1609) ENGINE=InnoDB DEFAULT CHARSET=latin1;
1610
1611create table if not exists model_recipe (
1612 `ID` INT(11) NOT NULL AUTO_INCREMENT,
1613 `MODEL_ID` INT(11),
1614 `ACTION` VARCHAR(40),
1615 `SCHEMA_VERSION` VARCHAR(40),
1616 `DESCRIPTION` VARCHAR(40),
1617 `ORCHESTRATION_URI` VARCHAR(20),
1618 `MODEL_PARAM_XSD` VARCHAR(20),
1619 `RECIPE_TIMEOUT` INT(11),
1620 `CREATION_TIMESTAMP` datetime not null default current_timestamp,
1621 PRIMARY KEY (`ID`),
1622 CONSTRAINT uk1_model_recipe UNIQUE (`MODEL_ID`, `ACTION`)
1623) ENGINE=InnoDB DEFAULT CHARSET=latin1;
1624
1625create table if not exists model (
1626 `ID` INT(11) NOT NULL AUTO_INCREMENT,
1627 `MODEL_CUSTOMIZATION_ID` VARCHAR(40),
1628 `MODEL_CUSTOMIZATION_NAME` VARCHAR(40),
1629 `MODEL_INVARIANT_ID` VARCHAR(40),
1630 `MODEL_NAME` VARCHAR(40),
1631 `MODEL_TYPE` VARCHAR(20),
1632 `MODEL_VERSION` VARCHAR(20),
1633 `MODEL_VERSION_ID` VARCHAR(40),
1634 `CREATION_TIMESTAMP` datetime not null default current_timestamp,
1635 `RECIPE` INT(11),
1636 PRIMARY KEY (`ID`),
1637 CONSTRAINT uk1_model UNIQUE (`MODEL_TYPE`, `MODEL_VERSION_ID`),
1638 FOREIGN KEY (`RECIPE`) REFERENCES `model_recipe` (`MODEL_ID`) ON DELETE CASCADE ON UPDATE CASCADE
1639) ENGINE=InnoDB DEFAULT CHARSET=latin1;
Smokowski, Steve (ss835w)8b56e8d2019-04-11 12:09:04 -04001640
1641
1642
1643