def _to_db_dict(namespace_id, resource_type_id, model_dict):
    """transform a model dict to a metadef_namespace_resource_type dict"""
    db_dict = {'namespace_id': namespace_id, 'resource_type_id':
        resource_type_id, 'properties_target': model_dict[
        'properties_target'], 'prefix': model_dict['prefix']}
    return db_dict
