You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
100 lines
3.6 KiB
100 lines
3.6 KiB
// <auto-generated />
|
|
using System;
|
|
using BaseService.EntityFrameworkCore;
|
|
//using FileStorage.EntityFrameworkCore;
|
|
using Microsoft.EntityFrameworkCore;
|
|
using Microsoft.EntityFrameworkCore.Infrastructure;
|
|
using Microsoft.EntityFrameworkCore.Metadata;
|
|
using Microsoft.EntityFrameworkCore.Migrations;
|
|
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
|
using Volo.Abp.EntityFrameworkCore;
|
|
|
|
namespace FileStorage.Migrations
|
|
{
|
|
[DbContext(typeof(BaseServiceMigrationDbContext))]
|
|
[Migration("20210127044859_127-2")]
|
|
partial class _1272
|
|
{
|
|
protected override void BuildTargetModel(ModelBuilder modelBuilder)
|
|
{
|
|
#pragma warning disable 612, 618
|
|
modelBuilder
|
|
.UseIdentityColumns()
|
|
.HasAnnotation("_Abp_DatabaseProvider", EfCoreDatabaseProvider.SqlServer)
|
|
.HasAnnotation("Relational:MaxIdentifierLength", 128)
|
|
.HasAnnotation("ProductVersion", "5.0.0");
|
|
|
|
modelBuilder.Entity("FileStorage.Models.UploadFileInfo", b =>
|
|
{
|
|
b.Property<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<string>("ConcurrencyStamp")
|
|
.IsConcurrencyToken()
|
|
.HasMaxLength(40)
|
|
.HasColumnType("nvarchar(40)")
|
|
.HasColumnName("ConcurrencyStamp");
|
|
|
|
b.Property<DateTime>("CreationTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("CreationTime");
|
|
|
|
b.Property<Guid?>("CreatorId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("CreatorId");
|
|
|
|
b.Property<string>("ExtraProperties")
|
|
.HasColumnType("nvarchar(max)")
|
|
.HasColumnName("ExtraProperties");
|
|
|
|
b.Property<string>("FileName")
|
|
.IsRequired()
|
|
.HasMaxLength(500)
|
|
.HasColumnType("nvarchar(500)");
|
|
|
|
b.Property<string>("FileUrl")
|
|
.IsRequired()
|
|
.HasMaxLength(256)
|
|
.HasColumnType("nvarchar(256)");
|
|
|
|
b.Property<bool>("IsDeleted")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bit")
|
|
.HasDefaultValue(false)
|
|
.HasColumnName("IsDeleted");
|
|
|
|
b.Property<DateTime?>("LastModificationTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("LastModificationTime");
|
|
|
|
b.Property<Guid?>("LastModifierId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("LastModifierId");
|
|
|
|
b.Property<string>("Md5Code")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<long?>("Size")
|
|
.HasColumnType("bigint");
|
|
|
|
b.Property<string>("Suffix")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<Guid?>("TenantId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("TenantId");
|
|
|
|
b.Property<int>("Type")
|
|
.HasColumnType("int");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("FileName");
|
|
|
|
b.ToTable("file_info");
|
|
});
|
|
#pragma warning restore 612, 618
|
|
}
|
|
}
|
|
}
|
|
|