some tweaks
adding user_id field to type