create associations in the models
change reference to integer