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
commitbc87a406ebb8aa9d595526e4fc3b726f7ef5ad13 (patch)
tree9abc0921929e5cd109a697bfdec37e486a76150e /BackEnd/Timeline/Entities/UserEntity.cs
parent5b78017e93450342c85a0e7f5ed16bbb6ae8422e (diff)
downloadtimeline-bc87a406ebb8aa9d595526e4fc3b726f7ef5ad13.tar.gz
timeline-bc87a406ebb8aa9d595526e4fc3b726f7ef5ad13.tar.bz2
timeline-bc87a406ebb8aa9d595526e4fc3b726f7ef5ad13.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
}
}