Expand description
Model trait for ORM-style struct mapping.
The Model trait defines the contract for structs that can be
mapped to database tables. It is typically derived using the
#[derive(Model)] macro from sqlmodel-macros.
Structs§
- Attribute
Change - Describes a single attribute change detected by the change tracker.
- Model
Config - Model-level configuration matching Pydantic’s model_config.
Enums§
- Extra
Fields Behavior - Behavior for handling extra fields during validation.
Traits§
- Auto
Increment - Marker trait for models that support automatic ID generation.
- Model
- Trait for types that can be mapped to database tables.
- Model
Events - Lifecycle event hooks for model instances.
- Soft
Delete - Trait for soft-deletable models.
- Timestamps
- Trait for models that track creation/update timestamps.