FileStorageMigrationDbContextModelSnapshot.cs 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  1. // <auto-generated />
  2. using System;
  3. using FileStorage.EntityFrameworkCore;
  4. using Microsoft.EntityFrameworkCore;
  5. using Microsoft.EntityFrameworkCore.Infrastructure;
  6. using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
  7. using Volo.Abp.EntityFrameworkCore;
  8. #nullable disable
  9. namespace FileStorage.Migrations
  10. {
  11. [DbContext(typeof(FileStorageMigrationDbContext))]
  12. partial class FileStorageMigrationDbContextModelSnapshot : ModelSnapshot
  13. {
  14. protected override void BuildModel(ModelBuilder modelBuilder)
  15. {
  16. #pragma warning disable 612, 618
  17. modelBuilder
  18. .HasAnnotation("_Abp_DatabaseProvider", EfCoreDatabaseProvider.MySql)
  19. .HasAnnotation("ProductVersion", "6.0.5")
  20. .HasAnnotation("Relational:MaxIdentifierLength", 64);
  21. modelBuilder.Entity("FileStorage.Models.FileInfo", b =>
  22. {
  23. b.Property<Guid>("Id")
  24. .ValueGeneratedOnAdd()
  25. .HasColumnType("char(36)");
  26. b.Property<string>("ConcurrencyStamp")
  27. .IsConcurrencyToken()
  28. .HasMaxLength(40)
  29. .HasColumnType("varchar(40)")
  30. .HasColumnName("ConcurrencyStamp");
  31. b.Property<DateTime>("CreationTime")
  32. .HasColumnType("datetime(6)")
  33. .HasColumnName("CreationTime");
  34. b.Property<Guid?>("CreatorId")
  35. .HasColumnType("char(36)")
  36. .HasColumnName("CreatorId");
  37. b.Property<string>("ExtraProperties")
  38. .HasColumnType("longtext")
  39. .HasColumnName("ExtraProperties");
  40. b.Property<bool>("IsDeleted")
  41. .ValueGeneratedOnAdd()
  42. .HasColumnType("tinyint(1)")
  43. .HasDefaultValue(false)
  44. .HasColumnName("IsDeleted");
  45. b.Property<DateTime?>("LastModificationTime")
  46. .HasColumnType("datetime(6)")
  47. .HasColumnName("LastModificationTime");
  48. b.Property<Guid?>("LastModifierId")
  49. .HasColumnType("char(36)")
  50. .HasColumnName("LastModifierId");
  51. b.Property<string>("Md5Code")
  52. .IsRequired()
  53. .HasMaxLength(256)
  54. .HasColumnType("varchar(256)");
  55. b.Property<string>("Name")
  56. .IsRequired()
  57. .HasMaxLength(64)
  58. .HasColumnType("varchar(64)");
  59. b.Property<string>("Path")
  60. .IsRequired()
  61. .HasMaxLength(256)
  62. .HasColumnType("varchar(256)");
  63. b.Property<string>("RealName")
  64. .IsRequired()
  65. .HasMaxLength(64)
  66. .HasColumnType("varchar(64)");
  67. b.Property<string>("Size")
  68. .IsRequired()
  69. .HasMaxLength(100)
  70. .HasColumnType("varchar(100)");
  71. b.Property<string>("Suffix")
  72. .IsRequired()
  73. .HasMaxLength(50)
  74. .HasColumnType("varchar(50)");
  75. b.Property<Guid?>("TenantId")
  76. .HasColumnType("char(36)")
  77. .HasColumnName("TenantId");
  78. b.Property<int>("Type")
  79. .HasColumnType("int");
  80. b.Property<string>("Url")
  81. .IsRequired()
  82. .HasMaxLength(256)
  83. .HasColumnType("varchar(256)");
  84. b.HasKey("Id");
  85. b.ToTable("file_info", (string)null);
  86. });
  87. #pragma warning restore 612, 618
  88. }
  89. }
  90. }