<?xml version='1.0' encoding='UTF-8'?>
<ROWSET tableName='GE39'>
/****************************************************************************/
/* GE39 ( ﾌｧｲﾙ管理ﾃｰﾌﾞﾙ )                                                   */
/*                                                                          */
/* Created : 2018/06/08 16:45:35                                            */
/****************************************************************************/
<EXEC_SQL>
CREATE TABLE GE39 (
   UNIQ_ID      VARCHAR (   10 )                    NOT NULL                
 , SEQNO        INTEGER                 DEFAULT 0   NOT NULL                
 , SYSTEM_ID    VARCHAR (   10 )                    NOT NULL                
 , SYFILE       VARCHAR (  100 )                    NOT NULL                
 , REF_KEY      VARCHAR (  100 )                    NOT NULL                
 , SUFFIX       VARCHAR (   10 )                                            
 , SYNAME       VARCHAR (  200 )                                            
 , SAVE_FOLDER  VARCHAR (  300 )                                            
 , FILE_URL     VARCHAR (  300 )                                            
 , ICON_URL     VARCHAR (  300 )                                            
 , ROLES        VARCHAR (  500 )                                            
 , SU_LMT       INTEGER                 DEFAULT 0   NOT NULL                
 , DY_LMT       INTEGER                 DEFAULT 0   NOT NULL                
 , FGANGO       VARCHAR (    1 )        DEFAULT '0' NOT NULL                
 , FGZIP        VARCHAR (    1 )        DEFAULT '0' NOT NULL                
 , FILE_NAME    VARCHAR (  500 )                                            
 , CONTENTS     VARCHAR ( 4000 )                                            
 , FG_NEW       VARCHAR (    1 )        DEFAULT '1' NOT NULL                
 , SIZE_FILE    INTEGER                 DEFAULT 0   NOT NULL                
 , DYFILESET    VARCHAR (   14 )                                            
 , USRTOROKU    VARCHAR (   10 )                                            
 , SETGUIID     VARCHAR (   10 )                                            
 , FGKOSHIN     VARCHAR (    1 )        DEFAULT '1'                         
 , FGKOKAI      VARCHAR (    1 )        DEFAULT '1'                         
 , SRCHKEY1     VARCHAR (  500 )                                            
 , SRCHKEY2     VARCHAR (  500 )                                            
 , SRCHKEY3     VARCHAR (  500 )                                            
 , SRCHKEY4     VARCHAR (  500 )                                            
 , SRCHKEY5     VARCHAR (  500 )                                            
 , SRCHKEY6     VARCHAR (  500 )                                            
 , SRCHKEY7     VARCHAR (  500 )                                            
 , SRCHKEY8     VARCHAR (  500 )                                            
 , SRCHKEY9     VARCHAR (  500 )                                            
 , SRCHKEY10    VARCHAR (  500 )                                            
 , 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 GE39S00 
</EXEC_SQL>

<EXEC_SQL>
CREATE TRIGGER GE39T00 FOR GE39
  BEFORE INSERT AS 
  BEGIN 
    NEW.UNIQ = GEN_ID( GE39S00,1 );
  END; </EXEC_SQL>
</ROWSET>
