diff options
author | crupest <crupest@outlook.com> | 2020-08-08 15:47:27 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-08 15:47:27 +0800 |
commit | db65d0c37ace61701deec5cc9cd74239208e0935 (patch) | |
tree | 8847b5500a529b6b62e11fb0a3db742be9c0210e /Timeline/Entities/UserEntity.cs | |
parent | 151105f387c65f2285f61f8e492ad06734ec9f64 (diff) | |
parent | 976f1d9d7062aaedca52cdd6398576b717b5f58f (diff) | |
download | timeline-db65d0c37ace61701deec5cc9cd74239208e0935.tar.gz timeline-db65d0c37ace61701deec5cc9cd74239208e0935.tar.bz2 timeline-db65d0c37ace61701deec5cc9cd74239208e0935.zip |
Merge pull request #139 from crupest/user-uniqueid
Feature now user also has a unique id.
Diffstat (limited to 'Timeline/Entities/UserEntity.cs')
-rw-r--r-- | Timeline/Entities/UserEntity.cs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Timeline/Entities/UserEntity.cs b/Timeline/Entities/UserEntity.cs index 1ef3f98c..07b19d62 100644 --- a/Timeline/Entities/UserEntity.cs +++ b/Timeline/Entities/UserEntity.cs @@ -17,6 +17,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!;
+
[Column("username"), Required]
public string Username { get; set; } = default!;
|