model Category { id String @id @map("_id") @default(auto()) @db.ObjectId name String // 分类名称 subtitle String? // 副标题 seq Int @default(0) // 排序 status Int @default(1) // 状态 0: 禁用; 1: 启用 // epoch seconds stored as BigInt createAt BigInt @default(0) // 创建时间 (秒) updateAt BigInt @default(0) // 更新时间 (秒) // Legacy/optional: denormalized tag refs (to be discussed) tags Json? // Array of { id, name } // Search optimization / browsing helper (keep) tagNames String[] // Array of tag names @@index([status]) @@index([seq]) @@index([tagNames]) @@map("category") }