adds event schema