CREATE TABLE NotifyEnd
(
    id BIGINT UNSIGNED NOT NULL AUTO_INCREMENT,
    Notification BIGINT UNSIGNED NOT NULL,
    Recipients BIGINT UNSIGNED NOT NULL,
    Done BIGINT UNSIGNED DEFAULT 0,
    Expire BIGINT UNSIGNED DEFAULT 0,
    MinEndTime BIGINT UNSIGNED DEFAULT 0,
    LockId CHAR(32) DEFAULT NULL,
    PRIMARY KEY ( id ),
    UNIQUE KEY Notification ( Notification ),
    KEY LockId ( LockId,Expire )

) ENGINE=INNODB CHARSET=UTF8 COMMENT="Track the end of in progress notifications";
