aboutsummaryrefslogtreecommitdiff
path: root/BackEnd/Timeline/Entities/TimelinePostEntity.cs
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2021-02-10 02:03:06 +0800
committercrupest <crupest@outlook.com>2021-02-10 02:03:06 +0800
commit4ea535d93753826ec900879560d876cec4d58c38 (patch)
treeb2d94c4347fddf8641fc41caa86826374c9cc241 /BackEnd/Timeline/Entities/TimelinePostEntity.cs
parentbf8f849c36bfc42cfd0ef1a66f2adf01dc8e1be7 (diff)
downloadtimeline-4ea535d93753826ec900879560d876cec4d58c38.tar.gz
timeline-4ea535d93753826ec900879560d876cec4d58c38.tar.bz2
timeline-4ea535d93753826ec900879560d876cec4d58c38.zip
...
Diffstat (limited to 'BackEnd/Timeline/Entities/TimelinePostEntity.cs')
-rw-r--r--BackEnd/Timeline/Entities/TimelinePostEntity.cs12
1 files changed, 4 insertions, 8 deletions
diff --git a/BackEnd/Timeline/Entities/TimelinePostEntity.cs b/BackEnd/Timeline/Entities/TimelinePostEntity.cs
index 39b11a5b..c65ef929 100644
--- a/BackEnd/Timeline/Entities/TimelinePostEntity.cs
+++ b/BackEnd/Timeline/Entities/TimelinePostEntity.cs
@@ -1,4 +1,5 @@
using System;
+using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
@@ -25,14 +26,7 @@ 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; }
-
- [Column("extra_content")]
- public string? ExtraContent { get; set; }
+ public bool Deleted { get; set; }
[Column("color")]
public string? Color { get; set; }
@@ -42,5 +36,7 @@ namespace Timeline.Entities
[Column("last_updated")]
public DateTime LastUpdated { get; set; }
+
+ public List<TimelinePostDataEntity> DataList { get; set; } = default!;
}
}