Minor changes to make them work on postgres

* added default value to user_id and item_type
* changed model validation for user_id/item_type