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
commit105444ff90af277c84edbdc6824cdd412c1f348a (patch)
treef9dd84c834eb7ac285a5bdd2bc75bfbacbc58cd8 /Timeline/Migrations/DatabaseContextModelSnapshot.cs
parente0051ef2330f56ff13ca57b7c01059cf4365493e (diff)
downloadtimeline-105444ff90af277c84edbdc6824cdd412c1f348a.tar.gz
timeline-105444ff90af277c84edbdc6824cdd412c1f348a.tar.bz2
timeline-105444ff90af277c84edbdc6824cdd412c1f348a.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")