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 | 4ea535d93753826ec900879560d876cec4d58c38 (patch) | |
tree | b2d94c4347fddf8641fc41caa86826374c9cc241 /BackEnd/Timeline/Entities/TimelinePostDataEntity.cs | |
parent | bf8f849c36bfc42cfd0ef1a66f2adf01dc8e1be7 (diff) | |
download | timeline-4ea535d93753826ec900879560d876cec4d58c38.tar.gz timeline-4ea535d93753826ec900879560d876cec4d58c38.tar.bz2 timeline-4ea535d93753826ec900879560d876cec4d58c38.zip |
...
Diffstat (limited to 'BackEnd/Timeline/Entities/TimelinePostDataEntity.cs')
-rw-r--r-- | BackEnd/Timeline/Entities/TimelinePostDataEntity.cs | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/BackEnd/Timeline/Entities/TimelinePostDataEntity.cs b/BackEnd/Timeline/Entities/TimelinePostDataEntity.cs new file mode 100644 index 00000000..6ae8fd24 --- /dev/null +++ b/BackEnd/Timeline/Entities/TimelinePostDataEntity.cs @@ -0,0 +1,31 @@ +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; }
+
+ [Column("post")]
+ public long PostId { get; set; }
+
+ [ForeignKey(nameof(PostId))]
+ public TimelinePostEntity Timeline { 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; }
+ }
+}
|