|
|
|
@ -0,0 +1,102 @@ |
|
|
|
|
// <auto-generated /> |
|
|
|
|
using System; |
|
|
|
|
using AspNetCoreApi.DbContexts; |
|
|
|
|
using Microsoft.EntityFrameworkCore; |
|
|
|
|
using Microsoft.EntityFrameworkCore.Infrastructure; |
|
|
|
|
using Microsoft.EntityFrameworkCore.Metadata; |
|
|
|
|
using Microsoft.EntityFrameworkCore.Migrations; |
|
|
|
|
using Microsoft.EntityFrameworkCore.Storage.ValueConversion; |
|
|
|
|
|
|
|
|
|
#nullable disable |
|
|
|
|
|
|
|
|
|
namespace AspNetCoreApi.Migrations |
|
|
|
|
{ |
|
|
|
|
[DbContext(typeof(AppDbContext))] |
|
|
|
|
[Migration("20240614045917_add_app_user_fix")] |
|
|
|
|
partial class add_app_user_fix |
|
|
|
|
{ |
|
|
|
|
/// <inheritdoc /> |
|
|
|
|
protected override void BuildTargetModel(ModelBuilder modelBuilder) |
|
|
|
|
{ |
|
|
|
|
#pragma warning disable 612, 618 |
|
|
|
|
modelBuilder |
|
|
|
|
.HasAnnotation("ProductVersion", "8.0.6") |
|
|
|
|
.HasAnnotation("Relational:MaxIdentifierLength", 64); |
|
|
|
|
|
|
|
|
|
MySqlModelBuilderExtensions.AutoIncrementColumns(modelBuilder); |
|
|
|
|
|
|
|
|
|
modelBuilder.Entity("AspNetCoreApi.Models.ApplicationUser", b => |
|
|
|
|
{ |
|
|
|
|
b.Property<string>("Id") |
|
|
|
|
.HasColumnType("varchar(255)"); |
|
|
|
|
|
|
|
|
|
b.Property<int>("AccessFailedCount") |
|
|
|
|
.HasColumnType("int"); |
|
|
|
|
|
|
|
|
|
b.Property<string>("ConcurrencyStamp") |
|
|
|
|
.HasColumnType("longtext"); |
|
|
|
|
|
|
|
|
|
b.Property<string>("Email") |
|
|
|
|
.HasColumnType("longtext"); |
|
|
|
|
|
|
|
|
|
b.Property<bool>("EmailConfirmed") |
|
|
|
|
.HasColumnType("tinyint(1)"); |
|
|
|
|
|
|
|
|
|
b.Property<bool>("LockoutEnabled") |
|
|
|
|
.HasColumnType("tinyint(1)"); |
|
|
|
|
|
|
|
|
|
b.Property<DateTimeOffset?>("LockoutEnd") |
|
|
|
|
.HasColumnType("datetime(6)"); |
|
|
|
|
|
|
|
|
|
b.Property<string>("NormalizedEmail") |
|
|
|
|
.HasColumnType("longtext"); |
|
|
|
|
|
|
|
|
|
b.Property<string>("NormalizedUserName") |
|
|
|
|
.HasColumnType("longtext"); |
|
|
|
|
|
|
|
|
|
b.Property<string>("PasswordHash") |
|
|
|
|
.HasColumnType("longtext"); |
|
|
|
|
|
|
|
|
|
b.Property<string>("PhoneNumber") |
|
|
|
|
.HasColumnType("longtext"); |
|
|
|
|
|
|
|
|
|
b.Property<bool>("PhoneNumberConfirmed") |
|
|
|
|
.HasColumnType("tinyint(1)"); |
|
|
|
|
|
|
|
|
|
b.Property<string>("SecurityStamp") |
|
|
|
|
.HasColumnType("longtext"); |
|
|
|
|
|
|
|
|
|
b.Property<bool>("TwoFactorEnabled") |
|
|
|
|
.HasColumnType("tinyint(1)"); |
|
|
|
|
|
|
|
|
|
b.Property<string>("UserName") |
|
|
|
|
.HasColumnType("longtext"); |
|
|
|
|
|
|
|
|
|
b.HasKey("Id"); |
|
|
|
|
|
|
|
|
|
b.ToTable("ApplicationUsers"); |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
modelBuilder.Entity("AspNetCoreApi.Models.Product", b => |
|
|
|
|
{ |
|
|
|
|
b.Property<int>("Id") |
|
|
|
|
.ValueGeneratedOnAdd() |
|
|
|
|
.HasColumnType("int"); |
|
|
|
|
|
|
|
|
|
MySqlPropertyBuilderExtensions.UseMySqlIdentityColumn(b.Property<int>("Id")); |
|
|
|
|
|
|
|
|
|
b.Property<string>("Name") |
|
|
|
|
.IsRequired() |
|
|
|
|
.HasColumnType("longtext"); |
|
|
|
|
|
|
|
|
|
b.Property<decimal>("Price") |
|
|
|
|
.HasColumnType("decimal(65,30)"); |
|
|
|
|
|
|
|
|
|
b.HasKey("Id"); |
|
|
|
|
|
|
|
|
|
b.ToTable("Products"); |
|
|
|
|
}); |
|
|
|
|
#pragma warning restore 612, 618 |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |