From 41210c20cd6fef83530adbdaf5fb97e9f929ab6c Mon Sep 17 00:00:00 2001 From: crupest Date: Sat, 13 Jun 2020 23:50:09 +0800 Subject: feat(back): Add database migration to add unique id for timeline. --- Timeline/Entities/TimelineEntity.cs | 3 +++ 1 file changed, 3 insertions(+) (limited to 'Timeline/Entities/TimelineEntity.cs') diff --git a/Timeline/Entities/TimelineEntity.cs b/Timeline/Entities/TimelineEntity.cs index 3149d4c2..1159cbfe 100644 --- a/Timeline/Entities/TimelineEntity.cs +++ b/Timeline/Entities/TimelineEntity.cs @@ -14,6 +14,9 @@ namespace Timeline.Entities [Column("id"), Key, DatabaseGenerated(DatabaseGeneratedOption.Identity)] public long Id { get; set; } + [Column("unique_id"), Required] + public string UniqueId { get; set; } = default!; + /// /// If null, then this timeline is a personal timeline. /// -- cgit v1.2.3