diff options
author | 杨宇千 <crupest@outlook.com> | 2019-08-17 17:47:11 +0800 |
---|---|---|
committer | 杨宇千 <crupest@outlook.com> | 2019-08-17 17:47:11 +0800 |
commit | e19f567dd61cecdd738a6eacdd073a097f66e36b (patch) | |
tree | fb8a9ed7520287a6aad50d22cc64c75b3f687a2b /Timeline/Migrations/DatabaseContextModelSnapshot.cs | |
parent | ff7a7bdb8807f4b7faaaaf56677a99b23ac3c6ba (diff) | |
download | timeline-e19f567dd61cecdd738a6eacdd073a097f66e36b.tar.gz timeline-e19f567dd61cecdd738a6eacdd073a097f66e36b.tar.bz2 timeline-e19f567dd61cecdd738a6eacdd073a097f66e36b.zip |
Enhance database.
Diffstat (limited to 'Timeline/Migrations/DatabaseContextModelSnapshot.cs')
-rw-r--r-- | Timeline/Migrations/DatabaseContextModelSnapshot.cs | 13 |
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
}
|