aboutsummaryrefslogtreecommitdiff
path: root/Timeline/Migrations/DatabaseContextModelSnapshot.cs
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2020-08-08 15:22:44 +0800
committercrupest <crupest@outlook.com>2020-08-08 15:22:44 +0800
commit5a0a27a047f7f59af1cab4ac2f25e684f58b3447 (patch)
treed4f24f22bfca49b28a038428c13b5f005ea453a4 /Timeline/Migrations/DatabaseContextModelSnapshot.cs
parent151105f387c65f2285f61f8e492ad06734ec9f64 (diff)
downloadtimeline-5a0a27a047f7f59af1cab4ac2f25e684f58b3447.tar.gz
timeline-5a0a27a047f7f59af1cab4ac2f25e684f58b3447.tar.bz2
timeline-5a0a27a047f7f59af1cab4ac2f25e684f58b3447.zip
Database add unqiue id for user.
Diffstat (limited to 'Timeline/Migrations/DatabaseContextModelSnapshot.cs')
-rw-r--r--Timeline/Migrations/DatabaseContextModelSnapshot.cs7
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")