add hash type from model