/* EXC_TAB.SRC
 * $Revision$
 * $Id$
 */

CREATE_TABLE(exc_import, 0)
(
   exc_import_key
       NUMBER(10)
       CONSTRAINT exc_k_exc_import_key PRIMARY KEY,
   room_id
        VARCHAR2(256),
   subject
        VARCHAR2(200),
   starttime
        DATE,
   endtime
        DATE,
   organizer
        VARCHAR2(200),
   att_mail
        VARCHAR2(200),
   att_name
        VARCHAR2(200),
   visibility -- 0=Private, 1=Normal
        NUMBER(4)
        DEFAULT 1,
   modifier
        VARCHAR2(1),
   appt_id
        VARCHAR2(500),
   recur_id
        VARCHAR2(500),
   seq_nr
        NUMBER(16),
   fac_import_key
        NUMBER(10)
        CONSTRAINT exc_r_fac_import_key1 REFERENCES fac_import(fac_import_key) ON DELETE CASCADE,
   gelukt
        NUMBER(1),
   CONSTRAINT exc_c_visibility CHECK (modifier = 'D' OR visibility IS NOT NULL)
);

REGISTERONCE('$Id$')