drop table if exists mappa;
create table mappa (
    mapid       INT PRIMARY KEY AUTO_INCREMENT,
    target      ENUM('titoli','testi'),
    targetid    INT DEFAULT NULL,
    source      ENUM('pagine','link','menu'),
    sourceid    INT DEFAULT NULL
    -- UNIQUE INDEX 'nodup' ('target','targetid','source','sourceid')
) ENGINE=INNODB, AUTO_INCREMENT=0;

