// <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.MySql.Migrations
{
    [DbContext(typeof(WebhookContext))]
    partial class WebhookContextModelSnapshot : ModelSnapshot
    {
        protected override void BuildModel(ModelBuilder modelBuilder)
        {
#pragma warning disable 612, 618
            modelBuilder
                .HasDefaultSchema("Elsa")
                .HasAnnotation("Relational:MaxIdentifierLength", 64)
                .HasAnnotation("ProductVersion", "5.0.6");

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

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

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

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

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

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

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

                    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
        }
    }
}
