Implement enum in schema.