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
commitd31cc920403b1e1f90a48d2569084c2f6a4d7dbe (patch)
treefcb379996d02a1de4052f6598d7c52e1196b35a7 /Timeline/Entities/TimelinePostEntity.cs
parentd529b53530270cd7c5d9a90ebcb11e49f7b1eb0d (diff)
downloadtimeline-d31cc920403b1e1f90a48d2569084c2f6a4d7dbe.tar.gz
timeline-d31cc920403b1e1f90a48d2569084c2f6a4d7dbe.tar.bz2
timeline-d31cc920403b1e1f90a48d2569084c2f6a4d7dbe.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!;