generate note model