diff options
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
}
|