database model and generated entities