Advertisement
Guest User

Untitled

a guest
Oct 22nd, 2019
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. const SharedSchema = {
  2. parentRef: ObjectId,
  3. address: {
  4. city: String,
  5. country: String
  6. },
  7. mail: {
  8. mailBox: {
  9. type: String,
  10. },
  11. packageLocker: {
  12. type: String,
  13. },
  14. },
  15. }
  16.  
  17. const Property = {
  18. ...SharedSchema,
  19. website: {
  20. heroImg: String,
  21. },
  22. }
  23.  
  24. const Building = {
  25. ...SharedSchema,
  26. }
  27.  
  28. const RoomType = {
  29. ...SharedSchema,
  30. }
  31.  
  32. const Unit = {
  33. ...SharedSchema,
  34. lockIds: [String],
  35. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement