Add product admin
This commit is contained in:
@@ -12,6 +12,8 @@ from sqlalchemy.orm import (
|
||||
relationship,
|
||||
)
|
||||
|
||||
from allmende_payment_system.api.types import UnitsOfMeasure
|
||||
|
||||
TABLE_PREFIX = "aps_"
|
||||
|
||||
|
||||
@@ -131,14 +133,6 @@ class Area(Base):
|
||||
products: Mapped[list["Product"]] = relationship("Product")
|
||||
|
||||
|
||||
UnitsOfMeasure = typing.Literal[
|
||||
"g",
|
||||
"kg",
|
||||
"l",
|
||||
"piece",
|
||||
]
|
||||
|
||||
|
||||
class Product(Base):
|
||||
__tablename__ = TABLE_PREFIX + "product"
|
||||
id: Mapped[int] = mapped_column(primary_key=True, autoincrement=True)
|
||||
|
||||
Reference in New Issue
Block a user