summaryrefslogtreecommitdiff
path: root/backend/Elements.Data/Models/User.cs
diff options
context:
space:
mode:
authorPaweł Bernaciak <pawelbernaciak@zohomail.eu>2023-10-22 16:37:48 +0200
committerPaweł Bernaciak <pawelbernaciak@zohomail.eu>2023-10-22 21:25:50 +0200
commit6900a7fe2e03ad777bf40fc28baf63f2c383a2ae (patch)
tree27bed9a93914b0203a76464085895ac84cc75cdb /backend/Elements.Data/Models/User.cs
parent3f3bb3cefc4c886b42a178e38512ae8949b4926e (diff)
More model fixes
Diffstat (limited to 'backend/Elements.Data/Models/User.cs')
-rw-r--r--backend/Elements.Data/Models/User.cs6
1 files changed, 4 insertions, 2 deletions
diff --git a/backend/Elements.Data/Models/User.cs b/backend/Elements.Data/Models/User.cs
index 63be88a..bf3231b 100644
--- a/backend/Elements.Data/Models/User.cs
+++ b/backend/Elements.Data/Models/User.cs
@@ -5,6 +5,8 @@ public class User
public int Id { get; set; }
public required string GoogleId { get; init; }
public required string Name { get; set; }
- public required ICollection<Element> Elements { get; set; }
- public required ICollection<Suggestion> Suggestions { get; set; }
+
+ public ICollection<Element> Elements { get; } = new List<Element>();
+ public ICollection<Suggestion> Suggestions { get; } = new List<Suggestion>();
+ public ICollection<Vote> Votes { get; } = new List<Vote>();
} \ No newline at end of file