CREATE TABLE `entry` (
`ID` INT NOT NULL AUTO_INCREMENT,
`ID_Volume` INT DEFAULT NULL COMMENT "volume on which this entry appears; NULL = unknown",
`ID_Parent` INT DEFAULT NULL COMMENT "parent folder; NULL = filesystem root",
`ID_Link` INT DEFAULT NULL COMMENT "NOT NULL = this is a link to another entry whose ID is ID_Link",
`Inode` INT DEFAULT NULL COMMENT "inode number (if available)",
`Name` VARCHAR(255) NOT NULL COMMENT "filesystem's name for the entry",
`WhenCreated` DATETIME DEFAULT NULL COMMENT "entry's creation timestamp, where available",
`WhenChanged` DATETIME DEFAULT NULL COMMENT "entry's modification timestamp, where available",
`didSeek` BOOL DEFAULT FALSE COMMENT "TRUE = looked for this entry in the filesystem",
`didFind` BOOL DEFAULT FALSE COMMENT "TRUE = was found on most recent scan",
`didRead` BOOL DEFAULT FALSE COMMENT "TRUE = filesystem allowed read access on last scan attempt",
PRIMARY KEY(`ID`)
)
ENGINE = INNODB;