As a data model simplification, the text of a thread's top post should simply also go into the posts table.