model Category { id String @id @map("_id") @default(auto()) @db.ObjectId name String // 分类名称 subtitle String? // 副标题 seq Int @default(0) // 排序 status Int // 状态 0: 禁用; 1: 启用 createAt BigInt @default(0) // 创建时间 updateAt BigInt @default(0) // 更新时间 // Relations - storing tag references as objects (id + name) tags Json? // Array of { id, name } // Tag names only for search optimization tagNames String[] // Array of tag names @@map("category") }