aboutsummaryrefslogtreecommitdiff
path: root/Timeline/Entities
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2020-03-06 22:28:32 +0800
committercrupest <crupest@outlook.com>2020-03-06 22:28:32 +0800
commit99cf6981e7528b8e53f73ba91a7d6a0cf01f3a1f (patch)
treef7a5aee626f4771a0c75ddc67c0b13b67c472a10 /Timeline/Entities
parenta37874830399c193392cc78367efcecbe8275ceb (diff)
downloadtimeline-99cf6981e7528b8e53f73ba91a7d6a0cf01f3a1f.tar.gz
timeline-99cf6981e7528b8e53f73ba91a7d6a0cf01f3a1f.tar.bz2
timeline-99cf6981e7528b8e53f73ba91a7d6a0cf01f3a1f.zip
Init development of post image feature.
Diffstat (limited to 'Timeline/Entities')
-rw-r--r--Timeline/Entities/TimelinePostEntity.cs3
1 files changed, 3 insertions, 0 deletions
diff --git a/Timeline/Entities/TimelinePostEntity.cs b/Timeline/Entities/TimelinePostEntity.cs
index 5805abe0..ca2703b3 100644
--- a/Timeline/Entities/TimelinePostEntity.cs
+++ b/Timeline/Entities/TimelinePostEntity.cs
@@ -25,6 +25,9 @@ namespace Timeline.Entities
[ForeignKey(nameof(AuthorId))]
public UserEntity Author { get; set; } = default!;
+ [Column("content_type"), Required]
+ public string ContentType { get; set; } = default!;
+
[Column("content")]
public string? Content { get; set; }