text: --
  -- Relations between BA and BV.
  --
  CREATE TABLE mod_bam_reporting_relations_ba_bv (
    ba_bv_id serial,
    bv_id int NOT NULL,
    ba_id int NOT NULL,
  
    PRIMARY KEY (ba_bv_id),
    FOREIGN KEY (bv_id) REFERENCES mod_bam_reporting_bv (bv_id)
      ON DELETE CASCADE,
    FOREIGN KEY (ba_id) REFERENCES mod_bam_reporting_ba (ba_id)
      ON DELETE CASCADE
  );
  