one to many schema wokring