ContextModelSnapshot.cs 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. // <auto-generated />
  2. using System;
  3. using Microsoft.EntityFrameworkCore;
  4. using Microsoft.EntityFrameworkCore.Infrastructure;
  5. using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
  6. using Safeguard.EntityFramework;
  7. #nullable disable
  8. namespace Safeguard.Migrations
  9. {
  10. [DbContext(typeof(Context))]
  11. partial class ContextModelSnapshot : ModelSnapshot
  12. {
  13. protected override void BuildModel(ModelBuilder modelBuilder)
  14. {
  15. #pragma warning disable 612, 618
  16. modelBuilder.HasAnnotation("ProductVersion", "7.0.0");
  17. modelBuilder.Entity("Safeguard.Models.HostMqttInfo", b =>
  18. {
  19. b.Property<Guid>("Id")
  20. .ValueGeneratedOnAdd()
  21. .HasColumnType("TEXT");
  22. b.Property<string>("IPAddress")
  23. .HasColumnType("TEXT");
  24. b.Property<int?>("Port")
  25. .HasColumnType("INTEGER");
  26. b.HasKey("Id");
  27. b.ToTable("HostMqttInfos");
  28. });
  29. modelBuilder.Entity("Safeguard.Models.MCConfig", b =>
  30. {
  31. b.Property<Guid>("Id")
  32. .ValueGeneratedOnAdd()
  33. .HasColumnType("TEXT");
  34. b.Property<string>("JsonString")
  35. .HasColumnType("TEXT");
  36. b.Property<string>("Name")
  37. .HasColumnType("TEXT");
  38. b.HasKey("Id");
  39. b.ToTable("MCConfigs");
  40. });
  41. #pragma warning restore 612, 618
  42. }
  43. }
  44. }