// <auto-generated />
using Elsa.Webhooks.Persistence.EntityFramework.Core;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;

namespace Elsa.Webhooks.Persistence.EntityFramework.Sqlite.Migrations
{
    [DbContext(typeof(WebhookContext))]
    partial class WebhookContextModelSnapshot : ModelSnapshot
    {
        protected override void BuildModel(ModelBuilder modelBuilder)
        {
#pragma warning disable 612, 618
            modelBuilder
                .HasDefaultSchema("Elsa")
                .HasAnnotation("ProductVersion", "5.0.6");

            modelBuilder.Entity("Elsa.Webhooks.Abstractions.Models.WebhookDefinition", b =>
                {
                    b.Property<string>("Id")
                        .HasColumnType("TEXT");

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

                    b.Property<bool>("IsEnabled")
                        .HasColumnType("INTEGER");

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

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

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

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

                    b.HasKey("Id");

                    b.HasIndex("Description")
                        .HasDatabaseName("IX_WebhookDefinition_Description");

                    b.HasIndex("IsEnabled")
                        .HasDatabaseName("IX_WebhookDefinition_IsEnabled");

                    b.HasIndex("Name")
                        .HasDatabaseName("IX_WebhookDefinition_Name");

                    b.HasIndex("Path")
                        .HasDatabaseName("IX_WebhookDefinition_Path");

                    b.HasIndex("PayloadTypeName")
                        .HasDatabaseName("IX_WebhookDefinition_PayloadTypeName");

                    b.HasIndex("TenantId")
                        .HasDatabaseName("IX_WebhookDefinition_TenantId");

                    b.ToTable("WebhookDefinitions");
                });
#pragma warning restore 612, 618
        }
    }
}
