aboutsummaryrefslogtreecommitdiff
path: root/Timeline/Migrations/DatabaseContextModelSnapshot.cs
diff options
context:
space:
mode:
author杨宇千 <crupest@outlook.com>2019-08-17 17:56:01 +0800
committerGitHub <noreply@github.com>2019-08-17 17:56:01 +0800
commit7bbd66270597c7f6f07f1ab5ec6c45b3dcfa388e (patch)
treefb8a9ed7520287a6aad50d22cc64c75b3f687a2b /Timeline/Migrations/DatabaseContextModelSnapshot.cs
parentf0754f0d5feca407d5a327e634a84a3380507bc2 (diff)
parent0038741bae4f0c42262db96ab81bd14c6f6a0993 (diff)
downloadtimeline-7bbd66270597c7f6f07f1ab5ec6c45b3dcfa388e.tar.gz
timeline-7bbd66270597c7f6f07f1ab5ec6c45b3dcfa388e.tar.bz2
timeline-7bbd66270597c7f6f07f1ab5ec6c45b3dcfa388e.zip
Merge pull request #41 from crupest/database
Enhance database.
Diffstat (limited to 'Timeline/Migrations/DatabaseContextModelSnapshot.cs')
-rw-r--r--Timeline/Migrations/DatabaseContextModelSnapshot.cs13
1 files changed, 8 insertions, 5 deletions
diff --git a/Timeline/Migrations/DatabaseContextModelSnapshot.cs b/Timeline/Migrations/DatabaseContextModelSnapshot.cs
index 48afb2c8..e1de451c 100644
--- a/Timeline/Migrations/DatabaseContextModelSnapshot.cs
+++ b/Timeline/Migrations/DatabaseContextModelSnapshot.cs
@@ -1,4 +1,4 @@
-// <auto-generated />
+// <auto-generated />
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
@@ -16,7 +16,7 @@ namespace Timeline.Migrations
.HasAnnotation("ProductVersion", "2.2.6-servicing-10079")
.HasAnnotation("Relational:MaxIdentifierLength", 64);
- modelBuilder.Entity("Timeline.Models.User", b =>
+ modelBuilder.Entity("Timeline.Entities.User", b =>
{
b.Property<long>("Id")
.ValueGeneratedOnAdd()
@@ -28,18 +28,21 @@ namespace Timeline.Migrations
b.Property<string>("Name")
.IsRequired()
- .HasColumnName("name");
+ .HasColumnName("name")
+ .HasMaxLength(26);
b.Property<string>("RoleString")
.IsRequired()
.HasColumnName("roles");
b.Property<long>("Version")
- .HasColumnName("version");
+ .ValueGeneratedOnAdd()
+ .HasColumnName("version")
+ .HasDefaultValue(0L);
b.HasKey("Id");
- b.ToTable("user");
+ b.ToTable("users");
});
#pragma warning restore 612, 618
}