worked on schema in model.php