From 89c56aaf6be0db1046a9d97a02a9087f5295f44f Mon Sep 17 00:00:00 2001 From: Korina Cordero Date: Fri, 2 Aug 2019 09:25:37 +0000 Subject: [PATCH] Add test data to sql dump. Add tests to get rider status. Add global variable for customer vehicle id. #229 --- postman/PoC Resq.postman_environment.json | 6 +- ...I - API Controller.postman_collection.json | 127 ++++++++++++------ postman/resq_test.sql | 42 +++--- 3 files changed, 119 insertions(+), 56 deletions(-) diff --git a/postman/PoC Resq.postman_environment.json b/postman/PoC Resq.postman_environment.json index 8b275b29..08293935 100755 --- a/postman/PoC Resq.postman_environment.json +++ b/postman/PoC Resq.postman_environment.json @@ -4,7 +4,7 @@ "values": [ { "key": "resq_url", - "value": "resq.local", + "value": "http://resq.local", "enabled": true }, { @@ -14,6 +14,6 @@ } ], "_postman_variable_scope": "environment", - "_postman_exported_at": "2019-07-18T09:27:17.254Z", - "_postman_exported_using": "Postman/7.2.2" + "_postman_exported_at": "2019-08-02T09:22:01.877Z", + "_postman_exported_using": "Postman/7.3.5" } \ No newline at end of file diff --git a/postman/Resq Mobile API - API Controller.postman_collection.json b/postman/Resq Mobile API - API Controller.postman_collection.json index 9f49efda..e846d883 100755 --- a/postman/Resq Mobile API - API Controller.postman_collection.json +++ b/postman/Resq Mobile API - API Controller.postman_collection.json @@ -487,7 +487,7 @@ " ", " // store customer vehicle id for update vehicle", " let cv_id = jsonData.data.cv_id;", - " pm.globals.set(\"cv_id\", cv_id);", + " pm.globals.set(\"global_cv_id\", cv_id);", "});" ], "type": "text/javascript" @@ -571,7 +571,7 @@ "pm.test(\"Update vehicle\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.error.status).to.eql(\"success\");", - " pm.expect(jsonData.data.cv_id).to.eql(pm.globals.get(\"cv_id\"));", + " pm.expect(jsonData.data.cv_id).to.eql(pm.globals.get(\"global_cv_id\"));", "});" ], "type": "text/javascript" @@ -642,14 +642,14 @@ ] }, "url": { - "raw": "{{resq_url}}/api/vehicles/{{cv_id}}?api_key={{api_key}}", + "raw": "{{resq_url}}/api/vehicles/{{global_cv_id}}?api_key={{api_key}}", "host": [ "{{resq_url}}" ], "path": [ "api", "vehicles", - "{{cv_id}}" + "{{global_cv_id}}" ], "query": [ { @@ -812,7 +812,6 @@ "pm.test(\"Request job order\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.error.status).to.eql(\"success\");", - " pm.expect(jsonData.data.jo_id).to.eql(1);", " pm.expect(jsonData.data.invoice.items[0].title).to.eql(\"GOLD DIN77\");", " pm.expect(jsonData.data.invoice.items[0].qty).to.eql(1);", "});" @@ -834,7 +833,7 @@ }, { "key": "cv_id", - "value": "{{cv_id}}", + "value": "{{global_cv_id}}", "type": "text" }, { @@ -940,7 +939,7 @@ }, { "key": "cv_id", - "value": "{{cv_id}}", + "value": "{{global_cv_id}}", "type": "text" }, { @@ -1025,7 +1024,7 @@ "response": [] }, { - "name": "[Normal] Get Rider Status", + "name": "[Normal] Get Rider Status - Job Order Pending", "event": [ { "listen": "test", @@ -1069,6 +1068,51 @@ }, "response": [] }, + { + "name": "[Normal] Get Rider Status - Job Order Rider Assign", + "event": [ + { + "listen": "test", + "script": { + "id": "f12508f6-cd9f-443b-ae56-835d4e913e55", + "exec": [ + "pm.test(\"Status code is 200\", function () {", + " pm.response.to.have.status(200);", + "});", + "", + "pm.test(\"Get rider status\", function () {", + " var jsonData = pm.response.json();", + " pm.expect(jsonData.error.status).to.eql(\"success\");", + " pm.expect(jsonData.data.service_type).to.eql(\"battery_new\");", + " pm.expect(jsonData.data.status).to.eql(\"rider_assign\");", + "});" + ], + "type": "text/javascript" + } + } + ], + "request": { + "method": "GET", + "header": [], + "url": { + "raw": "{{resq_url}}/api/rider?api_key={{preset_api_key}}", + "host": [ + "{{resq_url}}" + ], + "path": [ + "api", + "rider" + ], + "query": [ + { + "key": "api_key", + "value": "{{preset_api_key}}" + } + ] + } + }, + "response": [] + }, { "name": "[Normal] Privacy Settings", "event": [ @@ -1200,184 +1244,191 @@ ], "variable": [ { - "id": "ea71567b-5072-4022-ae8c-7562c32175b0", + "id": "167a69fc-9d8e-4686-9982-abfb54e85074", "key": "resq_url", "value": "resq.local", "type": "string", "disabled": true }, { - "id": "ba3077c6-779c-433f-902d-32e9a7c559a8", + "id": "68e04044-0232-49c0-bfd0-708b6ada2ac6", "key": "phone_model", "value": "iPhone8", "type": "string" }, { - "id": "9043af9b-f151-413e-94ea-b19c46354eac", + "id": "8db9dac2-5e1c-4603-97f0-10d1eb1b4a81", "key": "os_type", "value": "IOS", "type": "string" }, { - "id": "a0b258b2-fdd2-479c-b916-7199abb2b2c1", + "id": "34a07c40-14e3-4fcc-abb5-0151bf753bb1", "key": "os_version", "value": "11.4", "type": "string" }, { - "id": "fe723a21-2354-4bcb-8e10-df741698509d", + "id": "b1571266-c924-43bc-baa6-1a689e1697a3", "key": "phone_id", "value": "11376660-F8BF-46ED-B30A-EF3F361EE223", "type": "string" }, { - "id": "98b503d1-057c-497b-9257-9b9e6fbb3c2e", + "id": "4f3f1213-63ad-486e-a15b-d6e8feed0c45", "key": "phone_number", "value": "9221111111", "type": "string" }, { - "id": "e972a8ab-5201-486f-a7af-21ce3782fe78", + "id": "ef69687c-18b7-4685-9df6-e36d43129694", "key": "first_name", "value": "Stiltzkin", "type": "string" }, { - "id": "a0d00c69-e031-47ed-8dfe-d948c5ad2188", + "id": "e334a942-9c38-4b1e-ac27-6f202bc9e0a8", "key": "last_name", "value": "Moogle", "type": "string" }, { - "id": "01fa3dfd-8395-4f21-a883-9d5d75b5689c", + "id": "16e39c37-0017-4bdb-a8ef-cbca36559674", "key": "mfg_id", "value": "1435", "type": "string" }, { - "id": "f4fdee45-3e31-46b7-9ca3-2b6f29827e9e", + "id": "b3eebff1-510c-4f38-91f8-c28f0307cb5f", "key": "make_id", "value": "22043", "type": "string" }, { - "id": "f9504219-f9bd-491a-926e-840a27962838", + "id": "9dba5a02-9235-4535-bc6f-33f42b6ca88e", "key": "name", "value": "Beetle 1.2 TSI MT (Gas)", "type": "string" }, { - "id": "fc0514cd-871b-468e-9ab2-12942440ed91", + "id": "516a73e2-02bd-4f1f-93d1-a4d2f90d5068", "key": "plate_num", "value": "MGL1234", "type": "string" }, { - "id": "34a9c77a-0d2e-4444-93e6-b67945900dd8", + "id": "839c1326-0855-47d6-9cb1-82a46e510c3b", "key": "model_year", "value": "2016", "type": "string" }, { - "id": "5eb2ca76-119c-4acc-8179-a958e6bc38a7", + "id": "cdcf76b4-4a55-4d1f-a9f1-1ec750123a49", "key": "color", "value": "White", "type": "string" }, { - "id": "e9fabf98-8ac4-4670-a9f8-afde589d1910", + "id": "93f2699d-36e5-4434-b161-a6106e4856c4", "key": "condition", "value": "Brand New", "type": "string" }, { - "id": "efd5911d-234a-42c8-9288-35b4f7e49d1c", + "id": "30b08c7f-44c8-4e1c-9d71-29b7429ce235", "key": "fuel_type", "value": "Gas", "type": "string" }, { - "id": "db9aede9-4365-4245-8d8c-2f917a306107", + "id": "13d5a51b-04bf-422c-bc15-e49d51b0db40", "key": "wty_code", "value": "MKUP0123456", "type": "string" }, { - "id": "77ca86d0-da17-4c35-898b-ce44a4f7f7cb", + "id": "67b34475-18ec-4363-9191-52292c6ffade", "key": "wty_expire", "value": "20201125", "type": "string" }, { - "id": "14a33e08-f033-413a-910c-6c780a5f9718", + "id": "ee65965a-d81f-4f2f-9914-14d78c9a902f", "key": "service_type", "value": "battery_new", "type": "string" }, { - "id": "85e49d9f-ac6e-4cc1-9584-8e3a635a39a6", + "id": "c7d9df58-1734-479e-97cf-861aa531f6fe", "key": "trade_in", "value": "MOTOLITE", "type": "string" }, { - "id": "b05d017c-3634-4066-ba3f-db0328089593", + "id": "a3bac62f-397c-4675-b3bc-bd25db55df5b", "key": "longitude", "value": "121.018039", "type": "string" }, { - "id": "8ac1e199-a2be-4a0f-8f8c-0bf3fa3361c6", + "id": "b00513bc-65dd-4db5-95d4-2891553f8e77", "key": "latitude", "value": "14.606807", "type": "string" }, { - "id": "5d1c918b-1e3d-4f86-999d-58788721898a", + "id": "d1cdd86f-885c-44aa-9987-70e74df6bf73", "key": "warranty", "value": "private", "type": "string" }, { - "id": "1b5c2a8d-476f-4b16-9130-2e07d50cdd5f", + "id": "22479270-44c9-4169-acb0-40dbaec1a846", "key": "mode_of_payment", "value": "CASH", "type": "string" }, { - "id": "0dd2f37c-0bb5-4568-8c54-5998bf4e0cbd", + "id": "bc13ae82-5efa-4d2a-8791-a5811ea5bf3a", "key": "delivery_address", "value": "#123 Moogle Drive", "type": "string" }, { - "id": "b263ffe8-fa79-43fd-83c9-49117846c257", + "id": "dd62622c-c609-4cdc-bddb-aa45bb53400a", "key": "delivery_instructions", "value": "Look for the red bon-bon", "type": "string" }, { - "id": "158cee53-072b-4cce-80cb-d7d92cb9aec2", + "id": "fafac17b-707a-48c5-a8ba-c3780e8925bb", "key": "promo_id", "value": "1", "type": "string" }, { - "id": "85ff573c-d513-48d7-b37a-2869d5a956a8", + "id": "dfa0051a-e129-4e56-a424-3ef8f46a10d0", "key": "code", "value": "123456", "type": "string" }, { - "id": "0dfcab3a-08d3-4a91-99dc-b565475e667b", + "id": "cc83a9a4-c34b-4168-9493-225e7c93b1c8", "key": "batt_id", "value": "1050", "type": "string" }, { - "id": "a80f34f5-0dde-43b2-afa9-eff05801a611", + "id": "2ae16b4a-bef8-47dd-a584-b0450d82381d", "key": "cv_id", "value": "2", + "type": "string", + "disabled": true + }, + { + "id": "ec6d34f3-44bc-43ba-8c8c-16b76ea00353", + "key": "preset_api_key", + "value": "5d427428b1541", "type": "string" } ] diff --git a/postman/resq_test.sql b/postman/resq_test.sql index a9a25519..19a1377e 100644 --- a/postman/resq_test.sql +++ b/postman/resq_test.sql @@ -276,7 +276,7 @@ CREATE TABLE `customer` ( CONSTRAINT `FK_81398E09198AA9B6` FOREIGN KEY (`policy_mobile_app_id`) REFERENCES `privacy_policy` (`id`), CONSTRAINT `FK_81398E09D3D39E2D` FOREIGN KEY (`policy_third_party_id`) REFERENCES `privacy_policy` (`id`), CONSTRAINT `FK_81398E09F117A2F2` FOREIGN KEY (`policy_promo_id`) REFERENCES `privacy_policy` (`id`) -) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- @@ -285,6 +285,7 @@ CREATE TABLE `customer` ( LOCK TABLES `customer` WRITE; /*!40000 ALTER TABLE `customer` DISABLE KEYS */; +INSERT INTO `customer` VALUES (2,'Mr','Moguri','Kupo','regular','','9221111112','','','',0,0,1,0,'moguri@test.com',0,0,NULL,NULL,NULL); /*!40000 ALTER TABLE `customer` ENABLE KEYS */; UNLOCK TABLES; @@ -318,7 +319,7 @@ CREATE TABLE `customer_vehicle` ( CONSTRAINT `FK_75D403819A19CFC` FOREIGN KEY (`battery_id`) REFERENCES `battery` (`id`), CONSTRAINT `FK_75D4038545317D1` FOREIGN KEY (`vehicle_id`) REFERENCES `vehicle` (`id`), CONSTRAINT `FK_75D40389395C3F3` FOREIGN KEY (`customer_id`) REFERENCES `customer` (`id`) -) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- @@ -327,6 +328,7 @@ CREATE TABLE `customer_vehicle` ( LOCK TABLES `customer_vehicle` WRITE; /*!40000 ALTER TABLE `customer_vehicle` DISABLE KEYS */; +INSERT INTO `customer_vehicle` VALUES (2,2,22043,NULL,'Moguri Vehicle','MOG1234',2018,'Black','new','gas',NULL,NULL,0,1); /*!40000 ALTER TABLE `customer_vehicle` ENABLE KEYS */; UNLOCK TABLES; @@ -339,15 +341,15 @@ DROP TABLE IF EXISTS `hub`; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `hub` ( `id` int(11) NOT NULL AUTO_INCREMENT, - `name` varchar(80) COLLATE utf8mb4_unicode_ci NOT NULL, - `branch` varchar(80) COLLATE utf8mb4_unicode_ci NOT NULL, - `address` longtext COLLATE utf8mb4_unicode_ci NOT NULL, + `name` varchar(80) COLLATE utf8_unicode_ci NOT NULL, + `address` longtext COLLATE utf8_unicode_ci NOT NULL, `coordinates` point NOT NULL COMMENT '(DC2Type:point)', - `contact_nums` varchar(200) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `contact_nums` varchar(200) COLLATE utf8_unicode_ci DEFAULT NULL, `time_open` time NOT NULL, `time_close` time NOT NULL, + `branch` varchar(80) COLLATE utf8_unicode_ci NOT NULL, PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +) ENGINE=InnoDB AUTO_INCREMENT=127 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- @@ -356,6 +358,7 @@ CREATE TABLE `hub` ( LOCK TABLES `hub` WRITE; /*!40000 ALTER TABLE `hub` DISABLE KEYS */; +INSERT INTO `hub` VALUES (1,'Moogle Hub #1','Moogle Road','\0\0\0\0\0\0\0vA3>A^@ӥ0-@','242-1234','00:00:00','23:59:00','Moogle Branch #1'),(2,'Moogle Hub #2','Moogle Drive','\0\0\0\0\0\0\0mC^@uIo-@','12345678','06:00:00','20:00:00','Moogle Branch #2'),(3,'Moogle Hub #3','Moogle Lane','\0\0\0\0\0\0\0w@_B^@:յQ;-@','78945612','06:00:00','22:00:00','Moogle Branch #3'); /*!40000 ALTER TABLE `hub` ENABLE KEYS */; UNLOCK TABLES; @@ -387,7 +390,7 @@ CREATE TABLE `invoice` ( CONSTRAINT `FK_90651744A76ED395` FOREIGN KEY (`user_id`) REFERENCES `user` (`id`), CONSTRAINT `FK_90651744D0C07AFF` FOREIGN KEY (`promo_id`) REFERENCES `promo` (`id`), CONSTRAINT `FK_90651744EAD8C843` FOREIGN KEY (`job_order_id`) REFERENCES `job_order` (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- @@ -396,6 +399,7 @@ CREATE TABLE `invoice` ( LOCK TABLES `invoice` WRITE; /*!40000 ALTER TABLE `invoice` DISABLE KEYS */; +INSERT INTO `invoice` VALUES (3,1,2,NULL,'2019-08-01 07:42:13',NULL,NULL,0.00,0.00,621.43,5178.57,5800.00,'draft'),(4,1,3,NULL,'2019-08-01 07:42:13',NULL,NULL,0.00,0.00,621.43,5178.57,5800.00,'draft'),(5,1,4,NULL,'2019-08-02 03:12:32',NULL,NULL,0.00,0.00,669.64,5580.36,6250.00,'draft'); /*!40000 ALTER TABLE `invoice` ENABLE KEYS */; UNLOCK TABLES; @@ -418,7 +422,7 @@ CREATE TABLE `invoice_item` ( KEY `IDX_1DDE477B19A19CFC` (`battery_id`), CONSTRAINT `FK_1DDE477B19A19CFC` FOREIGN KEY (`battery_id`) REFERENCES `battery` (`id`), CONSTRAINT `FK_1DDE477B2989F1FD` FOREIGN KEY (`invoice_id`) REFERENCES `invoice` (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- @@ -427,6 +431,7 @@ CREATE TABLE `invoice_item` ( LOCK TABLES `invoice_item` WRITE; /*!40000 ALTER TABLE `invoice_item` DISABLE KEYS */; +INSERT INTO `invoice_item` VALUES (4,4,1039,'GOLD 1SM / D23 /NS50 / R',1,5800.00),(5,5,1045,'GOLD DIN44',1,6250.00); /*!40000 ALTER TABLE `invoice_item` ENABLE KEYS */; UNLOCK TABLES; @@ -452,7 +457,7 @@ CREATE TABLE `jo_event` ( CONSTRAINT `FK_59A3188E85564492` FOREIGN KEY (`create_user_id`) REFERENCES `user` (`id`), CONSTRAINT `FK_59A3188EEAD8C843` FOREIGN KEY (`job_order_id`) REFERENCES `job_order` (`id`), CONSTRAINT `FK_59A3188EFF881F6` FOREIGN KEY (`rider_id`) REFERENCES `rider` (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +) ENGINE=InnoDB AUTO_INCREMENT=12 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- @@ -461,6 +466,7 @@ CREATE TABLE `jo_event` ( LOCK TABLES `jo_event` WRITE; /*!40000 ALTER TABLE `jo_event` DISABLE KEYS */; +INSERT INTO `jo_event` VALUES (3,1,3,NULL,'2019-08-01 07:41:24','2019-08-01 07:41:24','create'),(4,1,3,NULL,'2019-08-01 07:42:13','2019-08-01 07:42:13','open_edit'),(5,1,3,NULL,'2019-08-02 03:11:19','2019-08-02 03:11:19','hub_assign'),(6,1,4,NULL,'2019-08-02 03:12:32','2019-08-02 03:12:32','create'),(7,1,4,NULL,'2019-08-02 03:12:54','2019-08-02 03:12:54','hub_assign'),(8,1,4,NULL,'2019-08-02 06:11:30','2019-08-02 06:11:30','rider_assign'),(9,1,4,NULL,'2019-08-02 06:12:22','2019-08-02 06:12:22','open_edit'),(10,1,4,NULL,'2019-08-02 06:13:00','2019-08-02 06:13:00','open_edit'),(11,1,3,NULL,'2019-08-02 06:13:20','2019-08-02 06:13:20','open_edit'); /*!40000 ALTER TABLE `jo_event` ENABLE KEYS */; UNLOCK TABLES; @@ -563,7 +569,7 @@ CREATE TABLE `job_order` ( CONSTRAINT `FK_F4752EE8AE8454D5` FOREIGN KEY (`assign_user_id`) REFERENCES `user` (`id`), CONSTRAINT `FK_F4752EE8EF160940` FOREIGN KEY (`process_user_id`) REFERENCES `user` (`id`), CONSTRAINT `FK_F4752EE8FF881F6` FOREIGN KEY (`rider_id`) REFERENCES `rider` (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- @@ -572,6 +578,7 @@ CREATE TABLE `job_order` ( LOCK TABLES `job_order` WRITE; /*!40000 ALTER TABLE `job_order` DISABLE KEYS */; +INSERT INTO `job_order` VALUES (3,1,NULL,1,2,2,1,NULL,NULL,NULL,'2019-08-01 07:41:24','2019-08-01 07:40:00',NULL,NULL,NULL,'\0\0\0\0\0\0\0ZA^@BO;-@',121.02699923,14.61583909,0,'battery_new','private','call','rider_assign','','','','test for rider_assign status','',NULL,'cash','','','',NULL,0,0,NULL),(4,1,1,1,2,2,1,1,NULL,NULL,'2019-08-02 03:12:32','2019-08-02 03:11:00',NULL,NULL,'2019-08-02 06:11:30','\0\0\0\0\0\0\0ݬA^@/M8-@',121.01652789,14.61090581,0,'battery_new','private','call','assigned','','','','test for assigned status','',NULL,'cash','','','',NULL,0,0,NULL); /*!40000 ALTER TABLE `job_order` ENABLE KEYS */; UNLOCK TABLES; @@ -722,6 +729,7 @@ CREATE TABLE `mobile_session` ( LOCK TABLES `mobile_session` WRITE; /*!40000 ALTER TABLE `mobile_session` DISABLE KEYS */; +INSERT INTO `mobile_session` VALUES ('5d427428b1541',2,'iPhone8','IOS','11.4',NULL,'11376660-F8BF-46ED-B30A-EF3F361EE223','9221111112','123456',1,'2019-08-01 05:10:00','2019-08-01 05:10:02',NULL),('5d439b3a43f40',NULL,'iPhone8','IOS','11.4',NULL,'11376660-F8BF-46ED-B30A-EF3F361EE223',NULL,NULL,0,'2019-08-02 02:08:58',NULL,NULL); /*!40000 ALTER TABLE `mobile_session` ENABLE KEYS */; UNLOCK TABLES; @@ -854,7 +862,7 @@ CREATE TABLE `privacy_policy` ( `name` varchar(80) COLLATE utf8mb4_unicode_ci NOT NULL, `content` longtext COLLATE utf8mb4_unicode_ci NOT NULL, PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- @@ -863,6 +871,7 @@ CREATE TABLE `privacy_policy` ( LOCK TABLES `privacy_policy` WRITE; /*!40000 ALTER TABLE `privacy_policy` DISABLE KEYS */; +INSERT INTO `privacy_policy` VALUES (1,'Mobile Policy #1','Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Dolor sed viverra ipsum nunc aliquet bibendum enim. In massa tempor nec feugiat. Nunc aliquet bibendum enim facilisis gravida. Nisl nunc mi ipsum faucibus vitae aliquet nec ullamcorper. Amet luctus venenatis lectus magna fringilla. Volutpat maecenas volutpat blandit aliquam etiam erat velit scelerisque in. Egestas egestas fringilla phasellus faucibus scelerisque eleifend. Sagittis orci a scelerisque purus semper eget duis. Nulla pharetra diam sit amet nisl suscipit. Sed adipiscing diam donec adipiscing tristique risus nec feugiat in. Fusce ut placerat orci nulla. Pharetra vel turpis nunc eget lorem dolor. Tristique senectus et netus et malesuada.\r\n\r\nEtiam tempor orci eu lobortis elementum nibh tellus molestie. Neque egestas congue quisque egestas. Egestas integer eget aliquet nibh praesent tristique. Vulputate mi sit amet mauris. Sodales neque sodales ut etiam sit. Dignissim suspendisse in est ante in. Volutpat commodo sed egestas egestas. Felis donec et odio pellentesque diam. Pharetra vel turpis nunc eget lorem dolor sed viverra. Porta nibh venenatis cras sed felis eget. Aliquam ultrices sagittis orci a. Dignissim diam quis enim lobortis. Aliquet porttitor lacus luctus accumsan. Dignissim convallis aenean et tortor at risus viverra adipiscing at.'),(2,'Third Party Policy #1','Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Dolor sed viverra ipsum nunc aliquet bibendum enim. In massa tempor nec feugiat. Nunc aliquet bibendum enim facilisis gravida. Nisl nunc mi ipsum faucibus vitae aliquet nec ullamcorper. Amet luctus venenatis lectus magna fringilla. Volutpat maecenas volutpat blandit aliquam etiam erat velit scelerisque in. Egestas egestas fringilla phasellus faucibus scelerisque eleifend. Sagittis orci a scelerisque purus semper eget duis. Nulla pharetra diam sit amet nisl suscipit. Sed adipiscing diam donec adipiscing tristique risus nec feugiat in. Fusce ut placerat orci nulla. Pharetra vel turpis nunc eget lorem dolor. Tristique senectus et netus et malesuada.\r\n\r\nEtiam tempor orci eu lobortis elementum nibh tellus molestie. Neque egestas congue quisque egestas. Egestas integer eget aliquet nibh praesent tristique. Vulputate mi sit amet mauris. Sodales neque sodales ut etiam sit. Dignissim suspendisse in est ante in. Volutpat commodo sed egestas egestas. Felis donec et odio pellentesque diam. Pharetra vel turpis nunc eget lorem dolor sed viverra. Porta nibh venenatis cras sed felis eget. Aliquam ultrices sagittis orci a. Dignissim diam quis enim lobortis. Aliquet porttitor lacus luctus accumsan. Dignissim convallis aenean et tortor at risus viverra adipiscing at.'),(3,'Promo Policy #1','Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Dolor sed viverra ipsum nunc aliquet bibendum enim. In massa tempor nec feugiat. Nunc aliquet bibendum enim facilisis gravida. Nisl nunc mi ipsum faucibus vitae aliquet nec ullamcorper. Amet luctus venenatis lectus magna fringilla. Volutpat maecenas volutpat blandit aliquam etiam erat velit scelerisque in. Egestas egestas fringilla phasellus faucibus scelerisque eleifend. Sagittis orci a scelerisque purus semper eget duis. Nulla pharetra diam sit amet nisl suscipit. Sed adipiscing diam donec adipiscing tristique risus nec feugiat in. Fusce ut placerat orci nulla. Pharetra vel turpis nunc eget lorem dolor. Tristique senectus et netus et malesuada.\r\n\r\nEtiam tempor orci eu lobortis elementum nibh tellus molestie. Neque egestas congue quisque egestas. Egestas integer eget aliquet nibh praesent tristique. Vulputate mi sit amet mauris. Sodales neque sodales ut etiam sit. Dignissim suspendisse in est ante in. Volutpat commodo sed egestas egestas. Felis donec et odio pellentesque diam. Pharetra vel turpis nunc eget lorem dolor sed viverra. Porta nibh venenatis cras sed felis eget. Aliquam ultrices sagittis orci a. Dignissim diam quis enim lobortis. Aliquet porttitor lacus luctus accumsan. Dignissim convallis aenean et tortor at risus viverra adipiscing at.'); /*!40000 ALTER TABLE `privacy_policy` ENABLE KEYS */; UNLOCK TABLES; @@ -949,7 +958,7 @@ CREATE TABLE `rider` ( UNIQUE KEY `UNIQ_EA411035F85E0677` (`username`), KEY `IDX_EA4110356C786081` (`hub_id`), CONSTRAINT `FK_EA4110356C786081` FOREIGN KEY (`hub_id`) REFERENCES `hub` (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- @@ -958,6 +967,7 @@ CREATE TABLE `rider` ( LOCK TABLES `rider` WRITE; /*!40000 ALTER TABLE `rider` DISABLE KEYS */; +INSERT INTO `rider` VALUES (1,1,'Moguri','Moogle','12378945','MGI1234','',0,1,1,'moguri','$2y$12$hGnjP1btam.PF.7lImT8luVsGtGHU94bDSeXBRfmHSULV29qMdoSa'); /*!40000 ALTER TABLE `rider` ENABLE KEYS */; UNLOCK TABLES; @@ -1013,7 +1023,7 @@ CREATE TABLE `rider_schedule` ( PRIMARY KEY (`id`), KEY `IDX_3946A604FF881F6` (`rider_id`), CONSTRAINT `FK_3946A604FF881F6` FOREIGN KEY (`rider_id`) REFERENCES `rider` (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- @@ -1022,6 +1032,7 @@ CREATE TABLE `rider_schedule` ( LOCK TABLES `rider_schedule` WRITE; /*!40000 ALTER TABLE `rider_schedule` DISABLE KEYS */; +INSERT INTO `rider_schedule` VALUES (1,1,1,'08:00:00','21:00:00','12:00:00','13:00:00'),(2,1,3,'08:00:00','21:00:00','12:00:00','13:00:00'),(3,1,5,'08:00:00','21:00:00','12:00:00','13:00:00'),(4,1,6,'08:00:00','21:00:00','12:00:00','13:00:00'); /*!40000 ALTER TABLE `rider_schedule` ENABLE KEYS */; UNLOCK TABLES; @@ -1297,6 +1308,7 @@ CREATE TABLE `user_hubs` ( LOCK TABLES `user_hubs` WRITE; /*!40000 ALTER TABLE `user_hubs` DISABLE KEYS */; +INSERT INTO `user_hubs` VALUES (1,1),(1,2),(1,3); /*!40000 ALTER TABLE `user_hubs` ENABLE KEYS */; UNLOCK TABLES; @@ -1439,4 +1451,4 @@ UNLOCK TABLES; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; --- Dump completed on 2019-07-31 6:59:58 +-- Dump completed on 2019-08-02 8:22:24