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 | c3d0a5f88de0fbdf6bc584548832017087ab1248 (patch) | |
tree | c1c992987263897fb1c091c5129c6d1f1e64073d /BackEnd/Timeline/Entities/TimelinePostDataEntity.cs | |
parent | e232e31de839dc0c0de691c5856f29dcb92cf0fc (diff) | |
parent | 5849d34d9fcf1ccfb7fe5cc0842765129f7198b4 (diff) | |
download | timeline-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/TimelinePostDataEntity.cs')
-rw-r--r-- | BackEnd/Timeline/Entities/TimelinePostDataEntity.cs | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/BackEnd/Timeline/Entities/TimelinePostDataEntity.cs b/BackEnd/Timeline/Entities/TimelinePostDataEntity.cs new file mode 100644 index 00000000..9bc5d3e8 --- /dev/null +++ b/BackEnd/Timeline/Entities/TimelinePostDataEntity.cs @@ -0,0 +1,32 @@ +using System;
+using System.ComponentModel.DataAnnotations;
+using System.ComponentModel.DataAnnotations.Schema;
+
+namespace Timeline.Entities
+{
+ [Table("timeline_post_data")]
+ public class TimelinePostDataEntity
+ {
+ [Column("id"), Key, DatabaseGenerated(DatabaseGeneratedOption.Identity)]
+ public long Id { get; set; }
+
+ [Required]
+ [Column("post")]
+ public long PostId { get; set; }
+
+ [ForeignKey(nameof(PostId))]
+ public TimelinePostEntity Post { get; set; } = default!;
+
+ [Column("index")]
+ public long Index { get; set; }
+
+ [Column("kind")]
+ public string Kind { get; set; } = default!;
+
+ [Column("data_tag")]
+ public string DataTag { get; set; } = default!;
+
+ [Column("last_updated")]
+ public DateTime LastUpdated { get; set; }
+ }
+}
|