diff options
| author | crupest <crupest@outlook.com> | 2020-02-29 19:32:58 +0800 |
|---|---|---|
| committer | crupest <crupest@outlook.com> | 2020-02-29 19:32:58 +0800 |
| commit | 3025536a7901da556bc5e3fba7a77064b54796c0 (patch) | |
| tree | b4f26809215caf4fc31be5a097819f5ad2f2a9d3 /Timeline/Entities | |
| parent | b6b6c3089d42adc3d39aeb5efcbce7bdef09b3cb (diff) | |
| download | timeline-3025536a7901da556bc5e3fba7a77064b54796c0.tar.gz timeline-3025536a7901da556bc5e3fba7a77064b54796c0.tar.bz2 timeline-3025536a7901da556bc5e3fba7a77064b54796c0.zip | |
Now posts use local id in same timeline. Also fixed some unconforming place in migrations.
Diffstat (limited to 'Timeline/Entities')
| -rw-r--r-- | Timeline/Entities/TimelineEntity.cs | 3 | ||||
| -rw-r--r-- | Timeline/Entities/TimelinePostEntity.cs | 3 |
2 files changed, 6 insertions, 0 deletions
diff --git a/Timeline/Entities/TimelineEntity.cs b/Timeline/Entities/TimelineEntity.cs index 0b252bab..56b36d4e 100644 --- a/Timeline/Entities/TimelineEntity.cs +++ b/Timeline/Entities/TimelineEntity.cs @@ -35,6 +35,9 @@ namespace Timeline.Entities [Column("create_time")]
public DateTime CreateTime { get; set; }
+ [Column("current_post_local_id")]
+ public long CurrentPostLocalId { get; set; }
+
public List<TimelineMemberEntity> Members { get; set; } = default!;
public List<TimelinePostEntity> Posts { get; set; } = default!;
diff --git a/Timeline/Entities/TimelinePostEntity.cs b/Timeline/Entities/TimelinePostEntity.cs index a615c61f..5805abe0 100644 --- a/Timeline/Entities/TimelinePostEntity.cs +++ b/Timeline/Entities/TimelinePostEntity.cs @@ -10,6 +10,9 @@ namespace Timeline.Entities [Column("id"), Key, DatabaseGenerated(DatabaseGeneratedOption.Identity)]
public long Id { get; set; }
+ [Column("local_id")]
+ public long LocalId { get; set; }
+
[Column("timeline")]
public long TimelineId { get; set; }
|
