From 393fc162ed13e361ef9563f92a5c52ab1ea4106c Mon Sep 17 00:00:00 2001 From: muneeb-farooq07 Date: Thu, 23 Jul 2026 16:58:21 -0500 Subject: [PATCH] Add optional icon property to Goal Model --- CommBank-Server/Models/Goal.cs | 4 ++++ CommBank-Server/Secrets.json | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/CommBank-Server/Models/Goal.cs b/CommBank-Server/Models/Goal.cs index 77ff1ad5..d2a9acce 100644 --- a/CommBank-Server/Models/Goal.cs +++ b/CommBank-Server/Models/Goal.cs @@ -7,6 +7,7 @@ public class Goal { [BsonId] [BsonRepresentation(BsonType.ObjectId)] + public string? Id { get; set; } public string? Name { get; set; } @@ -27,4 +28,7 @@ public class Goal [BsonRepresentation(BsonType.ObjectId)] public string? UserId { get; set; } + + [BsonElement("icon")] + public string? Icon { get; set; } } \ No newline at end of file diff --git a/CommBank-Server/Secrets.json b/CommBank-Server/Secrets.json index 0e5bf949..57be8913 100644 --- a/CommBank-Server/Secrets.json +++ b/CommBank-Server/Secrets.json @@ -1,5 +1,5 @@ { "ConnectionStrings": { - "CommBank": "{CONNECTION_STRING}" + "CommBank": "mongodb+srv://muneebfarooq615_db_user:QDJiWiMg0Guebmhj@cluster0.2xnkhfq.mongodb.net/?appName=Cluster0" } } \ No newline at end of file