added model code for one2many