<?xml version='1.0' encoding='UTF-8'?>
<ROWSET tableName='GE38'>
/****************************************************************************/
/* GE38 ( ﾌｧｲﾙ種別ﾏｽﾀ )                                                     */
/*                                                                          */
/* Created : 2017/07/18 08:41:53                                            */
/****************************************************************************/
<EXEC_SQL>
CREATE TABLE GE38 (
   SYSTEM_ID    VARCHAR (   10 )                    NOT NULL                
 , SYFILE       VARCHAR (  100 )                    NOT NULL                
 , SYNAME       VARCHAR (  200 )                                            
 , DESCRIPTION  VARCHAR ( 4000 )                                            
 , HINAGATA     VARCHAR (  300 )                                            
 , SAVE_FOLDER  VARCHAR (  300 )                                            
 , FILE_URL     VARCHAR (  300 )                                            
 , ICON_URL     VARCHAR (  300 )                                            
 , ROLES        VARCHAR ( 2000 )                                            
 , SU_LMT       INTEGER                 DEFAULT 0   NOT NULL                
 , DY_LMT       INTEGER                 DEFAULT 0   NOT NULL                
 , SIZE_LMT     INTEGER                 DEFAULT 0   NOT NULL                
 , SUFFIX_LMT   VARCHAR (  200 )                                            
 , FGANGO       VARCHAR (    1 )        DEFAULT '0' NOT NULL                
 , FGZIP        VARCHAR (    1 )        DEFAULT '0' NOT NULL                
 , 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 GE38S00 
</EXEC_SQL>

<EXEC_SQL>
CREATE TRIGGER GE38T00 FOR GE38
  BEFORE INSERT AS 
  BEGIN 
    NEW.UNIQ = GEN_ID( GE38S00,1 );
  END; 
</EXEC_SQL>
</ROWSET>
