| 12345678910111213141516171819202122232425262728 |
- model Channel {
- id String @id @map("_id") @default(auto()) @db.ObjectId
- channelId String @unique
- name String // 渠道名称
- landingUrl String // 最新网址
- videoCdn String? // 视频CDN
- coverCdn String? // 封面CDN
- clientName String? // 客户端名称
- clientNotice String? // 客户端公告
- remark String? // 备注
- isDefault Boolean @default(false) // 默认渠道
- // epoch seconds stored as BigInt
- createAt BigInt @default(0) // 创建时间 (秒)
- updateAt BigInt @default(0) // 更新时间 (秒)
- // Channel enabled categories (UI: 片库分类 - category selection)
- categories Json? // Array of { id, name }
- // Homepage recommended tags (UI: 首页推荐)
- tags Json? // Array of { id, name }
- // Denormalized names derived from tags[].name (trimmed) for quick query/display
- tagNames String[] // Array of tag names
- @@index([isDefault])
- @@map("channel")
- }
|