aboutsummaryrefslogtreecommitdiff
path: root/Timeline/Entities/TimelineEntity.cs
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2020-06-14 00:21:25 +0800
committercrupest <crupest@outlook.com>2020-06-14 00:21:25 +0800
commit1df83c67e999f7bcf606046c0c687a0be5f8d462 (patch)
treed073fc9162ab35e1d520f5888c83d4bc98a5ad05 /Timeline/Entities/TimelineEntity.cs
parent41210c20cd6fef83530adbdaf5fb97e9f929ab6c (diff)
downloadtimeline-1df83c67e999f7bcf606046c0c687a0be5f8d462.tar.gz
timeline-1df83c67e999f7bcf606046c0c687a0be5f8d462.tar.bz2
timeline-1df83c67e999f7bcf606046c0c687a0be5f8d462.zip
refactor(back): Use a better way to handle unique id in timeline.
Diffstat (limited to 'Timeline/Entities/TimelineEntity.cs')
-rw-r--r--Timeline/Entities/TimelineEntity.cs4
1 files changed, 2 insertions, 2 deletions
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!;
/// <summary>
/// If null, then this timeline is a personal timeline.