Pass name pattern to model definition