set up id for models autpmatically