| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113 |
- // <auto-generated />
- 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<Guid>("Id")
- .ValueGeneratedOnAdd()
- .HasColumnType("char(36)");
- b.Property<string>("ConcurrencyStamp")
- .IsConcurrencyToken()
- .HasMaxLength(40)
- .HasColumnType("varchar(40)")
- .HasColumnName("ConcurrencyStamp");
- b.Property<DateTime>("CreationTime")
- .HasColumnType("datetime")
- .HasColumnName("CreationTime");
- b.Property<Guid?>("CreatorId")
- .HasColumnType("char(36)")
- .HasColumnName("CreatorId");
- b.Property<string>("ExtraProperties")
- .HasColumnType("longtext")
- .HasColumnName("ExtraProperties");
- b.Property<bool>("IsDeleted")
- .ValueGeneratedOnAdd()
- .HasColumnType("tinyint(1)")
- .HasDefaultValue(false)
- .HasColumnName("IsDeleted");
- b.Property<DateTime?>("LastModificationTime")
- .HasColumnType("datetime")
- .HasColumnName("LastModificationTime");
- b.Property<Guid?>("LastModifierId")
- .HasColumnType("char(36)")
- .HasColumnName("LastModifierId");
- b.Property<string>("Md5Code")
- .IsRequired()
- .HasMaxLength(256)
- .HasColumnType("varchar(256)");
- b.Property<string>("Name")
- .IsRequired()
- .HasMaxLength(64)
- .HasColumnType("varchar(64)");
- b.Property<string>("Path")
- .IsRequired()
- .HasMaxLength(256)
- .HasColumnType("varchar(256)");
- b.Property<string>("RealName")
- .IsRequired()
- .HasMaxLength(64)
- .HasColumnType("varchar(64)");
- b.Property<string>("Size")
- .IsRequired()
- .HasMaxLength(100)
- .HasColumnType("varchar(100)");
- b.Property<string>("Suffix")
- .IsRequired()
- .HasMaxLength(50)
- .HasColumnType("varchar(50)");
- b.Property<Guid?>("TenantId")
- .HasColumnType("char(36)")
- .HasColumnName("TenantId");
- b.Property<int>("Type")
- .HasColumnType("int");
- b.Property<string>("Url")
- .IsRequired()
- .HasMaxLength(256)
- .HasColumnType("varchar(256)");
- b.HasKey("Id");
- b.ToTable("file_info", (string)null);
- });
- #pragma warning restore 612, 618
- }
- }
- }
|