category.prisma 740 B

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