#ifdef  CTR
/*
 * $Revision$
 * $Id$
 */

CREATE_TABLE (ctr_disc_params,0)
(
  ctr_disc_params_key
      NUMBER(10),
  ctr_ins_discipline_key
      NUMBER(10),
  ctr_disc_params_controle_type  // 1=controle, 2=vervanging, 3=certificering, rest ntb
      NUMBER(1)
      DEFAULT(1)
      CONSTRAINT ctr_disc_params_controle_type NOT NULL,
  ctr_disc_params_ismjob
      NUMBER(1)       -- valid are 0, 1
      DEFAULT 0
      NOT NULL,
  mld_stdmelding_key
      NUMBER(10)
      CONSTRAINT mld_r_mld_stdmelding_key6 REFERENCES mld_stdmelding,

  CONSTRAINT ctr_c_ins_discipline_key CHECK (ctr_ins_discipline_key IS NOT NULL),
  CONSTRAINT ctr_k_ctr_disc_params_key PRIMARY KEY (ctr_disc_params_key),
  CONSTRAINT ctr_r_ins_discipine_key FOREIGN KEY (ctr_ins_discipline_key)
    REFERENCES ins_tab_discipline (ins_discipline_key)
);

REGISTERONCE('$Id$')

#endif // CTR
