Add schema for patterns