diff options
author | crupest <crupest@outlook.com> | 2020-06-14 00:21:25 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2020-06-14 00:21:25 +0800 |
commit | 4cfb50d40384e5dea1805f8d6fc5ab38cd32d93b (patch) | |
tree | c9395a11fa6ccefe6a03e81c7b837e28b2e3e97a /Timeline/Entities/TimelineEntity.cs | |
parent | 2f8ffdb2db682b1c1407313816def20fde58d35f (diff) | |
download | timeline-4cfb50d40384e5dea1805f8d6fc5ab38cd32d93b.tar.gz timeline-4cfb50d40384e5dea1805f8d6fc5ab38cd32d93b.tar.bz2 timeline-4cfb50d40384e5dea1805f8d6fc5ab38cd32d93b.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.cs | 4 |
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.
|