operation-log.prisma 622 B

12345678910111213141516171819202122232425
  1. enum OperationType {
  2. CREATE
  3. READ
  4. UPDATE
  5. DELETE
  6. }
  7. model OperationLog {
  8. id Int @id @default(autoincrement())
  9. username String?
  10. menuId Int? @map("menu_id")
  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. }