From cae9e119b5bf7936984c4152db227bceed38cb86 Mon Sep 17 00:00:00 2001 From: Mary Tran Date: Sun, 18 Nov 2018 17:15:44 -0500 Subject: [PATCH] Pre-create Service Provider --- .../java/com/uottawa/olympus/olympusservices/DBHelper.java | 4 ++++ README.md | 5 +++++ 2 files changed, 9 insertions(+) diff --git a/OlympusServices/app/src/main/java/com/uottawa/olympus/olympusservices/DBHelper.java b/OlympusServices/app/src/main/java/com/uottawa/olympus/olympusservices/DBHelper.java index e48f01f..6735a7f 100644 --- a/OlympusServices/app/src/main/java/com/uottawa/olympus/olympusservices/DBHelper.java +++ b/OlympusServices/app/src/main/java/com/uottawa/olympus/olympusservices/DBHelper.java @@ -95,6 +95,10 @@ public class DBHelper extends SQLiteOpenHelper { writeDB = this.getWritableDatabase(); //pre-add the admin user addUser(new Admin()); + addUser(new ServiceProvider("testing", "testing", "TestFirst", "TestLast", + "1234 Test Street, Testinaro, Timor-Teste", "6136136163", + "Test Company", false, + "Tested 10 years")); } @Override diff --git a/README.md b/README.md index a91cb3d..190d550 100644 --- a/README.md +++ b/README.md @@ -6,3 +6,8 @@ https://github.com/ebivibe/SEG2105-Olympus Admin account is precreated with username = admin, password = admin + + +ServiceProvider account is precreated with +username = testing, +password = testing \ No newline at end of file