//
using System;
using LY.MicroService.LocalizationManagement.DbMigrator.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
using Volo.Abp.EntityFrameworkCore;
#nullable disable
namespace LY.MicroService.LocalizationManagement.DbMigrator.Migrations
{
[DbContext(typeof(LocalizationManagementMigrationsDbContext))]
partial class LocalizationManagementMigrationsDbContextModelSnapshot : ModelSnapshot
{
protected override void BuildModel(ModelBuilder modelBuilder)
{
#pragma warning disable 612, 618
modelBuilder
.HasAnnotation("_Abp_DatabaseProvider", EfCoreDatabaseProvider.MySql)
.HasAnnotation("ProductVersion", "7.0.1")
.HasAnnotation("Relational:MaxIdentifierLength", 64);
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)")
.HasColumnName("CultureName");
b.Property("DisplayName")
.IsRequired()
.HasMaxLength(64)
.HasColumnType("varchar(64)")
.HasColumnName("DisplayName");
b.Property("Enable")
.ValueGeneratedOnAdd()
.HasColumnType("tinyint(1)")
.HasDefaultValue(true);
b.Property("FlagIcon")
.HasMaxLength(30)
.HasColumnType("varchar(30)")
.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)")
.HasColumnName("UiCultureName");
b.HasKey("Id");
b.HasIndex("CultureName");
b.ToTable("AbpLocalizationLanguages", (string)null);
});
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("DefaultCultureName")
.HasMaxLength(64)
.HasColumnType("varchar(64)")
.HasColumnName("DefaultCultureName");
b.Property("Description")
.HasMaxLength(64)
.HasColumnType("varchar(64)")
.HasColumnName("Description");
b.Property("DisplayName")
.HasMaxLength(64)
.HasColumnType("varchar(64)")
.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)")
.HasColumnName("Name");
b.HasKey("Id");
b.HasIndex("Name");
b.ToTable("AbpLocalizationResources", (string)null);
});
modelBuilder.Entity("LINGYUN.Abp.LocalizationManagement.Text", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("int");
b.Property("CultureName")
.IsRequired()
.HasMaxLength(20)
.HasColumnType("varchar(20)")
.HasColumnName("CultureName");
b.Property("Key")
.IsRequired()
.HasMaxLength(512)
.HasColumnType("varchar(512)")
.HasColumnName("Key");
b.Property("ResourceName")
.HasColumnType("longtext");
b.Property("Value")
.HasMaxLength(2048)
.HasColumnType("varchar(2048)")
.HasColumnName("Value");
b.HasKey("Id");
b.HasIndex("Key");
b.ToTable("AbpLocalizationTexts", (string)null);
});
#pragma warning restore 612, 618
}
}
}