The DamageState table is small. There are a few rows per each output_id. There is no need for an index. However, for consistency with the rest of the code and for documentation I have added an index on the output_id field, which is the natural one.