Fixed typing for id attributes in all tables.