kurczews | 0a58709 | 2018-08-22 08:51:14 +0200 | [diff] [blame] | 1 | /*- |
| 2 | * ============LICENSE_START======================================================= |
| 3 | * VID |
| 4 | * ================================================================================ |
| 5 | * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. |
| 6 | * ================================================================================ |
| 7 | * Licensed under the Apache License, Version 2.0 (the "License"); |
| 8 | * you may not use this file except in compliance with the License. |
| 9 | * You may obtain a copy of the License at |
| 10 | * |
| 11 | * http://www.apache.org/licenses/LICENSE-2.0 |
| 12 | * |
| 13 | * Unless required by applicable law or agreed to in writing, software |
| 14 | * distributed under the License is distributed on an "AS IS" BASIS, |
| 15 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 16 | * See the License for the specific language governing permissions and |
| 17 | * limitations under the License. |
| 18 | * ============LICENSE_END========================================================= |
| 19 | */ |
| 20 | -- ---------------------------------------------------------------------------- |
| 21 | -- MySQL Workbench Migration |
| 22 | -- Migrated Schemata: vid_openecomp_epsdk |
| 23 | -- Source Schemata: ecomp_sd |
| 24 | -- Created: Sun Nov 13 08:58:53 2016 |
| 25 | -- Workbench Version: 6.3.6 |
| 26 | -- ---------------------------------------------------------------------------- |
| 27 | |
| 28 | SET FOREIGN_KEY_CHECKS = 0; |
| 29 | |
| 30 | -- ---------------------------------------------------------------------------- |
| 31 | -- Schema vid_openecomp_epsdk |
| 32 | -- ---------------------------------------------------------------------------- |
| 33 | CREATE SCHEMA IF NOT EXISTS `vid_openecomp_epsdk` ; |
| 34 | |
| 35 | USE vid_openecomp_epsdk; |
| 36 | -- ---------------------------------------------------------------------------- |
| 37 | -- Table vid_openecomp_epsdk.cr_favorite_reports |
| 38 | -- ---------------------------------------------------------------------------- |
| 39 | CREATE TABLE IF NOT EXISTS `vid_openecomp_epsdk`.`cr_favorite_reports` ( |
| 40 | `USER_ID` INT(11) NOT NULL, |
| 41 | `REP_ID` INT(11) NOT NULL, |
| 42 | PRIMARY KEY (`USER_ID`, `REP_ID`)) |
| 43 | ENGINE = InnoDB |
| 44 | DEFAULT CHARACTER SET = utf8; |
| 45 | |
| 46 | -- ---------------------------------------------------------------------------- |
| 47 | -- Table vid_openecomp_epsdk.cr_filehist_log |
| 48 | -- ---------------------------------------------------------------------------- |
| 49 | CREATE TABLE IF NOT EXISTS `vid_openecomp_epsdk`.`cr_filehist_log` ( |
| 50 | `SCHEDULE_ID` DECIMAL(11,0) NOT NULL, |
| 51 | `URL` VARCHAR(4000) NULL DEFAULT NULL, |
| 52 | `NOTES` VARCHAR(3500) NULL DEFAULT NULL, |
| 53 | `RUN_TIME` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP) |
| 54 | ENGINE = InnoDB |
| 55 | DEFAULT CHARACTER SET = utf8; |
| 56 | |
| 57 | -- ---------------------------------------------------------------------------- |
| 58 | -- Table vid_openecomp_epsdk.cr_folder |
| 59 | -- ---------------------------------------------------------------------------- |
| 60 | CREATE TABLE IF NOT EXISTS `vid_openecomp_epsdk`.`cr_folder` ( |
| 61 | `FOLDER_ID` INT(11) NOT NULL, |
| 62 | `FOLDER_NAME` VARCHAR(50) NOT NULL, |
| 63 | `DESCR` VARCHAR(500) NULL DEFAULT NULL, |
| 64 | `CREATE_ID` INT(11) NOT NULL, |
| 65 | `CREATE_DATE` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, |
| 66 | `PARENT_FOLDER_ID` INT(11) NULL DEFAULT NULL, |
| 67 | `PUBLIC_YN` VARCHAR(1) NOT NULL DEFAULT 'N', |
| 68 | PRIMARY KEY (`FOLDER_ID`), |
| 69 | INDEX `FK_PARENT_KEY_CR_FOLDER` (`PARENT_FOLDER_ID` ASC), |
| 70 | CONSTRAINT `FK_PARENT_KEY_CR_FOLDER` |
| 71 | FOREIGN KEY (`PARENT_FOLDER_ID`) |
| 72 | REFERENCES `vid_openecomp_epsdk`.`cr_folder` (`FOLDER_ID`)) |
| 73 | ENGINE = InnoDB |
| 74 | DEFAULT CHARACTER SET = utf8; |
| 75 | |
| 76 | -- ---------------------------------------------------------------------------- |
| 77 | -- Table vid_openecomp_epsdk.cr_folder_access |
| 78 | -- ---------------------------------------------------------------------------- |
| 79 | CREATE TABLE IF NOT EXISTS `vid_openecomp_epsdk`.`cr_folder_access` ( |
| 80 | `FOLDER_ACCESS_ID` DECIMAL(11,0) NOT NULL, |
| 81 | `FOLDER_ID` DECIMAL(11,0) NOT NULL, |
| 82 | `ORDER_NO` DECIMAL(11,0) NOT NULL, |
| 83 | `ROLE_ID` DECIMAL(11,0) NULL DEFAULT NULL, |
| 84 | `USER_ID` DECIMAL(11,0) NULL DEFAULT NULL, |
| 85 | `READ_ONLY_YN` VARCHAR(1) NOT NULL DEFAULT 'N', |
| 86 | PRIMARY KEY (`FOLDER_ACCESS_ID`)) |
| 87 | ENGINE = InnoDB |
| 88 | DEFAULT CHARACTER SET = utf8; |
| 89 | |
| 90 | -- ---------------------------------------------------------------------------- |
| 91 | -- Table vid_openecomp_epsdk.cr_hist_user_map |
| 92 | -- ---------------------------------------------------------------------------- |
| 93 | CREATE TABLE IF NOT EXISTS `vid_openecomp_epsdk`.`cr_hist_user_map` ( |
| 94 | `HIST_ID` INT(11) NOT NULL, |
| 95 | `USER_ID` INT(11) NOT NULL, |
| 96 | PRIMARY KEY (`HIST_ID`, `USER_ID`), |
| 97 | INDEX `SYS_C0014617` (`USER_ID` ASC), |
| 98 | CONSTRAINT `SYS_C0014616` |
| 99 | FOREIGN KEY (`HIST_ID`) |
| 100 | REFERENCES `vid_openecomp_epsdk`.`cr_report_file_history` (`HIST_ID`), |
| 101 | CONSTRAINT `SYS_C0014617` |
| 102 | FOREIGN KEY (`USER_ID`) |
| 103 | REFERENCES `vid_openecomp_epsdk`.`fn_user` (`USER_ID`)) |
| 104 | ENGINE = InnoDB |
| 105 | DEFAULT CHARACTER SET = utf8; |
| 106 | |
| 107 | -- ---------------------------------------------------------------------------- |
| 108 | -- Table vid_openecomp_epsdk.cr_lu_file_type |
| 109 | -- ---------------------------------------------------------------------------- |
| 110 | CREATE TABLE IF NOT EXISTS `vid_openecomp_epsdk`.`cr_lu_file_type` ( |
| 111 | `LOOKUP_ID` DECIMAL(2,0) NOT NULL, |
| 112 | `LOOKUP_DESCR` VARCHAR(255) NOT NULL, |
| 113 | `ACTIVE_YN` CHAR(1) NULL DEFAULT 'Y', |
| 114 | `ERROR_CODE` DECIMAL(11,0) NULL DEFAULT NULL, |
| 115 | PRIMARY KEY (`LOOKUP_ID`)) |
| 116 | ENGINE = InnoDB |
| 117 | DEFAULT CHARACTER SET = utf8; |
| 118 | |
| 119 | -- ---------------------------------------------------------------------------- |
| 120 | -- Table vid_openecomp_epsdk.cr_raptor_action_img |
| 121 | -- ---------------------------------------------------------------------------- |
| 122 | CREATE TABLE IF NOT EXISTS `vid_openecomp_epsdk`.`cr_raptor_action_img` ( |
| 123 | `IMAGE_ID` VARCHAR(100) NOT NULL, |
| 124 | `IMAGE_LOC` VARCHAR(400) NULL DEFAULT NULL, |
| 125 | PRIMARY KEY (`IMAGE_ID`)) |
| 126 | ENGINE = InnoDB |
| 127 | DEFAULT CHARACTER SET = utf8; |
| 128 | |
| 129 | -- ---------------------------------------------------------------------------- |
| 130 | -- Table vid_openecomp_epsdk.cr_raptor_pdf_img |
| 131 | -- ---------------------------------------------------------------------------- |
| 132 | CREATE TABLE IF NOT EXISTS `vid_openecomp_epsdk`.`cr_raptor_pdf_img` ( |
| 133 | `IMAGE_ID` VARCHAR(100) NOT NULL, |
| 134 | `IMAGE_LOC` VARCHAR(400) NULL DEFAULT NULL, |
| 135 | PRIMARY KEY (`IMAGE_ID`)) |
| 136 | ENGINE = InnoDB |
| 137 | DEFAULT CHARACTER SET = utf8; |
| 138 | |
| 139 | -- ---------------------------------------------------------------------------- |
| 140 | -- Table vid_openecomp_epsdk.cr_remote_schema_info |
| 141 | -- ---------------------------------------------------------------------------- |
| 142 | CREATE TABLE IF NOT EXISTS `vid_openecomp_epsdk`.`cr_remote_schema_info` ( |
| 143 | `SCHEMA_PREFIX` VARCHAR(5) NOT NULL, |
| 144 | `SCHEMA_DESC` VARCHAR(75) NOT NULL, |
| 145 | `DATASOURCE_TYPE` VARCHAR(100) NULL DEFAULT NULL, |
| 146 | PRIMARY KEY (`SCHEMA_PREFIX`)) |
| 147 | ENGINE = InnoDB |
| 148 | DEFAULT CHARACTER SET = utf8; |
| 149 | |
| 150 | -- ---------------------------------------------------------------------------- |
| 151 | -- Table vid_openecomp_epsdk.cr_report |
| 152 | -- ---------------------------------------------------------------------------- |
| 153 | CREATE TABLE IF NOT EXISTS `vid_openecomp_epsdk`.`cr_report` ( |
| 154 | `REP_ID` DECIMAL(11,0) NOT NULL, |
| 155 | `TITLE` VARCHAR(100) NOT NULL, |
| 156 | `DESCR` VARCHAR(255) NULL DEFAULT NULL, |
| 157 | `PUBLIC_YN` VARCHAR(1) NOT NULL DEFAULT 'N', |
| 158 | `REPORT_XML` TEXT NULL DEFAULT NULL, |
| 159 | `CREATE_ID` DECIMAL(11,0) NULL DEFAULT NULL, |
| 160 | `CREATE_DATE` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP, |
| 161 | `MAINT_ID` DECIMAL(11,0) NULL DEFAULT NULL, |
| 162 | `MAINT_DATE` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP, |
| 163 | `MENU_ID` VARCHAR(500) NULL DEFAULT NULL, |
| 164 | `MENU_APPROVED_YN` VARCHAR(1) NOT NULL DEFAULT 'N', |
| 165 | `OWNER_ID` DECIMAL(11,0) NULL DEFAULT NULL, |
| 166 | `FOLDER_ID` INT(11) NULL DEFAULT '0', |
| 167 | `DASHBOARD_TYPE_YN` VARCHAR(1) NULL DEFAULT 'N', |
| 168 | `DASHBOARD_YN` VARCHAR(1) NULL DEFAULT 'N', |
| 169 | PRIMARY KEY (`REP_ID`), |
| 170 | INDEX `CR_REPORT_CREATE_IDPUBLIC_YNTITLE` (`CREATE_ID` ASC, `PUBLIC_YN` ASC, `TITLE` ASC)) |
| 171 | ENGINE = InnoDB |
| 172 | DEFAULT CHARACTER SET = utf8; |
| 173 | |
| 174 | -- ---------------------------------------------------------------------------- |
| 175 | -- Table vid_openecomp_epsdk.cr_report_access |
| 176 | -- ---------------------------------------------------------------------------- |
| 177 | CREATE TABLE IF NOT EXISTS `vid_openecomp_epsdk`.`cr_report_access` ( |
| 178 | `REP_ID` DECIMAL(11,0) NOT NULL, |
| 179 | `ORDER_NO` DECIMAL(11,0) NOT NULL, |
| 180 | `ROLE_ID` DECIMAL(11,0) NULL DEFAULT NULL, |
| 181 | `USER_ID` DECIMAL(11,0) NULL DEFAULT NULL, |
| 182 | `READ_ONLY_YN` VARCHAR(1) NOT NULL DEFAULT 'N', |
| 183 | PRIMARY KEY (`REP_ID`, `ORDER_NO`), |
| 184 | CONSTRAINT `FK_CR_REPOR_REF_8550_CR_REPOR` |
| 185 | FOREIGN KEY (`REP_ID`) |
| 186 | REFERENCES `vid_openecomp_epsdk`.`cr_report` (`REP_ID`)) |
| 187 | ENGINE = InnoDB |
| 188 | DEFAULT CHARACTER SET = utf8; |
| 189 | |
| 190 | -- ---------------------------------------------------------------------------- |
| 191 | -- Table vid_openecomp_epsdk.cr_report_dwnld_log |
| 192 | -- ---------------------------------------------------------------------------- |
| 193 | CREATE TABLE IF NOT EXISTS `vid_openecomp_epsdk`.`cr_report_dwnld_log` ( |
| 194 | `USER_ID` DECIMAL(11,0) NOT NULL, |
| 195 | `REP_ID` INT(11) NOT NULL, |
| 196 | `FILE_NAME` VARCHAR(100) NOT NULL, |
| 197 | `DWNLD_START_TIME` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP, |
| 198 | `RECORD_READY_TIME` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP, |
| 199 | `FILTER_PARAMS` VARCHAR(2000) NULL DEFAULT NULL) |
| 200 | ENGINE = InnoDB |
| 201 | DEFAULT CHARACTER SET = utf8; |
| 202 | |
| 203 | -- ---------------------------------------------------------------------------- |
| 204 | -- Table vid_openecomp_epsdk.cr_report_email_sent_log |
| 205 | -- ---------------------------------------------------------------------------- |
| 206 | CREATE TABLE IF NOT EXISTS `vid_openecomp_epsdk`.`cr_report_email_sent_log` ( |
| 207 | `LOG_ID` INT(11) NOT NULL, |
| 208 | `SCHEDULE_ID` DECIMAL(11,0) NULL DEFAULT NULL, |
| 209 | `GEN_KEY` VARCHAR(25) NOT NULL, |
| 210 | `REP_ID` DECIMAL(11,0) NOT NULL, |
| 211 | `USER_ID` DECIMAL(11,0) NULL DEFAULT NULL, |
| 212 | `SENT_DATE` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP, |
| 213 | `ACCESS_FLAG` VARCHAR(1) NOT NULL DEFAULT 'Y', |
| 214 | `TOUCH_DATE` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP, |
| 215 | PRIMARY KEY (`LOG_ID`), |
| 216 | INDEX `FK_CR_REPORT_REP_ID` (`REP_ID` ASC), |
| 217 | CONSTRAINT `FK_CR_REPORT_REP_ID` |
| 218 | FOREIGN KEY (`REP_ID`) |
| 219 | REFERENCES `vid_openecomp_epsdk`.`cr_report` (`REP_ID`)) |
| 220 | ENGINE = InnoDB |
| 221 | DEFAULT CHARACTER SET = utf8; |
| 222 | |
| 223 | -- ---------------------------------------------------------------------------- |
| 224 | -- Table vid_openecomp_epsdk.cr_report_file_history |
| 225 | -- ---------------------------------------------------------------------------- |
| 226 | CREATE TABLE IF NOT EXISTS `vid_openecomp_epsdk`.`cr_report_file_history` ( |
| 227 | `HIST_ID` INT(11) NOT NULL, |
| 228 | `SCHED_USER_ID` DECIMAL(11,0) NOT NULL, |
| 229 | `SCHEDULE_ID` DECIMAL(11,0) NOT NULL, |
| 230 | `USER_ID` DECIMAL(11,0) NOT NULL, |
| 231 | `REP_ID` DECIMAL(11,0) NULL DEFAULT NULL, |
| 232 | `RUN_DATE` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, |
| 233 | `RECURRENCE` VARCHAR(50) NULL DEFAULT NULL, |
| 234 | `FILE_TYPE_ID` DECIMAL(2,0) NULL DEFAULT NULL, |
| 235 | `FILE_NAME` VARCHAR(80) NULL DEFAULT NULL, |
| 236 | `FILE_BLOB` BLOB NULL DEFAULT NULL, |
| 237 | `FILE_SIZE` DECIMAL(11,0) NULL DEFAULT NULL, |
| 238 | `RAPTOR_URL` VARCHAR(4000) NULL DEFAULT NULL, |
| 239 | `ERROR_YN` CHAR(1) NULL DEFAULT 'N', |
| 240 | `ERROR_CODE` DECIMAL(11,0) NULL DEFAULT NULL, |
| 241 | `DELETED_YN` CHAR(1) NULL DEFAULT 'N', |
| 242 | `DELETED_BY` DECIMAL(38,0) NULL DEFAULT NULL, |
| 243 | PRIMARY KEY (`HIST_ID`), |
| 244 | INDEX `SYS_C0014614` (`FILE_TYPE_ID` ASC), |
| 245 | INDEX `SYS_C0014615` (`REP_ID` ASC), |
| 246 | CONSTRAINT `SYS_C0014614` |
| 247 | FOREIGN KEY (`FILE_TYPE_ID`) |
| 248 | REFERENCES `vid_openecomp_epsdk`.`cr_lu_file_type` (`LOOKUP_ID`), |
| 249 | CONSTRAINT `SYS_C0014615` |
| 250 | FOREIGN KEY (`REP_ID`) |
| 251 | REFERENCES `vid_openecomp_epsdk`.`cr_report` (`REP_ID`)) |
| 252 | ENGINE = InnoDB |
| 253 | DEFAULT CHARACTER SET = utf8; |
| 254 | |
| 255 | -- ---------------------------------------------------------------------------- |
| 256 | -- Table vid_openecomp_epsdk.cr_report_log |
| 257 | -- ---------------------------------------------------------------------------- |
| 258 | CREATE TABLE IF NOT EXISTS `vid_openecomp_epsdk`.`cr_report_log` ( |
| 259 | `REP_ID` DECIMAL(11,0) NOT NULL, |
| 260 | `LOG_TIME` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, |
| 261 | `USER_ID` DECIMAL(11,0) NOT NULL, |
| 262 | `ACTION` VARCHAR(2000) NOT NULL, |
| 263 | `ACTION_VALUE` VARCHAR(50) NULL DEFAULT NULL, |
| 264 | `FORM_FIELDS` VARCHAR(4000) NULL DEFAULT NULL, |
| 265 | INDEX `FK_CR_REPOR_REF_17645_CR_REPOR` (`REP_ID` ASC), |
| 266 | CONSTRAINT `FK_CR_REPOR_REF_17645_CR_REPOR` |
| 267 | FOREIGN KEY (`REP_ID`) |
| 268 | REFERENCES `vid_openecomp_epsdk`.`cr_report` (`REP_ID`)) |
| 269 | ENGINE = InnoDB |
| 270 | DEFAULT CHARACTER SET = utf8; |
| 271 | |
| 272 | -- ---------------------------------------------------------------------------- |
| 273 | -- Table vid_openecomp_epsdk.cr_report_schedule |
| 274 | -- ---------------------------------------------------------------------------- |
| 275 | CREATE TABLE IF NOT EXISTS `vid_openecomp_epsdk`.`cr_report_schedule` ( |
| 276 | `SCHEDULE_ID` DECIMAL(11,0) NOT NULL, |
| 277 | `SCHED_USER_ID` DECIMAL(11,0) NOT NULL, |
| 278 | `REP_ID` DECIMAL(11,0) NOT NULL, |
| 279 | `ENABLED_YN` VARCHAR(1) NOT NULL, |
| 280 | `START_DATE` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP, |
| 281 | `END_DATE` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP, |
| 282 | `RUN_DATE` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP, |
| 283 | `RECURRENCE` VARCHAR(50) NULL DEFAULT NULL, |
| 284 | `CONDITIONAL_YN` VARCHAR(1) NOT NULL, |
| 285 | `CONDITION_SQL` VARCHAR(4000) NULL DEFAULT NULL, |
| 286 | `NOTIFY_TYPE` INT(11) NULL DEFAULT '0', |
| 287 | `MAX_ROW` INT(11) NULL DEFAULT '1000', |
| 288 | `INITIAL_FORMFIELDS` VARCHAR(3500) NULL DEFAULT NULL, |
| 289 | `PROCESSED_FORMFIELDS` VARCHAR(3500) NULL DEFAULT NULL, |
| 290 | `FORMFIELDS` VARCHAR(3500) NULL DEFAULT NULL, |
| 291 | `CONDITION_LARGE_SQL` TEXT NULL DEFAULT NULL, |
| 292 | `ENCRYPT_YN` CHAR(1) NULL DEFAULT 'N', |
| 293 | `ATTACHMENT_YN` CHAR(1) NULL DEFAULT 'Y', |
| 294 | PRIMARY KEY (`SCHEDULE_ID`), |
| 295 | INDEX `FK_CR_REPOR_REF_14707_CR_REPOR` (`REP_ID` ASC), |
| 296 | CONSTRAINT `FK_CR_REPOR_REF_14707_CR_REPOR` |
| 297 | FOREIGN KEY (`REP_ID`) |
| 298 | REFERENCES `vid_openecomp_epsdk`.`cr_report` (`REP_ID`)) |
| 299 | ENGINE = InnoDB |
| 300 | DEFAULT CHARACTER SET = utf8; |
| 301 | |
| 302 | -- ---------------------------------------------------------------------------- |
| 303 | -- Table vid_openecomp_epsdk.cr_report_schedule_users |
| 304 | -- ---------------------------------------------------------------------------- |
| 305 | CREATE TABLE IF NOT EXISTS `vid_openecomp_epsdk`.`cr_report_schedule_users` ( |
| 306 | `SCHEDULE_ID` DECIMAL(11,0) NOT NULL, |
| 307 | `REP_ID` DECIMAL(11,0) NOT NULL, |
| 308 | `USER_ID` DECIMAL(11,0) NOT NULL, |
| 309 | `ROLE_ID` DECIMAL(11,0) NULL DEFAULT NULL, |
| 310 | `ORDER_NO` DECIMAL(11,0) NOT NULL, |
| 311 | PRIMARY KEY (`SCHEDULE_ID`, `REP_ID`, `USER_ID`, `ORDER_NO`), |
| 312 | CONSTRAINT `FK_CR_REPOR_REF_14716_CR_REPOR` |
| 313 | FOREIGN KEY (`SCHEDULE_ID`) |
| 314 | REFERENCES `vid_openecomp_epsdk`.`cr_report_schedule` (`SCHEDULE_ID`)) |
| 315 | ENGINE = InnoDB |
| 316 | DEFAULT CHARACTER SET = utf8; |
| 317 | |
| 318 | -- ---------------------------------------------------------------------------- |
| 319 | -- Table vid_openecomp_epsdk.cr_report_template_map |
| 320 | -- ---------------------------------------------------------------------------- |
| 321 | CREATE TABLE IF NOT EXISTS `vid_openecomp_epsdk`.`cr_report_template_map` ( |
| 322 | `REPORT_ID` INT(11) NOT NULL, |
| 323 | `TEMPLATE_FILE` VARCHAR(200) NULL DEFAULT NULL, |
| 324 | PRIMARY KEY (`REPORT_ID`)) |
| 325 | ENGINE = InnoDB |
| 326 | DEFAULT CHARACTER SET = utf8; |
| 327 | |
| 328 | -- ---------------------------------------------------------------------------- |
| 329 | -- Table vid_openecomp_epsdk.cr_schedule_activity_log |
| 330 | -- ---------------------------------------------------------------------------- |
| 331 | CREATE TABLE IF NOT EXISTS `vid_openecomp_epsdk`.`cr_schedule_activity_log` ( |
| 332 | `SCHEDULE_ID` DECIMAL(11,0) NOT NULL, |
| 333 | `URL` VARCHAR(4000) NULL DEFAULT NULL, |
| 334 | `NOTES` VARCHAR(2000) NULL DEFAULT NULL, |
| 335 | `RUN_TIME` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP) |
| 336 | ENGINE = InnoDB |
| 337 | DEFAULT CHARACTER SET = utf8; |
| 338 | |
| 339 | -- ---------------------------------------------------------------------------- |
| 340 | -- Table vid_openecomp_epsdk.cr_table_join |
| 341 | -- ---------------------------------------------------------------------------- |
| 342 | CREATE TABLE IF NOT EXISTS `vid_openecomp_epsdk`.`cr_table_join` ( |
| 343 | `SRC_TABLE_NAME` VARCHAR(30) NOT NULL, |
| 344 | `DEST_TABLE_NAME` VARCHAR(30) NOT NULL, |
| 345 | `JOIN_EXPR` VARCHAR(500) NOT NULL, |
| 346 | INDEX `CR_TABLE_JOIN_DEST_TABLE_NAME` (`DEST_TABLE_NAME` ASC), |
| 347 | INDEX `CR_TABLE_JOIN_SRC_TABLE_NAME` (`SRC_TABLE_NAME` ASC), |
| 348 | CONSTRAINT `FK_CR_TABLE_REF_311_CR_TAB` |
| 349 | FOREIGN KEY (`SRC_TABLE_NAME`) |
| 350 | REFERENCES `vid_openecomp_epsdk`.`cr_table_source` (`TABLE_NAME`), |
| 351 | CONSTRAINT `FK_CR_TABLE_REF_315_CR_TAB` |
| 352 | FOREIGN KEY (`DEST_TABLE_NAME`) |
| 353 | REFERENCES `vid_openecomp_epsdk`.`cr_table_source` (`TABLE_NAME`)) |
| 354 | ENGINE = InnoDB |
| 355 | DEFAULT CHARACTER SET = utf8; |
| 356 | |
| 357 | -- ---------------------------------------------------------------------------- |
| 358 | -- Table vid_openecomp_epsdk.cr_table_role |
| 359 | -- ---------------------------------------------------------------------------- |
| 360 | CREATE TABLE IF NOT EXISTS `vid_openecomp_epsdk`.`cr_table_role` ( |
| 361 | `TABLE_NAME` VARCHAR(30) NOT NULL, |
| 362 | `ROLE_ID` DECIMAL(11,0) NOT NULL, |
| 363 | PRIMARY KEY (`TABLE_NAME`, `ROLE_ID`), |
| 364 | CONSTRAINT `FK_CR_TABLE_REF_32384_CR_TABLE` |
| 365 | FOREIGN KEY (`TABLE_NAME`) |
| 366 | REFERENCES `vid_openecomp_epsdk`.`cr_table_source` (`TABLE_NAME`)) |
| 367 | ENGINE = InnoDB |
| 368 | DEFAULT CHARACTER SET = utf8; |
| 369 | |
| 370 | -- ---------------------------------------------------------------------------- |
| 371 | -- Table vid_openecomp_epsdk.cr_table_source |
| 372 | -- ---------------------------------------------------------------------------- |
| 373 | CREATE TABLE IF NOT EXISTS `vid_openecomp_epsdk`.`cr_table_source` ( |
| 374 | `TABLE_NAME` VARCHAR(30) NOT NULL, |
| 375 | `DISPLAY_NAME` VARCHAR(30) NOT NULL, |
| 376 | `PK_FIELDS` VARCHAR(200) NULL DEFAULT NULL, |
| 377 | `WEB_VIEW_ACTION` VARCHAR(50) NULL DEFAULT NULL, |
| 378 | `LARGE_DATA_SOURCE_YN` VARCHAR(1) NOT NULL DEFAULT 'N', |
| 379 | `FILTER_SQL` VARCHAR(4000) NULL DEFAULT NULL, |
| 380 | `SOURCE_DB` VARCHAR(50) NULL DEFAULT NULL, |
| 381 | PRIMARY KEY (`TABLE_NAME`)) |
| 382 | ENGINE = InnoDB |
| 383 | DEFAULT CHARACTER SET = utf8; |
| 384 | |
| 385 | -- ---------------------------------------------------------------------------- |
| 386 | -- Table vid_portal.fn_app |
| 387 | -- ---------------------------------------------------------------------------- |
| 388 | CREATE TABLE IF NOT EXISTS `vid_openecomp_epsdk`.`fn_app` ( |
| 389 | `APP_ID` INT(11) NOT NULL AUTO_INCREMENT, |
| 390 | `APP_NAME` VARCHAR(100) NOT NULL DEFAULT '?', |
| 391 | `APP_IMAGE_URL` VARCHAR(256) NULL DEFAULT NULL, |
| 392 | `APP_DESCRIPTION` VARCHAR(512) NULL DEFAULT NULL, |
| 393 | `APP_NOTES` VARCHAR(4096) NULL DEFAULT NULL, |
| 394 | `APP_URL` VARCHAR(256) NULL DEFAULT NULL, |
| 395 | `APP_ALTERNATE_URL` VARCHAR(256) NULL DEFAULT NULL, |
| 396 | `APP_REST_ENDPOINT` VARCHAR(2000) NULL DEFAULT NULL, |
| 397 | `ML_APP_NAME` VARCHAR(50) NOT NULL DEFAULT '?', |
| 398 | `ML_APP_ADMIN_ID` VARCHAR(7) NOT NULL DEFAULT '?', |
| 399 | `MOTS_ID` INT(11) NULL DEFAULT NULL, |
| 400 | `APP_PASSWORD` VARCHAR(256) NOT NULL DEFAULT '?', |
| 401 | `OPEN` CHAR(1) NULL DEFAULT 'N', |
| 402 | `ENABLED` CHAR(1) NULL DEFAULT 'Y', |
| 403 | `THUMBNAIL` MEDIUMBLOB NULL DEFAULT NULL, |
| 404 | `APP_USERNAME` VARCHAR(50) NULL DEFAULT NULL, |
| 405 | `UEB_KEY` VARCHAR(256) NULL DEFAULT NULL, |
| 406 | `UEB_SECRET` VARCHAR(256) NULL DEFAULT NULL, |
| 407 | `UEB_TOPIC_NAME` VARCHAR(256) NULL DEFAULT NULL, |
| 408 | PRIMARY KEY (`APP_ID`)) |
| 409 | ENGINE = InnoDB |
| 410 | AUTO_INCREMENT = 2 |
| 411 | DEFAULT CHARACTER SET = utf8; |
| 412 | |
| 413 | -- ---------------------------------------------------------------------------- |
| 414 | -- Table vid_openecomp_epsdk.fn_app_mme_cpu |
| 415 | -- ---------------------------------------------------------------------------- |
| 416 | CREATE TABLE IF NOT EXISTS `vid_openecomp_epsdk`.`fn_app_mme_cpu` ( |
| 417 | `MME` VARCHAR(200) NULL DEFAULT NULL, |
| 418 | `YEARMONTH` INT(11) NULL DEFAULT NULL, |
| 419 | `SCTP_CPU` INT(11) NULL DEFAULT NULL, |
| 420 | `AP_CPU` INT(11) NULL DEFAULT NULL, |
| 421 | `DP_CPU` INT(11) NULL DEFAULT NULL, |
| 422 | `ROUTER_CPU` INT(11) NULL DEFAULT NULL, |
| 423 | `PEB_CPU` INT(11) NULL DEFAULT NULL, |
| 424 | `SAU` INT(11) NULL DEFAULT NULL) |
| 425 | ENGINE = InnoDB |
| 426 | DEFAULT CHARACTER SET = utf8; |
| 427 | |
| 428 | -- ---------------------------------------------------------------------------- |
| 429 | -- Table vid_openecomp_epsdk.fn_audit_action |
| 430 | -- ---------------------------------------------------------------------------- |
| 431 | CREATE TABLE IF NOT EXISTS `vid_openecomp_epsdk`.`fn_audit_action` ( |
| 432 | `AUDIT_ACTION_ID` INT(11) NOT NULL, |
| 433 | `CLASS_NAME` VARCHAR(500) NOT NULL, |
| 434 | `METHOD_NAME` VARCHAR(50) NOT NULL, |
| 435 | `AUDIT_ACTION_CD` VARCHAR(20) NOT NULL, |
| 436 | `AUDIT_ACTION_DESC` VARCHAR(200) NULL DEFAULT NULL, |
| 437 | `ACTIVE_YN` VARCHAR(1) NULL DEFAULT NULL, |
| 438 | PRIMARY KEY (`AUDIT_ACTION_ID`)) |
| 439 | ENGINE = InnoDB |
| 440 | DEFAULT CHARACTER SET = utf8; |
| 441 | |
| 442 | -- ---------------------------------------------------------------------------- |
| 443 | -- Table vid_openecomp_epsdk.fn_audit_action_log |
| 444 | -- ---------------------------------------------------------------------------- |
| 445 | CREATE TABLE IF NOT EXISTS `vid_openecomp_epsdk`.`fn_audit_action_log` ( |
| 446 | `AUDIT_LOG_ID` INT(11) NOT NULL AUTO_INCREMENT, |
| 447 | `AUDIT_ACTION_CD` VARCHAR(200) NULL DEFAULT NULL, |
| 448 | `ACTION_TIME` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, |
| 449 | `USER_ID` DECIMAL(11,0) NULL DEFAULT NULL, |
| 450 | `CLASS_NAME` VARCHAR(100) NULL DEFAULT NULL, |
| 451 | `METHOD_NAME` VARCHAR(50) NULL DEFAULT NULL, |
| 452 | `SUCCESS_MSG` VARCHAR(20) NULL DEFAULT NULL, |
| 453 | `ERROR_MSG` VARCHAR(500) NULL DEFAULT NULL, |
| 454 | PRIMARY KEY (`AUDIT_LOG_ID`)) |
| 455 | ENGINE = InnoDB |
| 456 | DEFAULT CHARACTER SET = utf8; |
| 457 | |
| 458 | -- ---------------------------------------------------------------------------- |
| 459 | -- Table vid_openecomp_epsdk.fn_audit_log |
| 460 | -- ---------------------------------------------------------------------------- |
| 461 | CREATE TABLE IF NOT EXISTS `vid_openecomp_epsdk`.`fn_audit_log` ( |
| 462 | `LOG_ID` INT(11) NOT NULL AUTO_INCREMENT, |
| 463 | `USER_ID` INT(11) NOT NULL, |
| 464 | `ACTIVITY_CD` VARCHAR(50) NOT NULL, |
| 465 | `AUDIT_DATE` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP, |
| 466 | `COMMENTS` VARCHAR(1000) NULL DEFAULT NULL, |
| 467 | `AFFECTED_RECORD_ID_BK` VARCHAR(500) NULL DEFAULT NULL, |
| 468 | `AFFECTED_RECORD_ID` VARCHAR(4000) NULL DEFAULT NULL, |
| 469 | PRIMARY KEY (`LOG_ID`), |
| 470 | INDEX `FN_AUDIT_LOG_ACTIVITY_CD` (`ACTIVITY_CD` ASC), |
| 471 | INDEX `FN_AUDIT_LOG_USER_ID` (`USER_ID` ASC), |
| 472 | CONSTRAINT `FK_FN_AUDIT_REF_205_FN_LU_AC` |
| 473 | FOREIGN KEY (`ACTIVITY_CD`) |
| 474 | REFERENCES `vid_openecomp_epsdk`.`fn_lu_activity` (`ACTIVITY_CD`), |
| 475 | CONSTRAINT `FK_FN_AUDIT_REF_209_FN_USER` |
| 476 | FOREIGN KEY (`USER_ID`) |
| 477 | REFERENCES `vid_openecomp_epsdk`.`fn_user` (`USER_ID`)) |
| 478 | ENGINE = InnoDB |
| 479 | DEFAULT CHARACTER SET = utf8; |
| 480 | |
| 481 | -- ---------------------------------------------------------------------------- |
| 482 | -- Table vid_openecomp_epsdk.fn_broadcast_message |
| 483 | -- ---------------------------------------------------------------------------- |
| 484 | CREATE TABLE IF NOT EXISTS `vid_openecomp_epsdk`.`fn_broadcast_message` ( |
| 485 | `MESSAGE_ID` INT(11) NOT NULL AUTO_INCREMENT, |
| 486 | `MESSAGE_TEXT` VARCHAR(1000) NOT NULL, |
| 487 | `MESSAGE_LOCATION_ID` DECIMAL(11,0) NOT NULL, |
| 488 | `BROADCAST_START_DATE` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP, |
| 489 | `BROADCAST_END_DATE` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP, |
| 490 | `ACTIVE_YN` CHAR(1) NOT NULL DEFAULT 'Y', |
| 491 | `SORT_ORDER` DECIMAL(4,0) NOT NULL, |
| 492 | `BROADCAST_SITE_CD` VARCHAR(50) NULL DEFAULT NULL, |
| 493 | PRIMARY KEY (`MESSAGE_ID`)) |
| 494 | ENGINE = InnoDB |
| 495 | DEFAULT CHARACTER SET = utf8; |
| 496 | |
| 497 | -- ---------------------------------------------------------------------------- |
| 498 | -- Table vid_openecomp_epsdk.fn_chat_logs |
| 499 | -- ---------------------------------------------------------------------------- |
| 500 | CREATE TABLE IF NOT EXISTS `vid_openecomp_epsdk`.`fn_chat_logs` ( |
| 501 | `CHAT_LOG_ID` INT(11) NOT NULL, |
| 502 | `CHAT_ROOM_ID` INT(11) NULL DEFAULT NULL, |
| 503 | `USER_ID` INT(11) NULL DEFAULT NULL, |
| 504 | `MESSAGE` VARCHAR(1000) NULL DEFAULT NULL, |
| 505 | `MESSAGE_DATE_TIME` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, |
| 506 | PRIMARY KEY (`CHAT_LOG_ID`)) |
| 507 | ENGINE = InnoDB |
| 508 | DEFAULT CHARACTER SET = utf8; |
| 509 | |
| 510 | -- ---------------------------------------------------------------------------- |
| 511 | -- Table vid_openecomp_epsdk.fn_chat_room |
| 512 | -- ---------------------------------------------------------------------------- |
| 513 | CREATE TABLE IF NOT EXISTS `vid_openecomp_epsdk`.`fn_chat_room` ( |
| 514 | `CHAT_ROOM_ID` INT(11) NOT NULL, |
| 515 | `NAME` VARCHAR(50) NOT NULL, |
| 516 | `DESCRIPTION` VARCHAR(500) NULL DEFAULT NULL, |
| 517 | `OWNER_ID` INT(11) NULL DEFAULT NULL, |
| 518 | `CREATED_DATE` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP, |
| 519 | `UPDATED_DATE` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP, |
| 520 | PRIMARY KEY (`CHAT_ROOM_ID`)) |
| 521 | ENGINE = InnoDB |
| 522 | DEFAULT CHARACTER SET = utf8; |
| 523 | |
| 524 | -- ---------------------------------------------------------------------------- |
| 525 | -- Table vid_openecomp_epsdk.fn_chat_users |
| 526 | -- ---------------------------------------------------------------------------- |
| 527 | CREATE TABLE IF NOT EXISTS `vid_openecomp_epsdk`.`fn_chat_users` ( |
| 528 | `CHAT_ROOM_ID` INT(11) NULL DEFAULT NULL, |
| 529 | `USER_ID` INT(11) NULL DEFAULT NULL, |
| 530 | `LAST_ACTIVITY_DATE_TIME` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, |
| 531 | `CHAT_STATUS` VARCHAR(20) NULL DEFAULT NULL, |
| 532 | `ID` INT(11) NOT NULL, |
| 533 | PRIMARY KEY (`ID`)) |
| 534 | ENGINE = InnoDB |
| 535 | DEFAULT CHARACTER SET = utf8; |
| 536 | |
| 537 | -- ---------------------------------------------------------------------------- |
| 538 | -- Table vid_openecomp_epsdk.fn_datasource |
| 539 | -- ---------------------------------------------------------------------------- |
| 540 | CREATE TABLE IF NOT EXISTS `vid_openecomp_epsdk`.`fn_datasource` ( |
| 541 | `ID` INT(11) NOT NULL AUTO_INCREMENT, |
| 542 | `NAME` VARCHAR(50) NULL DEFAULT NULL, |
| 543 | `DRIVER_NAME` VARCHAR(256) NULL DEFAULT NULL, |
| 544 | `SERVER` VARCHAR(256) NULL DEFAULT NULL, |
| 545 | `PORT` INT(11) NULL DEFAULT NULL, |
| 546 | `USER_NAME` VARCHAR(256) NULL DEFAULT NULL, |
| 547 | `PASSWORD` VARCHAR(256) NULL DEFAULT NULL, |
| 548 | `URL` VARCHAR(256) NULL DEFAULT NULL, |
| 549 | `MIN_POOL_SIZE` INT(11) NULL DEFAULT NULL, |
| 550 | `MAX_POOL_SIZE` INT(11) NULL DEFAULT NULL, |
| 551 | `ADAPTER_ID` INT(11) NULL DEFAULT NULL, |
| 552 | `DS_TYPE` VARCHAR(20) NULL DEFAULT NULL, |
| 553 | PRIMARY KEY (`ID`)) |
| 554 | ENGINE = InnoDB |
| 555 | AUTO_INCREMENT = 4 |
| 556 | DEFAULT CHARACTER SET = utf8; |
| 557 | |
| 558 | -- ---------------------------------------------------------------------------- |
| 559 | -- Table vid_openecomp_epsdk.fn_function |
| 560 | -- ---------------------------------------------------------------------------- |
| 561 | CREATE TABLE IF NOT EXISTS `vid_openecomp_epsdk`.`fn_function` ( |
| 562 | `FUNCTION_CD` VARCHAR(30) NOT NULL, |
| 563 | `FUNCTION_NAME` VARCHAR(50) NOT NULL, |
| 564 | PRIMARY KEY (`FUNCTION_CD`)) |
| 565 | ENGINE = InnoDB |
| 566 | DEFAULT CHARACTER SET = utf8; |
| 567 | |
| 568 | -- ---------------------------------------------------------------------------- |
| 569 | -- Table vid_openecomp_epsdk.fn_license |
| 570 | -- ---------------------------------------------------------------------------- |
| 571 | CREATE TABLE IF NOT EXISTS `vid_openecomp_epsdk`.`fn_license` ( |
| 572 | `id` DECIMAL(11,0) NOT NULL, |
| 573 | `app_id` DECIMAL(11,0) NOT NULL, |
| 574 | `ip_address` VARCHAR(100) NOT NULL, |
| 575 | `quantum_version_id` DECIMAL(11,0) NOT NULL, |
| 576 | `created_date` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP, |
| 577 | `modified_date` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP, |
| 578 | `created_id` DECIMAL(11,0) NULL DEFAULT NULL, |
| 579 | `modified_id` DECIMAL(11,0) NULL DEFAULT NULL, |
| 580 | `end_date` TIMESTAMP NOT NULL DEFAULT '2036-01-19 03:14:07', |
| 581 | PRIMARY KEY (`id`), |
| 582 | INDEX `fn_license_r02` (`quantum_version_id` ASC), |
| 583 | CONSTRAINT `fn_license_r02` |
| 584 | FOREIGN KEY (`quantum_version_id`) |
| 585 | REFERENCES `vid_openecomp_epsdk`.`fn_license_version` (`id`)) |
| 586 | ENGINE = InnoDB |
| 587 | DEFAULT CHARACTER SET = utf8; |
| 588 | |
| 589 | -- ---------------------------------------------------------------------------- |
| 590 | -- Table vid_openecomp_epsdk.fn_license_app |
| 591 | -- ---------------------------------------------------------------------------- |
| 592 | CREATE TABLE IF NOT EXISTS `vid_openecomp_epsdk`.`fn_license_app` ( |
| 593 | `id` DECIMAL(11,0) NOT NULL, |
| 594 | `app_name` VARCHAR(100) NOT NULL, |
| 595 | `ctxt_name` VARCHAR(100) NULL DEFAULT NULL, |
| 596 | INDEX `fn_license_app_ID` (`id` ASC)) |
| 597 | ENGINE = InnoDB |
| 598 | DEFAULT CHARACTER SET = utf8; |
| 599 | |
| 600 | -- ---------------------------------------------------------------------------- |
| 601 | -- Table vid_openecomp_epsdk.fn_license_contact |
| 602 | -- ---------------------------------------------------------------------------- |
| 603 | CREATE TABLE IF NOT EXISTS `vid_openecomp_epsdk`.`fn_license_contact` ( |
| 604 | `id` INT(11) NOT NULL, |
| 605 | `license_id` INT(11) NULL DEFAULT NULL, |
| 606 | `sbcid` VARCHAR(20) NULL DEFAULT NULL, |
| 607 | PRIMARY KEY (`id`)) |
| 608 | ENGINE = InnoDB |
| 609 | DEFAULT CHARACTER SET = utf8; |
| 610 | |
| 611 | -- ---------------------------------------------------------------------------- |
| 612 | -- Table vid_openecomp_epsdk.fn_license_history |
| 613 | -- ---------------------------------------------------------------------------- |
| 614 | CREATE TABLE IF NOT EXISTS `vid_openecomp_epsdk`.`fn_license_history` ( |
| 615 | `license_id` DECIMAL(11,0) NULL DEFAULT NULL, |
| 616 | `app_id` DECIMAL(11,0) NULL DEFAULT NULL, |
| 617 | `ip_address` VARCHAR(100) NULL DEFAULT NULL, |
| 618 | `quantum_version_id` DECIMAL(11,0) NULL DEFAULT NULL, |
| 619 | `created_date` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP, |
| 620 | `modified_date` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP, |
| 621 | `created_id` DECIMAL(11,0) NULL DEFAULT NULL, |
| 622 | `modified_id` DECIMAL(11,0) NULL DEFAULT NULL, |
| 623 | `id` DECIMAL(11,0) NOT NULL, |
| 624 | PRIMARY KEY (`id`)) |
| 625 | ENGINE = InnoDB |
| 626 | DEFAULT CHARACTER SET = utf8; |
| 627 | |
| 628 | -- ---------------------------------------------------------------------------- |
| 629 | -- Table vid_openecomp_epsdk.fn_license_version |
| 630 | -- ---------------------------------------------------------------------------- |
| 631 | CREATE TABLE IF NOT EXISTS `vid_openecomp_epsdk`.`fn_license_version` ( |
| 632 | `id` DECIMAL(11,0) NOT NULL, |
| 633 | `quantum_version` VARCHAR(25) NULL DEFAULT NULL, |
| 634 | PRIMARY KEY (`id`)) |
| 635 | ENGINE = InnoDB |
| 636 | DEFAULT CHARACTER SET = utf8; |
| 637 | |
| 638 | -- ---------------------------------------------------------------------------- |
| 639 | -- Table vid_openecomp_epsdk.fn_lu_activity |
| 640 | -- ---------------------------------------------------------------------------- |
| 641 | CREATE TABLE IF NOT EXISTS `vid_openecomp_epsdk`.`fn_lu_activity` ( |
| 642 | `ACTIVITY_CD` VARCHAR(50) NOT NULL, |
| 643 | `ACTIVITY` VARCHAR(50) NOT NULL, |
| 644 | PRIMARY KEY (`ACTIVITY_CD`)) |
| 645 | ENGINE = InnoDB |
| 646 | DEFAULT CHARACTER SET = utf8; |
| 647 | |
| 648 | -- ---------------------------------------------------------------------------- |
| 649 | -- Table vid_openecomp_epsdk.fn_lu_alert_method |
| 650 | -- ---------------------------------------------------------------------------- |
| 651 | CREATE TABLE IF NOT EXISTS `vid_openecomp_epsdk`.`fn_lu_alert_method` ( |
| 652 | `ALERT_METHOD_CD` VARCHAR(10) NOT NULL, |
| 653 | `ALERT_METHOD` VARCHAR(50) NOT NULL, |
| 654 | PRIMARY KEY (`ALERT_METHOD_CD`)) |
| 655 | ENGINE = InnoDB |
| 656 | DEFAULT CHARACTER SET = utf8; |
| 657 | |
| 658 | -- ---------------------------------------------------------------------------- |
| 659 | -- Table vid_openecomp_epsdk.fn_lu_broadcast_site |
| 660 | -- ---------------------------------------------------------------------------- |
| 661 | CREATE TABLE IF NOT EXISTS `vid_openecomp_epsdk`.`fn_lu_broadcast_site` ( |
| 662 | `BROADCAST_SITE_CD` VARCHAR(50) NOT NULL, |
| 663 | `BROADCAST_SITE_DESCR` VARCHAR(100) NULL DEFAULT NULL, |
| 664 | PRIMARY KEY (`BROADCAST_SITE_CD`)) |
| 665 | ENGINE = InnoDB |
| 666 | DEFAULT CHARACTER SET = utf8; |
| 667 | |
| 668 | -- ---------------------------------------------------------------------------- |
| 669 | -- Table vid_openecomp_epsdk.fn_lu_call_times |
| 670 | -- ---------------------------------------------------------------------------- |
| 671 | CREATE TABLE IF NOT EXISTS `vid_openecomp_epsdk`.`fn_lu_call_times` ( |
| 672 | `CALL_TIME_ID` DECIMAL(10,0) NOT NULL, |
| 673 | `CALL_TIME_AMOUNT` DECIMAL(10,0) NOT NULL, |
| 674 | `CALL_TIME_DISPLAY` VARCHAR(50) NOT NULL, |
| 675 | PRIMARY KEY (`CALL_TIME_ID`)) |
| 676 | ENGINE = InnoDB |
| 677 | DEFAULT CHARACTER SET = utf8; |
| 678 | |
| 679 | -- ---------------------------------------------------------------------------- |
| 680 | -- Table vid_openecomp_epsdk.fn_lu_city |
| 681 | -- ---------------------------------------------------------------------------- |
| 682 | CREATE TABLE IF NOT EXISTS `vid_openecomp_epsdk`.`fn_lu_city` ( |
| 683 | `CITY_CD` VARCHAR(2) NOT NULL, |
| 684 | `CITY` VARCHAR(100) NOT NULL, |
| 685 | `STATE_CD` VARCHAR(2) NOT NULL, |
| 686 | PRIMARY KEY (`CITY_CD`, `STATE_CD`)) |
| 687 | ENGINE = InnoDB |
| 688 | DEFAULT CHARACTER SET = utf8; |
| 689 | |
| 690 | -- ---------------------------------------------------------------------------- |
| 691 | -- Table vid_openecomp_epsdk.fn_lu_country |
| 692 | -- ---------------------------------------------------------------------------- |
| 693 | CREATE TABLE IF NOT EXISTS `vid_openecomp_epsdk`.`fn_lu_country` ( |
| 694 | `COUNTRY_CD` VARCHAR(3) NOT NULL, |
| 695 | `COUNTRY` VARCHAR(100) NOT NULL, |
| 696 | `FULL_NAME` VARCHAR(100) NULL DEFAULT NULL, |
| 697 | `WEBPHONE_COUNTRY_LABEL` VARCHAR(30) NULL DEFAULT NULL, |
| 698 | PRIMARY KEY (`COUNTRY_CD`)) |
| 699 | ENGINE = InnoDB |
| 700 | DEFAULT CHARACTER SET = utf8; |
| 701 | |
| 702 | -- ---------------------------------------------------------------------------- |
| 703 | -- Table vid_openecomp_epsdk.fn_lu_menu_set |
| 704 | -- ---------------------------------------------------------------------------- |
| 705 | CREATE TABLE IF NOT EXISTS `vid_openecomp_epsdk`.`fn_lu_menu_set` ( |
| 706 | `MENU_SET_CD` VARCHAR(10) NOT NULL, |
| 707 | `MENU_SET_NAME` VARCHAR(50) NOT NULL, |
| 708 | PRIMARY KEY (`MENU_SET_CD`)) |
| 709 | ENGINE = InnoDB |
| 710 | DEFAULT CHARACTER SET = utf8; |
| 711 | |
| 712 | -- ---------------------------------------------------------------------------- |
| 713 | -- Table vid_openecomp_epsdk.fn_lu_priority |
| 714 | -- ---------------------------------------------------------------------------- |
| 715 | CREATE TABLE IF NOT EXISTS `vid_openecomp_epsdk`.`fn_lu_priority` ( |
| 716 | `PRIORITY_ID` DECIMAL(11,0) NOT NULL, |
| 717 | `PRIORITY` VARCHAR(50) NOT NULL, |
| 718 | `ACTIVE_YN` CHAR(1) NOT NULL, |
| 719 | `SORT_ORDER` DECIMAL(5,0) NULL DEFAULT NULL, |
| 720 | PRIMARY KEY (`PRIORITY_ID`)) |
| 721 | ENGINE = InnoDB |
| 722 | DEFAULT CHARACTER SET = utf8; |
| 723 | |
| 724 | -- ---------------------------------------------------------------------------- |
| 725 | -- Table vid_openecomp_epsdk.fn_lu_role_type |
| 726 | -- ---------------------------------------------------------------------------- |
| 727 | CREATE TABLE IF NOT EXISTS `vid_openecomp_epsdk`.`fn_lu_role_type` ( |
| 728 | `ROLE_TYPE_ID` DECIMAL(11,0) NOT NULL, |
| 729 | `ROLE_TYPE` VARCHAR(50) NOT NULL, |
| 730 | PRIMARY KEY (`ROLE_TYPE_ID`)) |
| 731 | ENGINE = InnoDB |
| 732 | DEFAULT CHARACTER SET = utf8; |
| 733 | |
| 734 | -- ---------------------------------------------------------------------------- |
| 735 | -- Table vid_openecomp_epsdk.fn_lu_state |
| 736 | -- ---------------------------------------------------------------------------- |
| 737 | CREATE TABLE IF NOT EXISTS `vid_openecomp_epsdk`.`fn_lu_state` ( |
| 738 | `STATE_CD` VARCHAR(2) NOT NULL, |
| 739 | `STATE` VARCHAR(100) NOT NULL, |
| 740 | PRIMARY KEY (`STATE_CD`)) |
| 741 | ENGINE = InnoDB |
| 742 | DEFAULT CHARACTER SET = utf8; |
| 743 | |
| 744 | -- ---------------------------------------------------------------------------- |
| 745 | -- Table vid_openecomp_epsdk.fn_lu_tab_set |
| 746 | -- ---------------------------------------------------------------------------- |
| 747 | CREATE TABLE IF NOT EXISTS `vid_openecomp_epsdk`.`fn_lu_tab_set` ( |
| 748 | `TAB_SET_CD` VARCHAR(30) NOT NULL, |
| 749 | `TAB_SET_NAME` VARCHAR(50) NOT NULL, |
| 750 | PRIMARY KEY (`TAB_SET_CD`)) |
| 751 | ENGINE = InnoDB |
| 752 | DEFAULT CHARACTER SET = utf8; |
| 753 | |
| 754 | -- ---------------------------------------------------------------------------- |
| 755 | -- Table vid_openecomp_epsdk.fn_lu_timezone |
| 756 | -- ---------------------------------------------------------------------------- |
| 757 | CREATE TABLE IF NOT EXISTS `vid_openecomp_epsdk`.`fn_lu_timezone` ( |
| 758 | `TIMEZONE_ID` INT(11) NOT NULL, |
| 759 | `TIMEZONE_NAME` VARCHAR(100) NOT NULL, |
| 760 | `TIMEZONE_VALUE` VARCHAR(100) NOT NULL, |
| 761 | PRIMARY KEY (`TIMEZONE_ID`)) |
| 762 | ENGINE = InnoDB |
| 763 | DEFAULT CHARACTER SET = utf8; |
| 764 | |
| 765 | -- ---------------------------------------------------------------------------- |
| 766 | -- Table vid_openecomp_epsdk.fn_menu |
| 767 | -- ---------------------------------------------------------------------------- |
| 768 | CREATE TABLE IF NOT EXISTS `vid_openecomp_epsdk`.`fn_menu` ( |
| 769 | `MENU_ID` INT(11) NOT NULL AUTO_INCREMENT, |
| 770 | `LABEL` VARCHAR(100) NULL DEFAULT NULL, |
| 771 | `PARENT_ID` INT(11) NULL DEFAULT NULL, |
| 772 | `SORT_ORDER` DECIMAL(4,0) NULL DEFAULT NULL, |
| 773 | `ACTION` VARCHAR(200) NULL DEFAULT NULL, |
| 774 | `FUNCTION_CD` VARCHAR(30) NULL DEFAULT NULL, |
| 775 | `ACTIVE_YN` VARCHAR(1) NOT NULL DEFAULT 'Y', |
| 776 | `SERVLET` VARCHAR(50) NULL DEFAULT NULL, |
| 777 | `QUERY_STRING` VARCHAR(200) NULL DEFAULT NULL, |
| 778 | `EXTERNAL_URL` VARCHAR(200) NULL DEFAULT NULL, |
| 779 | `TARGET` VARCHAR(25) NULL DEFAULT NULL, |
| 780 | `MENU_SET_CD` VARCHAR(10) NULL DEFAULT 'APP', |
| 781 | `SEPARATOR_YN` CHAR(1) NULL DEFAULT 'N', |
| 782 | `IMAGE_SRC` VARCHAR(100) NULL DEFAULT NULL, |
| 783 | PRIMARY KEY (`MENU_ID`), |
| 784 | INDEX `FK_FN_MENU_REF_196_FN_MENU` (`PARENT_ID` ASC), |
| 785 | INDEX `FK_FN_MENU_MENU_SET_CD` (`MENU_SET_CD` ASC), |
| 786 | INDEX `FN_MENU_FUNCTION_CD` (`FUNCTION_CD` ASC), |
| 787 | CONSTRAINT `FK_FN_MENU_MENU_SET_CD` |
| 788 | FOREIGN KEY (`MENU_SET_CD`) |
| 789 | REFERENCES `vid_openecomp_epsdk`.`fn_lu_menu_set` (`MENU_SET_CD`), |
| 790 | CONSTRAINT `FK_FN_MENU_REF_196_FN_MENU` |
| 791 | FOREIGN KEY (`PARENT_ID`) |
| 792 | REFERENCES `vid_openecomp_epsdk`.`fn_menu` (`MENU_ID`), |
| 793 | CONSTRAINT `FK_FN_MENU_REF_223_FN_FUNCT` |
| 794 | FOREIGN KEY (`FUNCTION_CD`) |
| 795 | REFERENCES `vid_openecomp_epsdk`.`fn_function` (`FUNCTION_CD`)) |
| 796 | ENGINE = InnoDB |
| 797 | AUTO_INCREMENT = 150029 |
| 798 | DEFAULT CHARACTER SET = utf8; |
| 799 | |
| 800 | -- ---------------------------------------------------------------------------- |
| 801 | -- Table vid_openecomp_epsdk.fn_org |
| 802 | -- ---------------------------------------------------------------------------- |
| 803 | CREATE TABLE IF NOT EXISTS `vid_openecomp_epsdk`.`fn_org` ( |
| 804 | `ORG_ID` INT(11) NOT NULL, |
| 805 | `ORG_NAME` VARCHAR(50) NOT NULL, |
| 806 | `ACCESS_CD` VARCHAR(10) NULL DEFAULT NULL, |
| 807 | PRIMARY KEY (`ORG_ID`), |
| 808 | INDEX `FN_ORG_ACCESS_CD` (`ACCESS_CD` ASC)) |
| 809 | ENGINE = InnoDB |
| 810 | DEFAULT CHARACTER SET = utf8; |
| 811 | |
| 812 | -- ---------------------------------------------------------------------------- |
| 813 | -- Table vid_openecomp_epsdk.fn_qz_blob_triggers |
| 814 | -- ---------------------------------------------------------------------------- |
| 815 | CREATE TABLE IF NOT EXISTS `vid_openecomp_epsdk`.`fn_qz_blob_triggers` ( |
| 816 | `SCHED_NAME` VARCHAR(120) NOT NULL, |
| 817 | `TRIGGER_NAME` VARCHAR(200) NOT NULL, |
| 818 | `TRIGGER_GROUP` VARCHAR(200) NOT NULL, |
| 819 | `BLOB_DATA` BLOB NULL DEFAULT NULL, |
| 820 | PRIMARY KEY (`SCHED_NAME`, `TRIGGER_NAME`, `TRIGGER_GROUP`), |
| 821 | INDEX `SCHED_NAME` (`SCHED_NAME` ASC, `TRIGGER_NAME` ASC, `TRIGGER_GROUP` ASC), |
| 822 | CONSTRAINT `fn_qz_blob_triggers_ibfk_1` |
| 823 | FOREIGN KEY (`SCHED_NAME` , `TRIGGER_NAME` , `TRIGGER_GROUP`) |
| 824 | REFERENCES `vid_openecomp_epsdk`.`fn_qz_triggers` (`SCHED_NAME` , `TRIGGER_NAME` , `TRIGGER_GROUP`)) |
| 825 | ENGINE = InnoDB |
| 826 | DEFAULT CHARACTER SET = utf8; |
| 827 | |
| 828 | -- ---------------------------------------------------------------------------- |
| 829 | -- Table vid_openecomp_epsdk.fn_qz_calendars |
| 830 | -- ---------------------------------------------------------------------------- |
| 831 | CREATE TABLE IF NOT EXISTS `vid_openecomp_epsdk`.`fn_qz_calendars` ( |
| 832 | `SCHED_NAME` VARCHAR(120) NOT NULL, |
| 833 | `CALENDAR_NAME` VARCHAR(200) NOT NULL, |
| 834 | `CALENDAR` BLOB NOT NULL, |
| 835 | PRIMARY KEY (`SCHED_NAME`, `CALENDAR_NAME`)) |
| 836 | ENGINE = InnoDB |
| 837 | DEFAULT CHARACTER SET = utf8; |
| 838 | |
| 839 | -- ---------------------------------------------------------------------------- |
| 840 | -- Table vid_openecomp_epsdk.fn_qz_cron_triggers |
| 841 | -- ---------------------------------------------------------------------------- |
| 842 | CREATE TABLE IF NOT EXISTS `vid_openecomp_epsdk`.`fn_qz_cron_triggers` ( |
| 843 | `SCHED_NAME` VARCHAR(120) NOT NULL, |
| 844 | `TRIGGER_NAME` VARCHAR(200) NOT NULL, |
| 845 | `TRIGGER_GROUP` VARCHAR(200) NOT NULL, |
| 846 | `CRON_EXPRESSION` VARCHAR(120) NOT NULL, |
| 847 | `TIME_ZONE_ID` VARCHAR(80) NULL DEFAULT NULL, |
| 848 | PRIMARY KEY (`SCHED_NAME`, `TRIGGER_NAME`, `TRIGGER_GROUP`), |
| 849 | CONSTRAINT `fn_qz_cron_triggers_ibfk_1` |
| 850 | FOREIGN KEY (`SCHED_NAME` , `TRIGGER_NAME` , `TRIGGER_GROUP`) |
| 851 | REFERENCES `vid_openecomp_epsdk`.`fn_qz_triggers` (`SCHED_NAME` , `TRIGGER_NAME` , `TRIGGER_GROUP`)) |
| 852 | ENGINE = InnoDB |
| 853 | DEFAULT CHARACTER SET = utf8; |
| 854 | |
| 855 | -- ---------------------------------------------------------------------------- |
| 856 | -- Table vid_openecomp_epsdk.fn_qz_fired_triggers |
| 857 | -- ---------------------------------------------------------------------------- |
| 858 | CREATE TABLE IF NOT EXISTS `vid_openecomp_epsdk`.`fn_qz_fired_triggers` ( |
| 859 | `SCHED_NAME` VARCHAR(120) NOT NULL, |
| 860 | `ENTRY_ID` VARCHAR(95) NOT NULL, |
| 861 | `TRIGGER_NAME` VARCHAR(200) NOT NULL, |
| 862 | `TRIGGER_GROUP` VARCHAR(200) NOT NULL, |
| 863 | `INSTANCE_NAME` VARCHAR(200) NOT NULL, |
| 864 | `FIRED_TIME` BIGINT(13) NOT NULL, |
| 865 | `SCHED_TIME` BIGINT(13) NOT NULL, |
| 866 | `PRIORITY` INT(11) NOT NULL, |
| 867 | `STATE` VARCHAR(16) NOT NULL, |
| 868 | `JOB_NAME` VARCHAR(200) NULL DEFAULT NULL, |
| 869 | `JOB_GROUP` VARCHAR(200) NULL DEFAULT NULL, |
| 870 | `IS_NONCONCURRENT` VARCHAR(1) NULL DEFAULT NULL, |
| 871 | `REQUESTS_RECOVERY` VARCHAR(1) NULL DEFAULT NULL, |
| 872 | PRIMARY KEY (`SCHED_NAME`, `ENTRY_ID`), |
| 873 | INDEX `IDX_FN_QZ_FT_TRIG_INST_NAME` (`SCHED_NAME` ASC, `INSTANCE_NAME` ASC), |
| 874 | INDEX `IDX_FN_QZ_FT_INST_JOB_REQ_RCVRY` (`SCHED_NAME` ASC, `INSTANCE_NAME` ASC, `REQUESTS_RECOVERY` ASC), |
| 875 | INDEX `IDX_FN_QZ_FT_J_G` (`SCHED_NAME` ASC, `JOB_NAME` ASC, `JOB_GROUP` ASC), |
| 876 | INDEX `IDX_FN_QZ_FT_JG` (`SCHED_NAME` ASC, `JOB_GROUP` ASC), |
| 877 | INDEX `IDX_FN_QZ_FT_T_G` (`SCHED_NAME` ASC, `TRIGGER_NAME` ASC, `TRIGGER_GROUP` ASC), |
| 878 | INDEX `IDX_FN_QZ_FT_TG` (`SCHED_NAME` ASC, `TRIGGER_GROUP` ASC)) |
| 879 | ENGINE = InnoDB |
| 880 | DEFAULT CHARACTER SET = utf8; |
| 881 | |
| 882 | -- ---------------------------------------------------------------------------- |
| 883 | -- Table vid_openecomp_epsdk.fn_qz_job_details |
| 884 | -- ---------------------------------------------------------------------------- |
| 885 | CREATE TABLE IF NOT EXISTS `vid_openecomp_epsdk`.`fn_qz_job_details` ( |
| 886 | `SCHED_NAME` VARCHAR(120) NOT NULL, |
| 887 | `JOB_NAME` VARCHAR(200) NOT NULL, |
| 888 | `JOB_GROUP` VARCHAR(200) NOT NULL, |
| 889 | `DESCRIPTION` VARCHAR(250) NULL DEFAULT NULL, |
| 890 | `JOB_CLASS_NAME` VARCHAR(250) NOT NULL, |
| 891 | `IS_DURABLE` VARCHAR(1) NOT NULL, |
| 892 | `IS_NONCONCURRENT` VARCHAR(1) NOT NULL, |
| 893 | `IS_UPDATE_DATA` VARCHAR(1) NOT NULL, |
| 894 | `REQUESTS_RECOVERY` VARCHAR(1) NOT NULL, |
| 895 | `JOB_DATA` BLOB NULL DEFAULT NULL, |
| 896 | PRIMARY KEY (`SCHED_NAME`, `JOB_NAME`, `JOB_GROUP`), |
| 897 | INDEX `IDX_FN_QZ_J_REQ_RECOVERY` (`SCHED_NAME` ASC, `REQUESTS_RECOVERY` ASC), |
| 898 | INDEX `IDX_FN_QZ_J_GRP` (`SCHED_NAME` ASC, `JOB_GROUP` ASC)) |
| 899 | ENGINE = InnoDB |
| 900 | DEFAULT CHARACTER SET = utf8; |
| 901 | |
| 902 | -- ---------------------------------------------------------------------------- |
| 903 | -- Table vid_openecomp_epsdk.fn_qz_locks |
| 904 | -- ---------------------------------------------------------------------------- |
| 905 | CREATE TABLE IF NOT EXISTS `vid_openecomp_epsdk`.`fn_qz_locks` ( |
| 906 | `SCHED_NAME` VARCHAR(120) NOT NULL, |
| 907 | `LOCK_NAME` VARCHAR(40) NOT NULL, |
| 908 | PRIMARY KEY (`SCHED_NAME`, `LOCK_NAME`)) |
| 909 | ENGINE = InnoDB |
| 910 | DEFAULT CHARACTER SET = utf8; |
| 911 | |
| 912 | -- ---------------------------------------------------------------------------- |
| 913 | -- Table vid_openecomp_epsdk.fn_qz_paused_trigger_grps |
| 914 | -- ---------------------------------------------------------------------------- |
| 915 | CREATE TABLE IF NOT EXISTS `vid_openecomp_epsdk`.`fn_qz_paused_trigger_grps` ( |
| 916 | `SCHED_NAME` VARCHAR(120) NOT NULL, |
| 917 | `TRIGGER_GROUP` VARCHAR(200) NOT NULL, |
| 918 | PRIMARY KEY (`SCHED_NAME`, `TRIGGER_GROUP`)) |
| 919 | ENGINE = InnoDB |
| 920 | DEFAULT CHARACTER SET = utf8; |
| 921 | |
| 922 | -- ---------------------------------------------------------------------------- |
| 923 | -- Table vid_openecomp_epsdk.fn_qz_scheduler_state |
| 924 | -- ---------------------------------------------------------------------------- |
| 925 | CREATE TABLE IF NOT EXISTS `vid_openecomp_epsdk`.`fn_qz_scheduler_state` ( |
| 926 | `SCHED_NAME` VARCHAR(120) NOT NULL, |
| 927 | `INSTANCE_NAME` VARCHAR(200) NOT NULL, |
| 928 | `LAST_CHECKIN_TIME` BIGINT(13) NOT NULL, |
| 929 | `CHECKIN_INTERVAL` BIGINT(13) NOT NULL, |
| 930 | PRIMARY KEY (`SCHED_NAME`, `INSTANCE_NAME`)) |
| 931 | ENGINE = InnoDB |
| 932 | DEFAULT CHARACTER SET = utf8; |
| 933 | |
| 934 | -- ---------------------------------------------------------------------------- |
| 935 | -- Table vid_openecomp_epsdk.fn_qz_simple_triggers |
| 936 | -- ---------------------------------------------------------------------------- |
| 937 | CREATE TABLE IF NOT EXISTS `vid_openecomp_epsdk`.`fn_qz_simple_triggers` ( |
| 938 | `SCHED_NAME` VARCHAR(120) NOT NULL, |
| 939 | `TRIGGER_NAME` VARCHAR(200) NOT NULL, |
| 940 | `TRIGGER_GROUP` VARCHAR(200) NOT NULL, |
| 941 | `REPEAT_COUNT` BIGINT(7) NOT NULL, |
| 942 | `REPEAT_INTERVAL` BIGINT(12) NOT NULL, |
| 943 | `TIMES_TRIGGERED` BIGINT(10) NOT NULL, |
| 944 | PRIMARY KEY (`SCHED_NAME`, `TRIGGER_NAME`, `TRIGGER_GROUP`), |
| 945 | CONSTRAINT `fn_qz_simple_triggers_ibfk_1` |
| 946 | FOREIGN KEY (`SCHED_NAME` , `TRIGGER_NAME` , `TRIGGER_GROUP`) |
| 947 | REFERENCES `vid_openecomp_epsdk`.`fn_qz_triggers` (`SCHED_NAME` , `TRIGGER_NAME` , `TRIGGER_GROUP`)) |
| 948 | ENGINE = InnoDB |
| 949 | DEFAULT CHARACTER SET = utf8; |
| 950 | |
| 951 | -- ---------------------------------------------------------------------------- |
| 952 | -- Table vid_openecomp_epsdk.fn_qz_simprop_triggers |
| 953 | -- ---------------------------------------------------------------------------- |
| 954 | CREATE TABLE IF NOT EXISTS `vid_openecomp_epsdk`.`fn_qz_simprop_triggers` ( |
| 955 | `SCHED_NAME` VARCHAR(120) NOT NULL, |
| 956 | `TRIGGER_NAME` VARCHAR(200) NOT NULL, |
| 957 | `TRIGGER_GROUP` VARCHAR(200) NOT NULL, |
| 958 | `STR_PROP_1` VARCHAR(512) NULL DEFAULT NULL, |
| 959 | `STR_PROP_2` VARCHAR(512) NULL DEFAULT NULL, |
| 960 | `STR_PROP_3` VARCHAR(512) NULL DEFAULT NULL, |
| 961 | `INT_PROP_1` INT(11) NULL DEFAULT NULL, |
| 962 | `INT_PROP_2` INT(11) NULL DEFAULT NULL, |
| 963 | `LONG_PROP_1` BIGINT(20) NULL DEFAULT NULL, |
| 964 | `LONG_PROP_2` BIGINT(20) NULL DEFAULT NULL, |
| 965 | `DEC_PROP_1` DECIMAL(13,4) NULL DEFAULT NULL, |
| 966 | `DEC_PROP_2` DECIMAL(13,4) NULL DEFAULT NULL, |
| 967 | `BOOL_PROP_1` VARCHAR(1) NULL DEFAULT NULL, |
| 968 | `BOOL_PROP_2` VARCHAR(1) NULL DEFAULT NULL, |
| 969 | PRIMARY KEY (`SCHED_NAME`, `TRIGGER_NAME`, `TRIGGER_GROUP`), |
| 970 | CONSTRAINT `fn_qz_simprop_triggers_ibfk_1` |
| 971 | FOREIGN KEY (`SCHED_NAME` , `TRIGGER_NAME` , `TRIGGER_GROUP`) |
| 972 | REFERENCES `vid_openecomp_epsdk`.`fn_qz_triggers` (`SCHED_NAME` , `TRIGGER_NAME` , `TRIGGER_GROUP`)) |
| 973 | ENGINE = InnoDB |
| 974 | DEFAULT CHARACTER SET = utf8; |
| 975 | |
| 976 | -- ---------------------------------------------------------------------------- |
| 977 | -- Table vid_openecomp_epsdk.fn_qz_triggers |
| 978 | -- ---------------------------------------------------------------------------- |
| 979 | CREATE TABLE IF NOT EXISTS `vid_openecomp_epsdk`.`fn_qz_triggers` ( |
| 980 | `SCHED_NAME` VARCHAR(120) NOT NULL, |
| 981 | `TRIGGER_NAME` VARCHAR(200) NOT NULL, |
| 982 | `TRIGGER_GROUP` VARCHAR(200) NOT NULL, |
| 983 | `JOB_NAME` VARCHAR(200) NOT NULL, |
| 984 | `JOB_GROUP` VARCHAR(200) NOT NULL, |
| 985 | `DESCRIPTION` VARCHAR(250) NULL DEFAULT NULL, |
| 986 | `NEXT_FIRE_TIME` BIGINT(13) NULL DEFAULT NULL, |
| 987 | `PREV_FIRE_TIME` BIGINT(13) NULL DEFAULT NULL, |
| 988 | `PRIORITY` INT(11) NULL DEFAULT NULL, |
| 989 | `TRIGGER_STATE` VARCHAR(16) NOT NULL, |
| 990 | `TRIGGER_TYPE` VARCHAR(8) NOT NULL, |
| 991 | `START_TIME` BIGINT(13) NOT NULL, |
| 992 | `END_TIME` BIGINT(13) NULL DEFAULT NULL, |
| 993 | `CALENDAR_NAME` VARCHAR(200) NULL DEFAULT NULL, |
| 994 | `MISFIRE_INSTR` SMALLINT(2) NULL DEFAULT NULL, |
| 995 | `JOB_DATA` BLOB NULL DEFAULT NULL, |
| 996 | PRIMARY KEY (`SCHED_NAME`, `TRIGGER_NAME`, `TRIGGER_GROUP`), |
| 997 | INDEX `IDX_FN_QZ_T_J` (`SCHED_NAME` ASC, `JOB_NAME` ASC, `JOB_GROUP` ASC), |
| 998 | INDEX `IDX_FN_QZ_T_JG` (`SCHED_NAME` ASC, `JOB_GROUP` ASC), |
| 999 | INDEX `IDX_FN_QZ_T_C` (`SCHED_NAME` ASC, `CALENDAR_NAME` ASC), |
| 1000 | INDEX `IDX_FN_QZ_T_G` (`SCHED_NAME` ASC, `TRIGGER_GROUP` ASC), |
| 1001 | INDEX `IDX_FN_QZ_T_STATE` (`SCHED_NAME` ASC, `TRIGGER_STATE` ASC), |
| 1002 | INDEX `IDX_FN_QZ_T_N_STATE` (`SCHED_NAME` ASC, `TRIGGER_NAME` ASC, `TRIGGER_GROUP` ASC, `TRIGGER_STATE` ASC), |
| 1003 | INDEX `IDX_FN_QZ_T_N_G_STATE` (`SCHED_NAME` ASC, `TRIGGER_GROUP` ASC, `TRIGGER_STATE` ASC), |
| 1004 | INDEX `IDX_FN_QZ_T_NEXT_FIRE_TIME` (`SCHED_NAME` ASC, `NEXT_FIRE_TIME` ASC), |
| 1005 | INDEX `IDX_FN_QZ_T_NFT_ST` (`SCHED_NAME` ASC, `TRIGGER_STATE` ASC, `NEXT_FIRE_TIME` ASC), |
| 1006 | INDEX `IDX_FN_QZ_T_NFT_MISFIRE` (`SCHED_NAME` ASC, `MISFIRE_INSTR` ASC, `NEXT_FIRE_TIME` ASC), |
| 1007 | INDEX `IDX_FN_QZ_T_NFT_ST_MISFIRE` (`SCHED_NAME` ASC, `MISFIRE_INSTR` ASC, `NEXT_FIRE_TIME` ASC, `TRIGGER_STATE` ASC), |
| 1008 | INDEX `IDX_FN_QZ_T_NFT_ST_MISFIRE_GRP` (`SCHED_NAME` ASC, `MISFIRE_INSTR` ASC, `NEXT_FIRE_TIME` ASC, `TRIGGER_GROUP` ASC, `TRIGGER_STATE` ASC), |
| 1009 | CONSTRAINT `fn_qz_triggers_ibfk_1` |
| 1010 | FOREIGN KEY (`SCHED_NAME` , `JOB_NAME` , `JOB_GROUP`) |
| 1011 | REFERENCES `vid_openecomp_epsdk`.`fn_qz_job_details` (`SCHED_NAME` , `JOB_NAME` , `JOB_GROUP`)) |
| 1012 | ENGINE = InnoDB |
| 1013 | DEFAULT CHARACTER SET = utf8; |
| 1014 | |
| 1015 | -- ---------------------------------------------------------------------------- |
| 1016 | -- Table vid_openecomp_epsdk.fn_restricted_url |
| 1017 | -- ---------------------------------------------------------------------------- |
| 1018 | CREATE TABLE IF NOT EXISTS `vid_openecomp_epsdk`.`fn_restricted_url` ( |
| 1019 | `RESTRICTED_URL` VARCHAR(250) NOT NULL, |
| 1020 | `FUNCTION_CD` VARCHAR(30) NOT NULL, |
| 1021 | PRIMARY KEY (`RESTRICTED_URL`, `FUNCTION_CD`), |
| 1022 | INDEX `FK_RESTRICTED_URL_FUNCTION_CD` (`FUNCTION_CD` ASC), |
| 1023 | CONSTRAINT `FK_RESTRICTED_URL_FUNCTION_CD` |
| 1024 | FOREIGN KEY (`FUNCTION_CD`) |
| 1025 | REFERENCES `vid_openecomp_epsdk`.`fn_function` (`FUNCTION_CD`)) |
| 1026 | ENGINE = InnoDB |
| 1027 | DEFAULT CHARACTER SET = utf8; |
| 1028 | |
| 1029 | -- ---------------------------------------------------------------------------- |
| 1030 | -- Table vid_openecomp_epsdk.fn_role |
| 1031 | -- ---------------------------------------------------------------------------- |
| 1032 | CREATE TABLE IF NOT EXISTS `vid_openecomp_epsdk`.`fn_role` ( |
| 1033 | `ROLE_ID` INT(11) NOT NULL AUTO_INCREMENT, |
| 1034 | `ROLE_NAME` VARCHAR(255) NOT NULL, |
| 1035 | `ACTIVE_YN` VARCHAR(1) NOT NULL DEFAULT 'Y', |
| 1036 | `PRIORITY` DECIMAL(4,0) NULL DEFAULT NULL, |
| 1037 | PRIMARY KEY (`ROLE_ID`)) |
| 1038 | ENGINE = InnoDB |
| 1039 | AUTO_INCREMENT = 17 |
| 1040 | DEFAULT CHARACTER SET = utf8; |
| 1041 | |
| 1042 | ALTER TABLE `vid_openecomp_epsdk`.`fn_role` MODIFY `ROLE_NAME` VARCHAR (255); |
| 1043 | |
| 1044 | |
| 1045 | -- ---------------------------------------------------------------------------- |
| 1046 | -- Table vid_openecomp_epsdk.fn_role_composite |
| 1047 | -- ---------------------------------------------------------------------------- |
| 1048 | CREATE TABLE IF NOT EXISTS `vid_openecomp_epsdk`.`fn_role_composite` ( |
| 1049 | `PARENT_ROLE_ID` INT(11) NOT NULL, |
| 1050 | `CHILD_ROLE_ID` INT(11) NOT NULL, |
| 1051 | PRIMARY KEY (`PARENT_ROLE_ID`, `CHILD_ROLE_ID`), |
| 1052 | INDEX `FK_FN_ROLE_COMPOSITE_CHILD` (`CHILD_ROLE_ID` ASC), |
| 1053 | CONSTRAINT `FK_FN_ROLE_COMPOSITE_CHILD` |
| 1054 | FOREIGN KEY (`CHILD_ROLE_ID`) |
| 1055 | REFERENCES `vid_openecomp_epsdk`.`fn_role` (`ROLE_ID`), |
| 1056 | CONSTRAINT `FK_FN_ROLE_COMPOSITE_PARENT` |
| 1057 | FOREIGN KEY (`PARENT_ROLE_ID`) |
| 1058 | REFERENCES `vid_openecomp_epsdk`.`fn_role` (`ROLE_ID`)) |
| 1059 | ENGINE = InnoDB |
| 1060 | DEFAULT CHARACTER SET = utf8; |
| 1061 | |
| 1062 | -- ---------------------------------------------------------------------------- |
| 1063 | -- Table vid_openecomp_epsdk.fn_role_function |
| 1064 | -- ---------------------------------------------------------------------------- |
| 1065 | CREATE TABLE IF NOT EXISTS `vid_openecomp_epsdk`.`fn_role_function` ( |
| 1066 | `ROLE_ID` INT(11) NOT NULL, |
| 1067 | `FUNCTION_CD` VARCHAR(30) NOT NULL, |
| 1068 | PRIMARY KEY (`ROLE_ID`, `FUNCTION_CD`), |
| 1069 | INDEX `FN_ROLE_FUNCTION_FUNCTION_CD` (`FUNCTION_CD` ASC), |
| 1070 | INDEX `FN_ROLE_FUNCTION_ROLE_ID` (`ROLE_ID` ASC), |
| 1071 | CONSTRAINT `FK_FN_ROLE__REF_198_FN_ROLE` |
| 1072 | FOREIGN KEY (`ROLE_ID`) |
| 1073 | REFERENCES `vid_openecomp_epsdk`.`fn_role` (`ROLE_ID`), |
| 1074 | CONSTRAINT `FK_FN_ROLE__REF_201_FN_FUNCT` |
| 1075 | FOREIGN KEY (`FUNCTION_CD`) |
| 1076 | REFERENCES `vid_openecomp_epsdk`.`fn_function` (`FUNCTION_CD`)) |
| 1077 | ENGINE = InnoDB |
| 1078 | DEFAULT CHARACTER SET = utf8; |
| 1079 | |
| 1080 | -- ---------------------------------------------------------------------------- |
| 1081 | -- Table vid_openecomp_epsdk.fn_schedule_workflows |
| 1082 | -- ---------------------------------------------------------------------------- |
| 1083 | CREATE TABLE IF NOT EXISTS `vid_openecomp_epsdk`.`fn_schedule_workflows` ( |
| 1084 | `id_schedule_workflows` BIGINT(25) NOT NULL AUTO_INCREMENT, |
| 1085 | `workflow_server_url` VARCHAR(45) NULL DEFAULT NULL, |
| 1086 | `workflow_key` VARCHAR(45) NOT NULL, |
| 1087 | `workflow_arguments` VARCHAR(45) NULL DEFAULT NULL, |
| 1088 | `startDateTimeCron` VARCHAR(45) NULL DEFAULT NULL, |
| 1089 | `endDateTime` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP, |
| 1090 | `start_date_time` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP, |
| 1091 | `recurrence` VARCHAR(45) NULL DEFAULT NULL, |
| 1092 | PRIMARY KEY (`id_schedule_workflows`)) |
| 1093 | ENGINE = InnoDB |
| 1094 | DEFAULT CHARACTER SET = utf8; |
| 1095 | |
| 1096 | -- ---------------------------------------------------------------------------- |
| 1097 | -- Table vid_openecomp_epsdk.fn_tab |
| 1098 | -- ---------------------------------------------------------------------------- |
| 1099 | CREATE TABLE IF NOT EXISTS `vid_openecomp_epsdk`.`fn_tab` ( |
| 1100 | `TAB_CD` VARCHAR(30) NOT NULL, |
| 1101 | `TAB_NAME` VARCHAR(50) NOT NULL, |
| 1102 | `TAB_DESCR` VARCHAR(100) NULL DEFAULT NULL, |
| 1103 | `ACTION` VARCHAR(100) NOT NULL, |
| 1104 | `FUNCTION_CD` VARCHAR(30) NOT NULL, |
| 1105 | `ACTIVE_YN` CHAR(1) NOT NULL, |
| 1106 | `SORT_ORDER` DECIMAL(11,0) NOT NULL, |
| 1107 | `PARENT_TAB_CD` VARCHAR(30) NULL DEFAULT NULL, |
| 1108 | `TAB_SET_CD` VARCHAR(30) NULL DEFAULT NULL, |
| 1109 | PRIMARY KEY (`TAB_CD`), |
| 1110 | INDEX `FK_FN_TAB_FUNCTION_CD` (`FUNCTION_CD` ASC), |
| 1111 | INDEX `FK_FN_TAB_SET_CD` (`TAB_SET_CD` ASC), |
| 1112 | CONSTRAINT `FK_FN_TAB_FUNCTION_CD` |
| 1113 | FOREIGN KEY (`FUNCTION_CD`) |
| 1114 | REFERENCES `vid_openecomp_epsdk`.`fn_function` (`FUNCTION_CD`), |
| 1115 | CONSTRAINT `FK_FN_TAB_SET_CD` |
| 1116 | FOREIGN KEY (`TAB_SET_CD`) |
| 1117 | REFERENCES `vid_openecomp_epsdk`.`fn_lu_tab_set` (`TAB_SET_CD`)) |
| 1118 | ENGINE = InnoDB |
| 1119 | DEFAULT CHARACTER SET = utf8; |
| 1120 | |
| 1121 | -- ---------------------------------------------------------------------------- |
| 1122 | -- Table vid_openecomp_epsdk.fn_tab_selected |
| 1123 | -- ---------------------------------------------------------------------------- |
| 1124 | CREATE TABLE IF NOT EXISTS `vid_openecomp_epsdk`.`fn_tab_selected` ( |
| 1125 | `SELECTED_TAB_CD` VARCHAR(30) NOT NULL, |
| 1126 | `TAB_URI` VARCHAR(40) NOT NULL, |
| 1127 | PRIMARY KEY (`SELECTED_TAB_CD`, `TAB_URI`), |
| 1128 | CONSTRAINT `FK_FN_TAB_SELECTED_TAB_CD` |
| 1129 | FOREIGN KEY (`SELECTED_TAB_CD`) |
| 1130 | REFERENCES `vid_openecomp_epsdk`.`fn_tab` (`TAB_CD`)) |
| 1131 | ENGINE = InnoDB |
| 1132 | DEFAULT CHARACTER SET = utf8; |
| 1133 | |
| 1134 | -- ---------------------------------------------------------------------------- |
| 1135 | -- Table vid_openecomp_epsdk.fn_user |
| 1136 | -- ---------------------------------------------------------------------------- |
| 1137 | CREATE TABLE IF NOT EXISTS `vid_openecomp_epsdk`.`fn_user` ( |
| 1138 | `USER_ID` INT(11) NOT NULL AUTO_INCREMENT, |
| 1139 | `ORG_ID` INT(11) NULL DEFAULT NULL, |
| 1140 | `MANAGER_ID` INT(11) NULL DEFAULT NULL, |
| 1141 | `FIRST_NAME` VARCHAR(50) NULL DEFAULT NULL, |
| 1142 | `MIDDLE_NAME` VARCHAR(50) NULL DEFAULT NULL, |
| 1143 | `LAST_NAME` VARCHAR(50) NULL DEFAULT NULL, |
| 1144 | `PHONE` VARCHAR(25) NULL DEFAULT NULL, |
| 1145 | `FAX` VARCHAR(25) NULL DEFAULT NULL, |
| 1146 | `CELLULAR` VARCHAR(25) NULL DEFAULT NULL, |
| 1147 | `EMAIL` VARCHAR(50) NULL DEFAULT NULL, |
| 1148 | `ADDRESS_ID` DECIMAL(11,0) NULL DEFAULT NULL, |
| 1149 | `ALERT_METHOD_CD` VARCHAR(10) NULL DEFAULT NULL, |
| 1150 | `HRID` VARCHAR(20) NULL DEFAULT NULL, |
| 1151 | `ORG_USER_ID` VARCHAR(20) NULL DEFAULT NULL, |
| 1152 | `ORG_CODE` VARCHAR(30) NULL DEFAULT NULL, |
| 1153 | `LOGIN_ID` VARCHAR(25) NULL DEFAULT NULL, |
| 1154 | `LOGIN_PWD` VARCHAR(25) NULL DEFAULT NULL, |
| 1155 | `LAST_LOGIN_DATE` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, |
| 1156 | `ACTIVE_YN` VARCHAR(1) NOT NULL DEFAULT 'Y', |
| 1157 | `CREATED_ID` INT(11) NULL DEFAULT NULL, |
| 1158 | `CREATED_DATE` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP, |
| 1159 | `MODIFIED_ID` INT(11) NULL DEFAULT NULL, |
| 1160 | `MODIFIED_DATE` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP, |
| 1161 | `IS_INTERNAL_YN` CHAR(1) NOT NULL DEFAULT 'N', |
| 1162 | `ADDRESS_LINE_1` VARCHAR(100) NULL DEFAULT NULL, |
| 1163 | `ADDRESS_LINE_2` VARCHAR(100) NULL DEFAULT NULL, |
| 1164 | `CITY` VARCHAR(50) NULL DEFAULT NULL, |
| 1165 | `STATE_CD` VARCHAR(3) NULL DEFAULT NULL, |
| 1166 | `ZIP_CODE` VARCHAR(11) NULL DEFAULT NULL, |
| 1167 | `COUNTRY_CD` VARCHAR(3) NULL DEFAULT NULL, |
| 1168 | `LOCATION_CLLI` VARCHAR(8) NULL DEFAULT NULL, |
| 1169 | `ORG_MANAGER_USERID` VARCHAR(20) NULL DEFAULT NULL, |
| 1170 | `COMPANY` VARCHAR(100) NULL DEFAULT NULL, |
| 1171 | `DEPARTMENT_NAME` VARCHAR(100) NULL DEFAULT NULL, |
| 1172 | `JOB_TITLE` VARCHAR(100) NULL DEFAULT NULL, |
| 1173 | `TIMEZONE` INT(11) NULL DEFAULT NULL, |
| 1174 | `DEPARTMENT` VARCHAR(25) NULL DEFAULT NULL, |
| 1175 | `BUSINESS_UNIT` VARCHAR(25) NULL DEFAULT NULL, |
| 1176 | `BUSINESS_UNIT_NAME` VARCHAR(100) NULL DEFAULT NULL, |
| 1177 | `COST_CENTER` VARCHAR(25) NULL DEFAULT NULL, |
| 1178 | `FIN_LOC_CODE` VARCHAR(10) NULL DEFAULT NULL, |
| 1179 | `SILO_STATUS` VARCHAR(10) NULL DEFAULT NULL, |
| 1180 | PRIMARY KEY (`USER_ID`), |
| 1181 | UNIQUE INDEX `FN_USER_HRID` (`HRID` ASC), |
| 1182 | UNIQUE INDEX `FN_USER_LOGIN_ID` (`LOGIN_ID` ASC), |
| 1183 | INDEX `FN_USER_ADDRESS_ID` (`ADDRESS_ID` ASC), |
| 1184 | INDEX `FN_USER_ALERT_METHOD_CD` (`ALERT_METHOD_CD` ASC), |
| 1185 | INDEX `FN_USER_ORG_ID` (`ORG_ID` ASC), |
| 1186 | INDEX `FK_FN_USER_REF_197_FN_USER` (`MANAGER_ID` ASC), |
| 1187 | INDEX `FK_FN_USER_REF_198_FN_USER` (`CREATED_ID` ASC), |
| 1188 | INDEX `FK_FN_USER_REF_199_FN_USER` (`MODIFIED_ID` ASC), |
| 1189 | INDEX `FK_TIMEZONE` (`TIMEZONE` ASC), |
| 1190 | CONSTRAINT `FK_FN_USER_REF_110_FN_ORG` |
| 1191 | FOREIGN KEY (`ORG_ID`) |
| 1192 | REFERENCES `vid_openecomp_epsdk`.`fn_org` (`ORG_ID`), |
| 1193 | CONSTRAINT `FK_FN_USER_REF_123_FN_LU_AL` |
| 1194 | FOREIGN KEY (`ALERT_METHOD_CD`) |
| 1195 | REFERENCES `vid_openecomp_epsdk`.`fn_lu_alert_method` (`ALERT_METHOD_CD`), |
| 1196 | CONSTRAINT `FK_FN_USER_REF_197_FN_USER` |
| 1197 | FOREIGN KEY (`MANAGER_ID`) |
| 1198 | REFERENCES `vid_openecomp_epsdk`.`fn_user` (`USER_ID`), |
| 1199 | CONSTRAINT `FK_FN_USER_REF_198_FN_USER` |
| 1200 | FOREIGN KEY (`CREATED_ID`) |
| 1201 | REFERENCES `vid_openecomp_epsdk`.`fn_user` (`USER_ID`), |
| 1202 | CONSTRAINT `FK_FN_USER_REF_199_FN_USER` |
| 1203 | FOREIGN KEY (`MODIFIED_ID`) |
| 1204 | REFERENCES `vid_openecomp_epsdk`.`fn_user` (`USER_ID`), |
| 1205 | CONSTRAINT `FK_TIMEZONE` |
| 1206 | FOREIGN KEY (`TIMEZONE`) |
| 1207 | REFERENCES `vid_openecomp_epsdk`.`fn_lu_timezone` (`TIMEZONE_ID`)) |
| 1208 | ENGINE = InnoDB |
| 1209 | AUTO_INCREMENT = 3 |
| 1210 | DEFAULT CHARACTER SET = utf8; |
| 1211 | |
| 1212 | |
| 1213 | -- ---------------------------------------------------------------------------- |
| 1214 | -- Table vid_openecomp_epsdk.fn_user_pseudo_role |
| 1215 | -- ---------------------------------------------------------------------------- |
| 1216 | CREATE TABLE IF NOT EXISTS `vid_openecomp_epsdk`.`fn_user_pseudo_role` ( |
| 1217 | `PSEUDO_ROLE_ID` INT(11) NOT NULL, |
| 1218 | `USER_ID` INT(11) NOT NULL, |
| 1219 | PRIMARY KEY (`PSEUDO_ROLE_ID`, `USER_ID`), |
| 1220 | INDEX `FK_PSEUDO_ROLE_USER_ID` (`USER_ID` ASC), |
| 1221 | CONSTRAINT `FK_PSEUDO_ROLE_PSEUDO_ROLE_ID` |
| 1222 | FOREIGN KEY (`PSEUDO_ROLE_ID`) |
| 1223 | REFERENCES `vid_openecomp_epsdk`.`fn_role` (`ROLE_ID`), |
| 1224 | CONSTRAINT `FK_PSEUDO_ROLE_USER_ID` |
| 1225 | FOREIGN KEY (`USER_ID`) |
| 1226 | REFERENCES `vid_openecomp_epsdk`.`fn_user` (`USER_ID`)) |
| 1227 | ENGINE = InnoDB |
| 1228 | DEFAULT CHARACTER SET = utf8; |
| 1229 | |
| 1230 | -- ---------------------------------------------------------------------------- |
| 1231 | -- Table vid_openecomp_epsdk.fn_user_role |
| 1232 | -- ---------------------------------------------------------------------------- |
| 1233 | CREATE TABLE IF NOT EXISTS `vid_openecomp_epsdk`.`fn_user_role` ( |
| 1234 | `USER_ID` INT(10) NOT NULL, |
| 1235 | `ROLE_ID` INT(10) NOT NULL, |
| 1236 | `PRIORITY` DECIMAL(4,0) NULL DEFAULT NULL, |
| 1237 | `APP_ID` INT(11) NOT NULL DEFAULT '1', |
| 1238 | PRIMARY KEY (`USER_ID`, `ROLE_ID`, `APP_ID`), |
| 1239 | INDEX `FN_USER_ROLE_ROLE_ID` (`ROLE_ID` ASC), |
| 1240 | INDEX `FN_USER_ROLE_USER_ID` (`USER_ID` ASC), |
| 1241 | INDEX `FK_FN_USER__REF_178_FN_APP_idx` (`APP_ID` ASC), |
| 1242 | CONSTRAINT `FK_FN_USER__REF_172_FN_USER` |
| 1243 | FOREIGN KEY (`USER_ID`) |
| 1244 | REFERENCES `vid_openecomp_epsdk`.`fn_user` (`USER_ID`), |
| 1245 | CONSTRAINT `FK_FN_USER__REF_175_FN_ROLE` |
| 1246 | FOREIGN KEY (`ROLE_ID`) |
| 1247 | REFERENCES `vid_openecomp_epsdk`.`fn_role` (`ROLE_ID`), |
| 1248 | CONSTRAINT `FK_FN_USER__REF_178_FN_APP` |
| 1249 | FOREIGN KEY (`APP_ID`) |
| 1250 | REFERENCES `vid_openecomp_epsdk`.`fn_app` (`APP_ID`)) |
| 1251 | ENGINE = InnoDB |
| 1252 | DEFAULT CHARACTER SET = utf8; |
| 1253 | |
| 1254 | -- ---------------------------------------------------------------------------- |
| 1255 | -- Table vid_openecomp_epsdk.fn_workflow |
| 1256 | -- ---------------------------------------------------------------------------- |
| 1257 | CREATE TABLE IF NOT EXISTS `vid_openecomp_epsdk`.`fn_workflow` ( |
| 1258 | `id` MEDIUMINT(9) NOT NULL AUTO_INCREMENT, |
| 1259 | `name` VARCHAR(20) NOT NULL, |
| 1260 | `description` VARCHAR(500) NULL DEFAULT NULL, |
| 1261 | `run_link` VARCHAR(300) NULL DEFAULT NULL, |
| 1262 | `suspend_link` VARCHAR(300) NULL DEFAULT NULL, |
| 1263 | `modified_link` VARCHAR(300) NULL DEFAULT NULL, |
| 1264 | `active_yn` VARCHAR(300) NULL DEFAULT NULL, |
| 1265 | `created` VARCHAR(300) NULL DEFAULT NULL, |
| 1266 | `created_by` INT(11) NULL DEFAULT NULL, |
| 1267 | `modified` VARCHAR(300) NULL DEFAULT NULL, |
| 1268 | `modified_by` INT(11) NULL DEFAULT NULL, |
| 1269 | `workflow_key` VARCHAR(50) NULL DEFAULT NULL, |
| 1270 | PRIMARY KEY (`id`), |
| 1271 | UNIQUE INDEX `name` (`name` ASC)) |
| 1272 | ENGINE = InnoDB |
| 1273 | DEFAULT CHARACTER SET = utf8; |
| 1274 | |
| 1275 | -- ---------------------------------------------------------------------------- |
| 1276 | -- Table vid_openecomp_epsdk.fn_xmltype |
| 1277 | -- ---------------------------------------------------------------------------- |
| 1278 | CREATE TABLE IF NOT EXISTS `vid_openecomp_epsdk`.`fn_xmltype` ( |
| 1279 | `ID` DECIMAL(10,0) NOT NULL, |
| 1280 | `XML_DOCUMENT` TEXT NULL DEFAULT NULL, |
| 1281 | UNIQUE INDEX `FN_XMLTYPE_ID` (`ID` ASC)) |
| 1282 | ENGINE = InnoDB |
| 1283 | DEFAULT CHARACTER SET = utf8; |
| 1284 | |
| 1285 | -- ---------------------------------------------------------------------------- |
| 1286 | -- Table vid_openecomp_epsdk.schema_info |
| 1287 | -- ---------------------------------------------------------------------------- |
| 1288 | CREATE TABLE IF NOT EXISTS `vid_openecomp_epsdk`.`schema_info` ( |
| 1289 | `SCHEMA_ID` VARCHAR(25) NOT NULL, |
| 1290 | `SCHEMA_DESC` VARCHAR(75) NOT NULL, |
| 1291 | `DATASOURCE_TYPE` VARCHAR(100) NULL DEFAULT NULL, |
| 1292 | `CONNECTION_URL` VARCHAR(200) NOT NULL, |
| 1293 | `USER_NAME` VARCHAR(45) NOT NULL, |
| 1294 | `PASSWORD` VARCHAR(45) NULL DEFAULT NULL, |
| 1295 | `DRIVER_CLASS` VARCHAR(100) NOT NULL, |
| 1296 | `MIN_POOL_SIZE` INT(11) NOT NULL, |
| 1297 | `MAX_POOL_SIZE` INT(11) NOT NULL, |
| 1298 | `IDLE_CONNECTION_TEST_PERIOD` INT(11) NOT NULL) |
| 1299 | ENGINE = InnoDB |
| 1300 | DEFAULT CHARACTER SET = utf8; |
| 1301 | -- ---------------------------------------------------------------------------- |
| 1302 | -- Table vid_openecomp_epsdk.vid_vnf |
| 1303 | -- ---------------------------------------------------------------------------- |
| 1304 | |
| 1305 | CREATE TABLE IF NOT EXISTS `vid_openecomp_epsdk`.`vid_vnf` ( |
| 1306 | `VNF_DB_ID` int(11) NOT NULL AUTO_INCREMENT, |
| 1307 | `VNF_APP_UUID` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL, |
| 1308 | `VNF_APP_INVARIANT_UUID` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL, |
| 1309 | `CREATED_DATE` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, |
| 1310 | `MODIFIED_DATE` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, |
| 1311 | PRIMARY KEY (`VNF_DB_ID`), |
| 1312 | UNIQUE KEY `vid_vnf_VNF_ID_uindex` (`VNF_APP_UUID`,`VNF_APP_INVARIANT_UUID`) |
| 1313 | ) ENGINE=InnoDB AUTO_INCREMENT=10 DEFAULT CHARSET=utf8; |
| 1314 | |
| 1315 | -- ---------------------------------------------------------------------------- |
| 1316 | -- Table vid_openecomp_epsdk.vid_workflow |
| 1317 | -- ---------------------------------------------------------------------------- |
| 1318 | |
| 1319 | CREATE TABLE IF NOT EXISTS `vid_openecomp_epsdk`.`vid_workflow` ( |
| 1320 | `WORKFLOW_DB_ID` int(11) NOT NULL AUTO_INCREMENT, |
| 1321 | `WORKFLOW_APP_NAME` varchar(50) COLLATE utf8_bin NOT NULL, |
| 1322 | `CREATED_DATE` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, |
| 1323 | `MODIFIED_DATE` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, |
| 1324 | PRIMARY KEY (`WORKFLOW_DB_ID`), |
| 1325 | UNIQUE KEY `vid_workflow_workflow_uuid_uindex` (`WORKFLOW_APP_NAME`), |
| 1326 | UNIQUE KEY `vid_workflow_WORKFLOW_ID_uindex` (`WORKFLOW_DB_ID`) |
| 1327 | ) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8 COLLATE=utf8_bin; |
| 1328 | |
| 1329 | -- ---------------------------------------------------------------------------- |
| 1330 | -- Table vid_openecomp_epsdk.vid_vnf_workflow |
| 1331 | -- ---------------------------------------------------------------------------- |
| 1332 | |
| 1333 | |
| 1334 | CREATE TABLE IF NOT EXISTS `vid_openecomp_epsdk`.`vid_vnf_workflow` ( |
| 1335 | `VNF_DB_ID` int(11) NOT NULL, |
| 1336 | `WORKFLOW_DB_ID` int(11) NOT NULL, |
| 1337 | KEY `vid_vnf_workflow_vid_vnf_VND_ID_fk` (`VNF_DB_ID`), |
| 1338 | KEY `vid_vnf_workflow_vid_workflow_WORKFLOW_ID_fk` (`WORKFLOW_DB_ID`), |
| 1339 | CONSTRAINT `vid_vnf_workflow_vid_vnf_VND_ID_fk` FOREIGN KEY (`VNF_DB_ID`) REFERENCES `vid_vnf` (`VNF_DB_ID`), |
| 1340 | CONSTRAINT `vid_vnf_workflow_vid_workflow_WORKFLOW_ID_fk` FOREIGN KEY (`WORKFLOW_DB_ID`) REFERENCES `vid_openecomp_epsdk`.`vid_workflow` (`WORKFLOW_DB_ID`) |
| 1341 | ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin; |
| 1342 | |
| 1343 | |
| 1344 | -- ---------------------------------------------------------------------------- |
| 1345 | -- Table vid_openecomp_epsdk.vid_category_parameter |
| 1346 | -- ---------------------------------------------------------------------------- |
| 1347 | |
| 1348 | |
| 1349 | CREATE TABLE IF NOT EXISTS `vid_category_parameter` ( |
| 1350 | `CATEGORY_ID` INT(11) NOT NULL AUTO_INCREMENT, |
| 1351 | `NAME` VARCHAR(255) NULL COLLATE 'utf8_bin', |
| 1352 | `ID_SUPPORTED` TINYINT(1) NOT NULL DEFAULT '0', |
| 1353 | `CREATED_DATE` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, |
| 1354 | `MODIFIED_DATE` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, |
| 1355 | PRIMARY KEY (`CATEGORY_ID`) |
| 1356 | ) COLLATE='utf8_bin' ENGINE=InnoDB AUTO_INCREMENT=5; |
| 1357 | |
| 1358 | ------------------------------------------------------------------------------- |
| 1359 | |
| 1360 | ALTER TABLE `vid_category_parameter` |
| 1361 | ADD COLUMN if not exists `FAMILY` ENUM('PARAMETER_STANDARDIZATION','TENANT_ISOLATION') NOT NULL DEFAULT 'PARAMETER_STANDARDIZATION' AFTER `ID_SUPPORTED`; |
| 1362 | -- ---------------------------------------------------------------------------- |
| 1363 | -- Table vid_openecomp_epsdk.vid_category_parameter |
| 1364 | -- ---------------------------------------------------------------------------- |
| 1365 | CREATE TABLE IF NOT EXISTS `vid_category_parameter_option` ( |
| 1366 | `CATEGORY_OPT_DB_ID` INT(11) NOT NULL AUTO_INCREMENT, |
| 1367 | `CATEGORY_OPT_APP_ID` VARCHAR(50) NOT NULL COLLATE 'utf8_bin', |
| 1368 | `NAME` VARCHAR(50) NULL COLLATE 'utf8_bin', |
| 1369 | `CATEGORY_ID` INT(11) NOT NULL DEFAULT '0', |
| 1370 | `CREATED_DATE` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, |
| 1371 | `MODIFIED_DATE` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, |
| 1372 | PRIMARY KEY (`CATEGORY_OPT_DB_ID`), |
| 1373 | UNIQUE INDEX `APP_ID_CATEGORY_UNIQUE` (`CATEGORY_ID`, `CATEGORY_OPT_APP_ID`), |
| 1374 | UNIQUE INDEX `NAME_CATEGORY_UNIQUE` (`CATEGORY_ID`, `NAME`), |
| 1375 | CONSTRAINT `FK_OWNING_ENTITY_OPTIONS_TO_OE` FOREIGN KEY (`CATEGORY_ID`) REFERENCES `vid_openecomp_epsdk`.`vid_category_parameter` (`CATEGORY_ID`) |
| 1376 | ) COLLATE='utf8_bin' ENGINE=InnoDB AUTO_INCREMENT=25; |
| 1377 | |
| 1378 | |
| 1379 | -- ---------------------------------------------------------------------------- |
| 1380 | -- View vid_openecomp_epsdk.v_url_access |
| 1381 | -- ---------------------------------------------------------------------------- |
| 1382 | CREATE OR REPLACE ALGORITHM=UNDEFINED SQL SECURITY DEFINER VIEW `v_url_access` AS select distinct `m`.`ACTION` AS `URL`,`m`.`FUNCTION_CD` AS `FUNCTION_CD` from `fn_menu` `m` where (`m`.`ACTION` is not null) union select distinct `t`.`ACTION` AS `URL`,`t`.`FUNCTION_CD` AS `FUNCTION_CD` from `fn_tab` `t` where (`t`.`ACTION` is not null) union select `r`.`RESTRICTED_URL` AS `URL`,`r`.`FUNCTION_CD` AS `FUNCTION_CD` from `fn_restricted_url` `r`; |
| 1383 | SET FOREIGN_KEY_CHECKS = 1; |
| 1384 | |