/**Begin D:\PDM_UPGRADE\PDM1\HRSS_table.sql **/
IF NOT EXISTS (SELECT 1 FROM KSQL_USERTABLES WHERE KSQL_TABNAME = 'T_HRSS_USERSEARCHLOG') 
 CREATE TABLE T_HRSS_USERSEARCHLOG (
FID BIGINT DEFAULT 0 NOT NULL,
FCREATORID BIGINT DEFAULT 0 NOT NULL,
FMODIFIERID BIGINT DEFAULT 0 NOT NULL,
FCREATETIME DATETIME,
FMODIFYTIME DATETIME,
FUSERID BIGINT DEFAULT 0 NOT NULL,
FSEARCHTIME DATETIME,
FSEARCHSCENEID BIGINT DEFAULT 0 NOT NULL,
FSEARCHPAGEID BIGINT DEFAULT 0 NOT NULL,
FSEARCHKEY VARCHAR(500) DEFAULT ' ' NOT NULL,
FVIEWFILTER NCLOB,
FRUNFILTER NCLOB
);


IF NOT EXISTS (SELECT 1 FROM KSQL_USERTABLES WHERE KSQL_TABNAME = 'T_HRSS_USERLASTSEARCHKEY') 
 CREATE TABLE T_HRSS_USERLASTSEARCHKEY (
FID BIGINT DEFAULT 0 NOT NULL,
FCREATORID BIGINT DEFAULT 0 NOT NULL,
FMODIFIERID BIGINT DEFAULT 0 NOT NULL,
FCREATETIME DATETIME,
FMODIFYTIME DATETIME,
FUSERID BIGINT DEFAULT 0 NOT NULL,
FSEARCHTIME DATETIME,
FSEARCHSCENEID BIGINT DEFAULT 0 NOT NULL,
FSEARCHPAGEID BIGINT DEFAULT 0 NOT NULL,
FSEARCHKEY VARCHAR(500) DEFAULT ' ' NOT NULL
);



/**End D:\PDM_UPGRADE\PDM1\HRSS_table.sql **/
