CREATE TABLE CallQueue__queue
(
    id BIGINT UNSIGNED DEFAULT NULL,

    /* If this is filled it means that the call is suspended and is handled by an exterior class */

    SuspendClass VARCHAR(255) DEFAULT NULL,
    Channel VARCHAR(100) DEFAULT NULL,
    SIPCallId VARCHAR(100) DEFAULT NULL,
    ServerIP VARCHAR(15) DEFAULT NULL,
    Queue BIGINT UNSIGNED DEFAULT NULL,
    Skill BIGINT UNSIGNED DEFAULT NULL,
    EnterTs BIGINT UNSIGNED DEFAULT NULL,
    CallerName VARCHAR(20) DEFAULT NULL,
    CallerNumber VARCHAR(20) DEFAULT NULL,
    LastPing BIGINT UNSIGNED DEFAULT 0,
    Priority TINYINT DEFAULT NULL,
    DeletePending TINYINT UNSIGNED DEFAULT 0,
    Language BIGINT UNSIGNED DEFAULT NULL,
    PRIMARY KEY ( id ) AUTO_INCREMENT,
    KEY ( Queue ),
    KEY ( DeletePending )

) ENGINE=INNODB CHARSET=UTF8;
