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 | 5ec61fd4b5dc019893b06aae2590799db38790e7 (patch) | |
tree | a99eb58b6c3abdd5b6f8fde2fa59c37e01deebea /Timeline/Migrations/DatabaseContextModelSnapshot.cs | |
parent | e0051ef2330f56ff13ca57b7c01059cf4365493e (diff) | |
parent | 7de532360c5e02729f41510bb5d339edc7b378db (diff) | |
download | timeline-5ec61fd4b5dc019893b06aae2590799db38790e7.tar.gz timeline-5ec61fd4b5dc019893b06aae2590799db38790e7.tar.bz2 timeline-5ec61fd4b5dc019893b06aae2590799db38790e7.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")
|