CREATE TABLE IF NOT EXISTS ClickToCallDeferred (
                            id BIGINT unsigned NOT NULL AUTO_INCREMENT,
                            Extension BIGINT unsigned,
                            PhoneNumber varchar(20),
                            Status varchar(50) NOT NULL,
                            Ts INT UNSIGNED NOT NULL,
                            CallId varchar(50),
                            LockId CHAR(32) DEFAULT NULL,
                            CreatedBy BIGINT unsigned NOT NULL,
                            Source varchar(50),
                            PRIMARY KEY (id),
                            KEY (CreatedBy),
                            KEY (LockId)
                            ) ENGINE=INNODB;