CREATE TABLE FaxChecker_Queue
(
    cdr_id BIGINT UNSIGNED NOT NULL,
   Node BIGINT UNSIGNED DEFAULT NULL,
    Destination VARCHAR(50) DEFAULT NULL,
    StartTime BIGINT UNSIGNED NOT NULL DEFAULT 0,
    Duration INT DEFAULT NULL,
    sip_callid VARCHAR(255) DEFAULT NULL,
    Exch VARCHAR(10) DEFAULT NULL,
    Prefetch ENUM("QUEUE", "WORK", "READY", "GONE") DEFAULT "QUEUE",
    Type ENUM("High", "Low", "488") NOT NULL DEFAULT "High",
    LastTs BIGINT NOT NULL,
    PRIMARY KEY ( cdr_id ),
    KEY Prefetch ( Prefetch,Type )

) ENGINE=INNODB CHARSET=UTF8;
