diff options
author | crupest <crupest@outlook.com> | 2021-02-10 02:03:06 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2021-02-10 02:03:06 +0800 |
commit | 253b06dfaa091d986a8714c081fd1e01679f538a (patch) | |
tree | 9200a7f6607889fcfb13b7ba14cc30db54fe3499 /BackEnd/Timeline/Entities/TimelinePostEntity.cs | |
parent | bc2d6676276ea85a974f57f96b038e35e6ce7460 (diff) | |
download | timeline-253b06dfaa091d986a8714c081fd1e01679f538a.tar.gz timeline-253b06dfaa091d986a8714c081fd1e01679f538a.tar.bz2 timeline-253b06dfaa091d986a8714c081fd1e01679f538a.zip |
...
Diffstat (limited to 'BackEnd/Timeline/Entities/TimelinePostEntity.cs')
-rw-r--r-- | BackEnd/Timeline/Entities/TimelinePostEntity.cs | 12 |
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!;
}
}
|