CREATE TABLE CallerId_Numbers
(
    id BIGINT UNSIGNED DEFAULT NULL,
    DID BIGINT UNSIGNED DEFAULT NULL,
    PRIMARY KEY ( id,DID ),
    FOREIGN KEY ( DID ) REFERENCES nodes ( id) ON DELETE CASCADE ON UPDATE CASCADE,
    FOREIGN KEY ( id ) REFERENCES nodes ( id) ON DELETE CASCADE ON UPDATE CASCADE

) ENGINE=INNODB CHARSET=UTF8 COMMENT="Numbers available to dialing node for callerid";
