aim.digifeeds.database.models module

Digifeeds Models

class aim.digifeeds.database.models.Base(**kwargs: Any)[source]

Bases: DeclarativeBase

metadata: ClassVar[MetaData] = MetaData()

Refers to the _schema.MetaData collection that will be used for new _schema.Table objects.

See also

orm_declarative_metadata

registry: ClassVar[_RegistryType] = <sqlalchemy.orm.decl_api.registry object>

Refers to the _orm.registry in use where new _orm.Mapper objects will be associated.

class aim.digifeeds.database.models.Item(**kwargs)[source]

Bases: Base

barcode: Mapped[str]
created_at: Mapped[datetime]
statuses: Mapped[list[ItemStatus]]
class aim.digifeeds.database.models.ItemStatus(**kwargs)[source]

Bases: Base

created_at: Mapped[datetime]
id: Mapped[int]
item: Mapped[Item]
item_barcode: Mapped[int]
status: Mapped[Status]
status_description = ColumnAssociationProxyInstance(AssociationProxy('status', 'description'))
status_id: Mapped[int]
status_name = ColumnAssociationProxyInstance(AssociationProxy('status', 'name'))
class aim.digifeeds.database.models.Status(**kwargs)[source]

Bases: Base

description: Mapped[str]
id: Mapped[int]
items: Mapped[list[ItemStatus]]
name: Mapped[str]
aim.digifeeds.database.models.load_statuses(session: Session)[source]