move schema-definition into class `Serializer`

1. make customizing schema in subclasses more easily
2. also move mongodb-related schema into `MongoSerializer`