model and migration implemented