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/Migrations/DatabaseContextModelSnapshot.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/Migrations/DatabaseContextModelSnapshot.cs')
-rw-r--r-- | Timeline/Migrations/DatabaseContextModelSnapshot.cs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Timeline/Migrations/DatabaseContextModelSnapshot.cs b/Timeline/Migrations/DatabaseContextModelSnapshot.cs index e24023d1..a2112726 100644 --- a/Timeline/Migrations/DatabaseContextModelSnapshot.cs +++ b/Timeline/Migrations/DatabaseContextModelSnapshot.cs @@ -240,6 +240,13 @@ namespace Timeline.Migrations .HasColumnName("roles")
.HasColumnType("TEXT");
+ b.Property<string>("UniqueId")
+ .IsRequired()
+ .ValueGeneratedOnAdd()
+ .HasColumnName("unique_id")
+ .HasColumnType("TEXT")
+ .HasDefaultValueSql("lower(hex(randomblob(16)))");
+
b.Property<string>("Username")
.IsRequired()
.HasColumnName("username")
|