fix: 限定捞瓶查询与重试成本
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
CREATE INDEX "bottles_pick_candidates_id_idx"
|
||||
ON "bottles"("id")
|
||||
WHERE "review_status" = 'APPROVED'
|
||||
AND "pool_status" = 'IN_POOL'
|
||||
AND "active_lease_id" IS NULL;
|
||||
@@ -197,6 +197,7 @@ model RefreshToken {
|
||||
}
|
||||
|
||||
model Bottle {
|
||||
/// Candidate partial index bottles_pick_candidates_id_idx is database-only and managed in 0009 SQL.
|
||||
id String @id @default(uuid()) @db.Uuid
|
||||
authorId String @map("author_id") @db.Uuid
|
||||
clientRequestId String @default(uuid()) @map("client_request_id") @db.VarChar(128)
|
||||
|
||||
Reference in New Issue
Block a user