Benjamin, Max (mb388a) | 5a6a6de | 2018-07-30 15:56:09 -0400 | [diff] [blame] | 1 | |
| 2 | --------START Catalog DB SCHEMA -------- |
| 3 | use catalogdb; |
Benjamin, Max (mb388a) | 86f04e1 | 2019-04-02 22:54:57 -0400 | [diff] [blame] | 4 | set foreign_key_checks=0; |
| 5 | DROP TABLE IF EXISTS `allotted_resource`; |
| 6 | /*!40101 SET @saved_cs_client = @@character_set_client */; |
| 7 | /*!40101 SET character_set_client = utf8 */; |
| 8 | CREATE 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) | 5a6a6de | 2018-07-30 15:56:09 -0400 | [diff] [blame] | 18 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; |
Benjamin, Max (mb388a) | 86f04e1 | 2019-04-02 22:54:57 -0400 | [diff] [blame] | 19 | /*!40101 SET character_set_client = @saved_cs_client */; |
Benjamin, Max (mb388a) | 5a6a6de | 2018-07-30 15:56:09 -0400 | [diff] [blame] | 20 | |
Benjamin, Max (mb388a) | 86f04e1 | 2019-04-02 22:54:57 -0400 | [diff] [blame] | 21 | -- |
| 22 | -- Table structure for table `allotted_resource_customization` |
| 23 | -- |
Benjamin, Max (mb388a) | 5a6a6de | 2018-07-30 15:56:09 -0400 | [diff] [blame] | 24 | |
Benjamin, Max (mb388a) | 86f04e1 | 2019-04-02 22:54:57 -0400 | [diff] [blame] | 25 | DROP TABLE IF EXISTS `allotted_resource_customization`; |
| 26 | /*!40101 SET @saved_cs_client = @@character_set_client */; |
| 27 | /*!40101 SET character_set_client = utf8 */; |
| 28 | CREATE 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) | 5a6a6de | 2018-07-30 15:56:09 -0400 | [diff] [blame] | 49 | |
Benjamin, Max (mb388a) | 86f04e1 | 2019-04-02 22:54:57 -0400 | [diff] [blame] | 50 | -- |
| 51 | -- Table structure for table `allotted_resource_customization_to_service` |
| 52 | -- |
Benjamin, Max (mb388a) | 5a6a6de | 2018-07-30 15:56:09 -0400 | [diff] [blame] | 53 | |
Benjamin, Max (mb388a) | 86f04e1 | 2019-04-02 22:54:57 -0400 | [diff] [blame] | 54 | DROP TABLE IF EXISTS `allotted_resource_customization_to_service`; |
| 55 | /*!40101 SET @saved_cs_client = @@character_set_client */; |
| 56 | /*!40101 SET character_set_client = utf8 */; |
| 57 | CREATE 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) | 5a6a6de | 2018-07-30 15:56:09 -0400 | [diff] [blame] | 66 | |
Benjamin, Max (mb388a) | 86f04e1 | 2019-04-02 22:54:57 -0400 | [diff] [blame] | 67 | -- |
| 68 | -- Table structure for table `ar_recipe` |
| 69 | -- |
Benjamin, Max (mb388a) | 5a6a6de | 2018-07-30 15:56:09 -0400 | [diff] [blame] | 70 | |
Benjamin, Max (mb388a) | 86f04e1 | 2019-04-02 22:54:57 -0400 | [diff] [blame] | 71 | DROP TABLE IF EXISTS `ar_recipe`; |
| 72 | /*!40101 SET @saved_cs_client = @@character_set_client */; |
| 73 | /*!40101 SET character_set_client = utf8 */; |
| 74 | CREATE 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) | 5a6a6de | 2018-07-30 15:56:09 -0400 | [diff] [blame] | 89 | |
Benjamin, Max (mb388a) | 86f04e1 | 2019-04-02 22:54:57 -0400 | [diff] [blame] | 90 | -- |
| 91 | -- Table structure for table `building_block_detail` |
| 92 | -- |
Benjamin, Max (mb388a) | 5a6a6de | 2018-07-30 15:56:09 -0400 | [diff] [blame] | 93 | |
Benjamin, Max (mb388a) | 86f04e1 | 2019-04-02 22:54:57 -0400 | [diff] [blame] | 94 | DROP TABLE IF EXISTS `building_block_detail`; |
| 95 | /*!40101 SET @saved_cs_client = @@character_set_client */; |
| 96 | /*!40101 SET character_set_client = utf8 */; |
| 97 | CREATE 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) | 5a6a6de | 2018-07-30 15:56:09 -0400 | [diff] [blame] | 106 | |
Benjamin, Max (mb388a) | 86f04e1 | 2019-04-02 22:54:57 -0400 | [diff] [blame] | 107 | -- |
| 108 | -- Table structure for table `cloud_sites` |
| 109 | -- |
Benjamin, Max (mb388a) | 5a6a6de | 2018-07-30 15:56:09 -0400 | [diff] [blame] | 110 | |
Benjamin, Max (mb388a) | 86f04e1 | 2019-04-02 22:54:57 -0400 | [diff] [blame] | 111 | DROP TABLE IF EXISTS `cloud_sites`; |
| 112 | /*!40101 SET @saved_cs_client = @@character_set_client */; |
| 113 | /*!40101 SET character_set_client = utf8 */; |
| 114 | CREATE 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) | 5a6a6de | 2018-07-30 15:56:09 -0400 | [diff] [blame] | 131 | |
Benjamin, Max (mb388a) | 86f04e1 | 2019-04-02 22:54:57 -0400 | [diff] [blame] | 132 | -- |
| 133 | -- Table structure for table `cloudify_managers` |
| 134 | -- |
Benjamin, Max (mb388a) | 5a6a6de | 2018-07-30 15:56:09 -0400 | [diff] [blame] | 135 | |
Benjamin, Max (mb388a) | 86f04e1 | 2019-04-02 22:54:57 -0400 | [diff] [blame] | 136 | DROP TABLE IF EXISTS `cloudify_managers`; |
| 137 | /*!40101 SET @saved_cs_client = @@character_set_client */; |
| 138 | /*!40101 SET character_set_client = utf8 */; |
| 139 | CREATE 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) | 5a6a6de | 2018-07-30 15:56:09 -0400 | [diff] [blame] | 151 | |
Benjamin, Max (mb388a) | 86f04e1 | 2019-04-02 22:54:57 -0400 | [diff] [blame] | 152 | -- |
| 153 | -- Table structure for table `collection_network_resource_customization` |
| 154 | -- |
Benjamin, Max (mb388a) | 5a6a6de | 2018-07-30 15:56:09 -0400 | [diff] [blame] | 155 | |
Benjamin, Max (mb388a) | 86f04e1 | 2019-04-02 22:54:57 -0400 | [diff] [blame] | 156 | DROP TABLE IF EXISTS `collection_network_resource_customization`; |
| 157 | /*!40101 SET @saved_cs_client = @@character_set_client */; |
| 158 | /*!40101 SET character_set_client = utf8 */; |
| 159 | CREATE 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) | 5a6a6de | 2018-07-30 15:56:09 -0400 | [diff] [blame] | 179 | |
Benjamin, Max (mb388a) | 86f04e1 | 2019-04-02 22:54:57 -0400 | [diff] [blame] | 180 | -- |
| 181 | -- Table structure for table `collection_resource` |
| 182 | -- |
Benjamin, Max (mb388a) | 5a6a6de | 2018-07-30 15:56:09 -0400 | [diff] [blame] | 183 | |
Benjamin, Max (mb388a) | 86f04e1 | 2019-04-02 22:54:57 -0400 | [diff] [blame] | 184 | DROP TABLE IF EXISTS `collection_resource`; |
| 185 | /*!40101 SET @saved_cs_client = @@character_set_client */; |
| 186 | /*!40101 SET character_set_client = utf8 */; |
| 187 | CREATE 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) | 5a6a6de | 2018-07-30 15:56:09 -0400 | [diff] [blame] | 198 | |
Benjamin, Max (mb388a) | 86f04e1 | 2019-04-02 22:54:57 -0400 | [diff] [blame] | 199 | -- |
| 200 | -- Table structure for table `collection_resource_customization` |
| 201 | -- |
Benjamin, Max (mb388a) | 5a6a6de | 2018-07-30 15:56:09 -0400 | [diff] [blame] | 202 | |
Benjamin, Max (mb388a) | 86f04e1 | 2019-04-02 22:54:57 -0400 | [diff] [blame] | 203 | DROP TABLE IF EXISTS `collection_resource_customization`; |
| 204 | /*!40101 SET @saved_cs_client = @@character_set_client */; |
| 205 | /*!40101 SET character_set_client = utf8 */; |
| 206 | CREATE 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) | 5a6a6de | 2018-07-30 15:56:09 -0400 | [diff] [blame] | 220 | |
Benjamin, Max (mb388a) | 86f04e1 | 2019-04-02 22:54:57 -0400 | [diff] [blame] | 221 | -- |
| 222 | -- Table structure for table `collection_resource_customization_to_service` |
| 223 | -- |
Benjamin, Max (mb388a) | 5a6a6de | 2018-07-30 15:56:09 -0400 | [diff] [blame] | 224 | |
Benjamin, Max (mb388a) | 86f04e1 | 2019-04-02 22:54:57 -0400 | [diff] [blame] | 225 | DROP TABLE IF EXISTS `collection_resource_customization_to_service`; |
| 226 | /*!40101 SET @saved_cs_client = @@character_set_client */; |
| 227 | /*!40101 SET character_set_client = utf8 */; |
| 228 | CREATE 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) | 5a6a6de | 2018-07-30 15:56:09 -0400 | [diff] [blame] | 237 | |
Benjamin, Max (mb388a) | 86f04e1 | 2019-04-02 22:54:57 -0400 | [diff] [blame] | 238 | -- |
| 239 | -- Table structure for table `collection_resource_instance_group_customization` |
| 240 | -- |
Benjamin, Max (mb388a) | 5a6a6de | 2018-07-30 15:56:09 -0400 | [diff] [blame] | 241 | |
Benjamin, Max (mb388a) | 86f04e1 | 2019-04-02 22:54:57 -0400 | [diff] [blame] | 242 | DROP TABLE IF EXISTS `collection_resource_instance_group_customization`; |
| 243 | /*!40101 SET @saved_cs_client = @@character_set_client */; |
| 244 | /*!40101 SET character_set_client = utf8 */; |
| 245 | CREATE 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) | 69455a2 | 2018-09-04 11:21:02 -0400 | [diff] [blame] | 258 | |
Benjamin, Max (mb388a) | 86f04e1 | 2019-04-02 22:54:57 -0400 | [diff] [blame] | 259 | -- |
| 260 | -- Table structure for table `configuration` |
| 261 | -- |
Benjamin, Max (mb388a) | 69455a2 | 2018-09-04 11:21:02 -0400 | [diff] [blame] | 262 | |
Benjamin, Max (mb388a) | 86f04e1 | 2019-04-02 22:54:57 -0400 | [diff] [blame] | 263 | DROP TABLE IF EXISTS `configuration`; |
| 264 | /*!40101 SET @saved_cs_client = @@character_set_client */; |
| 265 | /*!40101 SET character_set_client = utf8 */; |
| 266 | CREATE 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) | 69455a2 | 2018-09-04 11:21:02 -0400 | [diff] [blame] | 277 | |
Benjamin, Max (mb388a) | 86f04e1 | 2019-04-02 22:54:57 -0400 | [diff] [blame] | 278 | -- |
| 279 | -- Table structure for table `configuration_customization` |
| 280 | -- |
eeginux | 66481e1 | 2019-03-16 16:07:16 +0000 | [diff] [blame] | 281 | |
Benjamin, Max (mb388a) | 86f04e1 | 2019-04-02 22:54:57 -0400 | [diff] [blame] | 282 | DROP TABLE IF EXISTS `configuration_customization`; |
| 283 | /*!40101 SET @saved_cs_client = @@character_set_client */; |
| 284 | /*!40101 SET character_set_client = utf8 */; |
| 285 | CREATE TABLE `configuration_customization` ( |
Benjamin, Max (mb388a) | 52039ed | 2019-04-11 13:33:09 -0400 | [diff] [blame] | 286 | `ID` int(11) NOT NULL AUTO_INCREMENT, |
Benjamin, Max (mb388a) | 86f04e1 | 2019-04-02 22:54:57 -0400 | [diff] [blame] | 287 | `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) | 52039ed | 2019-04-11 13:33:09 -0400 | [diff] [blame] | 295 | `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) | 86f04e1 | 2019-04-02 22:54:57 -0400 | [diff] [blame] | 307 | ) 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 | |
| 314 | DROP TABLE IF EXISTS `controller_selection_reference`; |
| 315 | /*!40101 SET @saved_cs_client = @@character_set_client */; |
| 316 | /*!40101 SET character_set_client = utf8 */; |
| 317 | CREATE 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 | |
| 329 | DROP TABLE IF EXISTS `cvnfc_configuration_customization`; |
| 330 | /*!40101 SET @saved_cs_client = @@character_set_client */; |
| 331 | /*!40101 SET character_set_client = utf8 */; |
| 332 | CREATE 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 | |
| 353 | DROP TABLE IF EXISTS `cvnfc_customization`; |
| 354 | /*!40101 SET @saved_cs_client = @@character_set_client */; |
| 355 | /*!40101 SET character_set_client = utf8 */; |
| 356 | CREATE 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 | |
| 384 | DROP 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 */; |
| 387 | CREATE 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 | |
| 402 | DROP TABLE IF EXISTS `flyway_schema_history`; |
| 403 | /*!40101 SET @saved_cs_client = @@character_set_client */; |
| 404 | /*!40101 SET character_set_client = utf8 */; |
| 405 | CREATE 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 | |
| 425 | DROP TABLE IF EXISTS `heat_environment`; |
| 426 | /*!40101 SET @saved_cs_client = @@character_set_client */; |
| 427 | /*!40101 SET character_set_client = utf8 */; |
| 428 | CREATE 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 | |
| 444 | DROP TABLE IF EXISTS `heat_files`; |
| 445 | /*!40101 SET @saved_cs_client = @@character_set_client */; |
| 446 | /*!40101 SET character_set_client = utf8 */; |
| 447 | CREATE 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 | |
| 463 | DROP TABLE IF EXISTS `heat_nested_template`; |
| 464 | /*!40101 SET @saved_cs_client = @@character_set_client */; |
| 465 | /*!40101 SET character_set_client = utf8 */; |
| 466 | CREATE 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 | |
| 481 | DROP TABLE IF EXISTS `heat_template`; |
| 482 | /*!40101 SET @saved_cs_client = @@character_set_client */; |
| 483 | /*!40101 SET character_set_client = utf8 */; |
| 484 | CREATE 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 | |
| 501 | DROP TABLE IF EXISTS `heat_template_params`; |
| 502 | /*!40101 SET @saved_cs_client = @@character_set_client */; |
| 503 | /*!40101 SET character_set_client = utf8 */; |
| 504 | CREATE 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 | |
| 519 | DROP TABLE IF EXISTS `identity_services`; |
| 520 | /*!40101 SET @saved_cs_client = @@character_set_client */; |
| 521 | /*!40101 SET character_set_client = utf8 */; |
| 522 | CREATE 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 | |
| 545 | DROP TABLE IF EXISTS `instance_group`; |
| 546 | /*!40101 SET @saved_cs_client = @@character_set_client */; |
| 547 | /*!40101 SET character_set_client = utf8 */; |
| 548 | CREATE 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 | |
| 568 | DROP TABLE IF EXISTS `model`; |
| 569 | /*!40101 SET @saved_cs_client = @@character_set_client */; |
| 570 | /*!40101 SET character_set_client = utf8 */; |
| 571 | CREATE 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 | |
| 593 | DROP TABLE IF EXISTS `model_recipe`; |
| 594 | /*!40101 SET @saved_cs_client = @@character_set_client */; |
| 595 | /*!40101 SET character_set_client = utf8 */; |
| 596 | CREATE 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 | |
| 615 | DROP TABLE IF EXISTS `network_recipe`; |
| 616 | /*!40101 SET @saved_cs_client = @@character_set_client */; |
| 617 | /*!40101 SET character_set_client = utf8 */; |
| 618 | CREATE 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 | |
| 640 | DROP TABLE IF EXISTS `network_resource`; |
| 641 | /*!40101 SET @saved_cs_client = @@character_set_client */; |
| 642 | /*!40101 SET character_set_client = utf8 */; |
| 643 | CREATE 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, |
Benjamin, Max (mb388a) | 2eb54b3 | 2021-01-28 12:05:30 -0500 | [diff] [blame] | 654 | `ORCHESTRATION_MODE` varchar(20) NOT NULL DEFAULT 'HEAT', |
Benjamin, Max (mb388a) | 86f04e1 | 2019-04-02 22:54:57 -0400 | [diff] [blame] | 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 | |
| 670 | DROP TABLE IF EXISTS `network_resource_customization`; |
| 671 | /*!40101 SET @saved_cs_client = @@character_set_client */; |
| 672 | /*!40101 SET character_set_client = utf8 */; |
| 673 | CREATE 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 | |
| 693 | DROP TABLE IF EXISTS `network_resource_customization_to_service`; |
| 694 | /*!40101 SET @saved_cs_client = @@character_set_client */; |
| 695 | /*!40101 SET character_set_client = utf8 */; |
| 696 | CREATE 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 | |
| 710 | DROP TABLE IF EXISTS `northbound_request_ref_lookup`; |
| 711 | /*!40101 SET @saved_cs_client = @@character_set_client */; |
| 712 | /*!40101 SET character_set_client = utf8 */; |
| 713 | CREATE 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 | |
| 732 | DROP TABLE IF EXISTS `orchestration_flow_reference`; |
| 733 | /*!40101 SET @saved_cs_client = @@character_set_client */; |
| 734 | /*!40101 SET character_set_client = utf8 */; |
| 735 | CREATE 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, |
Manamohan | b395090 | 2019-12-12 15:15:46 +0530 | [diff] [blame] | 741 | `SCOPE` varchar(200) DEFAULT NULL, |
| 742 | `ACTION` varchar(200) DEFAULT NULL, |
Benjamin, Max (mb388a) | 86f04e1 | 2019-04-02 22:54:57 -0400 | [diff] [blame] | 743 | `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 | |
| 756 | DROP TABLE IF EXISTS `orchestration_status_state_transition_directive`; |
| 757 | /*!40101 SET @saved_cs_client = @@character_set_client */; |
| 758 | /*!40101 SET character_set_client = utf8 */; |
| 759 | CREATE 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 | |
| 774 | DROP TABLE IF EXISTS `rainy_day_handler_macro`; |
| 775 | /*!40101 SET @saved_cs_client = @@character_set_client */; |
| 776 | /*!40101 SET character_set_client = utf8 */; |
| 777 | CREATE 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 | |
| 794 | DROP TABLE IF EXISTS `service`; |
| 795 | /*!40101 SET @saved_cs_client = @@character_set_client */; |
| 796 | /*!40101 SET character_set_client = utf8 */; |
| 797 | CREATE 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, |
Smokowski, Steven | e981910 | 2020-03-24 10:28:02 -0400 | [diff] [blame] | 807 | `SERVICE_FUNCTION` varchar(200) DEFAULT NULL, |
Benjamin, Max (mb388a) | 86f04e1 | 2019-04-02 22:54:57 -0400 | [diff] [blame] | 808 | `ENVIRONMENT_CONTEXT` varchar(200) DEFAULT NULL, |
| 809 | `WORKLOAD_CONTEXT` varchar(200) DEFAULT NULL, |
| 810 | `SERVICE_CATEGORY` varchar(200) DEFAULT NULL, |
| 811 | `RESOURCE_ORDER` varchar(200) default NULL, |
Gamboa, Gilbert | 62b2e47 | 2019-06-06 14:23:36 -0400 | [diff] [blame] | 812 | `OVERALL_DISTRIBUTION_STATUS` varchar(45), |
| 813 | `ONAP_GENERATED_NAMING` TINYINT(1) DEFAULT NULL, |
| 814 | `NAMING_POLICY` varchar(200) DEFAULT NULL, |
eeginux | 0f65f07 | 2019-11-07 15:19:58 +0000 | [diff] [blame] | 815 | `CDS_BLUEPRINT_NAME` varchar(200) DEFAULT NULL, |
| 816 | `CDS_BLUEPRINT_VERSION` varchar(20) DEFAULT NULL, |
| 817 | `CONTROLLER_ACTOR` varchar(200) DEFAULT NULL, |
| 818 | `SKIP_POST_INSTANTIATION_CONFIGURATION` boolean default true, |
Benjamin, Max (mb388a) | 86f04e1 | 2019-04-02 22:54:57 -0400 | [diff] [blame] | 819 | PRIMARY KEY (`MODEL_UUID`), |
| 820 | KEY `fk_service__tosca_csar1_idx` (`TOSCA_CSAR_ARTIFACT_UUID`), |
| 821 | CONSTRAINT `fk_service__tosca_csar1` FOREIGN KEY (`TOSCA_CSAR_ARTIFACT_UUID`) REFERENCES `tosca_csar` (`ARTIFACT_UUID`) ON DELETE CASCADE ON UPDATE CASCADE |
| 822 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; |
| 823 | /*!40101 SET character_set_client = @saved_cs_client */; |
| 824 | |
| 825 | -- |
| 826 | -- Table structure for table `service_proxy_customization` |
| 827 | -- |
| 828 | |
| 829 | DROP TABLE IF EXISTS `service_proxy_customization`; |
| 830 | /*!40101 SET @saved_cs_client = @@character_set_client */; |
| 831 | /*!40101 SET character_set_client = utf8 */; |
| 832 | CREATE TABLE `service_proxy_customization` ( |
| 833 | `MODEL_CUSTOMIZATION_UUID` varchar(200) NOT NULL, |
| 834 | `MODEL_INSTANCE_NAME` varchar(200) NOT NULL, |
| 835 | `MODEL_UUID` varchar(200) NOT NULL, |
| 836 | `MODEL_INVARIANT_UUID` varchar(200) NOT NULL, |
| 837 | `MODEL_VERSION` varchar(20) NOT NULL, |
| 838 | `MODEL_NAME` varchar(200) NOT NULL, |
| 839 | `TOSCA_NODE_TYPE` varchar(200) NOT NULL, |
| 840 | `DESCRIPTION` varchar(1200) DEFAULT NULL, |
| 841 | `SOURCE_SERVICE_MODEL_UUID` varchar(200) NOT NULL, |
| 842 | `CREATION_TIMESTAMP` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP, |
| 843 | PRIMARY KEY (`MODEL_CUSTOMIZATION_UUID`), |
| 844 | KEY `fk_service_proxy_customization__service1_idx` (`SOURCE_SERVICE_MODEL_UUID`), |
| 845 | CONSTRAINT `fk_service_proxy_resource_customization__service1` FOREIGN KEY (`SOURCE_SERVICE_MODEL_UUID`) REFERENCES `service` (`MODEL_UUID`) ON DELETE CASCADE ON UPDATE CASCADE |
| 846 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; |
| 847 | /*!40101 SET character_set_client = @saved_cs_client */; |
| 848 | |
| 849 | -- |
| 850 | -- Table structure for table `service_proxy_customization_to_service` |
| 851 | -- |
| 852 | |
| 853 | DROP TABLE IF EXISTS `service_proxy_customization_to_service`; |
| 854 | /*!40101 SET @saved_cs_client = @@character_set_client */; |
| 855 | /*!40101 SET character_set_client = utf8 */; |
| 856 | CREATE TABLE `service_proxy_customization_to_service` ( |
| 857 | `SERVICE_MODEL_UUID` varchar(200) NOT NULL, |
| 858 | `RESOURCE_MODEL_CUSTOMIZATION_UUID` varchar(200) NOT NULL, |
| 859 | PRIMARY KEY (`SERVICE_MODEL_UUID`,`RESOURCE_MODEL_CUSTOMIZATION_UUID`) |
| 860 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; |
| 861 | /*!40101 SET character_set_client = @saved_cs_client */; |
| 862 | |
| 863 | -- |
| 864 | -- Table structure for table `service_recipe` |
| 865 | -- |
| 866 | |
| 867 | DROP TABLE IF EXISTS `service_recipe`; |
| 868 | /*!40101 SET @saved_cs_client = @@character_set_client */; |
| 869 | /*!40101 SET character_set_client = utf8 */; |
| 870 | CREATE TABLE `service_recipe` ( |
| 871 | `id` int(11) NOT NULL AUTO_INCREMENT, |
| 872 | `ACTION` varchar(50) NOT NULL, |
| 873 | `VERSION_STR` varchar(20) DEFAULT NULL, |
| 874 | `DESCRIPTION` varchar(1200) DEFAULT NULL, |
| 875 | `ORCHESTRATION_URI` varchar(256) NOT NULL, |
| 876 | `SERVICE_PARAM_XSD` varchar(2048) DEFAULT NULL, |
| 877 | `RECIPE_TIMEOUT` int(11) DEFAULT NULL, |
| 878 | `SERVICE_TIMEOUT_INTERIM` int(11) DEFAULT NULL, |
| 879 | `CREATION_TIMESTAMP` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP, |
| 880 | `SERVICE_MODEL_UUID` varchar(200) NOT NULL, |
| 881 | PRIMARY KEY (`id`), |
| 882 | UNIQUE KEY `UK_7fav5dkux2v8g9d2i5ymudlgc` (`SERVICE_MODEL_UUID`,`ACTION`), |
| 883 | KEY `fk_service_recipe__service1_idx` (`SERVICE_MODEL_UUID`), |
| 884 | CONSTRAINT `fk_service_recipe__service1` FOREIGN KEY (`SERVICE_MODEL_UUID`) REFERENCES `service` (`MODEL_UUID`) ON DELETE CASCADE ON UPDATE CASCADE |
| 885 | ) ENGINE=InnoDB AUTO_INCREMENT=93 DEFAULT CHARSET=latin1; |
| 886 | /*!40101 SET character_set_client = @saved_cs_client */; |
| 887 | |
| 888 | -- |
| 889 | -- Table structure for table `temp_network_heat_template_lookup` |
| 890 | -- |
| 891 | |
| 892 | DROP TABLE IF EXISTS `temp_network_heat_template_lookup`; |
| 893 | /*!40101 SET @saved_cs_client = @@character_set_client */; |
| 894 | /*!40101 SET character_set_client = utf8 */; |
| 895 | CREATE TABLE `temp_network_heat_template_lookup` ( |
| 896 | `NETWORK_RESOURCE_MODEL_NAME` varchar(200) NOT NULL, |
| 897 | `HEAT_TEMPLATE_ARTIFACT_UUID` varchar(200) NULL, |
| 898 | `AIC_VERSION_MIN` varchar(20) NULL, |
| 899 | `AIC_VERSION_MAX` varchar(20) DEFAULT NULL, |
| 900 | PRIMARY KEY (`NETWORK_RESOURCE_MODEL_NAME`), |
| 901 | KEY `fk_temp_network_heat_template_lookup__heat_template1_idx` (`HEAT_TEMPLATE_ARTIFACT_UUID`), |
| 902 | 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 |
| 903 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; |
| 904 | /*!40101 SET character_set_client = @saved_cs_client */; |
| 905 | |
| 906 | -- |
| 907 | -- Table structure for table `tosca_csar` |
| 908 | -- |
| 909 | |
| 910 | DROP TABLE IF EXISTS `tosca_csar`; |
| 911 | /*!40101 SET @saved_cs_client = @@character_set_client */; |
| 912 | /*!40101 SET character_set_client = utf8 */; |
| 913 | CREATE TABLE `tosca_csar` ( |
| 914 | `ARTIFACT_UUID` varchar(200) NOT NULL, |
| 915 | `NAME` varchar(200) NOT NULL, |
| 916 | `VERSION` varchar(20) NOT NULL, |
| 917 | `DESCRIPTION` varchar(1200) DEFAULT NULL, |
| 918 | `ARTIFACT_CHECKSUM` varchar(200) NOT NULL, |
| 919 | `URL` varchar(200) NOT NULL, |
| 920 | `CREATION_TIMESTAMP` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP, |
| 921 | PRIMARY KEY (`ARTIFACT_UUID`) |
| 922 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; |
| 923 | /*!40101 SET character_set_client = @saved_cs_client */; |
| 924 | |
| 925 | -- |
| 926 | -- Table structure for table `vf_module` |
| 927 | -- |
| 928 | |
| 929 | DROP TABLE IF EXISTS `vf_module`; |
| 930 | /*!40101 SET @saved_cs_client = @@character_set_client */; |
| 931 | /*!40101 SET character_set_client = utf8 */; |
| 932 | CREATE TABLE `vf_module` ( |
| 933 | `MODEL_UUID` varchar(200) NOT NULL, |
| 934 | `MODEL_INVARIANT_UUID` varchar(200) DEFAULT NULL, |
| 935 | `MODEL_VERSION` varchar(20) NOT NULL, |
| 936 | `MODEL_NAME` varchar(200) NOT NULL, |
| 937 | `DESCRIPTION` varchar(1200) DEFAULT NULL, |
| 938 | `IS_BASE` tinyint(1) NOT NULL, |
| 939 | `HEAT_TEMPLATE_ARTIFACT_UUID` varchar(200) DEFAULT NULL, |
| 940 | `VOL_HEAT_TEMPLATE_ARTIFACT_UUID` varchar(200) DEFAULT NULL, |
| 941 | `CREATION_TIMESTAMP` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP, |
| 942 | `VNF_RESOURCE_MODEL_UUID` varchar(200) NOT NULL, |
| 943 | PRIMARY KEY (`MODEL_UUID`,`VNF_RESOURCE_MODEL_UUID`), |
| 944 | KEY `fk_vf_module__vnf_resource1_idx` (`VNF_RESOURCE_MODEL_UUID`), |
| 945 | KEY `fk_vf_module__heat_template_art_uuid__heat_template1_idx` (`HEAT_TEMPLATE_ARTIFACT_UUID`), |
| 946 | KEY `fk_vf_module__vol_heat_template_art_uuid__heat_template2_idx` (`VOL_HEAT_TEMPLATE_ARTIFACT_UUID`), |
| 947 | 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, |
| 948 | CONSTRAINT `fk_vf_module__vnf_resource1` FOREIGN KEY (`VNF_RESOURCE_MODEL_UUID`) REFERENCES `vnf_resource` (`MODEL_UUID`) ON DELETE CASCADE ON UPDATE CASCADE, |
| 949 | 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 |
| 950 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; |
| 951 | /*!40101 SET character_set_client = @saved_cs_client */; |
| 952 | |
| 953 | -- |
| 954 | -- Table structure for table `vf_module_customization` |
| 955 | -- |
| 956 | |
| 957 | DROP TABLE IF EXISTS `vf_module_customization`; |
| 958 | /*!40101 SET @saved_cs_client = @@character_set_client */; |
| 959 | /*!40101 SET character_set_client = utf8 */; |
| 960 | CREATE TABLE `vf_module_customization` ( |
| 961 | `ID` int(13) NOT NULL AUTO_INCREMENT, |
| 962 | `MODEL_CUSTOMIZATION_UUID` varchar(200) NOT NULL, |
| 963 | `LABEL` varchar(200) DEFAULT NULL, |
Benjamin, Max (mb388a) | 2eb54b3 | 2021-01-28 12:05:30 -0500 | [diff] [blame] | 964 | `INITIAL_COUNT` int(11) NOT NULL DEFAULT '0', |
| 965 | `MIN_INSTANCES` int(11) NOT NULL DEFAULT '0', |
Benjamin, Max (mb388a) | 86f04e1 | 2019-04-02 22:54:57 -0400 | [diff] [blame] | 966 | `MAX_INSTANCES` int(11) DEFAULT NULL, |
| 967 | `AVAILABILITY_ZONE_COUNT` int(11) DEFAULT NULL, |
| 968 | `HEAT_ENVIRONMENT_ARTIFACT_UUID` varchar(200) DEFAULT NULL, |
| 969 | `VOL_ENVIRONMENT_ARTIFACT_UUID` varchar(200) DEFAULT NULL, |
| 970 | `CREATION_TIMESTAMP` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP, |
| 971 | `VF_MODULE_MODEL_UUID` varchar(200) NOT NULL, |
| 972 | `VNF_RESOURCE_CUSTOMIZATION_ID` int(13) DEFAULT NULL, |
eeginux | 0f65f07 | 2019-11-07 15:19:58 +0000 | [diff] [blame] | 973 | `SKIP_POST_INSTANTIATION_CONFIGURATION` boolean default true, |
Benjamin, Max (mb388a) | 86f04e1 | 2019-04-02 22:54:57 -0400 | [diff] [blame] | 974 | PRIMARY KEY (`ID`), |
| 975 | KEY `fk_vf_module_customization__vf_module1_idx` (`VF_MODULE_MODEL_UUID`), |
| 976 | KEY `fk_vf_module_customization__heat_env__heat_environment1_idx` (`HEAT_ENVIRONMENT_ARTIFACT_UUID`), |
| 977 | KEY `fk_vf_module_customization__vol_env__heat_environment2_idx` (`VOL_ENVIRONMENT_ARTIFACT_UUID`), |
| 978 | KEY `fk_vf_module_customization_to_vnf_resource_customization` (`VNF_RESOURCE_CUSTOMIZATION_ID`), |
| 979 | KEY `vf_module_customization_model_cust_uuid_idx` (`MODEL_CUSTOMIZATION_UUID`), |
| 980 | 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, |
| 981 | CONSTRAINT `fk_vf_module_customization__vf_module1` FOREIGN KEY (`VF_MODULE_MODEL_UUID`) REFERENCES `vf_module` (`MODEL_UUID`) ON DELETE CASCADE ON UPDATE CASCADE, |
| 982 | 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, |
| 983 | 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 |
| 984 | ) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=latin1; |
| 985 | /*!40101 SET character_set_client = @saved_cs_client */; |
| 986 | |
| 987 | -- |
| 988 | -- Table structure for table `vf_module_to_heat_files` |
| 989 | -- |
| 990 | |
| 991 | DROP TABLE IF EXISTS `vf_module_to_heat_files`; |
| 992 | /*!40101 SET @saved_cs_client = @@character_set_client */; |
| 993 | /*!40101 SET character_set_client = utf8 */; |
| 994 | CREATE TABLE `vf_module_to_heat_files` ( |
| 995 | `VF_MODULE_MODEL_UUID` varchar(200) NOT NULL, |
| 996 | `HEAT_FILES_ARTIFACT_UUID` varchar(200) NOT NULL, |
| 997 | PRIMARY KEY (`VF_MODULE_MODEL_UUID`,`HEAT_FILES_ARTIFACT_UUID`), |
| 998 | KEY `fk_vf_module_to_heat_files__heat_files__artifact_uuid1_idx` (`HEAT_FILES_ARTIFACT_UUID`), |
| 999 | 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, |
| 1000 | 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 |
| 1001 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1 COMMENT='il fait ce qu''il dit'; |
| 1002 | /*!40101 SET character_set_client = @saved_cs_client */; |
| 1003 | |
| 1004 | -- |
| 1005 | -- Table structure for table `vnf_components` |
| 1006 | -- |
| 1007 | |
| 1008 | DROP TABLE IF EXISTS `vnf_components`; |
| 1009 | /*!40101 SET @saved_cs_client = @@character_set_client */; |
| 1010 | /*!40101 SET character_set_client = utf8 */; |
| 1011 | CREATE TABLE `vnf_components` ( |
| 1012 | `VNF_ID` int(11) NOT NULL, |
| 1013 | `COMPONENT_TYPE` varchar(20) NOT NULL, |
| 1014 | `HEAT_TEMPLATE_ID` int(11) DEFAULT NULL, |
| 1015 | `HEAT_ENVIRONMENT_ID` int(11) DEFAULT NULL, |
| 1016 | `CREATION_TIMESTAMP` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP, |
| 1017 | PRIMARY KEY (`VNF_ID`,`COMPONENT_TYPE`) |
| 1018 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; |
| 1019 | /*!40101 SET character_set_client = @saved_cs_client */; |
| 1020 | |
| 1021 | -- |
| 1022 | -- Table structure for table `vnf_components_recipe` |
| 1023 | -- |
| 1024 | |
| 1025 | DROP TABLE IF EXISTS `vnf_components_recipe`; |
| 1026 | /*!40101 SET @saved_cs_client = @@character_set_client */; |
| 1027 | /*!40101 SET character_set_client = utf8 */; |
| 1028 | CREATE TABLE `vnf_components_recipe` ( |
| 1029 | `id` int(11) NOT NULL AUTO_INCREMENT, |
| 1030 | `VNF_TYPE` varchar(200) DEFAULT NULL, |
| 1031 | `VNF_COMPONENT_TYPE` varchar(45) NOT NULL, |
| 1032 | `ACTION` varchar(50) NOT NULL, |
| 1033 | `SERVICE_TYPE` varchar(45) DEFAULT NULL, |
| 1034 | `VERSION` varchar(20) NOT NULL, |
| 1035 | `DESCRIPTION` varchar(1200) DEFAULT NULL, |
| 1036 | `ORCHESTRATION_URI` varchar(256) NOT NULL, |
| 1037 | `VNF_COMPONENT_PARAM_XSD` varchar(2048) DEFAULT NULL, |
| 1038 | `RECIPE_TIMEOUT` int(11) DEFAULT NULL, |
| 1039 | `CREATION_TIMESTAMP` datetime DEFAULT CURRENT_TIMESTAMP, |
| 1040 | `VF_MODULE_MODEL_UUID` varchar(200) DEFAULT NULL, |
| 1041 | PRIMARY KEY (`id`), |
| 1042 | UNIQUE KEY `UK_4dpdwddaaclhc11wxsb7h59ma` (`VF_MODULE_MODEL_UUID`,`VNF_COMPONENT_TYPE`,`ACTION`,`VERSION`) |
| 1043 | ) ENGINE=InnoDB AUTO_INCREMENT=38 DEFAULT CHARSET=latin1; |
| 1044 | /*!40101 SET character_set_client = @saved_cs_client */; |
| 1045 | |
| 1046 | -- |
| 1047 | -- Table structure for table `vnf_recipe` |
| 1048 | -- |
| 1049 | |
| 1050 | DROP TABLE IF EXISTS `vnf_recipe`; |
| 1051 | /*!40101 SET @saved_cs_client = @@character_set_client */; |
| 1052 | /*!40101 SET character_set_client = utf8 */; |
| 1053 | CREATE TABLE `vnf_recipe` ( |
| 1054 | `id` int(11) NOT NULL AUTO_INCREMENT, |
| 1055 | `NF_ROLE` varchar(200) DEFAULT NULL, |
| 1056 | `ACTION` varchar(50) NOT NULL, |
| 1057 | `SERVICE_TYPE` varchar(45) DEFAULT NULL, |
| 1058 | `VERSION_STR` varchar(20) NOT NULL, |
| 1059 | `DESCRIPTION` varchar(1200) DEFAULT NULL, |
| 1060 | `ORCHESTRATION_URI` varchar(256) NOT NULL, |
| 1061 | `VNF_PARAM_XSD` varchar(2048) DEFAULT NULL, |
| 1062 | `RECIPE_TIMEOUT` int(11) DEFAULT NULL, |
| 1063 | `CREATION_TIMESTAMP` datetime DEFAULT CURRENT_TIMESTAMP, |
| 1064 | `VF_MODULE_ID` varchar(100) DEFAULT NULL, |
| 1065 | PRIMARY KEY (`id`), |
| 1066 | UNIQUE KEY `UK_f3tvqau498vrifq3cr8qnigkr` (`VF_MODULE_ID`,`ACTION`,`VERSION_STR`) |
| 1067 | ) ENGINE=InnoDB AUTO_INCREMENT=10015 DEFAULT CHARSET=latin1; |
| 1068 | /*!40101 SET character_set_client = @saved_cs_client */; |
| 1069 | |
| 1070 | -- |
| 1071 | -- Table structure for table `vnf_resource` |
| 1072 | -- |
| 1073 | |
| 1074 | DROP TABLE IF EXISTS `vnf_resource`; |
| 1075 | /*!40101 SET @saved_cs_client = @@character_set_client */; |
| 1076 | /*!40101 SET character_set_client = utf8 */; |
| 1077 | CREATE TABLE `vnf_resource` ( |
| 1078 | `ORCHESTRATION_MODE` varchar(20) NOT NULL DEFAULT 'HEAT', |
| 1079 | `DESCRIPTION` varchar(1200) DEFAULT NULL, |
| 1080 | `CREATION_TIMESTAMP` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP, |
| 1081 | `MODEL_UUID` varchar(200) NOT NULL, |
| 1082 | `AIC_VERSION_MIN` varchar(20) DEFAULT NULL, |
| 1083 | `AIC_VERSION_MAX` varchar(20) DEFAULT NULL, |
| 1084 | `MODEL_INVARIANT_UUID` varchar(200) DEFAULT NULL, |
| 1085 | `MODEL_VERSION` varchar(20) NOT NULL, |
| 1086 | `MODEL_NAME` varchar(200) DEFAULT NULL, |
| 1087 | `TOSCA_NODE_TYPE` varchar(200) DEFAULT NULL, |
| 1088 | `HEAT_TEMPLATE_ARTIFACT_UUID` varchar(200) DEFAULT NULL, |
| 1089 | `RESOURCE_CATEGORY` varchar(200) DEFAULT NULL, |
| 1090 | `RESOURCE_SUB_CATEGORY` varchar(200) DEFAULT NULL, |
| 1091 | PRIMARY KEY (`MODEL_UUID`), |
| 1092 | KEY `fk_vnf_resource__heat_template1` (`HEAT_TEMPLATE_ARTIFACT_UUID`), |
| 1093 | CONSTRAINT `fk_vnf_resource__heat_template1` FOREIGN KEY (`HEAT_TEMPLATE_ARTIFACT_UUID`) REFERENCES `heat_template` (`ARTIFACT_UUID`) ON DELETE CASCADE ON UPDATE CASCADE |
| 1094 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; |
| 1095 | /*!40101 SET character_set_client = @saved_cs_client */; |
| 1096 | |
| 1097 | -- |
| 1098 | -- Table structure for table `vnf_resource_customization` |
| 1099 | -- |
| 1100 | |
| 1101 | DROP TABLE IF EXISTS `vnf_resource_customization`; |
| 1102 | /*!40101 SET @saved_cs_client = @@character_set_client */; |
| 1103 | /*!40101 SET character_set_client = utf8 */; |
| 1104 | CREATE TABLE `vnf_resource_customization` ( |
| 1105 | `ID` int(13) NOT NULL AUTO_INCREMENT, |
| 1106 | `MODEL_CUSTOMIZATION_UUID` varchar(200) NOT NULL, |
| 1107 | `MODEL_INSTANCE_NAME` varchar(200) NOT NULL, |
| 1108 | `MIN_INSTANCES` int(11) DEFAULT NULL, |
| 1109 | `MAX_INSTANCES` int(11) DEFAULT NULL, |
| 1110 | `AVAILABILITY_ZONE_MAX_COUNT` int(11) DEFAULT NULL, |
| 1111 | `NF_TYPE` varchar(200) DEFAULT NULL, |
| 1112 | `NF_ROLE` varchar(200) DEFAULT NULL, |
| 1113 | `NF_FUNCTION` varchar(200) DEFAULT NULL, |
| 1114 | `NF_NAMING_CODE` varchar(200) DEFAULT NULL, |
| 1115 | `MULTI_STAGE_DESIGN` varchar(20) DEFAULT NULL, |
| 1116 | `RESOURCE_INPUT` varchar(20000) DEFAULT NULL, |
| 1117 | `CDS_BLUEPRINT_NAME` varchar(200) default null, |
| 1118 | `CDS_BLUEPRINT_VERSION` varchar(20) default null, |
eeginux | fccb6ec | 2019-04-02 14:11:08 +0100 | [diff] [blame] | 1119 | `SKIP_POST_INSTANTIATION_CONFIGURATION` boolean default true, |
Benjamin, Max (mb388a) | 86f04e1 | 2019-04-02 22:54:57 -0400 | [diff] [blame] | 1120 | `CREATION_TIMESTAMP` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP, |
| 1121 | `VNF_RESOURCE_MODEL_UUID` varchar(200) NOT NULL, |
| 1122 | `SERVICE_MODEL_UUID` varchar(200) NOT NULL, |
zm330 | 458cc8d | 2019-04-23 10:46:53 +0800 | [diff] [blame] | 1123 | `VNFCINSTANCEGROUP_ORDER` varchar(200) default NULL, |
eeginux | 0f65f07 | 2019-11-07 15:19:58 +0000 | [diff] [blame] | 1124 | `NF_DATA_VALID` tinyint(1) DEFAULT '0', |
| 1125 | `CONTROLLER_ACTOR` varchar(200) DEFAULT NULL, |
Benjamin, Max (mb388a) | 86f04e1 | 2019-04-02 22:54:57 -0400 | [diff] [blame] | 1126 | PRIMARY KEY (`ID`), |
| 1127 | UNIQUE KEY `UK_vnf_resource_customization` (`MODEL_CUSTOMIZATION_UUID`,`SERVICE_MODEL_UUID`), |
| 1128 | KEY `fk_vnf_resource_customization__vnf_resource1_idx` (`VNF_RESOURCE_MODEL_UUID`), |
| 1129 | KEY `fk_vnf_resource_customization_to_service` (`SERVICE_MODEL_UUID`), |
| 1130 | KEY `vnf_resource_customization_mod_cust_uuid_idx` (`MODEL_CUSTOMIZATION_UUID`), |
| 1131 | CONSTRAINT `fk_vnf_resource_customization__vnf_resource1` FOREIGN KEY (`VNF_RESOURCE_MODEL_UUID`) REFERENCES `vnf_resource` (`MODEL_UUID`) ON DELETE CASCADE ON UPDATE CASCADE, |
| 1132 | CONSTRAINT `fk_vnf_resource_customization_to_service` FOREIGN KEY (`SERVICE_MODEL_UUID`) REFERENCES `service` (`MODEL_UUID`) ON DELETE CASCADE ON UPDATE CASCADE |
| 1133 | ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=latin1; |
| 1134 | /*!40101 SET character_set_client = @saved_cs_client */; |
| 1135 | |
| 1136 | -- |
| 1137 | -- Table structure for table `vnfc_customization` |
| 1138 | -- |
| 1139 | |
| 1140 | DROP TABLE IF EXISTS `vnfc_customization`; |
| 1141 | /*!40101 SET @saved_cs_client = @@character_set_client */; |
| 1142 | /*!40101 SET character_set_client = utf8 */; |
| 1143 | CREATE TABLE `vnfc_customization` ( |
| 1144 | `MODEL_CUSTOMIZATION_UUID` varchar(200) NOT NULL, |
| 1145 | `MODEL_INSTANCE_NAME` varchar(200) NOT NULL, |
| 1146 | `MODEL_UUID` varchar(200) NOT NULL, |
| 1147 | `MODEL_INVARIANT_UUID` varchar(200) NOT NULL, |
| 1148 | `MODEL_VERSION` varchar(20) NOT NULL, |
| 1149 | `MODEL_NAME` varchar(200) NOT NULL, |
| 1150 | `TOSCA_NODE_TYPE` varchar(200) NOT NULL, |
| 1151 | `DESCRIPTION` varchar(1200) DEFAULT NULL, |
zm330 | 84a1b18 | 2019-04-23 18:08:56 +0800 | [diff] [blame] | 1152 | `RESOURCE_INPUT` varchar(20000) DEFAULT NULL, |
subhash kumar singh | 9797ba0 | 2019-04-20 15:41:18 +0530 | [diff] [blame] | 1153 | `VNFC_INSTANCE_GROUP_CUSTOMIZATION_ID` integer DEFAULT NULL, |
Benjamin, Max (mb388a) | 86f04e1 | 2019-04-02 22:54:57 -0400 | [diff] [blame] | 1154 | `CREATION_TIMESTAMP` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP, |
| 1155 | PRIMARY KEY (`MODEL_CUSTOMIZATION_UUID`) |
| 1156 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; |
| 1157 | /*!40101 SET character_set_client = @saved_cs_client */; |
| 1158 | |
| 1159 | -- |
| 1160 | -- Table structure for table `vnfc_instance_group_customization` |
| 1161 | -- |
| 1162 | |
| 1163 | DROP TABLE IF EXISTS `vnfc_instance_group_customization`; |
| 1164 | /*!40101 SET @saved_cs_client = @@character_set_client */; |
| 1165 | /*!40101 SET character_set_client = utf8 */; |
| 1166 | CREATE TABLE `vnfc_instance_group_customization` ( |
| 1167 | `ID` int(13) NOT NULL AUTO_INCREMENT PRIMARY KEY, |
| 1168 | `VNF_RESOURCE_CUSTOMIZATION_ID` int(13) NOT NULL, |
| 1169 | `INSTANCE_GROUP_MODEL_UUID` varchar(200) NOT NULL, |
| 1170 | `FUNCTION` varchar(200) DEFAULT NULL, |
| 1171 | `DESCRIPTION` varchar(1200) DEFAULT NULL, |
| 1172 | `CREATION_TIMESTAMP` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP, |
| 1173 | KEY `fk_vnfc_instance_group_customization__instance_group1_idx` (`INSTANCE_GROUP_MODEL_UUID`), |
| 1174 | 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, |
| 1175 | 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 |
| 1176 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; |
| 1177 | set foreign_key_checks=1; |
Benjamin, Max (mb388a) | 69455a2 | 2018-09-04 11:21:02 -0400 | [diff] [blame] | 1178 | |
Benjamin, Max (mb388a) | e868968 | 2019-03-20 16:19:39 -0400 | [diff] [blame] | 1179 | CREATE TABLE IF NOT EXISTS `pnf_resource` ( |
Smokowski, Steve (ss835w) | 8b56e8d | 2019-04-11 12:09:04 -0400 | [diff] [blame] | 1180 | `ORCHESTRATION_MODE` varchar(20) DEFAULT NULL, |
Benjamin, Max (mb388a) | e868968 | 2019-03-20 16:19:39 -0400 | [diff] [blame] | 1181 | `DESCRIPTION` varchar(1200) DEFAULT NULL, |
| 1182 | `CREATION_TIMESTAMP` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP, |
| 1183 | `MODEL_UUID` varchar(200) NOT NULL, |
| 1184 | `MODEL_INVARIANT_UUID` varchar(200) DEFAULT NULL, |
| 1185 | `MODEL_VERSION` varchar(20) NOT NULL, |
| 1186 | `MODEL_NAME` varchar(200) DEFAULT NULL, |
| 1187 | `TOSCA_NODE_TYPE` varchar(200) DEFAULT NULL, |
| 1188 | `RESOURCE_CATEGORY` varchar(200) DEFAULT NULL, |
| 1189 | `RESOURCE_SUB_CATEGORY` varchar(200) DEFAULT NULL, |
| 1190 | PRIMARY KEY (`MODEL_UUID`) |
| 1191 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; |
| 1192 | |
| 1193 | CREATE TABLE IF NOT EXISTS `pnf_resource_customization` ( |
| 1194 | `MODEL_CUSTOMIZATION_UUID` varchar(200) NOT NULL, |
| 1195 | `MODEL_INSTANCE_NAME` varchar(200) NOT NULL, |
| 1196 | `NF_TYPE` varchar(200) DEFAULT NULL, |
| 1197 | `NF_ROLE` varchar(200) DEFAULT NULL, |
| 1198 | `NF_FUNCTION` varchar(200) DEFAULT NULL, |
| 1199 | `NF_NAMING_CODE` varchar(200) DEFAULT NULL, |
| 1200 | `CREATION_TIMESTAMP` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP, |
| 1201 | `PNF_RESOURCE_MODEL_UUID` varchar(200) NOT NULL, |
| 1202 | `MULTI_STAGE_DESIGN` varchar(20) DEFAULT NULL, |
| 1203 | `RESOURCE_INPUT` varchar(2000) DEFAULT NULL, |
| 1204 | `CDS_BLUEPRINT_NAME` varchar(200) DEFAULT NULL, |
| 1205 | `CDS_BLUEPRINT_VERSION` varchar(20) DEFAULT NULL, |
eeginux | fccb6ec | 2019-04-02 14:11:08 +0100 | [diff] [blame] | 1206 | `SKIP_POST_INSTANTIATION_CONFIGURATION` boolean default true, |
eeginux | 0f65f07 | 2019-11-07 15:19:58 +0000 | [diff] [blame] | 1207 | `CONTROLLER_ACTOR` varchar(200) DEFAULT NULL, |
tragait | 5d4f34c | 2020-09-16 12:51:21 +0100 | [diff] [blame] | 1208 | `DEFAULT_SOFTWARE_VERSION` varchar(4000) DEFAULT NULL, |
Benjamin, Max (mb388a) | e868968 | 2019-03-20 16:19:39 -0400 | [diff] [blame] | 1209 | PRIMARY KEY (`MODEL_CUSTOMIZATION_UUID`), |
| 1210 | KEY `fk_pnf_resource_customization__pnf_resource1_idx` (`PNF_RESOURCE_MODEL_UUID`), |
| 1211 | CONSTRAINT `fk_pnf_resource_customization__pnf_resource1` FOREIGN KEY (`PNF_RESOURCE_MODEL_UUID`) REFERENCES `pnf_resource` (`MODEL_UUID`) ON DELETE CASCADE ON UPDATE CASCADE |
| 1212 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; |
| 1213 | |
| 1214 | CREATE TABLE IF NOT EXISTS `pnf_resource_customization_to_service` ( |
| 1215 | `SERVICE_MODEL_UUID` varchar(200) NOT NULL, |
| 1216 | `RESOURCE_MODEL_CUSTOMIZATION_UUID` varchar(200) NOT NULL, |
Elena Kuleshov | a2aea24 | 2019-04-10 09:26:02 -0400 | [diff] [blame] | 1217 | PRIMARY KEY (`SERVICE_MODEL_UUID`,`RESOURCE_MODEL_CUSTOMIZATION_UUID`) |
Benjamin, Max (mb388a) | e868968 | 2019-03-20 16:19:39 -0400 | [diff] [blame] | 1218 | )ENGINE=InnoDB DEFAULT CHARSET=latin1; |
eeginux | 66481e1 | 2019-03-16 16:07:16 +0000 | [diff] [blame] | 1219 | |
Elena Kuleshov | a2aea24 | 2019-04-10 09:26:02 -0400 | [diff] [blame] | 1220 | |
Smokowski, Steve (ss835w) | 8b56e8d | 2019-04-11 12:09:04 -0400 | [diff] [blame] | 1221 | CREATE TABLE IF NOT EXISTS `workflow` ( |
| 1222 | `ID` int(11) NOT NULL AUTO_INCREMENT, |
| 1223 | `ARTIFACT_UUID` varchar(200) NOT NULL, |
| 1224 | `ARTIFACT_NAME` varchar(200) NOT NULL, |
| 1225 | `NAME` varchar(200) NOT NULL, |
| 1226 | `OPERATION_NAME` varchar(200) DEFAULT NULL, |
| 1227 | `VERSION` double NOT NULL, |
| 1228 | `DESCRIPTION` varchar(1200) DEFAULT NULL, |
| 1229 | `BODY` longtext DEFAULT NULL, |
| 1230 | `RESOURCE_TARGET` varchar(200) NOT NULL, |
| 1231 | `SOURCE` varchar(200) NOT NULL, |
| 1232 | `TIMEOUT_MINUTES` int(11) DEFAULT NULL, |
Benjamin, Max (mb388a) | 2eb54b3 | 2021-01-28 12:05:30 -0500 | [diff] [blame] | 1233 | `ARTIFACT_CHECKSUM` varchar(200) NULL DEFAULT 'MANUAL RECORD', |
Smokowski, Steve (ss835w) | 8b56e8d | 2019-04-11 12:09:04 -0400 | [diff] [blame] | 1234 | `CREATION_TIMESTAMP` datetime NOT NULL DEFAULT current_timestamp(), |
| 1235 | PRIMARY KEY (`ID`), |
| 1236 | UNIQUE KEY `UK_workflow` (`ARTIFACT_UUID`,`NAME`,`VERSION`,`SOURCE`) |
| 1237 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; |
| 1238 | |
| 1239 | CREATE TABLE IF NOT EXISTS `vnf_resource_to_workflow` ( |
| 1240 | `ID` int(11) NOT NULL AUTO_INCREMENT, |
| 1241 | `VNF_RESOURCE_MODEL_UUID` varchar(200) NOT NULL, |
| 1242 | `WORKFLOW_ID` int(11) NOT NULL, |
| 1243 | PRIMARY KEY (`ID`), |
| 1244 | UNIQUE KEY `UK_vnf_resource_to_workflow` (`VNF_RESOURCE_MODEL_UUID`,`WORKFLOW_ID`), |
| 1245 | KEY `fk_vnf_resource_to_workflow__workflow1_idx` (`WORKFLOW_ID`), |
| 1246 | KEY `fk_vnf_resource_to_workflow__vnf_res_mod_uuid_idx` (`VNF_RESOURCE_MODEL_UUID`), |
| 1247 | 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, |
| 1248 | CONSTRAINT `fk_vnf_resource_to_workflow__workflow1` FOREIGN KEY (`WORKFLOW_ID`) REFERENCES `workflow` (`ID`) ON DELETE CASCADE ON UPDATE CASCADE |
| 1249 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; |
| 1250 | |
| 1251 | CREATE TABLE IF NOT EXISTS `activity_spec` ( |
| 1252 | `ID` INT(11) NOT NULL AUTO_INCREMENT, |
| 1253 | `NAME` VARCHAR(200) NOT NULL, |
| 1254 | `DESCRIPTION` VARCHAR(1200) NOT NULL, |
| 1255 | `VERSION` DOUBLE NOT NULL, |
| 1256 | `CREATION_TIMESTAMP` DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP, |
| 1257 | PRIMARY KEY (`ID`), |
| 1258 | UNIQUE INDEX `UK_activity_spec` (`NAME` ASC, `VERSION` ASC)) |
| 1259 | ENGINE = InnoDB |
| 1260 | DEFAULT CHARACTER SET = latin1; |
| 1261 | |
| 1262 | CREATE TABLE IF NOT EXISTS `user_parameters` ( |
| 1263 | `ID` INT(11) NOT NULL AUTO_INCREMENT, |
| 1264 | `NAME` VARCHAR(200) NOT NULL, |
| 1265 | `PAYLOAD_LOCATION` VARCHAR(500) NULL, |
| 1266 | `LABEL` VARCHAR(200) NOT NULL, |
| 1267 | `TYPE` VARCHAR(200) NOT NULL, |
| 1268 | `DESCRIPTION` VARCHAR(1200) NULL, |
| 1269 | `IS_REQUIRED` TINYINT(1) NOT NULL, |
| 1270 | `MAX_LENGTH` INT(11) NULL, |
| 1271 | `ALLOWABLE_CHARS` VARCHAR(200) NULL, |
| 1272 | `CREATION_TIMESTAMP` DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP, |
| 1273 | PRIMARY KEY (`ID`), |
| 1274 | UNIQUE INDEX `UK_user_parameters` (`NAME` ASC)) |
| 1275 | ENGINE = InnoDB |
| 1276 | DEFAULT CHARACTER SET = latin1; |
| 1277 | |
| 1278 | CREATE TABLE IF NOT EXISTS `workflow_activity_spec_sequence` ( |
| 1279 | `ID` INT(11) NOT NULL AUTO_INCREMENT, |
| 1280 | `WORKFLOW_ID` INT(11) NOT NULL, |
| 1281 | `ACTIVITY_SPEC_ID` INT(11) NOT NULL, |
| 1282 | `SEQ_NO` INT(11) NOT NULL, |
| 1283 | PRIMARY KEY (`ID`), |
| 1284 | UNIQUE INDEX `UK_workflow_activity_spec_sequence` (`WORKFLOW_ID` ASC, `ACTIVITY_SPEC_ID` ASC, `SEQ_NO` ASC), |
| 1285 | INDEX `fk_workflow_activity_spec_sequence__activity_spec_idx` (`ACTIVITY_SPEC_ID` ASC), |
| 1286 | INDEX `fk_workflow_activity_spec_sequence__workflow_actifact_uuid_idx` (`WORKFLOW_ID` ASC), |
| 1287 | CONSTRAINT `fk_workflow_activity_spec_sequence__activity_spec1` |
| 1288 | FOREIGN KEY (`ACTIVITY_SPEC_ID`) |
| 1289 | REFERENCES `activity_spec` (`ID`) |
| 1290 | ON DELETE CASCADE |
| 1291 | ON UPDATE CASCADE, |
| 1292 | CONSTRAINT `fk_workflow_activity_spec_sequence__workflow1` |
| 1293 | FOREIGN KEY (`WORKFLOW_ID`) |
| 1294 | REFERENCES `workflow` (`ID`) |
| 1295 | ON DELETE CASCADE |
| 1296 | ON UPDATE CASCADE) |
| 1297 | ENGINE = InnoDB |
| 1298 | DEFAULT CHARACTER SET = latin1; |
| 1299 | |
| 1300 | CREATE TABLE IF NOT EXISTS `activity_spec_parameters` ( |
| 1301 | `ID` INT(11) NOT NULL AUTO_INCREMENT, |
| 1302 | `NAME` VARCHAR(200) NOT NULL, |
| 1303 | `TYPE` VARCHAR(200) NOT NULL, |
| 1304 | `DIRECTION` VARCHAR(200) NULL, |
| 1305 | `DESCRIPTION` VARCHAR(1200) NULL, |
| 1306 | `CREATION_TIMESTAMP` DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP, |
| 1307 | PRIMARY KEY (`ID`), |
| 1308 | UNIQUE INDEX `UK_activity_spec_parameters` (`NAME` ASC, `DIRECTION` ASC)) |
| 1309 | ENGINE = InnoDB |
| 1310 | DEFAULT CHARACTER SET = latin1; |
| 1311 | |
| 1312 | CREATE TABLE IF NOT EXISTS `activity_spec_categories` ( |
| 1313 | `ID` INT(11) NOT NULL AUTO_INCREMENT, |
| 1314 | `NAME` VARCHAR(200) NOT NULL, |
| 1315 | PRIMARY KEY (`ID`), |
| 1316 | UNIQUE INDEX `UK_activity_spec_categories` (`NAME` ASC)) |
| 1317 | ENGINE = InnoDB |
| 1318 | DEFAULT CHARACTER SET = latin1; |
| 1319 | |
| 1320 | CREATE TABLE IF NOT EXISTS `activity_spec_to_activity_spec_categories` ( |
| 1321 | `ID` INT(11) NOT NULL AUTO_INCREMENT, |
| 1322 | `ACTIVITY_SPEC_ID` INT(11) NOT NULL, |
| 1323 | `ACTIVITY_SPEC_CATEGORIES_ID` INT(11) NOT NULL, |
| 1324 | PRIMARY KEY (`ID`), |
| 1325 | UNIQUE INDEX `UK_activity_spec_to_activity_spec_categories` (`ACTIVITY_SPEC_ID` ASC, `ACTIVITY_SPEC_CATEGORIES_ID` ASC), |
| 1326 | INDEX `fk_activity_spec_to_activity_spec_categories__activity_spec_idx` (`ACTIVITY_SPEC_CATEGORIES_ID` ASC), |
| 1327 | INDEX `fk_activity_spec_to_activity_spec_categories__activity_spec_idx1` (`ACTIVITY_SPEC_ID` ASC), |
| 1328 | CONSTRAINT `fk_activity_spec_to_activity_spec_categories__activity_spec1` |
| 1329 | FOREIGN KEY (`ACTIVITY_SPEC_ID`) |
| 1330 | REFERENCES `activity_spec` (`ID`) |
| 1331 | ON DELETE CASCADE |
| 1332 | ON UPDATE CASCADE, |
| 1333 | CONSTRAINT `fk_activity_spec_to_activity_spec_categories__activity_spec_c1` |
| 1334 | FOREIGN KEY (`ACTIVITY_SPEC_CATEGORIES_ID`) |
| 1335 | REFERENCES `activity_spec_categories` (`ID`) |
| 1336 | ON DELETE CASCADE |
| 1337 | ON UPDATE CASCADE) |
| 1338 | ENGINE = InnoDB |
| 1339 | DEFAULT CHARACTER SET = latin1; |
| 1340 | |
| 1341 | CREATE TABLE IF NOT EXISTS `activity_spec_to_activity_spec_parameters` ( |
| 1342 | `ID` INT(11) NOT NULL AUTO_INCREMENT, |
| 1343 | `ACTIVITY_SPEC_ID` INT(11) NOT NULL, |
| 1344 | `ACTIVITY_SPEC_PARAMETERS_ID` INT(11) NOT NULL, |
| 1345 | PRIMARY KEY (`ID`), |
| 1346 | INDEX `fk_activity_spec_to_activity_spec_params__act_sp_param_id_idx` (`ACTIVITY_SPEC_PARAMETERS_ID` ASC), |
| 1347 | UNIQUE INDEX `UK_activity_spec_to_activity_spec_parameters` (`ACTIVITY_SPEC_ID` ASC, `ACTIVITY_SPEC_PARAMETERS_ID` ASC), |
| 1348 | INDEX `fk_activity_spec_to_activity_spec_parameters__act_spec_id_idx` (`ACTIVITY_SPEC_ID` ASC), |
| 1349 | CONSTRAINT `fk_activity_spec_to_activity_spec_parameters__activity_spec_1` |
| 1350 | FOREIGN KEY (`ACTIVITY_SPEC_ID`) |
| 1351 | REFERENCES `activity_spec` (`ID`) |
| 1352 | ON DELETE CASCADE |
| 1353 | ON UPDATE CASCADE, |
| 1354 | CONSTRAINT `fk_activity_spec_to_activity_spec_parameters__activ_spec_param1` |
| 1355 | FOREIGN KEY (`ACTIVITY_SPEC_PARAMETERS_ID`) |
| 1356 | REFERENCES `activity_spec_parameters` (`ID`) |
| 1357 | ON DELETE CASCADE |
| 1358 | ON UPDATE CASCADE) |
| 1359 | ENGINE = InnoDB |
| 1360 | DEFAULT CHARACTER SET = latin1; |
| 1361 | |
| 1362 | CREATE TABLE IF NOT EXISTS `activity_spec_to_user_parameters` ( |
| 1363 | `ID` INT(11) NOT NULL AUTO_INCREMENT, |
| 1364 | `ACTIVITY_SPEC_ID` INT(11) NOT NULL, |
| 1365 | `USER_PARAMETERS_ID` INT(11) NOT NULL, |
| 1366 | PRIMARY KEY (`ID`), |
| 1367 | UNIQUE INDEX `UK_activity_spec_to_user_parameters` (`ACTIVITY_SPEC_ID` ASC, `USER_PARAMETERS_ID` ASC), |
| 1368 | INDEX `fk_activity_spec_to_user_parameters__user_parameters1_idx` (`USER_PARAMETERS_ID` ASC), |
| 1369 | INDEX `fk_activity_spec_to_user_parameters__activity_spec1_idx` (`ACTIVITY_SPEC_ID` ASC), |
| 1370 | CONSTRAINT `fk_activity_spec_to_user_parameters__activity_spec1` |
| 1371 | FOREIGN KEY (`ACTIVITY_SPEC_ID`) |
| 1372 | REFERENCES `activity_spec` (`ID`) |
| 1373 | ON DELETE CASCADE |
| 1374 | ON UPDATE CASCADE, |
| 1375 | CONSTRAINT `fk_activity_spec_to_user_parameters__user_parameters1` |
| 1376 | FOREIGN KEY (`USER_PARAMETERS_ID`) |
| 1377 | REFERENCES `user_parameters` (`ID`) |
| 1378 | ON DELETE CASCADE |
| 1379 | ON UPDATE CASCADE) |
| 1380 | ENGINE = InnoDB |
| 1381 | DEFAULT CHARACTER SET = latin1; |
| 1382 | |
zm330 | 1e0bac8 | 2020-03-02 00:41:19 +0800 | [diff] [blame] | 1383 | CREATE TABLE IF NOT EXISTS `service_info` ( |
| 1384 | `ID` int (11) AUTO_INCREMENT, |
| 1385 | `SERVICE_INPUT` varchar (5000), |
| 1386 | `SERVICE_PROPERTIES` varchar (5000), |
zm330 | 3b6caf9 | 2020-03-24 11:16:56 +0800 | [diff] [blame] | 1387 | `SERVICE_MODEL_UUID` varchar (200) NOT NULL, |
| 1388 | PRIMARY KEY (`ID`), |
| 1389 | CONSTRAINT `fk_service_info_service1` FOREIGN KEY (`SERVICE_MODEL_UUID`) REFERENCES `service` (`MODEL_UUID`) ON DELETE CASCADE ON UPDATE CASCADE |
zm330 | 1e0bac8 | 2020-03-02 00:41:19 +0800 | [diff] [blame] | 1390 | )ENGINE=InnoDB DEFAULT CHARSET=latin1; |
| 1391 | |
| 1392 | CREATE TABLE IF NOT EXISTS `service_artifact`( |
| 1393 | `ARTIFACT_UUID` varchar (200) NOT NULL, |
| 1394 | `TYPE` varchar (200) NOT NULL, |
| 1395 | `NAME` varchar (200) NOT NULL, |
| 1396 | `VERSION` varchar (200) NOT NULL, |
| 1397 | `DESCRIPTION` varchar (200) DEFAULT NULL, |
| 1398 | `CONTENT` LONGTEXT DEFAULT NULL, |
| 1399 | `CHECKSUM` varchar (200) DEFAULT NULL, |
| 1400 | `CREATION_TIMESTAMP` DATETIME DEFAULT CURRENT_TIMESTAMP, |
| 1401 | `SERVICE_MODEL_UUID` varchar (200) NOT NULL, |
| 1402 | PRIMARY KEY (`ARTIFACT_UUID`), |
| 1403 | CONSTRAINT `fk_service_artifact_service_info1` FOREIGN KEY (`SERVICE_MODEL_UUID`) REFERENCES `service` (`MODEL_UUID`) ON DELETE CASCADE ON UPDATE CASCADE |
| 1404 | )ENGINE=InnoDB DEFAULT CHARSET=latin1; |
| 1405 | |
Benjamin, Max (mb388a) | 5a6a6de | 2018-07-30 15:56:09 -0400 | [diff] [blame] | 1406 | --------START Request DB SCHEMA -------- |
| 1407 | CREATE DATABASE requestdb; |
| 1408 | USE requestdb; |
| 1409 | |
| 1410 | |
| 1411 | CREATE TABLE `active_requests` ( |
| 1412 | `REQUEST_ID` varchar(45) NOT NULL, |
| 1413 | `CLIENT_REQUEST_ID` varchar(45) DEFAULT NULL, |
| 1414 | `SERVICE_INSTANCE_ID` varchar(50) NOT NULL, |
| 1415 | `SUBSCRIBER_NAME` varchar(200) DEFAULT NULL, |
| 1416 | `REQUEST_URI` varchar(255) DEFAULT NULL, |
| 1417 | `SERVICE_TYPE` varchar(65) NOT NULL, |
| 1418 | `REQUEST_ACTION` varchar(45) NOT NULL, |
| 1419 | `NOTIFICATION_URL` varchar(255) DEFAULT NULL, |
| 1420 | `REQUEST_ID_IN_PROGRESS` varchar(45) DEFAULT NULL, |
| 1421 | `START_TIME` datetime DEFAULT NULL, |
| 1422 | `MODIFY_TIME` datetime DEFAULT NULL, |
| 1423 | `COMPLETION_TIME` datetime DEFAULT NULL, |
| 1424 | `RESPONSE_CODE` varchar(20) DEFAULT NULL, |
| 1425 | `RESPONSE_BODY` longtext, |
| 1426 | `STATUS` varchar(25) DEFAULT NULL, |
| 1427 | `SERVICE_REQUEST_TIMEOUT` datetime DEFAULT NULL, |
| 1428 | `FINAL_ERROR_CODE` varchar(20) DEFAULT NULL, |
| 1429 | `FINAL_ERROR_MESSAGE` varchar(2000) DEFAULT NULL, |
| 1430 | `ORDER_NUMBER` varchar(45) DEFAULT NULL, |
| 1431 | `SOURCE` varchar(20) DEFAULT NULL, |
| 1432 | `RESPONSE_STATUS` varchar(25) DEFAULT NULL, |
| 1433 | `ORDER_VERSION` varchar(20) DEFAULT NULL, |
| 1434 | `LAST_MODIFIED_BY` varchar(20) DEFAULT NULL, |
| 1435 | `MOCARS_TICKET_NUM` varchar(200) DEFAULT NULL, |
| 1436 | `REQUEST_BODY` longtext, |
| 1437 | `REQUEST_SUB_ACTION` varchar(45) DEFAULT NULL, |
| 1438 | `SDNC_CALLBACK_BPEL_URL` varchar(255) DEFAULT NULL, |
| 1439 | `FEATURE_TYPE` varchar(255) DEFAULT NULL, |
| 1440 | `FEATURE_INSTANCE_ID` varchar(255) DEFAULT NULL, |
| 1441 | `REQUEST_TYPE` varchar(255) DEFAULT NULL, |
| 1442 | `INTERIM_COMPLETION_TIME` datetime DEFAULT NULL, |
| 1443 | `INTERIM_STAGE_COMPLETION` int(11) DEFAULT NULL, |
| 1444 | `SERVICE_NAME_VERSION_ID` varchar(50) DEFAULT NULL, |
| 1445 | `GLOBAL_SUBSCRIBER_ID` varchar(255) DEFAULT NULL, |
| 1446 | `SERVICE_ID` varchar(50) DEFAULT NULL, |
| 1447 | `SERVICE_VERSION` varchar(10) DEFAULT NULL, |
| 1448 | `CORRELATOR` varchar(50) DEFAULT NULL, |
| 1449 | PRIMARY KEY (`REQUEST_ID`), |
| 1450 | UNIQUE KEY `UK_f0hdk7xbw5mb2trnxx0fvlh3x` (`CLIENT_REQUEST_ID`) |
| 1451 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; |
| 1452 | |
| 1453 | CREATE TABLE `infra_active_requests` ( |
| 1454 | `REQUEST_ID` varchar(45) NOT NULL, |
Benjamin, Max (mb388a) | 5a6a6de | 2018-07-30 15:56:09 -0400 | [diff] [blame] | 1455 | `REQUEST_STATUS` varchar(20) DEFAULT NULL, |
| 1456 | `STATUS_MESSAGE` longtext DEFAULT NULL, |
| 1457 | `PROGRESS` bigint(20) DEFAULT NULL, |
| 1458 | `START_TIME` datetime DEFAULT NULL, |
| 1459 | `END_TIME` datetime DEFAULT NULL, |
| 1460 | `SOURCE` varchar(45) DEFAULT NULL, |
| 1461 | `VNF_ID` varchar(45) DEFAULT NULL, |
| 1462 | `VNF_NAME` varchar(80) DEFAULT NULL, |
| 1463 | `VNF_TYPE` varchar(200) DEFAULT NULL, |
| 1464 | `SERVICE_TYPE` varchar(45) DEFAULT NULL, |
Benjamin, Max (mb388a) | 5a6a6de | 2018-07-30 15:56:09 -0400 | [diff] [blame] | 1465 | `TENANT_ID` varchar(45) DEFAULT NULL, |
Benjamin, Max (mb388a) | 5a6a6de | 2018-07-30 15:56:09 -0400 | [diff] [blame] | 1466 | `VNF_PARAMS` longtext, |
| 1467 | `VNF_OUTPUTS` longtext, |
| 1468 | `REQUEST_BODY` longtext, |
| 1469 | `RESPONSE_BODY` longtext, |
| 1470 | `LAST_MODIFIED_BY` varchar(100) DEFAULT NULL, |
| 1471 | `MODIFY_TIME` datetime DEFAULT NULL, |
Benjamin, Max (mb388a) | 5a6a6de | 2018-07-30 15:56:09 -0400 | [diff] [blame] | 1472 | `VOLUME_GROUP_ID` varchar(45) DEFAULT NULL, |
| 1473 | `VOLUME_GROUP_NAME` varchar(45) DEFAULT NULL, |
| 1474 | `VF_MODULE_ID` varchar(45) DEFAULT NULL, |
| 1475 | `VF_MODULE_NAME` varchar(200) DEFAULT NULL, |
| 1476 | `VF_MODULE_MODEL_NAME` varchar(200) DEFAULT NULL, |
Chan, Mercy | db07343 | 2019-09-09 16:41:56 -0400 | [diff] [blame] | 1477 | `CLOUD_REGION` varchar(11) DEFAULT NULL, |
Benjamin, Max (mb388a) | 5a6a6de | 2018-07-30 15:56:09 -0400 | [diff] [blame] | 1478 | `CALLBACK_URL` varchar(200) DEFAULT NULL, |
| 1479 | `CORRELATOR` varchar(80) DEFAULT NULL, |
| 1480 | `NETWORK_ID` varchar(45) DEFAULT NULL, |
| 1481 | `NETWORK_NAME` varchar(80) DEFAULT NULL, |
| 1482 | `NETWORK_TYPE` varchar(80) DEFAULT NULL, |
| 1483 | `REQUEST_SCOPE` varchar(20) NOT NULL DEFAULT 'unknown', |
| 1484 | `REQUEST_ACTION` varchar(45) NOT NULL DEFAULT 'unknown', |
| 1485 | `SERVICE_INSTANCE_ID` varchar(45) DEFAULT NULL, |
| 1486 | `SERVICE_INSTANCE_NAME` varchar(80) DEFAULT NULL, |
| 1487 | `REQUESTOR_ID` varchar(50) DEFAULT NULL, |
| 1488 | `CONFIGURATION_ID` varchar(45) DEFAULT NULL, |
| 1489 | `CONFIGURATION_NAME` varchar(200) DEFAULT NULL, |
| 1490 | `OPERATIONAL_ENV_ID` varchar(45) DEFAULT NULL, |
| 1491 | `OPERATIONAL_ENV_NAME` varchar(200) DEFAULT NULL, |
Plummer, Brittany | b75b28b | 2019-06-26 10:58:22 -0400 | [diff] [blame] | 1492 | `REQUEST_URL` varchar(500) DEFAULT NULL, |
| 1493 | `ORIGINAL_REQUEST_ID` varchar(45) DEFAULT NULL, |
| 1494 | `EXT_SYSTEM_ERROR_SOURCE` varchar(80) DEFAULT NULL, |
| 1495 | `ROLLBACK_EXT_SYSTEM_ERROR_SOURCE` varchar(80) DEFAULT NULL, |
Chan, Mercy | 1711d55 | 2019-11-07 12:06:57 -0500 | [diff] [blame] | 1496 | PRIMARY KEY (`REQUEST_ID`) |
Benjamin, Max (mb388a) | 5a6a6de | 2018-07-30 15:56:09 -0400 | [diff] [blame] | 1497 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; |
| 1498 | |
| 1499 | CREATE TABLE `archived_infra_requests` ( |
| 1500 | `REQUEST_ID` varchar(45) NOT NULL, |
Benjamin, Max (mb388a) | 5a6a6de | 2018-07-30 15:56:09 -0400 | [diff] [blame] | 1501 | `REQUEST_STATUS` varchar(20) DEFAULT NULL, |
| 1502 | `STATUS_MESSAGE` longtext DEFAULT NULL, |
| 1503 | `PROGRESS` bigint(20) DEFAULT NULL, |
| 1504 | `START_TIME` datetime DEFAULT NULL, |
| 1505 | `END_TIME` datetime DEFAULT NULL, |
| 1506 | `SOURCE` varchar(45) DEFAULT NULL, |
| 1507 | `VNF_ID` varchar(45) DEFAULT NULL, |
| 1508 | `VNF_NAME` varchar(80) DEFAULT NULL, |
| 1509 | `VNF_TYPE` varchar(200) DEFAULT NULL, |
| 1510 | `SERVICE_TYPE` varchar(45) DEFAULT NULL, |
Benjamin, Max (mb388a) | 5a6a6de | 2018-07-30 15:56:09 -0400 | [diff] [blame] | 1511 | `TENANT_ID` varchar(45) DEFAULT NULL, |
Benjamin, Max (mb388a) | 5a6a6de | 2018-07-30 15:56:09 -0400 | [diff] [blame] | 1512 | `VNF_PARAMS` longtext, |
| 1513 | `VNF_OUTPUTS` longtext, |
| 1514 | `REQUEST_BODY` longtext, |
| 1515 | `RESPONSE_BODY` longtext, |
| 1516 | `LAST_MODIFIED_BY` varchar(100) DEFAULT NULL, |
| 1517 | `MODIFY_TIME` datetime DEFAULT NULL, |
Benjamin, Max (mb388a) | 5a6a6de | 2018-07-30 15:56:09 -0400 | [diff] [blame] | 1518 | `VOLUME_GROUP_ID` varchar(45) DEFAULT NULL, |
| 1519 | `VOLUME_GROUP_NAME` varchar(45) DEFAULT NULL, |
| 1520 | `VF_MODULE_ID` varchar(45) DEFAULT NULL, |
| 1521 | `VF_MODULE_NAME` varchar(200) DEFAULT NULL, |
| 1522 | `VF_MODULE_MODEL_NAME` varchar(200) DEFAULT NULL, |
Chan, Mercy | db07343 | 2019-09-09 16:41:56 -0400 | [diff] [blame] | 1523 | `CLOUD_REGION` varchar(11) DEFAULT NULL, |
Benjamin, Max (mb388a) | 5a6a6de | 2018-07-30 15:56:09 -0400 | [diff] [blame] | 1524 | `CALLBACK_URL` varchar(200) DEFAULT NULL, |
| 1525 | `CORRELATOR` varchar(80) DEFAULT NULL, |
| 1526 | `NETWORK_ID` varchar(45) DEFAULT NULL, |
| 1527 | `NETWORK_NAME` varchar(80) DEFAULT NULL, |
| 1528 | `NETWORK_TYPE` varchar(80) DEFAULT NULL, |
| 1529 | `REQUEST_SCOPE` varchar(20) NOT NULL DEFAULT 'unknown', |
| 1530 | `REQUEST_ACTION` varchar(45) NOT NULL DEFAULT 'unknown', |
| 1531 | `SERVICE_INSTANCE_ID` varchar(45) DEFAULT NULL, |
| 1532 | `SERVICE_INSTANCE_NAME` varchar(80) DEFAULT NULL, |
| 1533 | `REQUESTOR_ID` varchar(50) DEFAULT NULL, |
| 1534 | `CONFIGURATION_ID` varchar(45) DEFAULT NULL, |
| 1535 | `CONFIGURATION_NAME` varchar(200) DEFAULT NULL, |
| 1536 | `OPERATIONAL_ENV_ID` varchar(45) DEFAULT NULL, |
| 1537 | `OPERATIONAL_ENV_NAME` varchar(200) DEFAULT NULL, |
Benjamin, Max (mb388a) | 61affc6 | 2018-11-05 11:00:36 -0500 | [diff] [blame] | 1538 | `REQUEST_URL` varchar(500) DEFAULT NULL, |
Chan, Mercy | 1711d55 | 2019-11-07 12:06:57 -0500 | [diff] [blame] | 1539 | PRIMARY KEY (`REQUEST_ID`) |
Benjamin, Max (mb388a) | 5a6a6de | 2018-07-30 15:56:09 -0400 | [diff] [blame] | 1540 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; |
| 1541 | |
| 1542 | CREATE TABLE `site_status` ( |
| 1543 | `SITE_NAME` varchar(255) NOT NULL, |
| 1544 | `STATUS` bit(1) DEFAULT NULL, |
| 1545 | `CREATION_TIMESTAMP` datetime DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, |
| 1546 | PRIMARY KEY (`SITE_NAME`) |
| 1547 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; |
| 1548 | |
| 1549 | CREATE TABLE `watchdog_distributionid_status` ( |
| 1550 | `DISTRIBUTION_ID` varchar(45) NOT NULL, |
| 1551 | `DISTRIBUTION_ID_STATUS` varchar(45) DEFAULT NULL, |
Benjamin, Max (mb388a) | 20e1b65 | 2019-02-24 10:42:15 -0500 | [diff] [blame] | 1552 | `LOCK_VERSION` int NOT NULL, |
Benjamin, Max (mb388a) | 5a6a6de | 2018-07-30 15:56:09 -0400 | [diff] [blame] | 1553 | `CREATE_TIME` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP, |
| 1554 | `MODIFY_TIME` datetime DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP, |
| 1555 | PRIMARY KEY (`DISTRIBUTION_ID`) |
| 1556 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; |
| 1557 | |
| 1558 | CREATE TABLE `watchdog_per_component_distribution_status` ( |
| 1559 | `DISTRIBUTION_ID` varchar(45) NOT NULL, |
| 1560 | `COMPONENT_NAME` varchar(45) NOT NULL, |
| 1561 | `COMPONENT_DISTRIBUTION_STATUS` varchar(45) DEFAULT NULL, |
| 1562 | `CREATE_TIME` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP, |
| 1563 | `MODIFY_TIME` datetime DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP, |
| 1564 | PRIMARY KEY (`DISTRIBUTION_ID`,`COMPONENT_NAME`), |
| 1565 | CONSTRAINT `fk_watchdog_component_distribution_status_watchdog_distributi1` FOREIGN KEY (`DISTRIBUTION_ID`) REFERENCES `watchdog_distributionid_status` (`DISTRIBUTION_ID`) ON DELETE CASCADE ON UPDATE CASCADE |
| 1566 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; |
| 1567 | |
| 1568 | CREATE TABLE `watchdog_service_mod_ver_id_lookup` ( |
| 1569 | `DISTRIBUTION_ID` varchar(45) NOT NULL, |
| 1570 | `SERVICE_MODEL_VERSION_ID` varchar(45) NOT NULL, |
Benjamin, Max (mb388a) | 9e795be | 2019-02-06 21:17:24 -0500 | [diff] [blame] | 1571 | `DISTRIBUTION_NOTIFICATION` LONGTEXT NULL, |
| 1572 | `CONSUMER_ID` varchar(200) NULL, |
Benjamin, Max (mb388a) | 5a6a6de | 2018-07-30 15:56:09 -0400 | [diff] [blame] | 1573 | `CREATE_TIME` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP, |
| 1574 | `MODIFY_TIME` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP, |
| 1575 | PRIMARY KEY (`DISTRIBUTION_ID`,`SERVICE_MODEL_VERSION_ID`) |
| 1576 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; |
| 1577 | |
| 1578 | CREATE TABLE `activate_operational_env_service_model_distribution_status` ( |
| 1579 | `OPERATIONAL_ENV_ID` varchar(45) NOT NULL, |
| 1580 | `SERVICE_MODEL_VERSION_ID` varchar(45) NOT NULL, |
| 1581 | `REQUEST_ID` varchar(45) NOT NULL, |
| 1582 | `SERVICE_MOD_VER_FINAL_DISTR_STATUS` varchar(45) DEFAULT NULL, |
| 1583 | `RECOVERY_ACTION` varchar(30) DEFAULT NULL, |
| 1584 | `RETRY_COUNT_LEFT` int(11) DEFAULT NULL, |
| 1585 | `WORKLOAD_CONTEXT` varchar(80) NOT NULL, |
| 1586 | `CREATE_TIME` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP, |
| 1587 | `MODIFY_TIME` datetime DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP, |
Benjamin, Max (mb388a) | 1414f93 | 2019-03-14 21:06:49 -0400 | [diff] [blame] | 1588 | `VNF_OPERATIONAL_ENV_ID` varchar(45) NOT NULL, |
Benjamin, Max (mb388a) | 5a6a6de | 2018-07-30 15:56:09 -0400 | [diff] [blame] | 1589 | PRIMARY KEY (`OPERATIONAL_ENV_ID`,`SERVICE_MODEL_VERSION_ID`,`REQUEST_ID`) |
| 1590 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; |
| 1591 | |
| 1592 | CREATE TABLE `activate_operational_env_per_distributionid_status` ( |
| 1593 | `DISTRIBUTION_ID` varchar(45) NOT NULL, |
| 1594 | `DISTRIBUTION_ID_STATUS` varchar(45) DEFAULT NULL, |
| 1595 | `DISTRIBUTION_ID_ERROR_REASON` varchar(250) DEFAULT NULL, |
| 1596 | `CREATE_TIME` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP, |
| 1597 | `MODIFY_TIME` datetime DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP, |
| 1598 | `OPERATIONAL_ENV_ID` varchar(45) NOT NULL, |
| 1599 | `SERVICE_MODEL_VERSION_ID` varchar(45) NOT NULL, |
| 1600 | `REQUEST_ID` varchar(45) NOT NULL, |
| 1601 | PRIMARY KEY (`DISTRIBUTION_ID`), |
| 1602 | KEY `fk_activate_op_env_per_distributionid_status__aoesmds1_idx` (`OPERATIONAL_ENV_ID`,`SERVICE_MODEL_VERSION_ID`,`REQUEST_ID`), |
| 1603 | 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 |
| 1604 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; |
| 1605 | |
| 1606 | create table operation_status ( |
| 1607 | SERVICE_ID varchar(255) not null, |
| 1608 | OPERATION_ID varchar(255) not null, |
| 1609 | SERVICE_NAME varchar(255), |
| 1610 | OPERATION_TYPE varchar(255), |
| 1611 | USER_ID varchar(255), |
| 1612 | RESULT varchar(255), |
| 1613 | OPERATION_CONTENT varchar(255), |
| 1614 | PROGRESS varchar(255), |
| 1615 | REASON varchar(255), |
| 1616 | OPERATE_AT datetime NOT NULL, |
| 1617 | FINISHED_AT datetime NOT NULL, |
| 1618 | primary key (SERVICE_ID,OPERATION_ID) |
| 1619 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; |
| 1620 | |
| 1621 | create table resource_operation_status ( |
| 1622 | SERVICE_ID varchar(255) not null, |
| 1623 | OPERATION_ID varchar(255) not null, |
| 1624 | RESOURCE_TEMPLATE_UUID varchar(255) not null, |
| 1625 | OPER_TYPE varchar(255), |
| 1626 | RESOURCE_INSTANCE_ID varchar(255), |
| 1627 | JOB_ID varchar(255), |
| 1628 | STATUS varchar(255), |
| 1629 | PROGRESS varchar(255), |
| 1630 | ERROR_CODE varchar(255) , |
| 1631 | STATUS_DESCRIPOTION varchar(255) , |
| 1632 | primary key (SERVICE_ID,OPERATION_ID,RESOURCE_TEMPLATE_UUID) |
| 1633 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; |
| 1634 | |
| 1635 | create table if not exists model_recipe ( |
| 1636 | `ID` INT(11) NOT NULL AUTO_INCREMENT, |
| 1637 | `MODEL_ID` INT(11), |
| 1638 | `ACTION` VARCHAR(40), |
| 1639 | `SCHEMA_VERSION` VARCHAR(40), |
| 1640 | `DESCRIPTION` VARCHAR(40), |
| 1641 | `ORCHESTRATION_URI` VARCHAR(20), |
| 1642 | `MODEL_PARAM_XSD` VARCHAR(20), |
| 1643 | `RECIPE_TIMEOUT` INT(11), |
| 1644 | `CREATION_TIMESTAMP` datetime not null default current_timestamp, |
| 1645 | PRIMARY KEY (`ID`), |
| 1646 | CONSTRAINT uk1_model_recipe UNIQUE (`MODEL_ID`, `ACTION`) |
| 1647 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; |
| 1648 | |
| 1649 | create table if not exists model ( |
| 1650 | `ID` INT(11) NOT NULL AUTO_INCREMENT, |
| 1651 | `MODEL_CUSTOMIZATION_ID` VARCHAR(40), |
| 1652 | `MODEL_CUSTOMIZATION_NAME` VARCHAR(40), |
| 1653 | `MODEL_INVARIANT_ID` VARCHAR(40), |
| 1654 | `MODEL_NAME` VARCHAR(40), |
| 1655 | `MODEL_TYPE` VARCHAR(20), |
| 1656 | `MODEL_VERSION` VARCHAR(20), |
| 1657 | `MODEL_VERSION_ID` VARCHAR(40), |
| 1658 | `CREATION_TIMESTAMP` datetime not null default current_timestamp, |
| 1659 | `RECIPE` INT(11), |
| 1660 | PRIMARY KEY (`ID`), |
| 1661 | CONSTRAINT uk1_model UNIQUE (`MODEL_TYPE`, `MODEL_VERSION_ID`), |
| 1662 | FOREIGN KEY (`RECIPE`) REFERENCES `model_recipe` (`MODEL_ID`) ON DELETE CASCADE ON UPDATE CASCADE |
| 1663 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; |
Smokowski, Steve (ss835w) | 8b56e8d | 2019-04-11 12:09:04 -0400 | [diff] [blame] | 1664 | |
| 1665 | |
| 1666 | |
| 1667 | |