Advertisement
Guest User

Untitled

a guest
Apr 26th, 2017
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.51 KB | None | 0 0
  1. {
  2. "data": {
  3. "answer": [
  4. {
  5. "survey": 1,
  6. "start": "2017-04-26T07:52:09.941Z",
  7. "end": "2017-04-26T07:52:27.908Z",
  8. "results": [
  9. {
  10. "index": 0,
  11. "start": "2017-04-26T07:52:10.068Z",
  12. "end": "2017-04-26T07:52:22.042Z",
  13. "id": "1",
  14. "type": "IRK-TEXT-QUESTION-STEP",
  15. "answer": "Enrico"
  16. },
  17. {
  18. "index": 1,
  19. "start": "2017-04-26T07:52:22.043Z",
  20. "end": "2017-04-26T07:52:24.690Z",
  21. "id": "2",
  22. "type": "IRK-IMAGE-CHOICE-QUESTION-STEP",
  23. "answer": "2"
  24. },
  25. {
  26. "index": 2,
  27. "start": "2017-04-26T07:52:24.690Z",
  28. "end": "2017-04-26T07:52:27.908Z",
  29. "id": "3",
  30. "type": "IRK-SCALE-QUESTION-STEP",
  31. "answer": "8"
  32. }
  33. ],
  34. "createdAt": "2017-04-26T07:52:29.413Z",
  35. "updatedAt": "2017-04-26T07:52:29.413Z",
  36. "id": 1
  37. }
  38. ],
  39. "item": [
  40. {
  41. "question_type": "image-choice",
  42. "text": "Choice 1",
  43. "normal-state-image": "ion-sad-outline",
  44. "selected-state-image": "ion-sad",
  45. "value": 1,
  46. "order": 0,
  47. "question": 2,
  48. "id": 1,
  49. "createdAt": "2017-04-25T23:01:28.407Z",
  50. "updatedAt": "2017-04-25T23:01:28.407Z"
  51. },
  52. {
  53. "question_type": "image-choice",
  54. "text": "Choice 2",
  55. "normal-state-image": "ion-happy-outline",
  56. "selected-state-image": "ion-happy",
  57. "value": 2,
  58. "order": 0,
  59. "question": 2,
  60. "id": 2,
  61. "createdAt": "2017-04-25T23:01:28.408Z",
  62. "updatedAt": "2017-04-25T23:01:28.408Z"
  63. },
  64. {
  65. "question_type": "image-choice",
  66. "text": "Choice 1",
  67. "normal-state-image": "ion-sad-outline",
  68. "selected-state-image": "ion-sad",
  69. "value": 1,
  70. "order": 0,
  71. "question": 5,
  72. "id": 3,
  73. "createdAt": "2017-04-26T00:33:58.610Z",
  74. "updatedAt": "2017-04-26T00:33:58.610Z"
  75. },
  76. {
  77. "question_type": "image-choice",
  78. "text": "Choice 2",
  79. "normal-state-image": "ion-happy-outline",
  80. "selected-state-image": "ion-happy",
  81. "value": 2,
  82. "order": 0,
  83. "question": 5,
  84. "id": 4,
  85. "createdAt": "2017-04-26T00:33:58.612Z",
  86. "updatedAt": "2017-04-26T00:33:58.612Z"
  87. }
  88. ],
  89. "question": [
  90. {
  91. "question_type": "text-question",
  92. "title": "What's your name?",
  93. "text": "please, write your full name here",
  94. "multiple-lines": false,
  95. "order": 0,
  96. "survey": 1,
  97. "id": 1,
  98. "createdAt": "2017-04-25T23:01:28.396Z",
  99. "updatedAt": "2017-04-25T23:01:28.396Z"
  100. },
  101. {
  102. "question_type": "image-choice-question",
  103. "title": "Your feelings",
  104. "order": 0,
  105. "survey": 1,
  106. "id": 2,
  107. "createdAt": "2017-04-25T23:01:28.397Z",
  108. "updatedAt": "2017-04-25T23:01:28.402Z"
  109. },
  110. {
  111. "question_type": "scale-question",
  112. "title": "How much are you awesome?",
  113. "min": 1,
  114. "max": 10,
  115. "step": 1,
  116. "value": 8,
  117. "order": 0,
  118. "survey": 1,
  119. "id": 3,
  120. "createdAt": "2017-04-25T23:01:28.398Z",
  121. "updatedAt": "2017-04-25T23:01:28.398Z"
  122. },
  123. {
  124. "question_type": "text-question",
  125. "title": "What's your name?",
  126. "text": "please, write your full name here",
  127. "multiple-lines": false,
  128. "order": 0,
  129. "survey": 2,
  130. "id": 4,
  131. "createdAt": "2017-04-26T00:33:58.600Z",
  132. "updatedAt": "2017-04-26T00:33:58.600Z"
  133. },
  134. {
  135. "question_type": "image-choice-question",
  136. "title": "Your feelings",
  137. "order": 0,
  138. "survey": 2,
  139. "id": 5,
  140. "createdAt": "2017-04-26T00:33:58.601Z",
  141. "updatedAt": "2017-04-26T00:33:58.607Z"
  142. },
  143. {
  144. "question_type": "scale-question",
  145. "title": "How much are you awesome?",
  146. "min": 1,
  147. "max": 10,
  148. "step": 1,
  149. "value": 8,
  150. "order": 0,
  151. "survey": 2,
  152. "id": 6,
  153. "createdAt": "2017-04-26T00:33:58.602Z",
  154. "updatedAt": "2017-04-26T00:33:58.602Z"
  155. }
  156. ],
  157. "survey": [
  158. {
  159. "name": "Consecutur consequentia",
  160. "limit": 100,
  161. "id": 1,
  162. "createdAt": "2017-04-25T23:01:28.365Z",
  163. "updatedAt": "2017-04-25T23:01:28.386Z"
  164. },
  165. {
  166. "name": "Lorem Ipsum",
  167. "limit": 4,
  168. "id": 2,
  169. "createdAt": "2017-04-26T00:33:58.573Z",
  170. "updatedAt": "2017-04-26T00:33:58.592Z"
  171. }
  172. ],
  173. "user": []
  174. },
  175. "schema": {
  176. "answer": {
  177. "start": {
  178. "type": "datetime"
  179. },
  180. "end": {
  181. "type": "datetime"
  182. },
  183. "results": {
  184. "type": "json"
  185. },
  186. "survey": {
  187. "type": "integer",
  188. "model": "survey",
  189. "foreignKey": true,
  190. "alias": "survey",
  191. "via": "answers"
  192. },
  193. "id": {
  194. "type": "integer",
  195. "autoIncrement": true,
  196. "primaryKey": true,
  197. "unique": true
  198. },
  199. "createdAt": {
  200. "type": "datetime"
  201. },
  202. "updatedAt": {
  203. "type": "datetime"
  204. }
  205. },
  206. "item": {
  207. "question_type": {
  208. "type": "string",
  209. "enum": [
  210. "text-choice",
  211. "picker-choice",
  212. "image-choice",
  213. "form-item"
  214. ],
  215. "defaultsTo": "form-item"
  216. },
  217. "type": {
  218. "type": "string"
  219. },
  220. "text": {
  221. "type": "string"
  222. },
  223. "placeholder": {
  224. "type": "string"
  225. },
  226. "normal-state-image": {
  227. "type": "string"
  228. },
  229. "selected-state-image": {
  230. "type": "string"
  231. },
  232. "value": {
  233. "type": "integer"
  234. },
  235. "order": {
  236. "type": "integer",
  237. "defaultsTo": 0
  238. },
  239. "question": {
  240. "type": "integer",
  241. "model": "question",
  242. "foreignKey": true,
  243. "alias": "question"
  244. },
  245. "id": {
  246. "type": "integer",
  247. "autoIncrement": true,
  248. "primaryKey": true,
  249. "unique": true
  250. },
  251. "createdAt": {
  252. "type": "datetime"
  253. },
  254. "updatedAt": {
  255. "type": "datetime"
  256. }
  257. },
  258. "question": {
  259. "question_type": {
  260. "type": "string",
  261. "enum": [
  262. "instruction",
  263. "scale-question",
  264. "boolean-question",
  265. "text-question",
  266. "text-choice-question",
  267. "numeric-question",
  268. "date-question",
  269. "time-question",
  270. "value-picker-question",
  271. "image-choice-question",
  272. "form"
  273. ],
  274. "defaultsTo": "text-question"
  275. },
  276. "title": {
  277. "type": "string"
  278. },
  279. "text": {
  280. "type": "string"
  281. },
  282. "min": {
  283. "type": "integer"
  284. },
  285. "max": {
  286. "type": "integer"
  287. },
  288. "step": {
  289. "type": "integer"
  290. },
  291. "value": {
  292. "type": "integer"
  293. },
  294. "style": {
  295. "type": "string"
  296. },
  297. "multiple-lines": {
  298. "type": "boolean"
  299. },
  300. "unit": {
  301. "type": "string"
  302. },
  303. "true-text": {
  304. "type": "string"
  305. },
  306. "button-text": {
  307. "type": "string"
  308. },
  309. "order": {
  310. "type": "integer",
  311. "defaultsTo": 0
  312. },
  313. "survey": {
  314. "type": "integer",
  315. "model": "survey",
  316. "foreignKey": true,
  317. "alias": "survey",
  318. "via": "questions"
  319. },
  320. "id": {
  321. "type": "integer",
  322. "autoIncrement": true,
  323. "primaryKey": true,
  324. "unique": true
  325. },
  326. "createdAt": {
  327. "type": "datetime"
  328. },
  329. "updatedAt": {
  330. "type": "datetime"
  331. }
  332. },
  333. "survey": {
  334. "name": {
  335. "type": "string"
  336. },
  337. "limit": {
  338. "type": "integer"
  339. },
  340. "id": {
  341. "type": "integer",
  342. "autoIncrement": true,
  343. "primaryKey": true,
  344. "unique": true
  345. },
  346. "createdAt": {
  347. "type": "datetime"
  348. },
  349. "updatedAt": {
  350. "type": "datetime"
  351. }
  352. },
  353. "user": {
  354. "username": {
  355. "type": "string",
  356. "unique": true
  357. },
  358. "password": {
  359. "type": "string"
  360. },
  361. "email": {
  362. "type": "string",
  363. "unique": true
  364. },
  365. "firstName": {
  366. "type": "string",
  367. "defaultsTo": ""
  368. },
  369. "lastName": {
  370. "type": "string",
  371. "defaultsTo": ""
  372. },
  373. "photo": {
  374. "type": "string",
  375. "defaultsTo": ""
  376. },
  377. "socialProfiles": {
  378. "type": "string",
  379. "defaultsTo": {}
  380. },
  381. "id": {
  382. "type": "integer",
  383. "autoIncrement": true,
  384. "primaryKey": true,
  385. "unique": true
  386. },
  387. "createdAt": {
  388. "type": "datetime"
  389. },
  390. "updatedAt": {
  391. "type": "datetime"
  392. }
  393. }
  394. },
  395. "counters": {
  396. "answer": {
  397. "id": 1
  398. },
  399. "item": {
  400. "id": 4
  401. },
  402. "question": {
  403. "id": 6
  404. },
  405. "survey": {
  406. "id": 2
  407. },
  408. "user": {}
  409. }
  410. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement