remove int type for date of thread entity and add Date type