orm

API Reference

Application ORM configuration.

src.server.lib.db.orm.DatabaseModel

alias of UUIDBase

src.server.lib.db.orm.TimestampedDatabaseModel

alias of UUIDAuditBase

src.server.lib.db.orm.model_from_dict(model: ModelT, **kwargs: Any) ModelT[source]

Return ORM Object from Dictionary.

class src.server.lib.db.orm.AuditColumns[source]

Bases: object

Created/Updated At Fields Mixin.

created_at: Mapped[datetime] = <sqlalchemy.orm.properties.MappedColumn object>

Date/time of instance creation.

updated_at: Mapped[datetime] = <sqlalchemy.orm.properties.MappedColumn object>

Date/time of instance last update.

class src.server.lib.db.orm.SlugKey[source]

Bases: object

Slug unique Field Model Mixin.