Changed table date from type date to datetime

Included model update