diff options
author | crupest <crupest@outlook.com> | 2021-02-12 22:39:57 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-12 22:39:57 +0800 |
commit | 94eba6cda12010c8657f0e7c5e6977a8d3b46e8c (patch) | |
tree | d6638f60df77ed97fc70f1750f90019c2bb9e9c1 /BackEnd/Timeline/Entities/TimelinePostEntity.cs | |
parent | a759460ad757922e761a07504bcdea7eeaa07860 (diff) | |
parent | 83910122bfd0aa9bd207b6d5f631774415312716 (diff) | |
download | timeline-94eba6cda12010c8657f0e7c5e6977a8d3b46e8c.tar.gz timeline-94eba6cda12010c8657f0e7c5e6977a8d3b46e8c.tar.bz2 timeline-94eba6cda12010c8657f0e7c5e6977a8d3b46e8c.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.cs | 15 |
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
}
}
|