20240323162103_InitialCreate.Designer.cs 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  1. // <auto-generated />
  2. using Microsoft.EntityFrameworkCore;
  3. using Microsoft.EntityFrameworkCore.Infrastructure;
  4. using Microsoft.EntityFrameworkCore.Migrations;
  5. using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
  6. using Products.Business.Persistence;
  7. #nullable disable
  8. namespace Products.Business.Migrations
  9. {
  10. [DbContext(typeof(DataContext))]
  11. [Migration("20240323162103_InitialCreate")]
  12. partial class InitialCreate
  13. {
  14. /// <inheritdoc />
  15. protected override void BuildTargetModel(ModelBuilder modelBuilder)
  16. {
  17. #pragma warning disable 612, 618
  18. modelBuilder.HasAnnotation("ProductVersion", "7.0.11");
  19. modelBuilder.Entity("Products.Business.Domain.Product", b =>
  20. {
  21. b.Property<int>("Id")
  22. .ValueGeneratedOnAdd()
  23. .HasColumnType("INTEGER");
  24. b.Property<string>("Brand")
  25. .IsRequired()
  26. .HasColumnType("TEXT");
  27. b.Property<int>("Color")
  28. .HasColumnType("INTEGER");
  29. b.Property<string>("Name")
  30. .IsRequired()
  31. .HasColumnType("TEXT");
  32. b.HasKey("Id");
  33. b.ToTable("Products");
  34. b.HasData(
  35. new
  36. {
  37. Id = 1,
  38. Brand = "Brand Azul",
  39. Color = 2,
  40. Name = "Product Azul"
  41. },
  42. new
  43. {
  44. Id = 2,
  45. Brand = "Brand Rojo",
  46. Color = 0,
  47. Name = "Product Rojo"
  48. },
  49. new
  50. {
  51. Id = 3,
  52. Brand = "Brand Verde",
  53. Color = 1,
  54. Name = "Product Verde"
  55. },
  56. new
  57. {
  58. Id = 4,
  59. Brand = "Brand Azul #2",
  60. Color = 2,
  61. Name = "Product Azul #2"
  62. },
  63. new
  64. {
  65. Id = 5,
  66. Brand = "Brand Rojo #2",
  67. Color = 0,
  68. Name = "Product Rojo #2"
  69. });
  70. });
  71. modelBuilder.Entity("Products.Business.Domain.User", b =>
  72. {
  73. b.Property<int>("Id")
  74. .ValueGeneratedOnAdd()
  75. .HasColumnType("INTEGER");
  76. b.Property<string>("Brand")
  77. .IsRequired()
  78. .HasColumnType("TEXT");
  79. b.Property<int>("Color")
  80. .HasColumnType("INTEGER");
  81. b.Property<string>("Name")
  82. .IsRequired()
  83. .HasColumnType("TEXT");
  84. b.HasKey("Id");
  85. b.ToTable("Users");
  86. });
  87. #pragma warning restore 612, 618
  88. }
  89. }
  90. }