From bc87a406ebb8aa9d595526e4fc3b726f7ef5ad13 Mon Sep 17 00:00:00 2001 From: crupest Date: Thu, 12 Nov 2020 16:42:46 +0800 Subject: refactor(database): Add user permission table. --- BackEnd/Timeline/Entities/UserEntity.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'BackEnd/Timeline/Entities/UserEntity.cs') 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 Permissions { get; set; } = default!; + public List Timelines { get; set; } = default!; public List TimelinePosts { get; set; } = default!; public List TimelinesJoined { get; set; } = default!; +#pragma warning restore CA2227 // Collection properties should be read only } } -- cgit v1.2.3