Add indexes and foreign keys to the Snapshot table.