//
using System;
using FileStorage.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Migrations;
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
using Volo.Abp.EntityFrameworkCore;
#nullable disable
namespace FileStorage.Migrations
{
[DbContext(typeof(FileStorageMigrationDbContext))]
[Migration("20230131063128_init")]
partial class init
{
protected override void BuildTargetModel(ModelBuilder modelBuilder)
{
#pragma warning disable 612, 618
modelBuilder
.HasAnnotation("_Abp_DatabaseProvider", EfCoreDatabaseProvider.MySql)
.HasAnnotation("ProductVersion", "6.0.5")
.HasAnnotation("Relational:MaxIdentifierLength", 64);
modelBuilder.Entity("FileStorage.Models.FileInfo", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("char(36)");
b.Property("ConcurrencyStamp")
.IsConcurrencyToken()
.HasMaxLength(40)
.HasColumnType("varchar(40)")
.HasColumnName("ConcurrencyStamp");
b.Property("CreationTime")
.HasColumnType("datetime")
.HasColumnName("CreationTime");
b.Property("CreatorId")
.HasColumnType("char(36)")
.HasColumnName("CreatorId");
b.Property("ExtraProperties")
.HasColumnType("longtext")
.HasColumnName("ExtraProperties");
b.Property("IsDeleted")
.ValueGeneratedOnAdd()
.HasColumnType("tinyint(1)")
.HasDefaultValue(false)
.HasColumnName("IsDeleted");
b.Property("LastModificationTime")
.HasColumnType("datetime")
.HasColumnName("LastModificationTime");
b.Property("LastModifierId")
.HasColumnType("char(36)")
.HasColumnName("LastModifierId");
b.Property("Md5Code")
.IsRequired()
.HasMaxLength(256)
.HasColumnType("varchar(256)");
b.Property("Name")
.IsRequired()
.HasMaxLength(64)
.HasColumnType("varchar(64)");
b.Property("Path")
.IsRequired()
.HasMaxLength(256)
.HasColumnType("varchar(256)");
b.Property("RealName")
.IsRequired()
.HasMaxLength(64)
.HasColumnType("varchar(64)");
b.Property("Size")
.IsRequired()
.HasMaxLength(100)
.HasColumnType("varchar(100)");
b.Property("Suffix")
.IsRequired()
.HasMaxLength(50)
.HasColumnType("varchar(50)");
b.Property("TenantId")
.HasColumnType("char(36)")
.HasColumnName("TenantId");
b.Property("Type")
.HasColumnType("int");
b.Property("Url")
.IsRequired()
.HasMaxLength(256)
.HasColumnType("varchar(256)");
b.HasKey("Id");
b.ToTable("file_info", (string)null);
});
#pragma warning restore 612, 618
}
}
}