Schema, SchemaTypes and Types copied from Mongoose