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_barcode: Mapped[int]
- status_description = ColumnAssociationProxyInstance(AssociationProxy('status', 'description'))
- status_id: Mapped[int]
- status_name = ColumnAssociationProxyInstance(AssociationProxy('status', 'name'))