add relationship and field base files, further work on model