20230131063128_init.Designer.cs 4.0 KB

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