aboutsummaryrefslogtreecommitdiff
path: root/BackEnd/Timeline/Entities/TimelinePostEntity.cs
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2021-02-12 22:39:57 +0800
committerGitHub <noreply@github.com>2021-02-12 22:39:57 +0800
commitc3d0a5f88de0fbdf6bc584548832017087ab1248 (patch)
treec1c992987263897fb1c091c5129c6d1f1e64073d /BackEnd/Timeline/Entities/TimelinePostEntity.cs
parente232e31de839dc0c0de691c5856f29dcb92cf0fc (diff)
parent5849d34d9fcf1ccfb7fe5cc0842765129f7198b4 (diff)
downloadtimeline-c3d0a5f88de0fbdf6bc584548832017087ab1248.tar.gz
timeline-c3d0a5f88de0fbdf6bc584548832017087ab1248.tar.bz2
timeline-c3d0a5f88de0fbdf6bc584548832017087ab1248.zip
Merge pull request #267 from crupest/backend
春节大换血 Spring festival big change.
Diffstat (limited to 'BackEnd/Timeline/Entities/TimelinePostEntity.cs')
-rw-r--r--BackEnd/Timeline/Entities/TimelinePostEntity.cs15
1 files changed, 13 insertions, 2 deletions
diff --git a/BackEnd/Timeline/Entities/TimelinePostEntity.cs b/BackEnd/Timeline/Entities/TimelinePostEntity.cs
index 39b11a5b..451f56cd 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,15 +26,21 @@ namespace Timeline.Entities
[ForeignKey(nameof(AuthorId))]
public UserEntity? Author { get; set; } = default!;
- [Column("content_type"), Required]
- public string ContentType { get; set; } = default!;
+ [Obsolete("Use post data instead.")]
+ [Column("content_type")]
+ public string? ContentType { get; set; }
+ [Obsolete("Use post data instead.")]
[Column("content")]
public string? Content { get; set; }
+ [Obsolete("Use post data instead.")]
[Column("extra_content")]
public string? ExtraContent { get; set; }
+ [Column("deleted")]
+ public bool Deleted { get; set; }
+
[Column("color")]
public string? Color { get; set; }
@@ -42,5 +49,9 @@ namespace Timeline.Entities
[Column("last_updated")]
public DateTime LastUpdated { get; set; }
+
+#pragma warning disable CA2227
+ public List<TimelinePostDataEntity> DataList { get; set; } = default!;
+#pragma warning restore CA2227
}
}