Add base classes and interfaces for schemas