generate the notes model.