sharding/samples/Sample.MySql/Migrations/DefaultShardingDbContextMod...

75 lines
2.4 KiB
C#

// <auto-generated />
using System;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
using Sample.MySql.DbContexts;
#nullable disable
namespace Sample.MySql.Migrations
{
[DbContext(typeof(DefaultShardingDbContext))]
partial class DefaultShardingDbContextModelSnapshot : ModelSnapshot
{
protected override void BuildModel(ModelBuilder modelBuilder)
{
#pragma warning disable 612, 618
modelBuilder
.HasAnnotation("ProductVersion", "6.0.6")
.HasAnnotation("Relational:MaxIdentifierLength", 64);
modelBuilder.Entity("Sample.MySql.Domain.Entities.SysTest", b =>
{
b.Property<string>("Id")
.HasMaxLength(128)
.HasColumnType("varchar(128)");
b.Property<string>("UserId")
.IsConcurrencyToken()
.IsRequired()
.HasMaxLength(128)
.HasColumnType("varchar(128)");
b.HasKey("Id");
b.ToTable("SysTest", (string)null);
});
modelBuilder.Entity("Sample.MySql.Domain.Entities.SysUserLogByMonth", b =>
{
b.Property<string>("Id")
.HasMaxLength(128)
.HasColumnType("varchar(128)");
b.Property<DateTime>("Time")
.HasColumnType("datetime");
b.HasKey("Id");
b.ToTable("SysUserLogByMonth", (string)null);
});
modelBuilder.Entity("Sample.MySql.Domain.Entities.SysUserMod", b =>
{
b.Property<string>("Id")
.HasMaxLength(128)
.HasColumnType("varchar(128)");
b.Property<int>("Age")
.HasColumnType("int");
b.Property<string>("Name")
.IsRequired()
.HasMaxLength(128)
.HasColumnType("varchar(128)");
b.HasKey("Id");
b.ToTable("SysUserMod", (string)null);
});
#pragma warning restore 612, 618
}
}
}