Fixed foreign keys issue

Fixed foreign keys which lead to the issue that deleting users who are
subscribed to shifts caused an error