generate restaurant model