diff --git a/createdb.sql b/createdb.sql index ab1606ec9decb261907319237d37f63c1f1cc3d6..c50d08d288fa2c12b6c7c5c9ec8e55ef745bb8f3 100644 --- a/createdb.sql +++ b/createdb.sql @@ -20,13 +20,19 @@ create table file ( file_id int64 auto_increment primary key not null, filename varchar(255) not null, dir_id int64 not null references base(dir_id), - ctime datetime not null, - atime datetime not null, + mtime datetime not null, size int64 not null, - md5sum char(32) not null, + md5sum char(32) not null, + sha1sum char(40) not null, + + # When was the on-line file last verified? + verified datetime not null, + + # Set if the on-line file is missing or modified. + broken bool not null, INDEX(filename), - UNIQUE(filename, size, ctime, atime, md5sum), + UNIQUE(filename, size, mtime, md5sum), INDEX(md5sum), INDEX(size) );