From 4cfb50d40384e5dea1805f8d6fc5ab38cd32d93b Mon Sep 17 00:00:00 2001 From: crupest Date: Sun, 14 Jun 2020 00:21:25 +0800 Subject: refactor(back): Use a better way to handle unique id in timeline. --- Timeline/Entities/TimelineEntity.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Timeline/Entities/TimelineEntity.cs') diff --git a/Timeline/Entities/TimelineEntity.cs b/Timeline/Entities/TimelineEntity.cs index 1159cbfe..4a4e8502 100644 --- a/Timeline/Entities/TimelineEntity.cs +++ b/Timeline/Entities/TimelineEntity.cs @@ -14,8 +14,8 @@ namespace Timeline.Entities [Column("id"), Key, DatabaseGenerated(DatabaseGeneratedOption.Identity)] public long Id { get; set; } - [Column("unique_id"), Required] - public string UniqueId { get; set; } = default!; + [Column("unique_id", TypeName = "BLOB"), Required] + public Guid UniqueId { get; set; } = default!; /// /// If null, then this timeline is a personal timeline. -- cgit v1.2.3