Added full CRUD operations for spools

This commit is contained in:
Donkie
2023-04-02 14:57:59 +02:00
parent 7fc6b7232c
commit b3ba3c1594
4 changed files with 190 additions and 3 deletions

View File

@@ -33,8 +33,8 @@ class Filament(Base):
price: Mapped[Optional[float]] = mapped_column()
density: Mapped[float] = mapped_column()
diameter: Mapped[float] = mapped_column()
weight: Mapped[Optional[float]] = mapped_column()
spool_weight: Mapped[Optional[float]] = mapped_column()
weight: Mapped[Optional[float]] = mapped_column(comment="The filament weight of a full spool (net weight).")
spool_weight: Mapped[Optional[float]] = mapped_column(comment="The weight of an empty spool.")
article_number: Mapped[Optional[str]] = mapped_column(String(64))
comment: Mapped[Optional[str]] = mapped_column(String(1024))
# TODO: Print settings