pub(super) fn inn_add_index( db: &Db, iid: u32, pid: u32, timestamp: u32, inn_type: u8 ) -> Result<(), AppError>