// <auto-generated />
using System;
using Common.Database;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Migrations;
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;

#nullable disable

namespace Common.Migrations
{
    [DbContext(typeof(ApiaryContext))]
    [Migration("20260317071503_Orders")]
    partial class Orders
    {
        /// <inheritdoc />
        protected override void BuildTargetModel(ModelBuilder modelBuilder)
        {
#pragma warning disable 612, 618
            modelBuilder.HasAnnotation("ProductVersion", "10.0.3");

            modelBuilder.Entity("Common.Model.Order", b =>
                {
                    b.Property<int>("ID")
                        .ValueGeneratedOnAdd()
                        .HasColumnType("INTEGER");

                    b.Property<DateTime>("OrderDate")
                        .HasColumnType("TEXT");

                    b.HasKey("ID");

                    b.ToTable("Orders");

                    b.HasData(
                        new
                        {
                            ID = 1,
                            OrderDate = new DateTime(2026, 3, 17, 0, 0, 0, 0, DateTimeKind.Unspecified)
                        },
                        new
                        {
                            ID = 2,
                            OrderDate = new DateTime(2026, 3, 17, 0, 0, 0, 0, DateTimeKind.Unspecified)
                        },
                        new
                        {
                            ID = 3,
                            OrderDate = new DateTime(2026, 3, 17, 0, 0, 0, 0, DateTimeKind.Unspecified)
                        },
                        new
                        {
                            ID = 4,
                            OrderDate = new DateTime(2026, 3, 17, 0, 0, 0, 0, DateTimeKind.Unspecified)
                        },
                        new
                        {
                            ID = 5,
                            OrderDate = new DateTime(2026, 3, 17, 0, 0, 0, 0, DateTimeKind.Unspecified)
                        },
                        new
                        {
                            ID = 6,
                            OrderDate = new DateTime(2026, 3, 17, 0, 0, 0, 0, DateTimeKind.Unspecified)
                        },
                        new
                        {
                            ID = 7,
                            OrderDate = new DateTime(2026, 3, 17, 0, 0, 0, 0, DateTimeKind.Unspecified)
                        },
                        new
                        {
                            ID = 8,
                            OrderDate = new DateTime(2026, 3, 17, 0, 0, 0, 0, DateTimeKind.Unspecified)
                        },
                        new
                        {
                            ID = 9,
                            OrderDate = new DateTime(2026, 3, 17, 0, 0, 0, 0, DateTimeKind.Unspecified)
                        });
                });

            modelBuilder.Entity("Common.Model.Product", b =>
                {
                    b.Property<int>("ID")
                        .ValueGeneratedOnAdd()
                        .HasColumnType("INTEGER");

                    b.Property<string>("Description")
                        .HasColumnType("TEXT");

                    b.Property<DateTime>("ExpirationDate")
                        .HasColumnType("TEXT");

                    b.Property<byte[]>("Image")
                        .HasColumnType("BLOB");

                    b.Property<string>("Name")
                        .HasColumnType("TEXT");

                    b.Property<int?>("OrderId")
                        .HasColumnType("INTEGER");

                    b.Property<DateTime>("PackagingDate")
                        .HasColumnType("TEXT");

                    b.Property<float>("Price")
                        .HasColumnType("REAL");

                    b.HasKey("ID");

                    b.HasIndex("OrderId");

                    b.ToTable("Products");

                    b.HasData(
                        new
                        {
                            ID = 1,
                            Description = "Heavy-duty rope suitable for boating, camping, and general use.",
                            ExpirationDate = new DateTime(2026, 4, 13, 0, 0, 0, 0, DateTimeKind.Unspecified),
                            Name = "Multi-Purpose Marine Rope",
                            OrderId = 2,
                            PackagingDate = new DateTime(2025, 1, 15, 0, 0, 0, 0, DateTimeKind.Unspecified),
                            Price = 19.99f
                        },
                        new
                        {
                            ID = 2,
                            Description = "Adjustable stand to improve ergonomics while working on a laptop.",
                            ExpirationDate = new DateTime(2026, 6, 7, 0, 0, 0, 0, DateTimeKind.Unspecified),
                            Name = "Workstation Laptop Stand",
                            OrderId = 3,
                            PackagingDate = new DateTime(2025, 4, 24, 0, 0, 0, 0, DateTimeKind.Unspecified),
                            Price = 49.99f
                        },
                        new
                        {
                            ID = 3,
                            Description = "Pasta tossed with fresh basil pesto, simple and delicious.",
                            ExpirationDate = new DateTime(2026, 4, 3, 0, 0, 0, 0, DateTimeKind.Unspecified),
                            Name = "Basil Pesto Pasta",
                            OrderId = 1,
                            PackagingDate = new DateTime(2026, 1, 10, 0, 0, 0, 0, DateTimeKind.Unspecified),
                            Price = 6.49f
                        },
                        new
                        {
                            ID = 4,
                            Description = "Quick oatmeal packets infused with apple and cinnamon, perfect for breakfast.",
                            ExpirationDate = new DateTime(2026, 1, 22, 0, 0, 0, 0, DateTimeKind.Unspecified),
                            Name = "Apple Cinnamon Instant Oatmeal",
                            OrderId = 2,
                            PackagingDate = new DateTime(2025, 10, 28, 0, 0, 0, 0, DateTimeKind.Unspecified),
                            Price = 3.49f
                        },
                        new
                        {
                            ID = 5,
                            Description = "Stylish bookends to keep books organized on shelves.",
                            ExpirationDate = new DateTime(2026, 5, 27, 0, 0, 0, 0, DateTimeKind.Unspecified),
                            Name = "Sturdy Bookends",
                            OrderId = 2,
                            PackagingDate = new DateTime(2025, 9, 27, 0, 0, 0, 0, DateTimeKind.Unspecified),
                            Price = 22.99f
                        },
                        new
                        {
                            ID = 6,
                            Description = "Spacious duffle bag for weekend getaways.",
                            ExpirationDate = new DateTime(2026, 3, 28, 0, 0, 0, 0, DateTimeKind.Unspecified),
                            Name = "Overnight Duffle Bag",
                            OrderId = 1,
                            PackagingDate = new DateTime(2025, 3, 28, 0, 0, 0, 0, DateTimeKind.Unspecified),
                            Price = 34.99f
                        },
                        new
                        {
                            ID = 7,
                            Description = "Chewy cookies made with coconut, perfect for sweet cravings.",
                            ExpirationDate = new DateTime(2026, 6, 3, 0, 0, 0, 0, DateTimeKind.Unspecified),
                            Name = "Coconut Macaroons",
                            OrderId = 4,
                            PackagingDate = new DateTime(2025, 10, 13, 0, 0, 0, 0, DateTimeKind.Unspecified),
                            Price = 4.99f
                        },
                        new
                        {
                            ID = 8,
                            Description = "Make delicious ice cream at home with this user-friendly machine.",
                            ExpirationDate = new DateTime(2026, 3, 18, 0, 0, 0, 0, DateTimeKind.Unspecified),
                            Name = "Electric Ice Cream Maker",
                            OrderId = 4,
                            PackagingDate = new DateTime(2025, 1, 15, 0, 0, 0, 0, DateTimeKind.Unspecified),
                            Price = 59.99f
                        },
                        new
                        {
                            ID = 9,
                            Description = "Eco-friendly silicone bags for food storage and snacks.",
                            ExpirationDate = new DateTime(2026, 10, 8, 0, 0, 0, 0, DateTimeKind.Unspecified),
                            Name = "Reusable Food Storage Bags",
                            OrderId = 4,
                            PackagingDate = new DateTime(2025, 3, 9, 0, 0, 0, 0, DateTimeKind.Unspecified),
                            Price = 19.99f
                        },
                        new
                        {
                            ID = 10,
                            Description = "Delicious cookies packed with oats and raisins.",
                            ExpirationDate = new DateTime(2026, 8, 17, 0, 0, 0, 0, DateTimeKind.Unspecified),
                            Name = "Oatmeal Raisin Cookies",
                            OrderId = 4,
                            PackagingDate = new DateTime(2025, 2, 11, 0, 0, 0, 0, DateTimeKind.Unspecified),
                            Price = 3.49f
                        });
                });

            modelBuilder.Entity("Common.Model.Product", b =>
                {
                    b.HasOne("Common.Model.Order", "Order")
                        .WithMany("Products")
                        .HasForeignKey("OrderId")
                        .OnDelete(DeleteBehavior.NoAction);

                    b.Navigation("Order");
                });

            modelBuilder.Entity("Common.Model.Order", b =>
                {
                    b.Navigation("Products");
                });
#pragma warning restore 612, 618
        }
    }
}
