aboutsummaryrefslogtreecommitdiff
path: root/BackEnd/Timeline/Entities/UserEntity.cs
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2020-11-12 16:42:46 +0800
committercrupest <crupest@outlook.com>2020-11-12 16:42:46 +0800
commit33f1358f4e5359329d28177384420e29abea3445 (patch)
tree358e1e492e5dc830969899f5a05e76b4f0f57a46 /BackEnd/Timeline/Entities/UserEntity.cs
parent0c789f235f38aa238048b31b9715810d397d3420 (diff)
downloadtimeline-33f1358f4e5359329d28177384420e29abea3445.tar.gz
timeline-33f1358f4e5359329d28177384420e29abea3445.tar.bz2
timeline-33f1358f4e5359329d28177384420e29abea3445.zip
refactor(database): Add user permission table.
Diffstat (limited to 'BackEnd/Timeline/Entities/UserEntity.cs')
-rw-r--r--BackEnd/Timeline/Entities/UserEntity.cs5
1 files changed, 4 insertions, 1 deletions
diff --git a/BackEnd/Timeline/Entities/UserEntity.cs b/BackEnd/Timeline/Entities/UserEntity.cs
index 0cfaa335..83fe9aea 100644
--- a/BackEnd/Timeline/Entities/UserEntity.cs
+++ b/BackEnd/Timeline/Entities/UserEntity.cs
@@ -11,7 +11,6 @@ namespace Timeline.Entities
public const string User = "user";
}
- [System.Diagnostics.CodeAnalysis.SuppressMessage("Usage", "CA2227:Collection properties should be read only", Justification = "This is an entity class.")]
[Table("users")]
public class UserEntity
{
@@ -47,10 +46,14 @@ namespace Timeline.Entities
public UserAvatarEntity? Avatar { get; set; }
+#pragma warning disable CA2227 // Collection properties should be read only
+ public List<UserPermissionEntity> Permissions { get; set; } = default!;
+
public List<TimelineEntity> Timelines { get; set; } = default!;
public List<TimelinePostEntity> TimelinePosts { get; set; } = default!;
public List<TimelineMemberEntity> TimelinesJoined { get; set; } = default!;
+#pragma warning restore CA2227 // Collection properties should be read only
}
}