model Ads { id String @id @map("_id") @default(auto()) @db.ObjectId adId Int @unique adType AdType // Redis key & module type advertiser String // 广告商 (业务上限制 max 20 字符) title String // 标题 (业务上限制 max 20 字符) adsContent String? // 广告文案 (业务上限制 max 500 字符) adsCoverImg String? // 广告图片 adsUrl String? // 广告链接 imgSource ImageSource @default(PROVIDER) // 有效期,使用 BigInt epoch startDt BigInt // 开始时间 expiryDt BigInt // 到期时间 seq Int @default(0) // 排序 status Int @default(1) // 状态 0: 禁用; 1: 启用 createAt BigInt @default(0) // 创建时间 updateAt BigInt @default(0) // 更新时间 @@map("ads") // collection name }