add t.references to db migrate create model files