use schema.constructor.modelName instead of schema.name to avoid conflicts.