Deal with type

We have add type to deal model