PL-8394 Web / desktop client user login history

tests fix
This commit is contained in:
Alexey Nagornov 2017-05-02 11:40:51 +04:00
parent 0b700c7c05
commit e3d64f0710
5 changed files with 149 additions and 0 deletions

View File

@ -0,0 +1,29 @@
create table SEC_SESSION_LOG_ENTRY (
ID varchar(36) not null,
VERSION integer not null,
CREATE_TS timestamp,
CREATED_BY varchar(50),
UPDATE_TS timestamp,
UPDATED_BY varchar(50),
DELETE_TS timestamp,
DELETED_BY varchar(50),
--
SESSION_ID varchar(36) not null,
SUBSTITUTED_USER_ID varchar(36),
USER_ID varchar(36) not null,
USER_DATA longvarchar,
LAST_ACTION integer not null,
CLIENT_INFO varchar(512),
ADDRESS varchar(255),
STARTED_WHEN timestamp,
FINISHED_WHEN timestamp,
CLIENT_TYPE varchar(10),
SERVER_ID varchar(128),
--
primary key (ID)
)^
alter table SEC_SESSION_LOG_ENTRY add constraint FK_SEC_SESSION_LOG_ENTRY_USER foreign key (USER_ID) references SEC_USER(ID)^
create index IDX_SEC_SESSION_LOG_ENTRY_USER on SEC_SESSION_LOG_ENTRY (USER_ID)^
alter table SEC_SESSION_LOG_ENTRY add constraint FK_SEC_SESSION_LOG_ENTRY_SUBUSER foreign key (SUBSTITUTED_USER_ID) references SEC_USER(ID)^
create index IDX_SEC_SESSION_LOG_ENTRY_SUBUSER on SEC_SESSION_LOG_ENTRY (SUBSTITUTED_USER_ID)^

View File

@ -0,0 +1,30 @@
create table SEC_SESSION_LOG_ENTRY (
ID uniqueidentifier not null,
VERSION integer not null,
CREATE_TS datetime,
CREATED_BY varchar(50),
UPDATE_TS datetime,
UPDATED_BY varchar(50),
DELETE_TS datetime,
DELETED_BY varchar(50),
--
SESSION_ID uniqueidentifier not null,
USER_ID uniqueidentifier not null,
SUBSTITUTED_USER_ID uniqueidentifier,
USER_DATA varchar(max),
LAST_ACTION integer not null,
CLIENT_INFO varchar(512),
CLIENT_TYPE varchar(10),
ADDRESS varchar(255),
STARTED_WHEN datetime,
FINISHED_WHEN datetime,
SERVER_ID varchar(128),
--
primary key (ID),
constraint FK_SESSION_LOG_ENTRY_USER foreign key (USER_ID) references SEC_USER(ID),
constraint FK_SESSION_LOG_ENTRY_SUBUSER foreign key (SUBSTITUTED_USER_ID) references SEC_USER(ID)
)^
create index IDX_SESSION_LOG_ENTRY_USER on SEC_SESSION_LOG_ENTRY (USER_ID)^
create index IDX_SESSION_LOG_ENTRY_SUBUSER on SEC_SESSION_LOG_ENTRY (SUBSTITUTED_USER_ID)^
create index IDX_SESSION_LOG_ENTRY_SESSION on SEC_SESSION_LOG_ENTRY (SESSION_ID)^

View File

