<?xml version='1.0' encoding='UTF-8'?>
<ROWSET tableName='GEA09'>
/****************************************************************************/
/* GEA09 ( ﾕｰｻﾞｰｱｸｾｽ画面管理ﾃｰﾌﾞﾙ )                                         */
/*                                                                          */
/* Created : 2017/01/05 15:19:11                                            */
/****************************************************************************/
<EXEC_SQL>
CREATE TABLE GEA09 (
   SYSTEM_ID    VARCHAR (   10 )                    NOT NULL                
 , USERID       VARCHAR (   10 )                    NOT NULL                
 , GUIKEY       VARCHAR (   30 )                    NOT NULL                
 , SEQNO        INTEGER                 DEFAULT 0   NOT NULL                
 , NAME_JA      VARCHAR (  200 )                                            
 , LAST_ACCESS  VARCHAR (   14 )                                            
 , FGFAVORITE   VARCHAR (    1 )                                            
 , CLASSIFY     VARCHAR (  120 )                                            
 , NEXTGUI      VARCHAR ( 1000 )                                            
 , UNIQ         BIGINT                              NOT NULL                
 , FGJ          VARCHAR (    1 )        DEFAULT '1' NOT NULL                
 , DYSET        VARCHAR (   14 )                                            
 , PGSET        VARCHAR (   10 )                                            
 , PGPSET       VARCHAR (   10 )                                            
 , USRSET       VARCHAR (   10 )                                            
 , DYUPD        VARCHAR (   14 )                                            
 , PGUPD        VARCHAR (   10 )                                            
 , PGPUPD       VARCHAR (   10 )                                            
 , USRUPD       VARCHAR (   10 )                                            
)
</EXEC_SQL>

<EXEC_SQL>
CREATE SEQUENCE GEA09S00 
</EXEC_SQL>

<EXEC_SQL>
CREATE TRIGGER GEA09T00 FOR GEA09
  BEFORE INSERT AS 
  BEGIN 
    NEW.UNIQ = GEN_ID( GEA09S00,1 );
  END; 
</EXEC_SQL>
</ROWSET>
