Automatically update updated_at timestampz

I have a rooms table which contains room_id and updated_at etc.... Also I have messages table which contains column with same room_id and created_at.

I want to update updated_at from rooms when messages are sent with same room_id.

Can somebody help me.
From js client, I am not able to use update field.
Was this page helpful?