feat(backend): move product pricing to async persisted jobs
This commit is contained in:
parent
c869f88db2
commit
0e439b4ca7
18 changed files with 468 additions and 67 deletions
|
|
@ -174,6 +174,11 @@ class Product(ProductBase, table=True):
|
|||
default=None, sa_column=Column(JSON, nullable=True)
|
||||
)
|
||||
|
||||
price_tier: PriceTier | None = Field(default=None, index=True)
|
||||
price_per_use_pln: float | None = Field(default=None)
|
||||
price_tier_source: str | None = Field(default=None, max_length=32)
|
||||
pricing_computed_at: datetime | None = Field(default=None)
|
||||
|
||||
created_at: datetime = Field(default_factory=utc_now, nullable=False)
|
||||
updated_at: datetime = Field(
|
||||
default_factory=utc_now,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue