| 123456789101112131415161718192021222324 |
- model Ads {
- id String @id @map("_id") @default(auto()) @db.ObjectId
- channelId String @db.ObjectId // 渠道 ID
- adsModule String // 广告模块 (banner/startup/轮播等)
- advertiser String // 广告商 (业务上限制 max 20 字符)
- title String // 标题 (业务上限制 max 20 字符)
- adsContent String? // 广告文案 (业务上限制 max 500 字符)
- adsCoverImg String? // 广告图片
- adsUrl String? // 广告链接
- // 有效期,使用 BigInt epoch
- startDt BigInt // 开始时间
- expiryDt BigInt // 到期时间
- seq Int @default(0) // 排序
- status Int @default(1) // 状态 0: 禁用; 1: 启用
- createAt BigInt @default(0) // 创建时间
- updateAt BigInt @default(0) // 更新时间
- // Relations
- channel Channel @relation(fields: [channelId], references: [id])
- @@map("ads") // collection name
- }
|