<?xml version='1.0' encoding='UTF-8'?>
<ROWSET tableName='GEA11'>
<EXEC_SQL>
/**************************************************************************/
/* GEA11 ( 画面定義 )                                                     */
/*                                                                        */
/* Created : 2010/10/02 08:11:40                                          */
/**************************************************************************/
CREATE TABLE GEA11 (
   SYSTEM_ID     VARCHAR(10)                 NOT NULL                   
 , SEQNO         NUMERIC(7)      DEFAULT 0   NOT NULL                   
 , GUIKEY        VARCHAR(30)                 NOT NULL                   
 , NAME_JA       VARCHAR(200)                                           
 , GUILVL        VARCHAR(1)      DEFAULT '3' NOT NULL                   
 , ADDRESS       VARCHAR(256)                                           
 , ROLES         VARCHAR(500)                                           
 , RWMODE        VARCHAR(3)                                             
 , TARGET        VARCHAR(10)                                            
 , PARAM         VARCHAR(500)                                           
 , CDKH          VARCHAR(1)                                             
 , KBSAKU        VARCHAR(1)      DEFAULT '1' NOT NULL                   
 , RELEASE_NOTES VARCHAR(120)                                           
 , RDC_CODE      VARCHAR(20)                                            
 , GROUPS        VARCHAR(500)                                           
 , LABEL_CLM     VARCHAR(30)                                            
 , COMMENTS      VARCHAR(500)                                           
 , KBLINK        VARCHAR(10)                                            
 , UNIQ          BIGINT                      NOT NULL PRIMARY KEY       
 , 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 GEA11S00 
</EXEC_SQL>


<EXEC_SQL>
CREATE TRIGGER GEA11T00 FOR GEA11
  BEFORE INSERT 
  AS BEGIN 
    NEW.UNIQ = GEN_ID( GEA11S00,1 );
  END; 
</EXEC_SQL>

</ROWSET>
