feat(ops): v4.0.2 活动图模板、合伙人选择持久化与用户管理主图
HQ 上传底图与码栏;合伙人单选写入 partner_account.activity_poster_id,用户管理下次登录仍显示同一张图。 Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -44,6 +44,7 @@ enum ResourceBizType {
|
||||
SIGN_PHOTO
|
||||
VIDEO
|
||||
REDEEM_PENDING_PHOTO
|
||||
ACTIVITY_POSTER
|
||||
}
|
||||
|
||||
enum RedeemPendingStatus {
|
||||
@@ -1204,6 +1205,7 @@ model PartnerAccount {
|
||||
managedWarehouseId BigInt? @unique @map("managed_warehouse_id") @db.UnsignedBigInt
|
||||
assocQrcodeId String? @unique @map("assoc_qrcode_id") @db.VarChar(64)
|
||||
assocQrcodeResourceId BigInt? @map("assoc_qrcode_resource_id") @db.UnsignedBigInt
|
||||
activityPosterId BigInt? @map("activity_poster_id") @db.UnsignedBigInt
|
||||
/// 测试合伙人账号
|
||||
isTest Boolean @default(false) @map("is_test")
|
||||
createdAt DateTime @default(now()) @map("created_at") @db.DateTime(3)
|
||||
@@ -1219,6 +1221,7 @@ model PartnerAccount {
|
||||
assocUsers User[] @relation("UserPartnerAssoc")
|
||||
userNotes PartnerUserNote[]
|
||||
assocQrcodeResource CommonResource? @relation("PartnerAssocQrcode", fields: [assocQrcodeResourceId], references: [id], onDelete: SetNull)
|
||||
activityPoster ActivityPoster? @relation(fields: [activityPosterId], references: [id], onDelete: SetNull)
|
||||
|
||||
@@index([cityId, scopeType])
|
||||
@@index([cityId, isPrimary])
|
||||
@@ -1226,6 +1229,7 @@ model PartnerAccount {
|
||||
@@index([wxOpenId])
|
||||
@@index([contactPhone])
|
||||
@@index([isTest])
|
||||
@@index([activityPosterId])
|
||||
@@map("partner_account")
|
||||
}
|
||||
|
||||
@@ -1246,6 +1250,26 @@ model PartnerUserNote {
|
||||
@@map("partner_user_note")
|
||||
}
|
||||
|
||||
/// HQ 活动图模板:底图 + 方形码栏(相对百分比)+ 文案
|
||||
model ActivityPoster {
|
||||
id BigInt @id @default(autoincrement()) @db.UnsignedBigInt
|
||||
title String @db.VarChar(128)
|
||||
copyText String @map("copy_text") @db.Text
|
||||
imageUrl String @map("image_url") @db.VarChar(512)
|
||||
qrXPct Decimal @map("qr_x_pct") @db.Decimal(5, 2)
|
||||
qrYPct Decimal @map("qr_y_pct") @db.Decimal(5, 2)
|
||||
qrSizePct Decimal @map("qr_size_pct") @db.Decimal(5, 2)
|
||||
sortOrder Int @default(0) @map("sort_order")
|
||||
status String @default("ACTIVE") @db.VarChar(16)
|
||||
createdAt DateTime @default(now()) @map("created_at") @db.DateTime(3)
|
||||
updatedAt DateTime @updatedAt @map("updated_at") @db.DateTime(3)
|
||||
|
||||
selectedByPartners PartnerAccount[]
|
||||
|
||||
@@index([status, sortOrder])
|
||||
@@map("activity_poster")
|
||||
}
|
||||
|
||||
model PartnerBill {
|
||||
id BigInt @id @default(autoincrement()) @db.UnsignedBigInt
|
||||
billNo String @unique @map("bill_no") @db.VarChar(32)
|
||||
|
||||
Reference in New Issue
Block a user