From 4ea535d93753826ec900879560d876cec4d58c38 Mon Sep 17 00:00:00 2001 From: crupest Date: Wed, 10 Feb 2021 02:03:06 +0800 Subject: ... --- .../Timeline/Entities/TimelinePostDataEntity.cs | 31 ++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 BackEnd/Timeline/Entities/TimelinePostDataEntity.cs (limited to 'BackEnd/Timeline/Entities/TimelinePostDataEntity.cs') 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; } + } +} -- cgit v1.2.3