-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added platform-datatier to include Database ddl
- Loading branch information
1 parent
d84ae0e
commit 55b48a7
Showing
3 changed files
with
65 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
use kic; | ||
create table if not exists insight | ||
( | ||
auditmessageID bigint not null AUTO_INCREMENT, | ||
messageprocesseddate varchar(25), | ||
messageprocessedtime varchar(25), | ||
processingtype varchar(25), | ||
industrystd varchar(20), | ||
component varchar(75), | ||
messagetrigger varchar(25), | ||
processname varchar(55), | ||
auditdetails varchar(99), | ||
camelid varchar(49), | ||
exchangeid varchar(49), | ||
internalmsgid varchar(49), | ||
auditentiremessage text, | ||
bodydata text, | ||
PRIMARY KEY (`auditmessageID`) | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
create table if not exists kic.insight | ||
( | ||
auditmessageID bigint auto_increment | ||
primary key, | ||
messageprocesseddate varchar(25) null, | ||
messageprocessedtime varchar(25) null, | ||
processingtype varchar(25) null, | ||
industrystd varchar(20) null, | ||
component varchar(75) null, | ||
messagetrigger varchar(25) null, | ||
processname varchar(55) null, | ||
auditdetails varchar(99) null, | ||
camelid varchar(49) null, | ||
exchangeid varchar(49) null, | ||
internalmsgid varchar(49) null, | ||
auditentiremessage text null, | ||
bodydata text null | ||
); | ||
|
||
create index IDX_Insight | ||
on kic.insight (auditmessageID, messageprocesseddate, messageprocessedtime, processingtype, industrystd, component, messagetrigger, processname, auditdetails, camelid, exchangeid, internalmsgid); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
create table if not exists audit | ||
( | ||
auditentiremessage text, | ||
messageprocesseddate varchar(256), | ||
messageprocessedtime varchar(256), | ||
processingtype varchar(256), | ||
industrystd varchar(256), | ||
component varchar(256), | ||
messagetrigger varchar(256), | ||
processname varchar(256), | ||
auditdetails varchar(256), | ||
camelid varchar(256), | ||
exchangeid varchar(256), | ||
internalmsgid varchar(256), | ||
bodydata text, | ||
"auditmessageID" bigserial not null | ||
constraint "PK_audit" | ||
primary key | ||
); | ||
|
||
alter table audit owner to postgres; | ||
|
||
create index if not exists "INDX_audit" | ||
on audit ("auditmessageID", messageprocesseddate, messageprocessedtime, processingtype, industrystd, component, messagetrigger, processname, auditdetails, camelid, exchangeid, internalmsgid); |