Advertisement
Guest User

Untitled

a guest
Feb 9th, 2016
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.55 KB | None | 0 0
  1. # Estructura de data
  2.  
  3. ## Sitios fisicos
  4.  
  5. Se recomienda la siguiente extructura:
  6.  
  7. ```json
  8. {
  9. "name": string,
  10. "type": [
  11. "hotel",
  12. "restaurante",
  13. "etc..."
  14. ],
  15. //Podria ser otra tabla
  16. "url": string,
  17. "facebook-fanpage": string,
  18. "instagram-account": string,
  19. "twitter-account": string,
  20. "tripadvisor-account": string,
  21. //Podria ser otra tabla de Contacto
  22. "phone": string,
  23. "email": string,
  24. //
  25. "location" : {
  26. "lat" : numeric,
  27. "lng" : numeric
  28. },
  29. "country": string,
  30. "address": {
  31. "formatted": string,
  32. "state": string,
  33. "city": string,
  34. "postalCode": string
  35. }
  36. }
  37. ```
  38.  
  39. ## Actividades
  40.  
  41. Se recomienda la siguiente estructura:
  42.  
  43. ```json
  44. {
  45. "name": string,
  46. "type": [
  47. "canoppy",
  48. "classes",
  49. "etc..."
  50. ],
  51. "place": placeId, //Id del sitio, no definido aΓΊn
  52. "description": string,
  53. "price": numeric
  54. }
  55.  
  56. ```
  57.  
  58. ## Schedule
  59.  
  60. ```json
  61. {
  62. siteId: guid,
  63. activityId: guid,
  64. dateActivity: datetime,
  65. paxId: guid //crear tabla de pax
  66. }
  67.  
  68. ```
  69. ## Medio de Contacto
  70.  
  71. Se recomienda la siguiente extructura:
  72.  
  73. ```json
  74. {
  75. "type": [
  76. "phone",
  77. "email",
  78. "fax",
  79. "etc..."
  80. ],
  81. "description": string
  82. }
  83.  
  84. ```
  85.  
  86. ## Medio Social
  87.  
  88. Se recomienda la siguiente extructura:
  89.  
  90. ```json
  91. {
  92. "type": [
  93. "facebook-account",
  94. "twitter-account",
  95. "instagram-account",
  96. "tripadvisor-account",
  97. "etc..."
  98. ],
  99. issApp: boolean,
  100. "description": string
  101. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement