Guest User

Untitled

a guest
May 26th, 2018
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.96 KB | None | 0 0
  1. from lib.mongomapper import Document
  2. from lib.db import mongo
  3.  
  4. class Raid(Document):
  5. """
  6. _id = ObjectId
  7. event_id = ObjectId
  8. outcome = Integer
  9. participants = List
  10. loot = List
  11. screenshots = List
  12. created_on = DateTime
  13. **variables
  14. """
  15.  
  16. db = mongo.dkp
  17. collection = 'raids'
  18.  
  19. class Event(Document):
  20. """
  21. _id = ObjectId
  22. name = String
  23. importance = Integer
  24. **variables
  25. """
  26.  
  27. db = mongo.dkp
  28. collection = 'events'
  29.  
  30. class Item(Document):
  31. """
  32. _id = ObjectId
  33. item_id = ObjectId
  34. name = String
  35. **variables
  36. """
  37.  
  38. db = mongo.dkp
  39. collection = 'items'
  40.  
  41. class Member(Document):
  42. """
  43. _id = ObjectId
  44. member_id = ObjectId
  45. placeholder = Boolean
  46. attendence = {
  47. days7 = Integer
  48. days30 = Integer
  49. days90 = Integer
  50. lifetime = Integer
  51. }
  52. adjustments = List
  53. wish_list = List
  54. **variables
  55. """
  56.  
  57. db = mongo.dkp
  58. collection = 'members'
Add Comment
Please, Sign In to add comment