in the comments table you would need to a reply column, and a primary key column.
if it is a regular comment, set the value of the reply column to 0. if it is a reply comment, set the value of the reply column to the ID from the primary key column for the comment that is being replied to.