Models
Represents a collection of models.
This class is responsible for creating and managing models dynamically based on the provided fields.
It provides methods to create different types of models such as create, response, and update models.
Attributes:
name (str): The name of the collection of models.
create_model (type[Base]): The dynamically created model for creating new instances.
response_model (type[BaseWithId]): The dynamically created model for response payloads.
update_model (type[Base]): The dynamically created model for updating existing instances.