Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {
- "data": {
- "answer": [
- {
- "survey": 1,
- "start": "2017-04-26T07:52:09.941Z",
- "end": "2017-04-26T07:52:27.908Z",
- "results": [
- {
- "index": 0,
- "start": "2017-04-26T07:52:10.068Z",
- "end": "2017-04-26T07:52:22.042Z",
- "id": "1",
- "type": "IRK-TEXT-QUESTION-STEP",
- "answer": "Enrico"
- },
- {
- "index": 1,
- "start": "2017-04-26T07:52:22.043Z",
- "end": "2017-04-26T07:52:24.690Z",
- "id": "2",
- "type": "IRK-IMAGE-CHOICE-QUESTION-STEP",
- "answer": "2"
- },
- {
- "index": 2,
- "start": "2017-04-26T07:52:24.690Z",
- "end": "2017-04-26T07:52:27.908Z",
- "id": "3",
- "type": "IRK-SCALE-QUESTION-STEP",
- "answer": "8"
- }
- ],
- "createdAt": "2017-04-26T07:52:29.413Z",
- "updatedAt": "2017-04-26T07:52:29.413Z",
- "id": 1
- }
- ],
- "item": [
- {
- "question_type": "image-choice",
- "text": "Choice 1",
- "normal-state-image": "ion-sad-outline",
- "selected-state-image": "ion-sad",
- "value": 1,
- "order": 0,
- "question": 2,
- "id": 1,
- "createdAt": "2017-04-25T23:01:28.407Z",
- "updatedAt": "2017-04-25T23:01:28.407Z"
- },
- {
- "question_type": "image-choice",
- "text": "Choice 2",
- "normal-state-image": "ion-happy-outline",
- "selected-state-image": "ion-happy",
- "value": 2,
- "order": 0,
- "question": 2,
- "id": 2,
- "createdAt": "2017-04-25T23:01:28.408Z",
- "updatedAt": "2017-04-25T23:01:28.408Z"
- },
- {
- "question_type": "image-choice",
- "text": "Choice 1",
- "normal-state-image": "ion-sad-outline",
- "selected-state-image": "ion-sad",
- "value": 1,
- "order": 0,
- "question": 5,
- "id": 3,
- "createdAt": "2017-04-26T00:33:58.610Z",
- "updatedAt": "2017-04-26T00:33:58.610Z"
- },
- {
- "question_type": "image-choice",
- "text": "Choice 2",
- "normal-state-image": "ion-happy-outline",
- "selected-state-image": "ion-happy",
- "value": 2,
- "order": 0,
- "question": 5,
- "id": 4,
- "createdAt": "2017-04-26T00:33:58.612Z",
- "updatedAt": "2017-04-26T00:33:58.612Z"
- }
- ],
- "question": [
- {
- "question_type": "text-question",
- "title": "What's your name?",
- "text": "please, write your full name here",
- "multiple-lines": false,
- "order": 0,
- "survey": 1,
- "id": 1,
- "createdAt": "2017-04-25T23:01:28.396Z",
- "updatedAt": "2017-04-25T23:01:28.396Z"
- },
- {
- "question_type": "image-choice-question",
- "title": "Your feelings",
- "order": 0,
- "survey": 1,
- "id": 2,
- "createdAt": "2017-04-25T23:01:28.397Z",
- "updatedAt": "2017-04-25T23:01:28.402Z"
- },
- {
- "question_type": "scale-question",
- "title": "How much are you awesome?",
- "min": 1,
- "max": 10,
- "step": 1,
- "value": 8,
- "order": 0,
- "survey": 1,
- "id": 3,
- "createdAt": "2017-04-25T23:01:28.398Z",
- "updatedAt": "2017-04-25T23:01:28.398Z"
- },
- {
- "question_type": "text-question",
- "title": "What's your name?",
- "text": "please, write your full name here",
- "multiple-lines": false,
- "order": 0,
- "survey": 2,
- "id": 4,
- "createdAt": "2017-04-26T00:33:58.600Z",
- "updatedAt": "2017-04-26T00:33:58.600Z"
- },
- {
- "question_type": "image-choice-question",
- "title": "Your feelings",
- "order": 0,
- "survey": 2,
- "id": 5,
- "createdAt": "2017-04-26T00:33:58.601Z",
- "updatedAt": "2017-04-26T00:33:58.607Z"
- },
- {
- "question_type": "scale-question",
- "title": "How much are you awesome?",
- "min": 1,
- "max": 10,
- "step": 1,
- "value": 8,
- "order": 0,
- "survey": 2,
- "id": 6,
- "createdAt": "2017-04-26T00:33:58.602Z",
- "updatedAt": "2017-04-26T00:33:58.602Z"
- }
- ],
- "survey": [
- {
- "name": "Consecutur consequentia",
- "limit": 100,
- "id": 1,
- "createdAt": "2017-04-25T23:01:28.365Z",
- "updatedAt": "2017-04-25T23:01:28.386Z"
- },
- {
- "name": "Lorem Ipsum",
- "limit": 4,
- "id": 2,
- "createdAt": "2017-04-26T00:33:58.573Z",
- "updatedAt": "2017-04-26T00:33:58.592Z"
- }
- ],
- "user": []
- },
- "schema": {
- "answer": {
- "start": {
- "type": "datetime"
- },
- "end": {
- "type": "datetime"
- },
- "results": {
- "type": "json"
- },
- "survey": {
- "type": "integer",
- "model": "survey",
- "foreignKey": true,
- "alias": "survey",
- "via": "answers"
- },
- "id": {
- "type": "integer",
- "autoIncrement": true,
- "primaryKey": true,
- "unique": true
- },
- "createdAt": {
- "type": "datetime"
- },
- "updatedAt": {
- "type": "datetime"
- }
- },
- "item": {
- "question_type": {
- "type": "string",
- "enum": [
- "text-choice",
- "picker-choice",
- "image-choice",
- "form-item"
- ],
- "defaultsTo": "form-item"
- },
- "type": {
- "type": "string"
- },
- "text": {
- "type": "string"
- },
- "placeholder": {
- "type": "string"
- },
- "normal-state-image": {
- "type": "string"
- },
- "selected-state-image": {
- "type": "string"
- },
- "value": {
- "type": "integer"
- },
- "order": {
- "type": "integer",
- "defaultsTo": 0
- },
- "question": {
- "type": "integer",
- "model": "question",
- "foreignKey": true,
- "alias": "question"
- },
- "id": {
- "type": "integer",
- "autoIncrement": true,
- "primaryKey": true,
- "unique": true
- },
- "createdAt": {
- "type": "datetime"
- },
- "updatedAt": {
- "type": "datetime"
- }
- },
- "question": {
- "question_type": {
- "type": "string",
- "enum": [
- "instruction",
- "scale-question",
- "boolean-question",
- "text-question",
- "text-choice-question",
- "numeric-question",
- "date-question",
- "time-question",
- "value-picker-question",
- "image-choice-question",
- "form"
- ],
- "defaultsTo": "text-question"
- },
- "title": {
- "type": "string"
- },
- "text": {
- "type": "string"
- },
- "min": {
- "type": "integer"
- },
- "max": {
- "type": "integer"
- },
- "step": {
- "type": "integer"
- },
- "value": {
- "type": "integer"
- },
- "style": {
- "type": "string"
- },
- "multiple-lines": {
- "type": "boolean"
- },
- "unit": {
- "type": "string"
- },
- "true-text": {
- "type": "string"
- },
- "button-text": {
- "type": "string"
- },
- "order": {
- "type": "integer",
- "defaultsTo": 0
- },
- "survey": {
- "type": "integer",
- "model": "survey",
- "foreignKey": true,
- "alias": "survey",
- "via": "questions"
- },
- "id": {
- "type": "integer",
- "autoIncrement": true,
- "primaryKey": true,
- "unique": true
- },
- "createdAt": {
- "type": "datetime"
- },
- "updatedAt": {
- "type": "datetime"
- }
- },
- "survey": {
- "name": {
- "type": "string"
- },
- "limit": {
- "type": "integer"
- },
- "id": {
- "type": "integer",
- "autoIncrement": true,
- "primaryKey": true,
- "unique": true
- },
- "createdAt": {
- "type": "datetime"
- },
- "updatedAt": {
- "type": "datetime"
- }
- },
- "user": {
- "username": {
- "type": "string",
- "unique": true
- },
- "password": {
- "type": "string"
- },
- "email": {
- "type": "string",
- "unique": true
- },
- "firstName": {
- "type": "string",
- "defaultsTo": ""
- },
- "lastName": {
- "type": "string",
- "defaultsTo": ""
- },
- "photo": {
- "type": "string",
- "defaultsTo": ""
- },
- "socialProfiles": {
- "type": "string",
- "defaultsTo": {}
- },
- "id": {
- "type": "integer",
- "autoIncrement": true,
- "primaryKey": true,
- "unique": true
- },
- "createdAt": {
- "type": "datetime"
- },
- "updatedAt": {
- "type": "datetime"
- }
- }
- },
- "counters": {
- "answer": {
- "id": 1
- },
- "item": {
- "id": 4
- },
- "question": {
- "id": 6
- },
- "survey": {
- "id": 2
- },
- "user": {}
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement