AppDatabaseContextModelSnapshot.cs 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. // <auto-generated />
  2. using System;
  3. using Microsoft.EntityFrameworkCore;
  4. using Microsoft.EntityFrameworkCore.Infrastructure;
  5. using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
  6. using Waaagh;
  7. #nullable disable
  8. namespace Waaagh.Migrations
  9. {
  10. [DbContext(typeof(AppDatabaseContext))]
  11. partial class AppDatabaseContextModelSnapshot : ModelSnapshot
  12. {
  13. protected override void BuildModel(ModelBuilder modelBuilder)
  14. {
  15. #pragma warning disable 612, 618
  16. modelBuilder.HasAnnotation("ProductVersion", "9.0.0");
  17. modelBuilder.Entity("Waaagh.Models.Message", b =>
  18. {
  19. b.Property<int>("Key")
  20. .ValueGeneratedOnAdd()
  21. .HasColumnType("INTEGER");
  22. b.Property<short>("Channel")
  23. .HasColumnType("INTEGER");
  24. b.Property<string>("Content")
  25. .IsRequired()
  26. .HasColumnType("TEXT");
  27. b.Property<string>("Name")
  28. .IsRequired()
  29. .HasColumnType("TEXT");
  30. b.Property<bool>("Reply")
  31. .HasColumnType("INTEGER");
  32. b.HasKey("Key");
  33. b.ToTable("Message");
  34. });
  35. modelBuilder.Entity("Waaagh.Models.Scenario", b =>
  36. {
  37. b.Property<int>("Id")
  38. .ValueGeneratedOnAdd()
  39. .HasColumnType("INTEGER");
  40. b.Property<string>("Description")
  41. .IsRequired()
  42. .HasColumnType("TEXT");
  43. b.Property<bool>("IsLegacy")
  44. .HasColumnType("INTEGER");
  45. b.Property<DateTime>("LastUpdateTime")
  46. .HasColumnType("TEXT");
  47. b.Property<string>("Name")
  48. .IsRequired()
  49. .HasColumnType("TEXT");
  50. b.Property<int>("Version")
  51. .HasColumnType("INTEGER");
  52. b.HasKey("Id");
  53. b.ToTable("Scenarios");
  54. });
  55. #pragma warning restore 612, 618
  56. }
  57. }
  58. }