part(partid, name)
subpart(subpartid, partid, quantity)

Both subpartid and partid in the subpart table would be foreign keys of the part table.