diff options
author | crupest <crupest@outlook.com> | 2020-06-13 23:50:09 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2020-06-13 23:50:09 +0800 |
commit | 41210c20cd6fef83530adbdaf5fb97e9f929ab6c (patch) | |
tree | 2f99a1c08b185890e7148e3876b1d9c53081952e /Timeline/Entities/TimelineEntity.cs | |
parent | d6e9ae92a782f747752d9e26504dc2f27e723f04 (diff) | |
download | timeline-41210c20cd6fef83530adbdaf5fb97e9f929ab6c.tar.gz timeline-41210c20cd6fef83530adbdaf5fb97e9f929ab6c.tar.bz2 timeline-41210c20cd6fef83530adbdaf5fb97e9f929ab6c.zip |
feat(back): Add database migration to add unique id for timeline.
Diffstat (limited to 'Timeline/Entities/TimelineEntity.cs')
-rw-r--r-- | Timeline/Entities/TimelineEntity.cs | 3 |
1 files changed, 3 insertions, 0 deletions
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!;
+
/// <summary>
/// If null, then this timeline is a personal timeline.
/// </summary>
|