updated model to 0.2.0

adapted code for automated created_at updated_at support