<?xml version='1.0' encoding='UTF-8'?>
<ROWSET tableName='GF80'>
<EXEC_SQL>
/**************************************************************************/
/* GF80 ( DB定義書マスタテーブル )                                        */
/*                                                                        */
/* Created : 2012/06/01 18:24:30                                          */
/**************************************************************************/
CREATE TABLE GF80 (
   SYSTEM_ID    VARCHAR(10)                  NOT NULL       
 , TBLSYU       VARCHAR(1)                   NOT NULL       
 , TABLE_NAME   VARCHAR(50)                  NOT NULL       
 , NAME_JA      VARCHAR(200)                                
 , SEQNO        NUMERIC(7)       DEFAULT 0   NOT NULL       
 , CLM_NAME     VARCHAR(120)                                
 , CLM          VARCHAR(30)                  NOT NULL       
 , CLS_NAME     VARCHAR(10)                  NOT NULL       
 , PHY_LENGTH   VARCHAR(10)                                 
 , USE_LENGTH   VARCHAR(9)       DEFAULT '0'                
 , 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)                                  
 , C_KEY        VARCHAR(1)                                  
 , F_KEY        VARCHAR(1)                                  
 , RENDERER     VARCHAR(10)                                 
 , EDITOR       VARCHAR(10)                                 
 , DBTYPE       VARCHAR(10)                                 
 , DATA_DEFAULT VARCHAR(30)                                 
 , KBCLM        VARCHAR(1)                                  
 , 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>
