优化(直播履约): 即时选号并收敛订单快照同步
This commit is contained in:
@@ -1859,6 +1859,9 @@ class PlatformFulfillmentTask(Base):
|
||||
issue_code: Mapped[str] = mapped_column(
|
||||
String(64), nullable=False, default="", server_default=""
|
||||
)
|
||||
state_version: Mapped[int] = mapped_column(
|
||||
BigInteger, nullable=False, default=0, server_default="0"
|
||||
)
|
||||
last_error: Mapped[str] = mapped_column(Text, nullable=False, default="")
|
||||
source_snapshot_json: Mapped[dict | None] = mapped_column(JSON, nullable=True)
|
||||
operator_id: Mapped[int | None] = mapped_column(
|
||||
@@ -1868,6 +1871,9 @@ class PlatformFulfillmentTask(Base):
|
||||
paid_at: Mapped[datetime | None] = mapped_column(
|
||||
UTCDateTime, nullable=True, index=True
|
||||
)
|
||||
next_allocate_at: Mapped[datetime | None] = mapped_column(
|
||||
UTCDateTime, nullable=True, default=_utcnow
|
||||
)
|
||||
created_at: Mapped[datetime] = mapped_column(UTCDateTime, default=_utcnow)
|
||||
updated_at: Mapped[datetime] = mapped_column(
|
||||
UTCDateTime, default=_utcnow, onupdate=_utcnow
|
||||
@@ -1889,6 +1895,12 @@ class PlatformFulfillmentTask(Base):
|
||||
"source_order_id",
|
||||
"source_order_item_id",
|
||||
),
|
||||
Index(
|
||||
"ix_platform_fulfillment_next_allocate",
|
||||
"execution_status",
|
||||
"next_allocate_at",
|
||||
"id",
|
||||
),
|
||||
)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user