Update data dump and tests. #229
This commit is contained in:
parent
3e54220ecf
commit
4caa2c6aaa
2 changed files with 69 additions and 341 deletions
|
|
@ -687,7 +687,7 @@
|
|||
"method": "GET",
|
||||
"header": [],
|
||||
"url": {
|
||||
"raw": "{{resq_url}}/api/vehicles?api_key={{api_key}}",
|
||||
"raw": "{{resq_url}}/api/vehicles?api_key={{preset_api_key}}",
|
||||
"host": [
|
||||
"{{resq_url}}"
|
||||
],
|
||||
|
|
@ -698,7 +698,7 @@
|
|||
"query": [
|
||||
{
|
||||
"key": "api_key",
|
||||
"value": "{{api_key}}"
|
||||
"value": "{{preset_api_key}}"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
@ -720,8 +720,6 @@
|
|||
"pm.test(\"List promos\", function () {",
|
||||
" var jsonData = pm.response.json();",
|
||||
" pm.expect(jsonData.error.status).to.eql(\"success\");",
|
||||
" pm.expect(jsonData.data.promos).to.have.lengthOf(9);",
|
||||
" pm.expect(jsonData.data.promos[0].code).to.eql(\"EMPLOY\");",
|
||||
"});"
|
||||
],
|
||||
"type": "text/javascript"
|
||||
|
|
@ -732,7 +730,7 @@
|
|||
"method": "GET",
|
||||
"header": [],
|
||||
"url": {
|
||||
"raw": "{{resq_url}}/api/promos?api_key={{api_key}}",
|
||||
"raw": "{{resq_url}}/api/promos?api_key={{preset_api_key}}",
|
||||
"host": [
|
||||
"{{resq_url}}"
|
||||
],
|
||||
|
|
@ -743,7 +741,7 @@
|
|||
"query": [
|
||||
{
|
||||
"key": "api_key",
|
||||
"value": "{{api_key}}"
|
||||
"value": "{{preset_api_key}}"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
@ -777,7 +775,7 @@
|
|||
"method": "GET",
|
||||
"header": [],
|
||||
"url": {
|
||||
"raw": "{{resq_url}}/api/vehicles/{{make_id}}/compatible_batteries?api_key={{api_key}}",
|
||||
"raw": "{{resq_url}}/api/vehicles/{{make_id}}/compatible_batteries?api_key={{preset_api_key}}",
|
||||
"host": [
|
||||
"{{resq_url}}"
|
||||
],
|
||||
|
|
@ -790,7 +788,7 @@
|
|||
"query": [
|
||||
{
|
||||
"key": "api_key",
|
||||
"value": "{{api_key}}"
|
||||
"value": "{{preset_api_key}}"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
@ -1807,285 +1805,6 @@
|
|||
}
|
||||
},
|
||||
"response": []
|
||||
},
|
||||
{
|
||||
"name": "[Normal] Set Privacy Policy to Existing Policy",
|
||||
"event": [
|
||||
{
|
||||
"listen": "test",
|
||||
"script": {
|
||||
"id": "b8b714b9-9019-4c5b-ab03-ef8787fff1ac",
|
||||
"exec": [
|
||||
"pm.test(\"Status code is 200\", function () {",
|
||||
" pm.response.to.have.status(200);",
|
||||
"});",
|
||||
"",
|
||||
"pm.test(\"Set privacy policy\", function () {",
|
||||
" var jsonData = pm.response.json();",
|
||||
" pm.expect(jsonData.error.status).to.eql(\"success\");",
|
||||
"});"
|
||||
],
|
||||
"type": "text/javascript"
|
||||
}
|
||||
}
|
||||
],
|
||||
"request": {
|
||||
"method": "POST",
|
||||
"header": [],
|
||||
"body": {
|
||||
"mode": "formdata",
|
||||
"formdata": [
|
||||
{
|
||||
"key": "privacy_policy_id",
|
||||
"value": "{{privacy_policy_id}}",
|
||||
"type": "text"
|
||||
}
|
||||
]
|
||||
},
|
||||
"url": {
|
||||
"raw": "{{resq_url}}/api/warranty/{{wid}}/privacy_policy?api_key={{preset_api_key}}",
|
||||
"host": [
|
||||
"{{resq_url}}"
|
||||
],
|
||||
"path": [
|
||||
"api",
|
||||
"warranty",
|
||||
"{{wid}}",
|
||||
"privacy_policy"
|
||||
],
|
||||
"query": [
|
||||
{
|
||||
"key": "api_key",
|
||||
"value": "{{preset_api_key}}"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"response": []
|
||||
},
|
||||
{
|
||||
"name": "[Normal] Set Privacy Policy to null",
|
||||
"event": [
|
||||
{
|
||||
"listen": "test",
|
||||
"script": {
|
||||
"id": "b8b714b9-9019-4c5b-ab03-ef8787fff1ac",
|
||||
"exec": [
|
||||
"pm.test(\"Status code is 200\", function () {",
|
||||
" pm.response.to.have.status(200);",
|
||||
"});",
|
||||
"",
|
||||
"pm.test(\"Set privacy policy\", function () {",
|
||||
" var jsonData = pm.response.json();",
|
||||
" pm.expect(jsonData.error.status).to.eql(\"success\");",
|
||||
"});"
|
||||
],
|
||||
"type": "text/javascript"
|
||||
}
|
||||
}
|
||||
],
|
||||
"request": {
|
||||
"method": "POST",
|
||||
"header": [],
|
||||
"body": {
|
||||
"mode": "formdata",
|
||||
"formdata": [
|
||||
{
|
||||
"key": "privacy_policy_id",
|
||||
"value": "0",
|
||||
"type": "text"
|
||||
}
|
||||
]
|
||||
},
|
||||
"url": {
|
||||
"raw": "{{resq_url}}/api/warranty/{{wid}}/privacy_policy?api_key={{preset_api_key}}",
|
||||
"host": [
|
||||
"{{resq_url}}"
|
||||
],
|
||||
"path": [
|
||||
"api",
|
||||
"warranty",
|
||||
"{{wid}}",
|
||||
"privacy_policy"
|
||||
],
|
||||
"query": [
|
||||
{
|
||||
"key": "api_key",
|
||||
"value": "{{preset_api_key}}"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"response": []
|
||||
},
|
||||
{
|
||||
"name": "[Abnormal] Set Privacy Policy - Non existent privacy policy",
|
||||
"event": [
|
||||
{
|
||||
"listen": "test",
|
||||
"script": {
|
||||
"id": "b8b714b9-9019-4c5b-ab03-ef8787fff1ac",
|
||||
"exec": [
|
||||
"pm.test(\"Status code is 200\", function () {",
|
||||
" pm.response.to.have.status(200);",
|
||||
"});",
|
||||
"",
|
||||
"pm.test(\"Set privacy policy - Non existent privacy policy\", function () {",
|
||||
" var jsonData = pm.response.json();",
|
||||
" pm.expect(jsonData.error.status).to.eql(\"error\");",
|
||||
" pm.expect(jsonData.error.message).to.eql(\"No privacy policy found.\");",
|
||||
"});"
|
||||
],
|
||||
"type": "text/javascript"
|
||||
}
|
||||
}
|
||||
],
|
||||
"request": {
|
||||
"method": "POST",
|
||||
"header": [],
|
||||
"body": {
|
||||
"mode": "formdata",
|
||||
"formdata": [
|
||||
{
|
||||
"key": "privacy_policy_id",
|
||||
"value": "{{non_existent_policy_id}}",
|
||||
"type": "text"
|
||||
}
|
||||
]
|
||||
},
|
||||
"url": {
|
||||
"raw": "{{resq_url}}/api/warranty/{{wid}}/privacy_policy?api_key={{preset_api_key}}",
|
||||
"host": [
|
||||
"{{resq_url}}"
|
||||
],
|
||||
"path": [
|
||||
"api",
|
||||
"warranty",
|
||||
"{{wid}}",
|
||||
"privacy_policy"
|
||||
],
|
||||
"query": [
|
||||
{
|
||||
"key": "api_key",
|
||||
"value": "{{preset_api_key}}"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"response": []
|
||||
},
|
||||
{
|
||||
"name": "[Abnormal] Set Privacy Policy - Non-existent warranty",
|
||||
"event": [
|
||||
{
|
||||
"listen": "test",
|
||||
"script": {
|
||||
"id": "b8b714b9-9019-4c5b-ab03-ef8787fff1ac",
|
||||
"exec": [
|
||||
"pm.test(\"Status code is 200\", function () {",
|
||||
" pm.response.to.have.status(200);",
|
||||
"});",
|
||||
"",
|
||||
"pm.test(\"Set privacy policy - Non existent warranty\", function () {",
|
||||
" var jsonData = pm.response.json();",
|
||||
" pm.expect(jsonData.error.status).to.eql(\"error\");",
|
||||
" pm.expect(jsonData.error.message).to.eql(\"No warranty found.\");",
|
||||
"});"
|
||||
],
|
||||
"type": "text/javascript"
|
||||
}
|
||||
}
|
||||
],
|
||||
"request": {
|
||||
"method": "POST",
|
||||
"header": [],
|
||||
"body": {
|
||||
"mode": "formdata",
|
||||
"formdata": [
|
||||
{
|
||||
"key": "privacy_policy_id",
|
||||
"value": "{{privacy_policy_id}}",
|
||||
"type": "text"
|
||||
}
|
||||
]
|
||||
},
|
||||
"url": {
|
||||
"raw": "{{resq_url}}/api/warranty/{{non_existent_wid}}/privacy_policy?api_key={{preset_api_key}}",
|
||||
"host": [
|
||||
"{{resq_url}}"
|
||||
],
|
||||
"path": [
|
||||
"api",
|
||||
"warranty",
|
||||
"{{non_existent_wid}}",
|
||||
"privacy_policy"
|
||||
],
|
||||
"query": [
|
||||
{
|
||||
"key": "api_key",
|
||||
"value": "{{preset_api_key}}"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"response": []
|
||||
},
|
||||
{
|
||||
"name": "[Abnormal] Set Privacy Policy - Missing policy ID",
|
||||
"event": [
|
||||
{
|
||||
"listen": "test",
|
||||
"script": {
|
||||
"id": "b8b714b9-9019-4c5b-ab03-ef8787fff1ac",
|
||||
"exec": [
|
||||
"pm.test(\"Status code is 200\", function () {",
|
||||
" pm.response.to.have.status(200);",
|
||||
"});",
|
||||
"",
|
||||
"pm.test(\"Set privacy policy - missing policy ID\", function () {",
|
||||
" var jsonData = pm.response.json();",
|
||||
" pm.expect(jsonData.error.status).to.eql(\"error\");",
|
||||
" pm.expect(jsonData.error.message).to.eql(\"Missing parameter(s): privacy_policy_id\");",
|
||||
"});"
|
||||
],
|
||||
"type": "text/javascript"
|
||||
}
|
||||
}
|
||||
],
|
||||
"request": {
|
||||
"method": "POST",
|
||||
"header": [],
|
||||
"body": {
|
||||
"mode": "formdata",
|
||||
"formdata": [
|
||||
{
|
||||
"key": "privacy_policy_id",
|
||||
"value": "{{privacy_policy_id}}",
|
||||
"type": "text",
|
||||
"disabled": true
|
||||
}
|
||||
]
|
||||
},
|
||||
"url": {
|
||||
"raw": "{{resq_url}}/api/warranty/{{wid}}/privacy_policy?api_key={{preset_api_key}}",
|
||||
"host": [
|
||||
"{{resq_url}}"
|
||||
],
|
||||
"path": [
|
||||
"api",
|
||||
"warranty",
|
||||
"{{wid}}",
|
||||
"privacy_policy"
|
||||
],
|
||||
"query": [
|
||||
{
|
||||
"key": "api_key",
|
||||
"value": "{{preset_api_key}}"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"response": []
|
||||
}
|
||||
],
|
||||
"event": [
|
||||
|
|
@ -2112,269 +1831,273 @@
|
|||
],
|
||||
"variable": [
|
||||
{
|
||||
"id": "b1881df0-5aa2-438c-8ac5-46ccd259f2c0",
|
||||
"id": "b2064915-5560-460e-bf8d-bac3b1c793ee",
|
||||
"key": "resq_url",
|
||||
"value": "resq.local",
|
||||
"type": "string",
|
||||
"disabled": true
|
||||
},
|
||||
{
|
||||
"id": "59777f63-095b-4325-a86e-f6adceb729a8",
|
||||
"id": "16984ab5-557d-40fa-b3a6-9c2305a3f5ca",
|
||||
"key": "phone_model",
|
||||
"value": "iPhone8",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"id": "fc1b400f-5d55-4471-95f1-359b75eb7a2b",
|
||||
"id": "c100fd09-600a-43e3-bbe3-9abf8b7d89ea",
|
||||
"key": "os_type",
|
||||
"value": "IOS",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"id": "aa7c948b-2de9-4691-82e7-bb6024403602",
|
||||
"id": "7028140b-9728-40ef-8383-3b5aa1f36779",
|
||||
"key": "os_version",
|
||||
"value": "11.4",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"id": "44e211e0-50f4-4903-9e21-b1527f887390",
|
||||
"id": "17c36210-5171-4282-a8b9-3ad598f7c1d2",
|
||||
"key": "phone_id",
|
||||
"value": "11376660-F8BF-46ED-B30A-EF3F361EE223",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"id": "44636d6d-4522-4ffb-a459-f05011b103a0",
|
||||
"id": "68c74734-b2aa-4f59-9544-7a42f5f098e6",
|
||||
"key": "phone_number",
|
||||
"value": "9221111111",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"id": "4eb61ece-c824-4840-8f14-ae91e34ba6cc",
|
||||
"id": "307ee172-4876-4a13-ad9f-b2329baed742",
|
||||
"key": "first_name",
|
||||
"value": "Stiltzkin",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"id": "35704451-b847-4099-b119-96c091bdf787",
|
||||
"id": "5cfa47ce-5ce8-4fdc-9c64-885b3eeed2a4",
|
||||
"key": "last_name",
|
||||
"value": "Moogle",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"id": "0cfe09d1-c6e2-40db-9f19-684ff95f8b9c",
|
||||
"id": "f22464fb-e384-499f-afac-8a8c70986a9a",
|
||||
"key": "mfg_id",
|
||||
"value": "1435",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"id": "e0b3374d-559b-48ca-8df3-b9383b54b1c8",
|
||||
"id": "57b70318-9e95-4844-b8fb-4e630faf7c9f",
|
||||
"key": "make_id",
|
||||
"value": "22043",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"id": "e462ba31-08b2-4e93-b88d-bde3d74600e1",
|
||||
"id": "191c004f-e7a2-464d-a01a-89e753055778",
|
||||
"key": "name",
|
||||
"value": "Beetle 1.2 TSI MT (Gas)",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"id": "f7b3bb29-f9e8-48bf-bb6e-160b5a99537b",
|
||||
"id": "64733c08-c922-4f6a-b457-c6a6d046e7eb",
|
||||
"key": "plate_num",
|
||||
"value": "MGL1234",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"id": "56b95327-9735-4e0b-b1b5-6e8dd2a06b57",
|
||||
"id": "53e239e8-64e0-4724-8357-1830836b4d5c",
|
||||
"key": "model_year",
|
||||
"value": "2016",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"id": "21873510-bb46-4b6d-861a-1269b3d693ec",
|
||||
"id": "59cb19e6-8a2f-4724-8e10-975f00c7166d",
|
||||
"key": "color",
|
||||
"value": "White",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"id": "ca7c31a9-a64c-44ce-bd21-ed6fb959a8fc",
|
||||
"id": "81dcc9c4-d37b-43d0-913a-099f206acf45",
|
||||
"key": "condition",
|
||||
"value": "Brand New",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"id": "916d7aad-3769-4680-8898-2f662cd84da8",
|
||||
"id": "422fbab4-99c3-4a9d-9f6e-7f6239225ccc",
|
||||
"key": "fuel_type",
|
||||
"value": "Gas",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"id": "9335b8b3-c38e-48c9-b2de-f41db10bbe33",
|
||||
"id": "71730d1e-4e02-4f7e-b69f-66c9ec31a503",
|
||||
"key": "wty_code",
|
||||
"value": "MKUP0123456",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"id": "02c4d2e7-eb4e-4812-b154-b463b5a9d862",
|
||||
"id": "18d686cf-25fb-419f-9c6b-5714e4ecd50a",
|
||||
"key": "wty_expire",
|
||||
"value": "20201125",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"id": "f8c89bf6-1aed-4664-b169-d38cf4fa564d",
|
||||
"id": "76e0017d-5816-433d-ac97-9c1bd3ec9fb0",
|
||||
"key": "service_type",
|
||||
"value": "battery_new",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"id": "d38e4c12-b0be-4094-838f-474737acb9ae",
|
||||
"id": "c1778ea1-2c52-43eb-9b08-6bfe2890a06d",
|
||||
"key": "trade_in",
|
||||
"value": "MOTOLITE",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"id": "7b2cfb98-c8cc-42a8-90cd-0cba4f95c49d",
|
||||
"id": "8b29e118-092b-43a7-8c12-7df8f9632173",
|
||||
"key": "longitude",
|
||||
"value": "121.018039",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"id": "51e80736-d5d6-4bfd-9ea7-d11777924012",
|
||||
"id": "75c2c5e3-509a-42a2-b273-e57d92b2a38b",
|
||||
"key": "latitude",
|
||||
"value": "14.606807",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"id": "26f630f6-65d3-4d15-8541-e7fb855bcaa6",
|
||||
"id": "a9648000-743e-4d2a-9ab5-d6ea1aebe3fc",
|
||||
"key": "warranty",
|
||||
"value": "private",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"id": "19727bd1-4fb5-4e6e-828f-f8994dac0746",
|
||||
"id": "5cf518d2-6a8e-4531-91e5-4547edea459d",
|
||||
"key": "mode_of_payment",
|
||||
"value": "CASH",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"id": "3f38ff8a-3657-416f-ba81-edba8aba0786",
|
||||
"id": "351b1048-61f5-4be0-9726-461d6716b4e5",
|
||||
"key": "delivery_address",
|
||||
"value": "#123 Moogle Drive",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"id": "423522ed-d679-42bf-8c2c-b2459ca90821",
|
||||
"id": "a162cb94-f3c5-4746-86e6-8864e723f892",
|
||||
"key": "delivery_instructions",
|
||||
"value": "Look for the red bon-bon",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"id": "9771cf9f-8750-488a-a0bd-d63086cde611",
|
||||
"id": "98a35676-9e6a-451d-822c-9c3e64dde963",
|
||||
"key": "promo_id",
|
||||
"value": "1",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"id": "43a22bdb-8b53-4afa-af73-0eb900fcc8cf",
|
||||
"id": "e0d82901-550c-4767-85e7-60fbbc6724e3",
|
||||
"key": "code",
|
||||
"value": "123456",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"id": "6f9b4bf9-a70b-48fa-9b37-93ec646e01ed",
|
||||
"id": "fa6922c0-5ae7-435b-be43-83e6de75371c",
|
||||
"key": "batt_id",
|
||||
"value": "1050",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"id": "e95eeff1-5999-4a94-939d-f0b317b8b85d",
|
||||
"id": "9d96d6ab-2c45-4112-a982-c6f606899d83",
|
||||
"key": "jo_id_for_rider_rating",
|
||||
"value": "4",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"id": "04c336f3-e1c7-40fb-972b-15ab693dea3f",
|
||||
"id": "c93649a9-be8c-449e-8ac2-e5b705cffe70",
|
||||
"key": "preset_api_key",
|
||||
"value": "5d427428b1541",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"id": "71af4a9f-0db2-46d0-9a98-b20397690e1c",
|
||||
"id": "d57a3355-15d7-4ac5-b070-f4a8b01b8b05",
|
||||
"key": "rating",
|
||||
"value": "4",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"id": "73fe6c29-ce57-49d9-b6d7-b154b7334c0a",
|
||||
"id": "211fabd7-26f2-4a59-9b55-2ac4e39247f4",
|
||||
"key": "comment",
|
||||
"value": "Very professional, kupo!",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"id": "0fb165ee-feef-403d-b59b-1327a644ea6d",
|
||||
"id": "c1730974-6818-46fa-882d-30ecf1610189",
|
||||
"key": "jo_id_for_cancel_jo",
|
||||
"value": "3",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"id": "fb396968-a759-4964-b8be-05dc2e0c612d",
|
||||
"id": "a0714577-42a1-4b1e-ab1c-f95848bfe9dd",
|
||||
"key": "cancel_reason",
|
||||
"value": "No money, kupo!",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"id": "ee6dd9ed-f3e0-4a3a-bb0c-dc0403cdf98f",
|
||||
"id": "456daded-2d5e-4998-b5a5-fadebf54d2e8",
|
||||
"key": "device_id",
|
||||
"value": "123456",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"id": "60b1d451-0af1-40de-a85e-bc2d01aad073",
|
||||
"id": "91fec107-c5cb-4764-9bcf-67d9c023fce9",
|
||||
"key": "partner_id",
|
||||
"value": "1",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"id": "45487aec-b2c4-4e2a-b6c5-ed44dba9de82",
|
||||
"id": "e3dc715e-d0fe-438b-a843-bd27a75fe801",
|
||||
"key": "preset_api_key_unconfirmed",
|
||||
"value": "5d439b3a43f40",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"id": "ffe45ee9-85b6-4fc4-806d-f330a72be98f",
|
||||
"id": "48221f01-e34f-496c-a616-52600d893b6a",
|
||||
"key": "service_id",
|
||||
"value": "2",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"id": "ffab2ad5-357e-45e4-b7d7-f27028986e22",
|
||||
"id": "534d401c-d28e-4f4c-8158-ec442bf6134a",
|
||||
"key": "limit",
|
||||
"value": "5",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"id": "37d55a82-d5e7-498a-8b76-e04c1936a3ea",
|
||||
"id": "612f13cf-e9e5-49af-8a5c-34044b5348b7",
|
||||
"key": "wid",
|
||||
"value": "185480",
|
||||
"type": "string"
|
||||
"type": "string",
|
||||
"disabled": true
|
||||
},
|
||||
{
|
||||
"id": "e6e71ab9-7e61-47a2-8be0-5b02b85dcc5a",
|
||||
"id": "73a241f0-c243-438a-a994-d7f902057bfa",
|
||||
"key": "privacy_policy_id",
|
||||
"value": "3",
|
||||
"type": "string"
|
||||
"type": "string",
|
||||
"disabled": true
|
||||
},
|
||||
{
|
||||
"id": "749e4f23-b5f1-478d-8927-ee38d3dbf24a",
|
||||
"id": "2e28a967-f39b-4661-bf1d-38d10c999a85",
|
||||
"key": "non_existent_wid",
|
||||
"value": "111111",
|
||||
"type": "string"
|
||||
"type": "string",
|
||||
"disabled": true
|
||||
},
|
||||
{
|
||||
"id": "bf0b8bfb-bfeb-4b13-aa52-368a22771813",
|
||||
"id": "2535af91-aa1c-41e7-99fa-01166c39d877",
|
||||
"key": "non_existent_policy_id",
|
||||
"value": "9999",
|
||||
"type": "string"
|
||||
"type": "string",
|
||||
"disabled": true
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
@ -2,7 +2,7 @@
|
|||
--
|
||||
-- Host: localhost Database: resq_test
|
||||
-- ------------------------------------------------------
|
||||
-- Server version 10.2.22-MariaDB
|
||||
-- Server version 10.2.22-MariaDB-log
|
||||
|
||||
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
|
||||
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
|
||||
|
|
@ -1131,7 +1131,7 @@ CREATE TABLE `sap_battery_brand` (
|
|||
`id` int(11) NOT NULL AUTO_INCREMENT,
|
||||
`name` varchar(50) COLLATE utf8mb4_unicode_ci NOT NULL,
|
||||
PRIMARY KEY (`id`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
||||
) ENGINE=InnoDB AUTO_INCREMENT=24 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
||||
/*!40101 SET character_set_client = @saved_cs_client */;
|
||||
|
||||
--
|
||||
|
|
@ -1140,6 +1140,7 @@ CREATE TABLE `sap_battery_brand` (
|
|||
|
||||
LOCK TABLES `sap_battery_brand` WRITE;
|
||||
/*!40000 ALTER TABLE `sap_battery_brand` DISABLE KEYS */;
|
||||
INSERT INTO `sap_battery_brand` VALUES (1,'CENTURY MARATHONER'),(2,'CHAMPION MF12'),(3,'CHAMPION PM'),(4,'SOLAR'),(5,'EFB MAZDA'),(6,'ELECTRON'),(7,'ENDURO'),(8,'EXCEL'),(9,'GOLD'),(10,'MAGIC FORCE'),(11,'MOTOLITE'),(12,'MOTOLITE ENFORCER'),(13,'MOTOLITE SUPER PREMIUM'),(14,'POWERLAST'),(15,'ROADMASTER'),(16,'TRUCKMASTER'),(17,'VALIANT'),(18,'DYNA FORCE'),(19,'DYNA POWER'),(20,'XTP-CALCIUM'),(21,'YOKOHAMA'),(22,'YUASA MERCURY'),(23,'YUASA SUPER PREMIUM MERCURY');
|
||||
/*!40000 ALTER TABLE `sap_battery_brand` ENABLE KEYS */;
|
||||
UNLOCK TABLES;
|
||||
|
||||
|
|
@ -1154,7 +1155,7 @@ CREATE TABLE `sap_battery_size` (
|
|||
`id` int(11) NOT NULL AUTO_INCREMENT,
|
||||
`name` varchar(50) COLLATE utf8mb4_unicode_ci NOT NULL,
|
||||
PRIMARY KEY (`id`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
||||
) ENGINE=InnoDB AUTO_INCREMENT=42 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
||||
/*!40101 SET character_set_client = @saved_cs_client */;
|
||||
|
||||
--
|
||||
|
|
@ -1163,6 +1164,7 @@ CREATE TABLE `sap_battery_size` (
|
|||
|
||||
LOCK TABLES `sap_battery_size` WRITE;
|
||||
/*!40000 ALTER TABLE `sap_battery_size` DISABLE KEYS */;
|
||||
INSERT INTO `sap_battery_size` VALUES (1,'2SMF'),(2,'3SMF'),(3,'NS40'),(4,'NS60'),(5,'1SMF'),(6,'1SNF'),(7,'6SMF'),(8,'2D'),(9,'4D'),(10,'8D'),(11,'GC2'),(12,'GC8'),(13,'GC2-TUBULAR'),(14,'GC8-TUBULAR'),(15,'NS60 REVERSE'),(16,'DIN44'),(17,'3SMF REVERSE'),(18,'NS40 REVERSE'),(19,'D20'),(20,'G34'),(21,'DIN55H'),(22,'DIN55 H'),(23,'DIN66H'),(24,'DIN66 H'),(25,'DIN110'),(26,'G65'),(27,'DIN77H'),(28,'1SMF REVERSE'),(29,'2SMF REVERSE'),(30,'DIN55'),(31,'DIN55 REVERSE'),(32,'DIN66'),(33,'DIN66 REVERSE'),(34,'DIN77'),(35,'DIN88'),(36,'6TN'),(37,'8D LUG TYPE'),(38,'6SMF MF'),(39,'2D MF'),(40,'4D MF'),(41,'8D MF');
|
||||
/*!40000 ALTER TABLE `sap_battery_size` ENABLE KEYS */;
|
||||
UNLOCK TABLES;
|
||||
|
||||
|
|
@ -1423,16 +1425,19 @@ CREATE TABLE `warranty` (
|
|||
`date_expire` date DEFAULT NULL,
|
||||
`date_claim` date DEFAULT NULL,
|
||||
`flag_activated` tinyint(1) NOT NULL,
|
||||
`warranty_privacy_policy` int(11) DEFAULT NULL,
|
||||
PRIMARY KEY (`id`),
|
||||
UNIQUE KEY `UNIQ_88D71CF27096A49F` (`claim_id`),
|
||||
UNIQUE KEY `UNIQ_88D71CF2D374C9DC` (`serial`),
|
||||
KEY `IDX_88D71CF24AA75DF2` (`bty_model_id`),
|
||||
KEY `IDX_88D71CF2987A584A` (`bty_size_id`),
|
||||
KEY `IDX_88D71CF2A78D0AE` (`sap_bty_id`),
|
||||
KEY `IDX_88D71CF2FCDDCE73` (`warranty_privacy_policy`),
|
||||
CONSTRAINT `FK_88D71CF24AA75DF2` FOREIGN KEY (`bty_model_id`) REFERENCES `battery_model` (`id`),
|
||||
CONSTRAINT `FK_88D71CF27096A49F` FOREIGN KEY (`claim_id`) REFERENCES `warranty` (`id`),
|
||||
CONSTRAINT `FK_88D71CF2987A584A` FOREIGN KEY (`bty_size_id`) REFERENCES `battery_size` (`id`),
|
||||
CONSTRAINT `FK_88D71CF2A78D0AE` FOREIGN KEY (`sap_bty_id`) REFERENCES `sap_battery` (`id`)
|
||||
CONSTRAINT `FK_88D71CF2A78D0AE` FOREIGN KEY (`sap_bty_id`) REFERENCES `sap_battery` (`id`),
|
||||
CONSTRAINT `FK_88D71CF2FCDDCE73` FOREIGN KEY (`warranty_privacy_policy`) REFERENCES `privacy_policy` (`id`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
||||
/*!40101 SET character_set_client = @saved_cs_client */;
|
||||
|
||||
|
|
@ -1442,7 +1447,7 @@ CREATE TABLE `warranty` (
|
|||
|
||||
LOCK TABLES `warranty` WRITE;
|
||||
/*!40000 ALTER TABLE `warranty` DISABLE KEYS */;
|
||||
INSERT INTO `warranty` VALUES (0,NULL,NULL,'WMEB24CB-CPN00-LX',NULL,'AJ34LJADR12134LKJL5','private','MGL1234','Moguri','Kupo','9221111112','active','2019-07-16 01:46:48','2018-10-01','2019-10-01',NULL,0);
|
||||
INSERT INTO `warranty` VALUES (0,NULL,NULL,'WMEB24CB-CPN00-LX',NULL,'AJ34LJADR12134LKJL5','private','MGL1234','Moguri','Kupo','9221111112','active','2019-07-16 01:46:48','2018-10-01','2019-10-01',NULL,0,NULL);
|
||||
/*!40000 ALTER TABLE `warranty` ENABLE KEYS */;
|
||||
UNLOCK TABLES;
|
||||
/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
|
||||
|
|
@ -1455,4 +1460,4 @@ UNLOCK TABLES;
|
|||
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
|
||||
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
|
||||
|
||||
-- Dump completed on 2019-08-13 3:10:12
|
||||
-- Dump completed on 2019-09-20 3:01:47
|
||||
|
|
|
|||
Loading…
Reference in a new issue