From ce37b4e21158a6caf4a514e3b293b30fc69841fd Mon Sep 17 00:00:00 2001 From: Sean Yang <60932078+s303824@users.noreply.github.com> Date: Mon, 22 Jun 2026 17:55:08 -0400 Subject: [PATCH 1/9] add connection string and json files --- CommBank-Server/Secrets.json | 2 +- Data/Accounts.json | 53 ++++++ Data/Goals.json | 94 +++++++++++ Data/Tags.json | 26 +++ Data/Transactions.json | 310 +++++++++++++++++++++++++++++++++++ Data/Users.json | 69 ++++++++ 6 files changed, 553 insertions(+), 1 deletion(-) create mode 100644 Data/Accounts.json create mode 100644 Data/Goals.json create mode 100644 Data/Tags.json create mode 100644 Data/Transactions.json create mode 100644 Data/Users.json diff --git a/CommBank-Server/Secrets.json b/CommBank-Server/Secrets.json index 0e5bf949..fdf95eba 100644 --- a/CommBank-Server/Secrets.json +++ b/CommBank-Server/Secrets.json @@ -1,5 +1,5 @@ { "ConnectionStrings": { - "CommBank": "{CONNECTION_STRING}" + "CommBank": "mongodb+srv://syangcontact_db_user:@commbank-forage.0akwxol.mongodb.net/?appName=Commbank-Forage" } } \ No newline at end of file diff --git a/Data/Accounts.json b/Data/Accounts.json new file mode 100644 index 00000000..c94a91dc --- /dev/null +++ b/Data/Accounts.json @@ -0,0 +1,53 @@ +[{ + "_id": { + "$oid": "62a3e6aad25715026d1a2938" + }, + "Number": 123456789, + "Name": "Tag's Goal Saver", + "Balance": 6483.81, + "AccountType": "GoalSaver", + "TransactionIds": [ + { + "$oid": "62a3a284d07648900df72860" + }, + { + "$oid": "62a3a2ded07648900df72861" + }, + { + "$oid": "62a3a2ded07648900df72862" + }, + { + "$oid": "62a3a2ded07648900df72863" + }, + { + "$oid": "62a3a2ded07648900df72864" + }, + { + "$oid": "62a3a2ded07648900df72865" + }, + { + "$oid": "62a3a2ded07648900df72866" + }, + { + "$oid": "62a3a2ded07648900df72867" + }, + { + "$oid": "62a3a2ded07648900df72868" + }, + { + "$oid": "62a3a2ded07648900df72869" + }, + { + "$oid": "62a3a344d07648900df7286a" + }, + { + "$oid": "62a3a344d07648900df7286b" + }, + { + "$oid": "62a3a344d07648900df7286c" + }, + { + "$oid": "62a3a344d07648900df7286d" + } + ] +}] \ No newline at end of file diff --git a/Data/Goals.json b/Data/Goals.json new file mode 100644 index 00000000..f42d18ba --- /dev/null +++ b/Data/Goals.json @@ -0,0 +1,94 @@ +[ + { + "_id": { + "$oid": "62a3f587102e921da1253d32" + }, + "Name": "House Down Payment", + "TargetAmount": 100000, + "TargetDate": { + "$date": { + "$numberLong": "1736312400000" + } + }, + "Balance": 73501.82, + "Created": { + "$date": { + "$numberLong": "1654912390857" + } + }, + "TransactionIds": null, + "TagIds": null, + "UserId": { + "$oid": "62a29c15f4605c4c9fa7f306" + } + }, + { + "_id": { + "$oid": "62a3f5e0102e921da1253d33" + }, + "Name": "Tesla Model Y", + "TargetAmount": 60000, + "TargetDate": { + "$date": { + "$numberLong": "1662004800000" + } + }, + "Balance": 43840.02, + "Created": { + "$date": { + "$numberLong": "1654912480950" + } + }, + "TransactionIds": null, + "TagIds": null, + "UserId": { + "$oid": "62a29c15f4605c4c9fa7f306" + } + }, + { + "_id": { + "$oid": "62a3f62e102e921da1253d34" + }, + "Name": "Trip to London", + "TargetAmount": 3500, + "TargetDate": { + "$date": { + "$numberLong": "1659412800000" + } + }, + "Created": { + "$date": { + "$numberLong": "1654912558236" + } + }, + "TransactionIds": null, + "TagIds": null, + "Balance": 753.89, + "UserId": { + "$oid": "62a29c15f4605c4c9fa7f306" + } + }, + { + "_id": { + "$oid": "62a61945fa15f1cd18516a5f" + }, + "Name": "Trip to NYC", + "TargetAmount": 800, + "TargetDate": { + "$date": { + "$numberLong": "1702184400000" + } + }, + "Balance": 0, + "Created": { + "$date": { + "$numberLong": "1655053065668" + } + }, + "TransactionIds": null, + "TagIds": null, + "UserId": { + "$oid": "62a29c15f4605c4c9fa7f306" + } + } +] \ No newline at end of file diff --git a/Data/Tags.json b/Data/Tags.json new file mode 100644 index 00000000..202e1abc --- /dev/null +++ b/Data/Tags.json @@ -0,0 +1,26 @@ +[{ + "_id": { + "$oid": "62a39d27025ca1ba8f1f1c1e" + }, + "Name": "Groceries" +},{ + "_id": { + "$oid": "62a39d42025ca1ba8f1f1c1f" + }, + "Name": "Restaurant" +},{ + "_id": { + "$oid": "62a39d4e025ca1ba8f1f1c20" + }, + "Name": "Income" +},{ + "_id": { + "$oid": "62a39d5a025ca1ba8f1f1c21" + }, + "Name": "Gas" +},{ + "_id": { + "$oid": "62a39d63025ca1ba8f1f1c22" + }, + "Name": "Investment" +}] \ No newline at end of file diff --git a/Data/Transactions.json b/Data/Transactions.json new file mode 100644 index 00000000..9320984d --- /dev/null +++ b/Data/Transactions.json @@ -0,0 +1,310 @@ +[ + { + "_id": { + "$oid": "62a3a284d07648900df72860" + }, + "TransactionType": "Debit", + "Amount": 135.39, + "DateTime": { + "$date": { + "$numberLong": "1654891140391" + } + }, + "GoalId": null, + "TagIds": [ + { + "$oid": "62a39d27025ca1ba8f1f1c1e" + } + ], + "Description": "Whole Foods", + "UserId": { + "$oid": "62a29c15f4605c4c9fa7f306" + } + }, + { + "_id": { + "$oid": "62a3a2ded07648900df72861" + }, + "TransactionType": "Debit", + "Amount": 139.26, + "DateTime": { + "$date": { + "$numberLong": "1654027230566" + } + }, + "GoalId": null, + "TagIds": [ + { + "$oid": "62a39d27025ca1ba8f1f1c1e" + } + ], + "Description": "Whole Foods", + "UserId": { + "$oid": "62a29c15f4605c4c9fa7f306" + } + }, + { + "_id": { + "$oid": "62a3a2ebd07648900df72862" + }, + "TransactionType": "Debit", + "Amount": 26.39, + "DateTime": { + "$date": { + "$numberLong": "1654891243091" + } + }, + "GoalId": null, + "TagIds": [ + { + "$oid": "62a39d42025ca1ba8f1f1c1f" + } + ], + "Description": "Chipotle", + "UserId": { + "$oid": "62a29c15f4605c4c9fa7f306" + } + }, + { + "_id": { + "$oid": "62a3a2ecd07648900df72863" + }, + "TransactionType": "Debit", + "Amount": 21.9, + "DateTime": { + "$date": { + "$numberLong": "1654027230566" + } + }, + "GoalId": null, + "TagIds": [ + { + "$oid": "62a39d42025ca1ba8f1f1c1f" + } + ], + "Description": "Chipotle", + "UserId": { + "$oid": "62a29c15f4605c4c9fa7f306" + } + }, + { + "_id": { + "$oid": "62a3a316d07648900df72864" + }, + "TransactionType": "Credit", + "Amount": 5622.81, + "DateTime": { + "$date": { + "$numberLong": "1654891286080" + } + }, + "GoalId": null, + "TagIds": [ + { + "$oid": "62a39d4e025ca1ba8f1f1c20" + } + ], + "Description": "Dropbox", + "UserId": { + "$oid": "62a29c15f4605c4c9fa7f306" + } + }, + { + "_id": { + "$oid": "62a3a318d07648900df72865" + }, + "TransactionType": "Credit", + "Amount": 5622.92, + "DateTime": { + "$date": { + "$numberLong": "1654027230566" + } + }, + "GoalId": null, + "TagIds": [ + { + "$oid": "62a39d4e025ca1ba8f1f1c20" + } + ], + "Description": "Dropbox", + "UserId": { + "$oid": "62a29c15f4605c4c9fa7f306" + } + }, + { + "_id": { + "$oid": "62a3a323d07648900df72866" + }, + "TransactionType": "Credit", + "Amount": 1439.18, + "DateTime": { + "$date": { + "$numberLong": "1654891299481" + } + }, + "GoalId": null, + "TagIds": [ + { + "$oid": "62a39d4e025ca1ba8f1f1c20" + } + ], + "Description": "Fencer", + "UserId": { + "$oid": "62a29c15f4605c4c9fa7f306" + } + }, + { + "_id": { + "$oid": "62a3a324d07648900df72867" + }, + "TransactionType": "Credit", + "Amount": 1439.89, + "DateTime": { + "$date": { + "$numberLong": "1654027230566" + } + }, + "GoalId": null, + "TagIds": [ + { + "$oid": "62a39d4e025ca1ba8f1f1c20" + } + ], + "Description": "Fencer", + "UserId": { + "$oid": "62a29c15f4605c4c9fa7f306" + } + }, + { + "_id": { + "$oid": "62a3a337d07648900df72868" + }, + "TransactionType": "Debit", + "Amount": 44.52, + "DateTime": { + "$date": { + "$numberLong": "1654891319411" + } + }, + "GoalId": null, + "TagIds": [ + { + "$oid": "62a39d5a025ca1ba8f1f1c21" + } + ], + "Description": "Gas", + "UserId": { + "$oid": "62a29c15f4605c4c9fa7f306" + } + }, + { + "_id": { + "$oid": "62a3a338d07648900df72869" + }, + "TransactionType": "Debit", + "Amount": 44.13, + "DateTime": { + "$date": { + "$numberLong": "1654027230566" + } + }, + "GoalId": null, + "TagIds": [ + { + "$oid": "62a39d5a025ca1ba8f1f1c21" + } + ], + "Description": "Gas", + "UserId": { + "$oid": "62a29c15f4605c4c9fa7f306" + } + }, + { + "_id": { + "$oid": "62a3a344d07648900df7286a" + }, + "TransactionType": "Debit", + "Amount": 1500, + "DateTime": { + "$date": { + "$numberLong": "1654891332111" + } + }, + "GoalId": null, + "TagIds": [ + { + "$oid": "62a39d63025ca1ba8f1f1c22" + } + ], + "Description": "Coinbase", + "UserId": { + "$oid": "62a29c15f4605c4c9fa7f306" + } + }, + { + "_id": { + "$oid": "62a3a344d07648900df7286b" + }, + "TransactionType": "Debit", + "Amount": 1500, + "DateTime": { + "$date": { + "$numberLong": "1654027230566" + } + }, + "GoalId": null, + "TagIds": [ + { + "$oid": "62a39d63025ca1ba8f1f1c22" + } + ], + "Description": "Coinbase", + "UserId": { + "$oid": "62a29c15f4605c4c9fa7f306" + } + }, + { + "_id": { + "$oid": "62a3a348d07648900df7286c" + }, + "TransactionType": "Debit", + "Amount": 1500, + "DateTime": { + "$date": { + "$numberLong": "1654891336929" + } + }, + "GoalId": null, + "TagIds": [ + { + "$oid": "62a39d63025ca1ba8f1f1c22" + } + ], + "Description": "Titan", + "UserId": { + "$oid": "62a29c15f4605c4c9fa7f306" + } + }, + { + "_id": { + "$oid": "62a3a349d07648900df7286d" + }, + "TransactionType": "Debit", + "Amount": 1500, + "DateTime": { + "$date": { + "$numberLong": "1654027230566" + } + }, + "GoalId": null, + "TagIds": [ + { + "$oid": "62a39d63025ca1ba8f1f1c22" + } + ], + "Description": "Titan", + "UserId": { + "$oid": "62a29c15f4605c4c9fa7f306" + } + } +] \ No newline at end of file diff --git a/Data/Users.json b/Data/Users.json new file mode 100644 index 00000000..aa8243cd --- /dev/null +++ b/Data/Users.json @@ -0,0 +1,69 @@ +[ + { + "_id": { + "$oid": "62a29c15f4605c4c9fa7f306" + }, + "Name": "Tag Ramotar", + "Email": "tag@dropbox.com", + "Password": "$2a$11$10VhY5XIwBeWA4uLIE.sr.c34UvwLRQPD8yy7z/4iiN6ez5z2Pg1S", + "AccountIds": null, + "GoalIds": [ + { + "$oid": "62a3f587102e921da1253d32" + }, + { + "$oid": "62a3f5e0102e921da1253d33" + }, + { + "$oid": "62a3f62e102e921da1253d34" + }, + { + "$oid": "62a61945fa15f1cd18516a5f" + } + ], + "TransactionIds": [ + { + "$oid": "62a3a284d07648900df72860" + }, + { + "$oid": "62a3a2ded07648900df72861" + }, + { + "$oid": "62a3a2ebd07648900df72862" + }, + { + "$oid": "62a3a2ebd07648900df72863" + }, + { + "$oid": "62a3a2ebd07648900df72864" + }, + { + "$oid": "62a3a2ebd07648900df72865" + }, + { + "$oid": "62a3a2ebd07648900df72866" + }, + { + "$oid": "62a3a2ebd07648900df72867" + }, + { + "$oid": "62a3a2ebd07648900df72868" + }, + { + "$oid": "62a3a2ebd07648900df72869" + }, + { + "$oid": "62a3a344d07648900df7286a" + }, + { + "$oid": "62a3a344d07648900df7286b" + }, + { + "$oid": "62a3a348d07648900df7286c" + }, + { + "$oid": "62a3a349d07648900df7286d" + } + ] + } +] \ No newline at end of file From 1031ca6a9989d2335173fcffb040a45bc0cb4461 Mon Sep 17 00:00:00 2001 From: Sean Yang <60932078+s303824@users.noreply.github.com> Date: Mon, 22 Jun 2026 19:31:44 -0400 Subject: [PATCH 2/9] Json Deserializer --- CommBank-Server/CommBank.csproj | 1 + CommBank-Server/Program.cs | 31 ++++++++++++++++++++++++++++++- 2 files changed, 31 insertions(+), 1 deletion(-) diff --git a/CommBank-Server/CommBank.csproj b/CommBank-Server/CommBank.csproj index 983cc882..cc74a938 100644 --- a/CommBank-Server/CommBank.csproj +++ b/CommBank-Server/CommBank.csproj @@ -14,6 +14,7 @@ + diff --git a/CommBank-Server/Program.cs b/CommBank-Server/Program.cs index a88e560d..51667fe4 100644 --- a/CommBank-Server/Program.cs +++ b/CommBank-Server/Program.cs @@ -1,6 +1,9 @@ -using CommBank.Models; +using System.Text.Json; +using CommBank.Models; using CommBank.Services; using MongoDB.Driver; +using System.Text.Json; +using Tag = CommBank.Models.Tag; var builder = WebApplication.CreateBuilder(args); @@ -49,5 +52,31 @@ app.MapControllers(); + +List? accounts = JsonSerializer.Deserialize>( "../Data/Accounts.json"); +List? goals = JsonSerializer.Deserialize>( "../Data/Goals.json"); +List? tags = JsonSerializer.Deserialize>( "../Data/Tags.json"); +List? transactions = JsonSerializer.Deserialize>( "../Data/Transactions.json"); +List? users = JsonSerializer.Deserialize>( "../Data/Users.json"); + +foreach(Account account in accounts){ + accountsService.CreateAsync(account); +} +foreach(Goal goal in goals) +{ + goalsService.CreateAsync(goal); +} +foreach(Tag tag in tags){ + tagsService.CreateAsync(tag); +} +foreach(Transaction transaction in transactions) +{ + transactionsService.CreateAsync(transaction); +} +foreach(User user in users) +{ + usersService.CreateAsync(user); +} + app.Run(); From 284fd7ee8c8e39fd15a6dd0c055bd11e5e4d4fcf Mon Sep 17 00:00:00 2001 From: Sean Yang <60932078+s303824@users.noreply.github.com> Date: Wed, 24 Jun 2026 20:01:32 -0400 Subject: [PATCH 3/9] installed data into DB --- {Data => CommBank-Server/Data}/Accounts.json | 0 {Data => CommBank-Server/Data}/Goals.json | 0 {Data => CommBank-Server/Data}/Tags.json | 0 .../Data}/Transactions.json | 0 {Data => CommBank-Server/Data}/Users.json | 0 CommBank-Server/Program.cs | 33 ++----------------- CommBank-Server/Secrets.json | 2 +- 7 files changed, 3 insertions(+), 32 deletions(-) rename {Data => CommBank-Server/Data}/Accounts.json (100%) rename {Data => CommBank-Server/Data}/Goals.json (100%) rename {Data => CommBank-Server/Data}/Tags.json (100%) rename {Data => CommBank-Server/Data}/Transactions.json (100%) rename {Data => CommBank-Server/Data}/Users.json (100%) diff --git a/Data/Accounts.json b/CommBank-Server/Data/Accounts.json similarity index 100% rename from Data/Accounts.json rename to CommBank-Server/Data/Accounts.json diff --git a/Data/Goals.json b/CommBank-Server/Data/Goals.json similarity index 100% rename from Data/Goals.json rename to CommBank-Server/Data/Goals.json diff --git a/Data/Tags.json b/CommBank-Server/Data/Tags.json similarity index 100% rename from Data/Tags.json rename to CommBank-Server/Data/Tags.json diff --git a/Data/Transactions.json b/CommBank-Server/Data/Transactions.json similarity index 100% rename from Data/Transactions.json rename to CommBank-Server/Data/Transactions.json diff --git a/Data/Users.json b/CommBank-Server/Data/Users.json similarity index 100% rename from Data/Users.json rename to CommBank-Server/Data/Users.json diff --git a/CommBank-Server/Program.cs b/CommBank-Server/Program.cs index 51667fe4..69af3ad2 100644 --- a/CommBank-Server/Program.cs +++ b/CommBank-Server/Program.cs @@ -1,9 +1,6 @@ -using System.Text.Json; -using CommBank.Models; -using CommBank.Services; +using CommBank.Services; using MongoDB.Driver; -using System.Text.Json; -using Tag = CommBank.Models.Tag; + var builder = WebApplication.CreateBuilder(args); @@ -52,31 +49,5 @@ app.MapControllers(); - -List? accounts = JsonSerializer.Deserialize>( "../Data/Accounts.json"); -List? goals = JsonSerializer.Deserialize>( "../Data/Goals.json"); -List? tags = JsonSerializer.Deserialize>( "../Data/Tags.json"); -List? transactions = JsonSerializer.Deserialize>( "../Data/Transactions.json"); -List? users = JsonSerializer.Deserialize>( "../Data/Users.json"); - -foreach(Account account in accounts){ - accountsService.CreateAsync(account); -} -foreach(Goal goal in goals) -{ - goalsService.CreateAsync(goal); -} -foreach(Tag tag in tags){ - tagsService.CreateAsync(tag); -} -foreach(Transaction transaction in transactions) -{ - transactionsService.CreateAsync(transaction); -} -foreach(User user in users) -{ - usersService.CreateAsync(user); -} - app.Run(); diff --git a/CommBank-Server/Secrets.json b/CommBank-Server/Secrets.json index fdf95eba..121409ee 100644 --- a/CommBank-Server/Secrets.json +++ b/CommBank-Server/Secrets.json @@ -1,5 +1,5 @@ { "ConnectionStrings": { - "CommBank": "mongodb+srv://syangcontact_db_user:@commbank-forage.0akwxol.mongodb.net/?appName=Commbank-Forage" + "CommBank": "mongodb+srv://syangcontact_db_user:MFwNzKaMvWMf30Cc@commbank-forage.0akwxol.mongodb.net/commbank" } } \ No newline at end of file From 937a137c55c3b8bbe4212199cc0a8396d2656396 Mon Sep 17 00:00:00 2001 From: Sean Yang <60932078+s303824@users.noreply.github.com> Date: Wed, 24 Jun 2026 20:41:58 -0400 Subject: [PATCH 4/9] Update .gitignore --- .gitignore | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.gitignore b/.gitignore index 67697151..bc8350d3 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,6 @@ +# Secrets +CommBank-Server\Secrets.json + # globs Makefile.in *.userprefs From 4d8cc97e98adbaa5ec5a0edc99cc22b846de789b Mon Sep 17 00:00:00 2001 From: Sean Yang <60932078+s303824@users.noreply.github.com> Date: Wed, 24 Jun 2026 20:42:24 -0400 Subject: [PATCH 5/9] Update .gitignore --- .gitignore | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index bc8350d3..c6bc5d33 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,5 @@ # Secrets -CommBank-Server\Secrets.json +CommBank-Server/Secrets.json # globs Makefile.in From 997a77650ade3c5783d5952faea39d0d0f5a3666 Mon Sep 17 00:00:00 2001 From: Sean Yang <60932078+s303824@users.noreply.github.com> Date: Wed, 24 Jun 2026 20:42:38 -0400 Subject: [PATCH 6/9] secret --- CommBank-Server/Secrets.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CommBank-Server/Secrets.json b/CommBank-Server/Secrets.json index 121409ee..b3329b6a 100644 --- a/CommBank-Server/Secrets.json +++ b/CommBank-Server/Secrets.json @@ -1,5 +1,5 @@ { "ConnectionStrings": { - "CommBank": "mongodb+srv://syangcontact_db_user:MFwNzKaMvWMf30Cc@commbank-forage.0akwxol.mongodb.net/commbank" + "CommBank": "mongodb+srv://syangcontact_db_user:MFwNzKaMvWMf30Cc@commbank-forage.0akwxol.mongodb.net/CommBank" } } \ No newline at end of file From ae1827e4adfc43a44913228668ba5d132918519d Mon Sep 17 00:00:00 2001 From: Sean Yang <60932078+s303824@users.noreply.github.com> Date: Wed, 24 Jun 2026 20:50:19 -0400 Subject: [PATCH 7/9] Update .gitignore --- .gitignore | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index c6bc5d33..b9f498ce 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,3 @@ -# Secrets -CommBank-Server/Secrets.json - # globs Makefile.in *.userprefs @@ -408,3 +405,4 @@ ASALocalRun/ .localhistory/ +CommBank-Server/Secrets.json From 4f5b7cdd8238dc3d8917128bcf2e54eb3438eb7b Mon Sep 17 00:00:00 2001 From: Sean Yang <60932078+s303824@users.noreply.github.com> Date: Wed, 24 Jun 2026 20:52:36 -0400 Subject: [PATCH 8/9] revert connection string --- CommBank-Server/Secrets.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CommBank-Server/Secrets.json b/CommBank-Server/Secrets.json index b3329b6a..0e5bf949 100644 --- a/CommBank-Server/Secrets.json +++ b/CommBank-Server/Secrets.json @@ -1,5 +1,5 @@ { "ConnectionStrings": { - "CommBank": "mongodb+srv://syangcontact_db_user:MFwNzKaMvWMf30Cc@commbank-forage.0akwxol.mongodb.net/CommBank" + "CommBank": "{CONNECTION_STRING}" } } \ No newline at end of file From b5e37551814c2781f26088c6698f8ab0e07e153e Mon Sep 17 00:00:00 2001 From: Sean Yang <60932078+s303824@users.noreply.github.com> Date: Wed, 24 Jun 2026 23:17:22 -0400 Subject: [PATCH 9/9] Add Icon field --- CommBank-Server/Models/Goal.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CommBank-Server/Models/Goal.cs b/CommBank-Server/Models/Goal.cs index 77ff1ad5..20b9b5d4 100644 --- a/CommBank-Server/Models/Goal.cs +++ b/CommBank-Server/Models/Goal.cs @@ -27,4 +27,6 @@ public class Goal [BsonRepresentation(BsonType.ObjectId)] public string? UserId { get; set; } + + public string? Icon { get; set; } } \ No newline at end of file