Guest User

Untitled

a guest
Jul 16th, 2018
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.85 KB | None | 0 0
  1. class BaseMessage
  2. include DataMapper::Resource
  3.  
  4. property :id, Serial, :index => true
  5. property :body, Text
  6.  
  7. has n, :fuzz_results
  8. end
  9.  
  10. class FuzzResult
  11. include DataMapper::Resource
  12.  
  13. property :id, Serial, :index => true
  14. property :tag, String
  15. property :original, Text
  16. property :subst, Text
  17. property :iteration, Integer
  18. property :response, Text
  19. property :headers, Text
  20.  
  21. belongs_to :base_message
  22. end
  23.  
  24. class FuzzRun
  25. include DataMapper::Resource
  26.  
  27. property :id, Serial, :index => true
  28. property :started_at, Time
  29. property :status, Enum[:running, :stopped], :default => :running, :index => true
  30.  
  31. has 1, :base_message
  32. end
  33.  
  34. class FuzzMessage
  35. include DataMapper::Resource
  36.  
  37. property :id, Serial, :index => true
  38. property :name, String
  39. property :text, Text
  40. end
Add Comment
Please, Sign In to add comment