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