p_tid to primary key in paymentlog table