Adding a pattern field to Mapping model