<?xml version='1.0' encoding='UTF-8'?>
<ROWSET tableName='GF80'>
/****************************************************************************/
/* GF80 ( DB定義書ﾏｽﾀ )                                                     */
/*                                                                          */
/* Created : 2017/01/05 15:19:16                                            */
/****************************************************************************/
<EXEC_SQL>
CREATE TABLE GF80 (
   SYSTEM_ID    VARCHAR (   10 )                    NOT NULL                
 , TBLSYU       VARCHAR (    1 )                    NOT NULL                
 , KBTBL        VARCHAR (    1 )        DEFAULT '0' NOT NULL                
 , TABLE_NAME   VARCHAR (   50 )                    NOT NULL                
 , NAME_JA      VARCHAR (  200 )                                            
 , SEQNO        INTEGER                 DEFAULT 0   NOT NULL                
 , CLM_NAME     VARCHAR (  120 )                                            
 , CLM          VARCHAR (   30 )                    NOT NULL                
 , CLS_NAME     VARCHAR (   10 )                    NOT NULL                
 , VIEW_LENGTH  VARCHAR (   10 )                                            
 , USE_LENGTH   VARCHAR (    9 )                                            
 , UK           VARCHAR (    2 )                                            
 , LUK          VARCHAR (    2 )                                            
 , IXA          VARCHAR (    2 )                                            
 , IXB          VARCHAR (    2 )                                            
 , IXC          VARCHAR (    2 )                                            
 , IXD          VARCHAR (    2 )                                            
 , IXE          VARCHAR (    2 )                                            
 , IXF          VARCHAR (    2 )                                            
 , IXG          VARCHAR (    2 )                                            
 , IXH          VARCHAR (    2 )                                            
 , IXI          VARCHAR (    2 )                                            
 , IXJ          VARCHAR (    2 )                                            
 , IXK          VARCHAR (    2 )                                            
 , NOT_NULL     VARCHAR (    1 )                                            
 , RENDERER     VARCHAR (   10 )                                            
 , EDITOR       VARCHAR (   10 )                                            
 , DBTYPE       VARCHAR (   10 )                                            
 , DATA_DEFAULT VARCHAR (  200 )                                            
 , KBCLM        VARCHAR (    1 )        DEFAULT '0' NOT NULL                
 , BIKO         VARCHAR ( 2000 )                                            
 , CDKH         VARCHAR (    1 )                                            
 , COMMENTS     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 GF80S00 
</EXEC_SQL>

<EXEC_SQL>
CREATE TRIGGER GF80T00 FOR GF80
  BEFORE INSERT AS 
  BEGIN 
    NEW.UNIQ = GEN_ID( GF80S00,1 );
  END; 
</EXEC_SQL>
</ROWSET>
