DefaultDbContextModelSnapshot.cs 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. // <auto-generated />
  2. using System;
  3. using Microsoft.EntityFrameworkCore;
  4. using Microsoft.EntityFrameworkCore.Infrastructure;
  5. using Microsoft.EntityFrameworkCore.Metadata;
  6. using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
  7. #nullable disable
  8. namespace bitforum.Migrations.DefaultDb
  9. {
  10. [DbContext(typeof(DefaultDbContext))]
  11. partial class DefaultDbContextModelSnapshot : ModelSnapshot
  12. {
  13. protected override void BuildModel(ModelBuilder modelBuilder)
  14. {
  15. #pragma warning disable 612, 618
  16. modelBuilder
  17. .HasAnnotation("ProductVersion", "8.0.0")
  18. .HasAnnotation("Relational:MaxIdentifierLength", 128);
  19. SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder);
  20. modelBuilder.Entity("bitforum.Models.Config", b =>
  21. {
  22. b.Property<int>("ID")
  23. .ValueGeneratedOnAdd()
  24. .HasColumnType("int");
  25. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("ID"));
  26. b.Property<DateTime>("CreatedAt")
  27. .HasColumnType("datetime2");
  28. b.Property<string>("Description")
  29. .HasColumnType("nvarchar(max)");
  30. b.Property<string>("Key")
  31. .IsRequired()
  32. .HasColumnType("nvarchar(450)");
  33. b.Property<string>("Value")
  34. .HasColumnType("nvarchar(max)");
  35. b.HasKey("ID");
  36. b.HasIndex("Key")
  37. .IsUnique();
  38. b.ToTable("Config");
  39. });
  40. #pragma warning restore 612, 618
  41. }
  42. }
  43. }