门店审核功能
This commit is contained in:
@@ -176,6 +176,12 @@ enum StoreStatus {
|
||||
CLOSED
|
||||
}
|
||||
|
||||
enum StoreAuditStatus {
|
||||
PENDING
|
||||
APPROVED
|
||||
REJECTED
|
||||
}
|
||||
|
||||
enum UserSourceType {
|
||||
ORGANIC
|
||||
PROMO_CODE
|
||||
@@ -734,7 +740,10 @@ model Store {
|
||||
avgPrice Decimal? @map("avg_price") @db.Decimal(10, 2)
|
||||
rating Decimal? @db.Decimal(3, 2)
|
||||
tags Json?
|
||||
status StoreStatus @default(PAUSED)
|
||||
status StoreStatus @default(PAUSED)
|
||||
auditStatus StoreAuditStatus @default(APPROVED) @map("audit_status")
|
||||
rejectReason String? @map("reject_reason") @db.VarChar(512)
|
||||
auditedAt DateTime? @map("audited_at") @db.DateTime(3)
|
||||
openTime String? @map("open_time") @db.VarChar(8)
|
||||
closeTime String? @map("close_time") @db.VarChar(8)
|
||||
settlementRate Decimal @default(0.60) @map("settlement_rate") @db.Decimal(5, 4)
|
||||
@@ -753,6 +762,7 @@ model Store {
|
||||
|
||||
@@index([cityId, status])
|
||||
@@index([partnerAccountId])
|
||||
@@index([auditStatus, createdAt])
|
||||
@@map("store_store")
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user