blob: efd4d05f412fefb9fcc49b2b8745587470ec0f56 [file] [log] [blame]
jimmydot3982f4f2017-05-07 14:58:24 -04001/*-
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
28SET FOREIGN_KEY_CHECKS = 0;
29
30-- ----------------------------------------------------------------------------
31-- Schema vid_openecomp_epsdk
32-- ----------------------------------------------------------------------------
33CREATE SCHEMA IF NOT EXISTS `vid_openecomp_epsdk` ;
34
35USE vid_openecomp_epsdk;
36-- ----------------------------------------------------------------------------
37-- Table vid_openecomp_epsdk.cr_favorite_reports
38-- ----------------------------------------------------------------------------
39CREATE 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`))
43ENGINE = InnoDB
44DEFAULT CHARACTER SET = utf8;
45
46-- ----------------------------------------------------------------------------
47-- Table vid_openecomp_epsdk.cr_filehist_log
48-- ----------------------------------------------------------------------------
49CREATE 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)
54ENGINE = InnoDB
55DEFAULT CHARACTER SET = utf8;
56
57-- ----------------------------------------------------------------------------
58-- Table vid_openecomp_epsdk.cr_folder
59-- ----------------------------------------------------------------------------
60CREATE 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`),
Ofir Sonsino1cfb0872018-01-31 17:19:00 +020069 INDEX `FK_PARENT_KEY_CR_FOLDER` (`PARENT_FOLDER_ID` ASC),
70 CONSTRAINT `FK_PARENT_KEY_CR_FOLDER`
jimmydot3982f4f2017-05-07 14:58:24 -040071 FOREIGN KEY (`PARENT_FOLDER_ID`)
72 REFERENCES `vid_openecomp_epsdk`.`cr_folder` (`FOLDER_ID`))
73ENGINE = InnoDB
74DEFAULT CHARACTER SET = utf8;
75
76-- ----------------------------------------------------------------------------
77-- Table vid_openecomp_epsdk.cr_folder_access
78-- ----------------------------------------------------------------------------
79CREATE 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`))
87ENGINE = InnoDB
88DEFAULT CHARACTER SET = utf8;
89
90-- ----------------------------------------------------------------------------
91-- Table vid_openecomp_epsdk.cr_hist_user_map
92-- ----------------------------------------------------------------------------
93CREATE 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`),
Ofir Sonsino1cfb0872018-01-31 17:19:00 +020097 INDEX `SYS_C0014617` (`USER_ID` ASC),
98 CONSTRAINT `SYS_C0014616`
jimmydot3982f4f2017-05-07 14:58:24 -040099 FOREIGN KEY (`HIST_ID`)
100 REFERENCES `vid_openecomp_epsdk`.`cr_report_file_history` (`HIST_ID`),
Ofir Sonsino1cfb0872018-01-31 17:19:00 +0200101 CONSTRAINT `SYS_C0014617`
jimmydot3982f4f2017-05-07 14:58:24 -0400102 FOREIGN KEY (`USER_ID`)
103 REFERENCES `vid_openecomp_epsdk`.`fn_user` (`USER_ID`))
104ENGINE = InnoDB
105DEFAULT CHARACTER SET = utf8;
106
107-- ----------------------------------------------------------------------------
108-- Table vid_openecomp_epsdk.cr_lu_file_type
109-- ----------------------------------------------------------------------------
110CREATE 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`))
116ENGINE = InnoDB
117DEFAULT CHARACTER SET = utf8;
118
119-- ----------------------------------------------------------------------------
120-- Table vid_openecomp_epsdk.cr_raptor_action_img
121-- ----------------------------------------------------------------------------
122CREATE 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`))
126ENGINE = InnoDB
127DEFAULT CHARACTER SET = utf8;
128
129-- ----------------------------------------------------------------------------
130-- Table vid_openecomp_epsdk.cr_raptor_pdf_img
131-- ----------------------------------------------------------------------------
132CREATE 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`))
136ENGINE = InnoDB
137DEFAULT CHARACTER SET = utf8;
138
139-- ----------------------------------------------------------------------------
140-- Table vid_openecomp_epsdk.cr_remote_schema_info
141-- ----------------------------------------------------------------------------
142CREATE 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`))
147ENGINE = InnoDB
148DEFAULT CHARACTER SET = utf8;
149
150-- ----------------------------------------------------------------------------
151-- Table vid_openecomp_epsdk.cr_report
152-- ----------------------------------------------------------------------------
153CREATE 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`),
Ofir Sonsino1cfb0872018-01-31 17:19:00 +0200170 INDEX `CR_REPORT_CREATE_IDPUBLIC_YNTITLE` (`CREATE_ID` ASC, `PUBLIC_YN` ASC, `TITLE` ASC))
jimmydot3982f4f2017-05-07 14:58:24 -0400171ENGINE = InnoDB
172DEFAULT CHARACTER SET = utf8;
173
174-- ----------------------------------------------------------------------------
175-- Table vid_openecomp_epsdk.cr_report_access
176-- ----------------------------------------------------------------------------
177CREATE 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`),
Ofir Sonsino1cfb0872018-01-31 17:19:00 +0200184 CONSTRAINT `FK_CR_REPOR_REF_8550_CR_REPOR`
jimmydot3982f4f2017-05-07 14:58:24 -0400185 FOREIGN KEY (`REP_ID`)
186 REFERENCES `vid_openecomp_epsdk`.`cr_report` (`REP_ID`))
187ENGINE = InnoDB
188DEFAULT CHARACTER SET = utf8;
189
190-- ----------------------------------------------------------------------------
191-- Table vid_openecomp_epsdk.cr_report_dwnld_log
192-- ----------------------------------------------------------------------------
193CREATE 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)
200ENGINE = InnoDB
201DEFAULT CHARACTER SET = utf8;
202
203-- ----------------------------------------------------------------------------
204-- Table vid_openecomp_epsdk.cr_report_email_sent_log
205-- ----------------------------------------------------------------------------
206CREATE 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`),
Ofir Sonsino1cfb0872018-01-31 17:19:00 +0200216 INDEX `FK_CR_REPORT_REP_ID` (`REP_ID` ASC),
217 CONSTRAINT `FK_CR_REPORT_REP_ID`
jimmydot3982f4f2017-05-07 14:58:24 -0400218 FOREIGN KEY (`REP_ID`)
219 REFERENCES `vid_openecomp_epsdk`.`cr_report` (`REP_ID`))
220ENGINE = InnoDB
221DEFAULT CHARACTER SET = utf8;
222
223-- ----------------------------------------------------------------------------
224-- Table vid_openecomp_epsdk.cr_report_file_history
225-- ----------------------------------------------------------------------------
226CREATE 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`),
Ofir Sonsino1cfb0872018-01-31 17:19:00 +0200244 INDEX `SYS_C0014614` (`FILE_TYPE_ID` ASC),
245 INDEX `SYS_C0014615` (`REP_ID` ASC),
246 CONSTRAINT `SYS_C0014614`
jimmydot3982f4f2017-05-07 14:58:24 -0400247 FOREIGN KEY (`FILE_TYPE_ID`)
248 REFERENCES `vid_openecomp_epsdk`.`cr_lu_file_type` (`LOOKUP_ID`),
Ofir Sonsino1cfb0872018-01-31 17:19:00 +0200249 CONSTRAINT `SYS_C0014615`
jimmydot3982f4f2017-05-07 14:58:24 -0400250 FOREIGN KEY (`REP_ID`)
251 REFERENCES `vid_openecomp_epsdk`.`cr_report` (`REP_ID`))
252ENGINE = InnoDB
253DEFAULT CHARACTER SET = utf8;
254
255-- ----------------------------------------------------------------------------
256-- Table vid_openecomp_epsdk.cr_report_log
257-- ----------------------------------------------------------------------------
258CREATE 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,
Ofir Sonsino1cfb0872018-01-31 17:19:00 +0200265 INDEX `FK_CR_REPOR_REF_17645_CR_REPOR` (`REP_ID` ASC),
266 CONSTRAINT `FK_CR_REPOR_REF_17645_CR_REPOR`
jimmydot3982f4f2017-05-07 14:58:24 -0400267 FOREIGN KEY (`REP_ID`)
268 REFERENCES `vid_openecomp_epsdk`.`cr_report` (`REP_ID`))
269ENGINE = InnoDB
270DEFAULT CHARACTER SET = utf8;
271
272-- ----------------------------------------------------------------------------
273-- Table vid_openecomp_epsdk.cr_report_schedule
274-- ----------------------------------------------------------------------------
275CREATE 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`),
Ofir Sonsino1cfb0872018-01-31 17:19:00 +0200295 INDEX `FK_CR_REPOR_REF_14707_CR_REPOR` (`REP_ID` ASC),
296 CONSTRAINT `FK_CR_REPOR_REF_14707_CR_REPOR`
jimmydot3982f4f2017-05-07 14:58:24 -0400297 FOREIGN KEY (`REP_ID`)
298 REFERENCES `vid_openecomp_epsdk`.`cr_report` (`REP_ID`))
299ENGINE = InnoDB
300DEFAULT CHARACTER SET = utf8;
301
302-- ----------------------------------------------------------------------------
303-- Table vid_openecomp_epsdk.cr_report_schedule_users
304-- ----------------------------------------------------------------------------
305CREATE 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`),
Ofir Sonsino1cfb0872018-01-31 17:19:00 +0200312 CONSTRAINT `FK_CR_REPOR_REF_14716_CR_REPOR`
jimmydot3982f4f2017-05-07 14:58:24 -0400313 FOREIGN KEY (`SCHEDULE_ID`)
314 REFERENCES `vid_openecomp_epsdk`.`cr_report_schedule` (`SCHEDULE_ID`))
315ENGINE = InnoDB
316DEFAULT CHARACTER SET = utf8;
317
318-- ----------------------------------------------------------------------------
319-- Table vid_openecomp_epsdk.cr_report_template_map
320-- ----------------------------------------------------------------------------
321CREATE 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`))
325ENGINE = InnoDB
326DEFAULT CHARACTER SET = utf8;
327
328-- ----------------------------------------------------------------------------
329-- Table vid_openecomp_epsdk.cr_schedule_activity_log
330-- ----------------------------------------------------------------------------
331CREATE 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)
336ENGINE = InnoDB
337DEFAULT CHARACTER SET = utf8;
338
339-- ----------------------------------------------------------------------------
340-- Table vid_openecomp_epsdk.cr_table_join
341-- ----------------------------------------------------------------------------
342CREATE 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,
Ofir Sonsino1cfb0872018-01-31 17:19:00 +0200346 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`
jimmydot3982f4f2017-05-07 14:58:24 -0400349 FOREIGN KEY (`SRC_TABLE_NAME`)
350 REFERENCES `vid_openecomp_epsdk`.`cr_table_source` (`TABLE_NAME`),
Ofir Sonsino1cfb0872018-01-31 17:19:00 +0200351 CONSTRAINT `FK_CR_TABLE_REF_315_CR_TAB`
jimmydot3982f4f2017-05-07 14:58:24 -0400352 FOREIGN KEY (`DEST_TABLE_NAME`)
353 REFERENCES `vid_openecomp_epsdk`.`cr_table_source` (`TABLE_NAME`))
354ENGINE = InnoDB
355DEFAULT CHARACTER SET = utf8;
356
357-- ----------------------------------------------------------------------------
358-- Table vid_openecomp_epsdk.cr_table_role
359-- ----------------------------------------------------------------------------
360CREATE 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`),
Ofir Sonsino1cfb0872018-01-31 17:19:00 +0200364 CONSTRAINT `FK_CR_TABLE_REF_32384_CR_TABLE`
jimmydot3982f4f2017-05-07 14:58:24 -0400365 FOREIGN KEY (`TABLE_NAME`)
366 REFERENCES `vid_openecomp_epsdk`.`cr_table_source` (`TABLE_NAME`))
367ENGINE = InnoDB
368DEFAULT CHARACTER SET = utf8;
369
370-- ----------------------------------------------------------------------------
371-- Table vid_openecomp_epsdk.cr_table_source
372-- ----------------------------------------------------------------------------
373CREATE 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`))
382ENGINE = InnoDB
383DEFAULT CHARACTER SET = utf8;
384
385-- ----------------------------------------------------------------------------
Ofir Sonsino1cfb0872018-01-31 17:19:00 +0200386-- Table vid_portal.fn_app
jimmydot3982f4f2017-05-07 14:58:24 -0400387-- ----------------------------------------------------------------------------
388CREATE 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`))
409ENGINE = InnoDB
410AUTO_INCREMENT = 2
411DEFAULT CHARACTER SET = utf8;
412
413-- ----------------------------------------------------------------------------
Ofir Sonsino1cfb0872018-01-31 17:19:00 +0200414-- Table vid_openecomp_epsdk.fn_app_mme_cpu
415-- ----------------------------------------------------------------------------
416CREATE 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)
425ENGINE = InnoDB
426DEFAULT CHARACTER SET = utf8;
427
428-- ----------------------------------------------------------------------------
jimmydot3982f4f2017-05-07 14:58:24 -0400429-- Table vid_openecomp_epsdk.fn_audit_action
430-- ----------------------------------------------------------------------------
431CREATE 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`))
439ENGINE = InnoDB
440DEFAULT CHARACTER SET = utf8;
441
442-- ----------------------------------------------------------------------------
443-- Table vid_openecomp_epsdk.fn_audit_action_log
444-- ----------------------------------------------------------------------------
445CREATE 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`))
455ENGINE = InnoDB
456DEFAULT CHARACTER SET = utf8;
457
458-- ----------------------------------------------------------------------------
459-- Table vid_openecomp_epsdk.fn_audit_log
460-- ----------------------------------------------------------------------------
461CREATE 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`),
Ofir Sonsino1cfb0872018-01-31 17:19:00 +0200470 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`),
jimmydot3982f4f2017-05-07 14:58:24 -0400475 CONSTRAINT `FK_FN_AUDIT_REF_209_FN_USER`
476 FOREIGN KEY (`USER_ID`)
Ofir Sonsino1cfb0872018-01-31 17:19:00 +0200477 REFERENCES `vid_openecomp_epsdk`.`fn_user` (`USER_ID`))
jimmydot3982f4f2017-05-07 14:58:24 -0400478ENGINE = InnoDB
479DEFAULT CHARACTER SET = utf8;
480
481-- ----------------------------------------------------------------------------
482-- Table vid_openecomp_epsdk.fn_broadcast_message
483-- ----------------------------------------------------------------------------
484CREATE 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`))
494ENGINE = InnoDB
495DEFAULT CHARACTER SET = utf8;
496
497-- ----------------------------------------------------------------------------
498-- Table vid_openecomp_epsdk.fn_chat_logs
499-- ----------------------------------------------------------------------------
500CREATE 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`))
507ENGINE = InnoDB
508DEFAULT CHARACTER SET = utf8;
509
510-- ----------------------------------------------------------------------------
511-- Table vid_openecomp_epsdk.fn_chat_room
512-- ----------------------------------------------------------------------------
513CREATE 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`))
521ENGINE = InnoDB
522DEFAULT CHARACTER SET = utf8;
523
524-- ----------------------------------------------------------------------------
525-- Table vid_openecomp_epsdk.fn_chat_users
526-- ----------------------------------------------------------------------------
527CREATE 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`))
534ENGINE = InnoDB
535DEFAULT CHARACTER SET = utf8;
536
537-- ----------------------------------------------------------------------------
538-- Table vid_openecomp_epsdk.fn_datasource
539-- ----------------------------------------------------------------------------
540CREATE 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`))
554ENGINE = InnoDB
Ofir Sonsino1cfb0872018-01-31 17:19:00 +0200555AUTO_INCREMENT = 4
jimmydot3982f4f2017-05-07 14:58:24 -0400556DEFAULT CHARACTER SET = utf8;
557
558-- ----------------------------------------------------------------------------
559-- Table vid_openecomp_epsdk.fn_function
560-- ----------------------------------------------------------------------------
561CREATE 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`))
565ENGINE = InnoDB
566DEFAULT CHARACTER SET = utf8;
567
568-- ----------------------------------------------------------------------------
Ofir Sonsino1cfb0872018-01-31 17:19:00 +0200569-- Table vid_openecomp_epsdk.fn_license
570-- ----------------------------------------------------------------------------
571CREATE 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`))
586ENGINE = InnoDB
587DEFAULT CHARACTER SET = utf8;
588
589-- ----------------------------------------------------------------------------
590-- Table vid_openecomp_epsdk.fn_license_app
591-- ----------------------------------------------------------------------------
592CREATE 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))
597ENGINE = InnoDB
598DEFAULT CHARACTER SET = utf8;
599
600-- ----------------------------------------------------------------------------
601-- Table vid_openecomp_epsdk.fn_license_contact
602-- ----------------------------------------------------------------------------
603CREATE 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`))
608ENGINE = InnoDB
609DEFAULT CHARACTER SET = utf8;
610
611-- ----------------------------------------------------------------------------
612-- Table vid_openecomp_epsdk.fn_license_history
613-- ----------------------------------------------------------------------------
614CREATE 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`))
625ENGINE = InnoDB
626DEFAULT CHARACTER SET = utf8;
627
628-- ----------------------------------------------------------------------------
629-- Table vid_openecomp_epsdk.fn_license_version
630-- ----------------------------------------------------------------------------
631CREATE 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`))
635ENGINE = InnoDB
636DEFAULT CHARACTER SET = utf8;
637
638-- ----------------------------------------------------------------------------
jimmydot3982f4f2017-05-07 14:58:24 -0400639-- Table vid_openecomp_epsdk.fn_lu_activity
640-- ----------------------------------------------------------------------------
641CREATE 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`))
645ENGINE = InnoDB
646DEFAULT CHARACTER SET = utf8;
647
648-- ----------------------------------------------------------------------------
649-- Table vid_openecomp_epsdk.fn_lu_alert_method
650-- ----------------------------------------------------------------------------
651CREATE 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`))
655ENGINE = InnoDB
656DEFAULT CHARACTER SET = utf8;
657
658-- ----------------------------------------------------------------------------
659-- Table vid_openecomp_epsdk.fn_lu_broadcast_site
660-- ----------------------------------------------------------------------------
661CREATE 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`))
665ENGINE = InnoDB
666DEFAULT CHARACTER SET = utf8;
667
668-- ----------------------------------------------------------------------------
Ofir Sonsino1cfb0872018-01-31 17:19:00 +0200669-- Table vid_openecomp_epsdk.fn_lu_call_times
670-- ----------------------------------------------------------------------------
671CREATE 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`))
676ENGINE = InnoDB
677DEFAULT CHARACTER SET = utf8;
678
679-- ----------------------------------------------------------------------------
680-- Table vid_openecomp_epsdk.fn_lu_city
681-- ----------------------------------------------------------------------------
682CREATE 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`))
687ENGINE = InnoDB
688DEFAULT CHARACTER SET = utf8;
689
690-- ----------------------------------------------------------------------------
691-- Table vid_openecomp_epsdk.fn_lu_country
692-- ----------------------------------------------------------------------------
693CREATE 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`))
699ENGINE = InnoDB
700DEFAULT CHARACTER SET = utf8;
701
702-- ----------------------------------------------------------------------------
jimmydot3982f4f2017-05-07 14:58:24 -0400703-- Table vid_openecomp_epsdk.fn_lu_menu_set
704-- ----------------------------------------------------------------------------
705CREATE 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`))
709ENGINE = InnoDB
710DEFAULT CHARACTER SET = utf8;
711
712-- ----------------------------------------------------------------------------
jimmydot3982f4f2017-05-07 14:58:24 -0400713-- Table vid_openecomp_epsdk.fn_lu_priority
714-- ----------------------------------------------------------------------------
715CREATE 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`))
721ENGINE = InnoDB
722DEFAULT CHARACTER SET = utf8;
723
724-- ----------------------------------------------------------------------------
725-- Table vid_openecomp_epsdk.fn_lu_role_type
726-- ----------------------------------------------------------------------------
727CREATE 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`))
731ENGINE = InnoDB
732DEFAULT CHARACTER SET = utf8;
733
734-- ----------------------------------------------------------------------------
Ofir Sonsino1cfb0872018-01-31 17:19:00 +0200735-- Table vid_openecomp_epsdk.fn_lu_state
736-- ----------------------------------------------------------------------------
737CREATE 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`))
741ENGINE = InnoDB
742DEFAULT CHARACTER SET = utf8;
743
744-- ----------------------------------------------------------------------------
jimmydot3982f4f2017-05-07 14:58:24 -0400745-- Table vid_openecomp_epsdk.fn_lu_tab_set
746-- ----------------------------------------------------------------------------
747CREATE 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`))
751ENGINE = InnoDB
752DEFAULT CHARACTER SET = utf8;
753
754-- ----------------------------------------------------------------------------
755-- Table vid_openecomp_epsdk.fn_lu_timezone
756-- ----------------------------------------------------------------------------
757CREATE 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`))
762ENGINE = InnoDB
763DEFAULT CHARACTER SET = utf8;
764
765-- ----------------------------------------------------------------------------
766-- Table vid_openecomp_epsdk.fn_menu
767-- ----------------------------------------------------------------------------
768CREATE 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),
Ofir Sonsino1cfb0872018-01-31 17:19:00 +0200786 INDEX `FN_MENU_FUNCTION_CD` (`FUNCTION_CD` ASC),
jimmydot3982f4f2017-05-07 14:58:24 -0400787 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`))
796ENGINE = InnoDB
Ofir Sonsino1cfb0872018-01-31 17:19:00 +0200797AUTO_INCREMENT = 150029
jimmydot3982f4f2017-05-07 14:58:24 -0400798DEFAULT CHARACTER SET = utf8;
799
800-- ----------------------------------------------------------------------------
801-- Table vid_openecomp_epsdk.fn_org
802-- ----------------------------------------------------------------------------
803CREATE 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`),
Ofir Sonsino1cfb0872018-01-31 17:19:00 +0200808 INDEX `FN_ORG_ACCESS_CD` (`ACCESS_CD` ASC))
jimmydot3982f4f2017-05-07 14:58:24 -0400809ENGINE = InnoDB
810DEFAULT CHARACTER SET = utf8;
811
812-- ----------------------------------------------------------------------------
813-- Table vid_openecomp_epsdk.fn_qz_blob_triggers
814-- ----------------------------------------------------------------------------
815CREATE 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`))
825ENGINE = InnoDB
826DEFAULT CHARACTER SET = utf8;
827
828-- ----------------------------------------------------------------------------
829-- Table vid_openecomp_epsdk.fn_qz_calendars
830-- ----------------------------------------------------------------------------
831CREATE 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`))
836ENGINE = InnoDB
837DEFAULT CHARACTER SET = utf8;
838
839-- ----------------------------------------------------------------------------
840-- Table vid_openecomp_epsdk.fn_qz_cron_triggers
841-- ----------------------------------------------------------------------------
842CREATE 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`))
852ENGINE = InnoDB
853DEFAULT CHARACTER SET = utf8;
854
855-- ----------------------------------------------------------------------------
856-- Table vid_openecomp_epsdk.fn_qz_fired_triggers
857-- ----------------------------------------------------------------------------
858CREATE 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`),
Ofir Sonsino1cfb0872018-01-31 17:19:00 +0200873 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))
jimmydot3982f4f2017-05-07 14:58:24 -0400879ENGINE = InnoDB
880DEFAULT CHARACTER SET = utf8;
881
882-- ----------------------------------------------------------------------------
883-- Table vid_openecomp_epsdk.fn_qz_job_details
884-- ----------------------------------------------------------------------------
885CREATE 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`),
Ofir Sonsino1cfb0872018-01-31 17:19:00 +0200897 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))
jimmydot3982f4f2017-05-07 14:58:24 -0400899ENGINE = InnoDB
900DEFAULT CHARACTER SET = utf8;
901
902-- ----------------------------------------------------------------------------
903-- Table vid_openecomp_epsdk.fn_qz_locks
904-- ----------------------------------------------------------------------------
905CREATE 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`))
909ENGINE = InnoDB
910DEFAULT CHARACTER SET = utf8;
911
912-- ----------------------------------------------------------------------------
913-- Table vid_openecomp_epsdk.fn_qz_paused_trigger_grps
914-- ----------------------------------------------------------------------------
915CREATE 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`))
919ENGINE = InnoDB
920DEFAULT CHARACTER SET = utf8;
921
922-- ----------------------------------------------------------------------------
923-- Table vid_openecomp_epsdk.fn_qz_scheduler_state
924-- ----------------------------------------------------------------------------
925CREATE 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`))
931ENGINE = InnoDB
932DEFAULT CHARACTER SET = utf8;
933
934-- ----------------------------------------------------------------------------
935-- Table vid_openecomp_epsdk.fn_qz_simple_triggers
936-- ----------------------------------------------------------------------------
937CREATE 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`))
948ENGINE = InnoDB
949DEFAULT CHARACTER SET = utf8;
950
951-- ----------------------------------------------------------------------------
952-- Table vid_openecomp_epsdk.fn_qz_simprop_triggers
953-- ----------------------------------------------------------------------------
954CREATE 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`))
973ENGINE = InnoDB
974DEFAULT CHARACTER SET = utf8;
975
976-- ----------------------------------------------------------------------------
977-- Table vid_openecomp_epsdk.fn_qz_triggers
978-- ----------------------------------------------------------------------------
979CREATE 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`),
Ofir Sonsino1cfb0872018-01-31 17:19:00 +0200997 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),
jimmydot3982f4f2017-05-07 14:58:24 -04001009 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`))
1012ENGINE = InnoDB
1013DEFAULT CHARACTER SET = utf8;
1014
1015-- ----------------------------------------------------------------------------
1016-- Table vid_openecomp_epsdk.fn_restricted_url
1017-- ----------------------------------------------------------------------------
1018CREATE 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`),
Ofir Sonsino1cfb0872018-01-31 17:19:00 +02001022 INDEX `FK_RESTRICTED_URL_FUNCTION_CD` (`FUNCTION_CD` ASC),
1023 CONSTRAINT `FK_RESTRICTED_URL_FUNCTION_CD`
jimmydot3982f4f2017-05-07 14:58:24 -04001024 FOREIGN KEY (`FUNCTION_CD`)
1025 REFERENCES `vid_openecomp_epsdk`.`fn_function` (`FUNCTION_CD`))
1026ENGINE = InnoDB
1027DEFAULT CHARACTER SET = utf8;
1028
1029-- ----------------------------------------------------------------------------
1030-- Table vid_openecomp_epsdk.fn_role
1031-- ----------------------------------------------------------------------------
1032CREATE TABLE IF NOT EXISTS `vid_openecomp_epsdk`.`fn_role` (
1033 `ROLE_ID` INT(11) NOT NULL AUTO_INCREMENT,
Ofir Sonsino1cfb0872018-01-31 17:19:00 +02001034 `ROLE_NAME` VARCHAR(255) NOT NULL,
jimmydot3982f4f2017-05-07 14:58:24 -04001035 `ACTIVE_YN` VARCHAR(1) NOT NULL DEFAULT 'Y',
1036 `PRIORITY` DECIMAL(4,0) NULL DEFAULT NULL,
1037 PRIMARY KEY (`ROLE_ID`))
1038ENGINE = InnoDB
1039AUTO_INCREMENT = 17
1040DEFAULT CHARACTER SET = utf8;
1041
Ofir Sonsino1cfb0872018-01-31 17:19:00 +02001042ALTER TABLE `vid_openecomp_epsdk`.`fn_role` MODIFY `ROLE_NAME` VARCHAR (255);
1043
1044
jimmydot3982f4f2017-05-07 14:58:24 -04001045-- ----------------------------------------------------------------------------
1046-- Table vid_openecomp_epsdk.fn_role_composite
1047-- ----------------------------------------------------------------------------
1048CREATE 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`))
1059ENGINE = InnoDB
1060DEFAULT CHARACTER SET = utf8;
1061
1062-- ----------------------------------------------------------------------------
1063-- Table vid_openecomp_epsdk.fn_role_function
1064-- ----------------------------------------------------------------------------
1065CREATE 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`),
Ofir Sonsino1cfb0872018-01-31 17:19:00 +02001069 INDEX `FN_ROLE_FUNCTION_FUNCTION_CD` (`FUNCTION_CD` ASC),
1070 INDEX `FN_ROLE_FUNCTION_ROLE_ID` (`ROLE_ID` ASC),
jimmydot3982f4f2017-05-07 14:58:24 -04001071 CONSTRAINT `FK_FN_ROLE__REF_198_FN_ROLE`
1072 FOREIGN KEY (`ROLE_ID`)
1073 REFERENCES `vid_openecomp_epsdk`.`fn_role` (`ROLE_ID`),
Ofir Sonsino1cfb0872018-01-31 17:19:00 +02001074 CONSTRAINT `FK_FN_ROLE__REF_201_FN_FUNCT`
jimmydot3982f4f2017-05-07 14:58:24 -04001075 FOREIGN KEY (`FUNCTION_CD`)
1076 REFERENCES `vid_openecomp_epsdk`.`fn_function` (`FUNCTION_CD`))
1077ENGINE = InnoDB
1078DEFAULT CHARACTER SET = utf8;
1079
1080-- ----------------------------------------------------------------------------
1081-- Table vid_openecomp_epsdk.fn_schedule_workflows
1082-- ----------------------------------------------------------------------------
1083CREATE 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`))
1093ENGINE = InnoDB
1094DEFAULT CHARACTER SET = utf8;
1095
1096-- ----------------------------------------------------------------------------
1097-- Table vid_openecomp_epsdk.fn_tab
1098-- ----------------------------------------------------------------------------
1099CREATE 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`),
Ofir Sonsino1cfb0872018-01-31 17:19:00 +02001110 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`
jimmydot3982f4f2017-05-07 14:58:24 -04001113 FOREIGN KEY (`FUNCTION_CD`)
1114 REFERENCES `vid_openecomp_epsdk`.`fn_function` (`FUNCTION_CD`),
Ofir Sonsino1cfb0872018-01-31 17:19:00 +02001115 CONSTRAINT `FK_FN_TAB_SET_CD`
jimmydot3982f4f2017-05-07 14:58:24 -04001116 FOREIGN KEY (`TAB_SET_CD`)
1117 REFERENCES `vid_openecomp_epsdk`.`fn_lu_tab_set` (`TAB_SET_CD`))
1118ENGINE = InnoDB
1119DEFAULT CHARACTER SET = utf8;
1120
1121-- ----------------------------------------------------------------------------
1122-- Table vid_openecomp_epsdk.fn_tab_selected
1123-- ----------------------------------------------------------------------------
1124CREATE 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`),
Ofir Sonsino1cfb0872018-01-31 17:19:00 +02001128 CONSTRAINT `FK_FN_TAB_SELECTED_TAB_CD`
jimmydot3982f4f2017-05-07 14:58:24 -04001129 FOREIGN KEY (`SELECTED_TAB_CD`)
1130 REFERENCES `vid_openecomp_epsdk`.`fn_tab` (`TAB_CD`))
1131ENGINE = InnoDB
1132DEFAULT CHARACTER SET = utf8;
1133
1134-- ----------------------------------------------------------------------------
1135-- Table vid_openecomp_epsdk.fn_user
1136-- ----------------------------------------------------------------------------
1137CREATE 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`),
Ofir Sonsino1cfb0872018-01-31 17:19:00 +02001181 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`
jimmydot3982f4f2017-05-07 14:58:24 -04001191 FOREIGN KEY (`ORG_ID`)
1192 REFERENCES `vid_openecomp_epsdk`.`fn_org` (`ORG_ID`),
Ofir Sonsino1cfb0872018-01-31 17:19:00 +02001193 CONSTRAINT `FK_FN_USER_REF_123_FN_LU_AL`
jimmydot3982f4f2017-05-07 14:58:24 -04001194 FOREIGN KEY (`ALERT_METHOD_CD`)
1195 REFERENCES `vid_openecomp_epsdk`.`fn_lu_alert_method` (`ALERT_METHOD_CD`),
Ofir Sonsino1cfb0872018-01-31 17:19:00 +02001196 CONSTRAINT `FK_FN_USER_REF_197_FN_USER`
jimmydot3982f4f2017-05-07 14:58:24 -04001197 FOREIGN KEY (`MANAGER_ID`)
1198 REFERENCES `vid_openecomp_epsdk`.`fn_user` (`USER_ID`),
Ofir Sonsino1cfb0872018-01-31 17:19:00 +02001199 CONSTRAINT `FK_FN_USER_REF_198_FN_USER`
jimmydot3982f4f2017-05-07 14:58:24 -04001200 FOREIGN KEY (`CREATED_ID`)
1201 REFERENCES `vid_openecomp_epsdk`.`fn_user` (`USER_ID`),
Ofir Sonsino1cfb0872018-01-31 17:19:00 +02001202 CONSTRAINT `FK_FN_USER_REF_199_FN_USER`
jimmydot3982f4f2017-05-07 14:58:24 -04001203 FOREIGN KEY (`MODIFIED_ID`)
1204 REFERENCES `vid_openecomp_epsdk`.`fn_user` (`USER_ID`),
Ofir Sonsino1cfb0872018-01-31 17:19:00 +02001205 CONSTRAINT `FK_TIMEZONE`
jimmydot3982f4f2017-05-07 14:58:24 -04001206 FOREIGN KEY (`TIMEZONE`)
1207 REFERENCES `vid_openecomp_epsdk`.`fn_lu_timezone` (`TIMEZONE_ID`))
1208ENGINE = InnoDB
Ofir Sonsino1cfb0872018-01-31 17:19:00 +02001209AUTO_INCREMENT = 3
jimmydot3982f4f2017-05-07 14:58:24 -04001210DEFAULT CHARACTER SET = utf8;
1211
Ofir Sonsino1cfb0872018-01-31 17:19:00 +02001212
jimmydot3982f4f2017-05-07 14:58:24 -04001213-- ----------------------------------------------------------------------------
1214-- Table vid_openecomp_epsdk.fn_user_pseudo_role
1215-- ----------------------------------------------------------------------------
1216CREATE 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`),
Ofir Sonsino1cfb0872018-01-31 17:19:00 +02001220 INDEX `FK_PSEUDO_ROLE_USER_ID` (`USER_ID` ASC),
1221 CONSTRAINT `FK_PSEUDO_ROLE_PSEUDO_ROLE_ID`
jimmydot3982f4f2017-05-07 14:58:24 -04001222 FOREIGN KEY (`PSEUDO_ROLE_ID`)
1223 REFERENCES `vid_openecomp_epsdk`.`fn_role` (`ROLE_ID`),
Ofir Sonsino1cfb0872018-01-31 17:19:00 +02001224 CONSTRAINT `FK_PSEUDO_ROLE_USER_ID`
jimmydot3982f4f2017-05-07 14:58:24 -04001225 FOREIGN KEY (`USER_ID`)
1226 REFERENCES `vid_openecomp_epsdk`.`fn_user` (`USER_ID`))
1227ENGINE = InnoDB
1228DEFAULT CHARACTER SET = utf8;
1229
1230-- ----------------------------------------------------------------------------
1231-- Table vid_openecomp_epsdk.fn_user_role
1232-- ----------------------------------------------------------------------------
1233CREATE 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`),
Ofir Sonsino1cfb0872018-01-31 17:19:00 +02001239 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),
jimmydot3982f4f2017-05-07 14:58:24 -04001242 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`),
Ofir Sonsino1cfb0872018-01-31 17:19:00 +02001248 CONSTRAINT `FK_FN_USER__REF_178_FN_APP`
jimmydot3982f4f2017-05-07 14:58:24 -04001249 FOREIGN KEY (`APP_ID`)
1250 REFERENCES `vid_openecomp_epsdk`.`fn_app` (`APP_ID`))
1251ENGINE = InnoDB
1252DEFAULT CHARACTER SET = utf8;
1253
1254-- ----------------------------------------------------------------------------
1255-- Table vid_openecomp_epsdk.fn_workflow
1256-- ----------------------------------------------------------------------------
1257CREATE 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))
1272ENGINE = InnoDB
1273DEFAULT CHARACTER SET = utf8;
1274
1275-- ----------------------------------------------------------------------------
Ofir Sonsino1cfb0872018-01-31 17:19:00 +02001276-- Table vid_openecomp_epsdk.fn_xmltype
jimmydot3982f4f2017-05-07 14:58:24 -04001277-- ----------------------------------------------------------------------------
Ofir Sonsino1cfb0872018-01-31 17:19:00 +02001278CREATE 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))
jimmydot3982f4f2017-05-07 14:58:24 -04001282ENGINE = InnoDB
1283DEFAULT CHARACTER SET = utf8;
1284
1285-- ----------------------------------------------------------------------------
1286-- Table vid_openecomp_epsdk.schema_info
1287-- ----------------------------------------------------------------------------
1288CREATE 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)
1299ENGINE = InnoDB
1300DEFAULT CHARACTER SET = utf8;
Ofir Sonsino1cfb0872018-01-31 17:19:00 +02001301-- ----------------------------------------------------------------------------
1302-- Table vid_openecomp_epsdk.vid_vnf
1303-- ----------------------------------------------------------------------------
1304
1305CREATE 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
1319CREATE 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
1334CREATE 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
1349CREATE 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
1360ALTER 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-- ----------------------------------------------------------------------------
1365CREATE 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
jimmydot3982f4f2017-05-07 14:58:24 -04001378
1379-- ----------------------------------------------------------------------------
1380-- View vid_openecomp_epsdk.v_url_access
1381-- ----------------------------------------------------------------------------
Ofir Sonsino1cfb0872018-01-31 17:19:00 +02001382CREATE 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`;
jimmydot3982f4f2017-05-07 14:58:24 -04001383SET FOREIGN_KEY_CHECKS = 1;
1384