modify models with code, change hash to hash_code,and hash_code0. and more modify about code models.