//
using System;
using LINGYUN.Abp.LocalizationManagement.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
using Volo.Abp.EntityFrameworkCore;
namespace LINGYUN.Abp.LocalizationManagement.Migrations
{
[DbContext(typeof(LocalizationManagementHttpApiHostMigrationsDbContext))]
partial class LocalizationManagementHttpApiHostMigrationsDbContextModelSnapshot : ModelSnapshot
{
protected override void BuildModel(ModelBuilder modelBuilder)
{
#pragma warning disable 612, 618
modelBuilder
.HasAnnotation("_Abp_DatabaseProvider", EfCoreDatabaseProvider.MySql)
.HasAnnotation("Relational:MaxIdentifierLength", 64)
.HasAnnotation("ProductVersion", "5.0.2");
modelBuilder.Entity("LINGYUN.Abp.LocalizationManagement.Language", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("char(36)");
b.Property("CreationTime")
.HasColumnType("datetime(6)")
.HasColumnName("CreationTime");
b.Property("CreatorId")
.HasColumnType("char(36)")
.HasColumnName("CreatorId");
b.Property("CultureName")
.IsRequired()
.HasMaxLength(20)
.HasColumnType("varchar(20) CHARACTER SET utf8mb4")
.HasColumnName("CultureName");
b.Property("DisplayName")
.IsRequired()
.HasMaxLength(64)
.HasColumnType("varchar(64) CHARACTER SET utf8mb4")
.HasColumnName("DisplayName");
b.Property("Enable")
.ValueGeneratedOnAdd()
.HasColumnType("tinyint(1)")
.HasDefaultValue(true);
b.Property("FlagIcon")
.HasMaxLength(30)
.HasColumnType("varchar(30) CHARACTER SET utf8mb4")
.HasColumnName("FlagIcon");
b.Property("LastModificationTime")
.HasColumnType("datetime(6)")
.HasColumnName("LastModificationTime");
b.Property("LastModifierId")
.HasColumnType("char(36)")
.HasColumnName("LastModifierId");
b.Property("UiCultureName")
.IsRequired()
.HasMaxLength(20)
.HasColumnType("varchar(20) CHARACTER SET utf8mb4")
.HasColumnName("UiCultureName");
b.HasKey("Id");
b.HasIndex("CultureName");
b.ToTable("AbpLocalizationLanguages");
});
modelBuilder.Entity("LINGYUN.Abp.LocalizationManagement.Resource", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("char(36)");
b.Property("CreationTime")
.HasColumnType("datetime(6)")
.HasColumnName("CreationTime");
b.Property("CreatorId")
.HasColumnType("char(36)")
.HasColumnName("CreatorId");
b.Property("Description")
.HasMaxLength(64)
.HasColumnType("varchar(64) CHARACTER SET utf8mb4")
.HasColumnName("Description");
b.Property("DisplayName")
.HasMaxLength(64)
.HasColumnType("varchar(64) CHARACTER SET utf8mb4")
.HasColumnName("DisplayName");
b.Property("Enable")
.ValueGeneratedOnAdd()
.HasColumnType("tinyint(1)")
.HasDefaultValue(true);
b.Property("LastModificationTime")
.HasColumnType("datetime(6)")
.HasColumnName("LastModificationTime");
b.Property("LastModifierId")
.HasColumnType("char(36)")
.HasColumnName("LastModifierId");
b.Property("Name")
.IsRequired()
.HasMaxLength(50)
.HasColumnType("varchar(50) CHARACTER SET utf8mb4")
.HasColumnName("Name");
b.HasKey("Id");
b.HasIndex("Name");
b.ToTable("AbpLocalizationResources");
});
modelBuilder.Entity("LINGYUN.Abp.LocalizationManagement.Text", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("int");
b.Property("CultureName")
.IsRequired()
.HasMaxLength(20)
.HasColumnType("varchar(20) CHARACTER SET utf8mb4")
.HasColumnName("CultureName");
b.Property("Key")
.IsRequired()
.HasMaxLength(512)
.HasColumnType("varchar(512) CHARACTER SET utf8mb4")
.HasColumnName("Key");
b.Property("ResourceName")
.HasColumnType("longtext CHARACTER SET utf8mb4");
b.Property("Value")
.HasMaxLength(2048)
.HasColumnType("longtext CHARACTER SET utf8mb4")
.HasColumnName("Value");
b.HasKey("Id");
b.HasIndex("Key");
b.ToTable("AbpLocalizationTexts");
});
#pragma warning restore 612, 618
}
}
}