20241117103737_InitialCreate.Designer.cs 2.3 KB

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