sys-operation-log.prisma 655 B

12345678910111213141516171819202122232425
  1. enum OperationType {
  2. CREATE
  3. READ
  4. UPDATE
  5. DELETE
  6. }
  7. model SysOperationLog {
  8. id String @id @map("_id") @default(auto()) @db.ObjectId
  9. username String?
  10. menuId String? @map("menu_id") @db.ObjectId
  11. description String
  12. type OperationType
  13. status Boolean
  14. method String
  15. path String
  16. body Json?
  17. response Json?
  18. ipAddress String @map("ip_address")
  19. callMethod String @map("call_method")
  20. createTime DateTime @default(now()) @map("create_time")
  21. updateTime DateTime @default(now()) @updatedAt @map("update_time")
  22. @@map("sys_operation_log")
  23. }