     timestamp TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP(),
     userId BIGINT(20) UNSIGNED NOT NULL,
     scan VARCHAR(250) NOT NULL,
-    PRIMARY KEY (urn),
-    FOREIGN KEY (scan) REFERENCES scans(urn)
+    PRIMARY KEY (urn)
 ) ENGINE = InnoDB CHARACTER SET utf8;
 -- Table to store rectangles for an area of interest:
 CREATE Table rectangles (

    PRIMARY KEY (urn),
    FOREIGN KEY (omekaItem) REFERENCES omekaItems(urn)
) ENGINE = InnoDB CHARACTER SET utf8;
-- Table for votes on the completeness of scans:
CREATE TABLE scanCompleteness (
    isGood BOOL NOT NULL,

    displayName VARCHAR(255) NOT NULL,
    avatarUrl VARCHAR(2000),
    lastLogin TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP(),
    tasksCompleted INT UNSIGNED NOT NULL DEFAULT 0,
    isAdmin BOOL NOT NULL DEFAULT 0
) ENGINE = InnoDB CHARACTER SET utf8;
-- Table for transcription specific data:
CREATE TABLE transcriptions (
