define schema for scopes