CREATE TABLE AmazonS3File
(
    id BIGINT UNSIGNED DEFAULT NULL,
    Bucket VARCHAR(50) DEFAULT NULL,
    FileId BIGINT UNSIGNED DEFAULT NULL,
    Hash CHAR(32) DEFAULT NULL,
    ts BIGINT UNSIGNED NOT NULL,
    Size BIGINT UNSIGNED DEFAULT NULL,
    MimeType BIGINT UNSIGNED DEFAULT NULL,
    PRIMARY KEY ( id ) AUTO_INCREMENT,
    UNIQUE KEY ( Bucket,FileId )

) ENGINE=INNODB CHARSET=UTF8;
