aboutsummaryrefslogtreecommitdiff
path: root/Timeline/Entities/TimelinePostEntity.cs
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2020-08-11 01:16:56 +0800
committercrupest <crupest@outlook.com>2020-08-11 01:16:56 +0800
commite02e1e120693d466679cae2b602085f57b60971f (patch)
tree4ef46f3861528b8b5287cc4a6912fb402dee57cd /Timeline/Entities/TimelinePostEntity.cs
parent06e79c99bbc810f16058b35f1c88c23148bf8e57 (diff)
downloadtimeline-e02e1e120693d466679cae2b602085f57b60971f.tar.gz
timeline-e02e1e120693d466679cae2b602085f57b60971f.tar.bz2
timeline-e02e1e120693d466679cae2b602085f57b60971f.zip
Make author column of post nullable.
Diffstat (limited to 'Timeline/Entities/TimelinePostEntity.cs')
-rw-r--r--Timeline/Entities/TimelinePostEntity.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/Timeline/Entities/TimelinePostEntity.cs b/Timeline/Entities/TimelinePostEntity.cs
index 24bfc7a3..07367fba 100644
--- a/Timeline/Entities/TimelinePostEntity.cs
+++ b/Timeline/Entities/TimelinePostEntity.cs
@@ -20,10 +20,10 @@ namespace Timeline.Entities
public TimelineEntity Timeline { get; set; } = default!;
[Column("author")]
- public long AuthorId { get; set; }
+ public long? AuthorId { get; set; }
[ForeignKey(nameof(AuthorId))]
- public UserEntity Author { get; set; } = default!;
+ public UserEntity? Author { get; set; } = default!;
[Column("content_type"), Required]
public string ContentType { get; set; } = default!;