|
|
|
@ -1,27 +1,83 @@ |
|
|
|
// <auto-generated />
|
|
|
|
using System; |
|
|
|
using System.Collections.Generic; |
|
|
|
using Acme.BookStore.EntityFrameworkCore; |
|
|
|
using Microsoft.EntityFrameworkCore; |
|
|
|
using Microsoft.EntityFrameworkCore.Infrastructure; |
|
|
|
using Microsoft.EntityFrameworkCore.Metadata; |
|
|
|
using Microsoft.EntityFrameworkCore.Metadata.Internal; |
|
|
|
using Microsoft.EntityFrameworkCore.Migrations; |
|
|
|
using Microsoft.EntityFrameworkCore.Storage.ValueConversion; |
|
|
|
using Acme.BookStore.EntityFrameworkCore; |
|
|
|
|
|
|
|
namespace Acme.BookStore.Migrations |
|
|
|
{ |
|
|
|
[DbContext(typeof(BookStoreDbContext))] |
|
|
|
[Migration("20180528221424_Initial")] |
|
|
|
partial class Initial |
|
|
|
[Migration("20181204060902_Created_Book_Entity")] |
|
|
|
partial class Created_Book_Entity |
|
|
|
{ |
|
|
|
protected override void BuildTargetModel(ModelBuilder modelBuilder) |
|
|
|
{ |
|
|
|
#pragma warning disable 612, 618
|
|
|
|
modelBuilder |
|
|
|
.HasAnnotation("ProductVersion", "2.1.0-preview2-30571") |
|
|
|
.HasAnnotation("ProductVersion", "2.1.1-rtm-30846") |
|
|
|
.HasAnnotation("Relational:MaxIdentifierLength", 128) |
|
|
|
.HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); |
|
|
|
|
|
|
|
modelBuilder.Entity("Acme.BookStore.Book", b => |
|
|
|
{ |
|
|
|
b.Property<Guid>("Id") |
|
|
|
.ValueGeneratedOnAdd(); |
|
|
|
|
|
|
|
b.Property<DateTime>("CreationTime"); |
|
|
|
|
|
|
|
b.Property<Guid?>("CreatorId"); |
|
|
|
|
|
|
|
b.Property<DateTime?>("LastModificationTime"); |
|
|
|
|
|
|
|
b.Property<Guid?>("LastModifierId"); |
|
|
|
|
|
|
|
b.Property<string>("Name") |
|
|
|
.IsRequired() |
|
|
|
.HasMaxLength(128); |
|
|
|
|
|
|
|
b.Property<float>("Price"); |
|
|
|
|
|
|
|
b.Property<DateTime>("PublishDate"); |
|
|
|
|
|
|
|
b.Property<byte>("Type"); |
|
|
|
|
|
|
|
b.HasKey("Id"); |
|
|
|
|
|
|
|
b.ToTable("Books"); |
|
|
|
}); |
|
|
|
|
|
|
|
modelBuilder.Entity("Volo.Abp.Identity.IdentityClaimType", b => |
|
|
|
{ |
|
|
|
b.Property<Guid>("Id") |
|
|
|
.ValueGeneratedOnAdd(); |
|
|
|
|
|
|
|
b.Property<string>("Description") |
|
|
|
.HasMaxLength(256); |
|
|
|
|
|
|
|
b.Property<bool>("IsStatic"); |
|
|
|
|
|
|
|
b.Property<string>("Name") |
|
|
|
.IsRequired() |
|
|
|
.HasMaxLength(256); |
|
|
|
|
|
|
|
b.Property<string>("Regex") |
|
|
|
.HasMaxLength(512); |
|
|
|
|
|
|
|
b.Property<string>("RegexDescription") |
|
|
|
.HasMaxLength(128); |
|
|
|
|
|
|
|
b.Property<bool>("Required"); |
|
|
|
|
|
|
|
b.Property<int>("ValueType"); |
|
|
|
|
|
|
|
b.HasKey("Id"); |
|
|
|
|
|
|
|
b.ToTable("AbpClaimTypes"); |
|
|
|
}); |
|
|
|
|
|
|
|
modelBuilder.Entity("Volo.Abp.Identity.IdentityRole", b => |
|
|
|
{ |
|
|
|
b.Property<Guid>("Id") |
|
|
|
@ -29,6 +85,15 @@ namespace Acme.BookStore.Migrations |
|
|
|
|
|
|
|
b.Property<string>("ConcurrencyStamp"); |
|
|
|
|
|
|
|
b.Property<bool>("IsDefault") |
|
|
|
.HasColumnName("IsDefault"); |
|
|
|
|
|
|
|
b.Property<bool>("IsPublic") |
|
|
|
.HasColumnName("IsPublic"); |
|
|
|
|
|
|
|
b.Property<bool>("IsStatic") |
|
|
|
.HasColumnName("IsStatic"); |
|
|
|
|
|
|
|
b.Property<string>("Name") |
|
|
|
.IsRequired() |
|
|
|
.HasMaxLength(256); |
|
|
|
@ -84,6 +149,14 @@ namespace Acme.BookStore.Migrations |
|
|
|
.HasColumnName("ConcurrencyStamp") |
|
|
|
.HasMaxLength(256); |
|
|
|
|
|
|
|
b.Property<DateTime>("CreationTime"); |
|
|
|
|
|
|
|
b.Property<Guid?>("CreatorId"); |
|
|
|
|
|
|
|
b.Property<Guid?>("DeleterId"); |
|
|
|
|
|
|
|
b.Property<DateTime?>("DeletionTime"); |
|
|
|
|
|
|
|
b.Property<string>("Email") |
|
|
|
.HasColumnName("Email") |
|
|
|
.HasMaxLength(256); |
|
|
|
@ -96,6 +169,12 @@ namespace Acme.BookStore.Migrations |
|
|
|
b.Property<string>("ExtraProperties") |
|
|
|
.HasColumnName("ExtraProperties"); |
|
|
|
|
|
|
|
b.Property<bool>("IsDeleted"); |
|
|
|
|
|
|
|
b.Property<DateTime?>("LastModificationTime"); |
|
|
|
|
|
|
|
b.Property<Guid?>("LastModifierId"); |
|
|
|
|
|
|
|
b.Property<bool>("LockoutEnabled") |
|
|
|
.ValueGeneratedOnAdd() |
|
|
|
.HasColumnName("LockoutEnabled") |
|
|
|
@ -103,6 +182,10 @@ namespace Acme.BookStore.Migrations |
|
|
|
|
|
|
|
b.Property<DateTimeOffset?>("LockoutEnd"); |
|
|
|
|
|
|
|
b.Property<string>("Name") |
|
|
|
.HasColumnName("Name") |
|
|
|
.HasMaxLength(64); |
|
|
|
|
|
|
|
b.Property<string>("NormalizedEmail") |
|
|
|
.HasColumnName("NormalizedEmail") |
|
|
|
.HasMaxLength(256); |
|
|
|
@ -130,6 +213,10 @@ namespace Acme.BookStore.Migrations |
|
|
|
.HasColumnName("SecurityStamp") |
|
|
|
.HasMaxLength(256); |
|
|
|
|
|
|
|
b.Property<string>("Surname") |
|
|
|
.HasColumnName("Surname") |
|
|
|
.HasMaxLength(64); |
|
|
|
|
|
|
|
b.Property<Guid?>("TenantId") |
|
|
|
.HasColumnName("TenantId"); |
|
|
|
|
|
|
|
@ -222,9 +309,10 @@ namespace Acme.BookStore.Migrations |
|
|
|
b.Property<Guid>("UserId"); |
|
|
|
|
|
|
|
b.Property<string>("LoginProvider") |
|
|
|
.HasMaxLength(128); |
|
|
|
.HasMaxLength(64); |
|
|
|
|
|
|
|
b.Property<string>("Name"); |
|
|
|
b.Property<string>("Name") |
|
|
|
.HasMaxLength(128); |
|
|
|
|
|
|
|
b.Property<Guid?>("TenantId"); |
|
|
|
|