generate dao and model