added due_date to assign model and functions