ads.prisma 930 B

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