@ -0,0 +1,30 @@
create table SEC_SESSION_LOG_ENTRY (
ID varchar(32) not null,
VERSION integer not null,
CREATE_TS datetime(3),
CREATED_BY varchar(50),
UPDATE_TS datetime(3),
UPDATED_BY varchar(50),
DELETE_TS datetime(3),
DELETED_BY varchar(50),
--
SESSION_ID varchar(32) not null,
USER_ID varchar(32) not null,
SUBSTITUTED_USER_ID varchar(32),
USER_DATA text,
LAST_ACTION integer not null,
CLIENT_INFO varchar(512),
CLIENT_TYPE varchar(10),
ADDRESS varchar(255),
STARTED_WHEN datetime(3),
FINISHED_WHEN datetime(3),
SERVER_ID varchar(128),
--
primary key (ID),
constraint FK_SESSION_LOG_ENTRY_USER foreign key (USER_ID) references SEC_USER(ID),
constraint FK_SESSION_LOG_ENTRY_SUBUSER foreign key (SUBSTITUTED_USER_ID) references SEC_USER(ID)
)^
create index IDX_SESSION_LOG_ENTRY_USER on SEC_SESSION_LOG_ENTRY (USER_ID)^
create index IDX_SESSION_LOG_ENTRY_SUBUSER on SEC_SESSION_LOG_ENTRY (SUBSTITUTED_USER_ID)^
create index IDX_SESSION_LOG_ENTRY_SESSION on SEC_SESSION_LOG_ENTRY (SESSION_ID)^

View File

@ -0,0 +1,30 @@
create table SEC_SESSION_LOG_ENTRY (
ID varchar2(32) not null,
VERSION integer not null,
CREATE_TS timestamp,
CREATED_BY varchar2(50),
UPDATE_TS timestamp,
UPDATED_BY varchar2(50),
DELETE_TS timestamp,
DELETED_BY varchar2(50),
--
SESSION_ID varchar2(32) not null,
USER_ID varchar2(32) not null,
SUBSTITUTED_USER_ID varchar2(32),
USER_DATA clob,
LAST_ACTION integer not null,
CLIENT_INFO varchar2(512),
CLIENT_TYPE varchar2(10),
ADDRESS varchar2(255),
STARTED_WHEN timestamp,
FINISHED_WHEN timestamp,
SERVER_ID varchar2(128),
--
primary key (ID)
)^
alter table SEC_SESSION_LOG_ENTRY add constraint FK_SESSION_LOG_ENTRY_USER foreign key (USER_ID) references SEC_USER(ID)^
create index IDX_SESSION_LOG_ENTRY_USER on SEC_SESSION_LOG_ENTRY (USER_ID)^
alter table SEC_SESSION_LOG_ENTRY add constraint FK_SESSION_LOG_ENTRY_SUBUSER foreign key (SUBSTITUTED_USER_ID) references SEC_USER(ID)^
create index IDX_SESSION_LOG_ENTRY_SUBUSER on SEC_SESSION_LOG_ENTRY (SUBSTITUTED_USER_ID)^
create index IDX_SESSION_LOG_ENTRY_SESSION on SEC_SESSION_LOG_ENTRY (SESSION_ID)^

View File

@ -0,0 +1,30 @@
create table SEC_SESSION_LOG_ENTRY (
ID uuid,
VERSION integer not null,
CREATE_TS timestamp,
CREATED_BY varchar(50),
UPDATE_TS timestamp,
UPDATED_BY varchar(50),
DELETE_TS timestamp,
DELETED_BY varchar(50),
--
SESSION_ID uuid not null,
USER_ID uuid not null,
SUBSTITUTED_USER_ID uuid,
USER_DATA text,
LAST_ACTION integer not null,
CLIENT_INFO varchar(512),
CLIENT_TYPE varchar(10),
ADDRESS varchar(255),
STARTED_WHEN timestamp,
FINISHED_WHEN timestamp,
SERVER_ID varchar(128),
--
primary key (ID)
)^
alter table SEC_SESSION_LOG_ENTRY add constraint FK_SEC_SESSION_LOG_ENTRY_USER foreign key (USER_ID) references SEC_USER(ID)^
create index IDX_SEC_SESSION_LOG_ENTRY_USER on SEC_SESSION_LOG_ENTRY (USER_ID)^
alter table SEC_SESSION_LOG_ENTRY add constraint FK_SEC_SESSION_LOG_ENTRY_SUBUSER foreign key (SUBSTITUTED_USER_ID) references SEC_USER(ID)^
create index IDX_SEC_SESSION_LOG_ENTRY_SUBUSER on SEC_SESSION_LOG_ENTRY (SUBSTITUTED_USER_ID)^
create index IDX_SEC_SESSION_LOG_ENTRY_SESSION on SEC_SESSION_LOG_ENTRY (SESSION_ID)^