// using System; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Migrations; using Microsoft.EntityFrameworkCore.Storage.ValueConversion; using SlpModularCms.Modules.Offerings.Data; #nullable disable namespace SlpModularCms.Modules.Offerings.Migrations { [DbContext(typeof(OfferingsDbContext))] [Migration("20261112100000_AddOfferingBannerRemoveLayout")] partial class AddOfferingBannerRemoveLayout { protected override void BuildTargetModel(ModelBuilder modelBuilder) { #pragma warning disable 612, 618 modelBuilder .HasAnnotation("ProductVersion", "10.0.9") .HasAnnotation("Relational:MaxIdentifierLength", 64); modelBuilder.Entity("SlpModularCms.Modules.Offerings.Data.Entities.OfferingBanner", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("char(36)"); b.Property("CreatedAt") .HasColumnType("datetime"); b.Property("EndsAt") .HasColumnType("datetime"); b.Property("IsActive") .HasColumnType("tinyint(1)"); b.Property("LastModifiedByUserId") .HasColumnType("char(36)"); b.Property("LinkLabel") .HasMaxLength(50) .HasColumnType("varchar(50)"); b.Property("LinkUrl") .HasMaxLength(500) .HasColumnType("varchar(500)"); b.Property("StartsAt") .HasColumnType("datetime"); b.Property("Text") .IsRequired() .HasMaxLength(300) .HasColumnType("varchar(300)"); b.Property("Title") .IsRequired() .HasMaxLength(100) .HasColumnType("varchar(100)"); b.Property("UpdatedAt") .HasColumnType("datetime"); b.HasKey("Id"); b.ToTable("OfferingsBanners", (string)null); }); modelBuilder.Entity("SlpModularCms.Modules.Offerings.Data.Entities.Offering", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("char(36)"); b.Property("CategoryId") .HasColumnType("char(36)"); b.Property("CreatedAt") .HasColumnType("datetime"); b.Property("CtaLabel") .IsRequired() .HasMaxLength(50) .HasColumnType("varchar(50)"); b.Property("DeletedAt") .HasColumnType("datetime"); b.Property("Description") .IsRequired() .HasMaxLength(500) .HasColumnType("varchar(500)"); b.Property("DisplayOrder") .HasColumnType("int"); b.Property("Featured") .HasColumnType("tinyint(1)"); b.Property("Features") .IsRequired() .HasColumnType("longtext"); b.Property("IsDeleted") .HasColumnType("tinyint(1)"); b.Property("LastModifiedByUserId") .HasColumnType("char(36)"); b.Property("Price") .IsRequired() .HasMaxLength(50) .HasColumnType("varchar(50)"); b.Property("PriceNote") .IsRequired() .HasMaxLength(100) .HasColumnType("varchar(100)"); b.Property("Slug") .IsRequired() .HasMaxLength(130) .HasColumnType("varchar(130)"); b.Property("Title") .IsRequired() .HasMaxLength(100) .HasColumnType("varchar(100)"); b.Property("UpdatedAt") .HasColumnType("datetime"); b.HasKey("Id"); b.HasIndex("CategoryId"); b.ToTable("OfferingsOfferings", (string)null); }); modelBuilder.Entity("SlpModularCms.Modules.Offerings.Data.Entities.OfferingCategory", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("char(36)"); b.Property("CreatedAt") .HasColumnType("datetime"); b.Property("Name") .IsRequired() .HasMaxLength(100) .HasColumnType("varchar(100)"); b.Property("SortOrder") .HasColumnType("int"); b.Property("UpdatedAt") .HasColumnType("datetime"); b.HasKey("Id"); b.HasIndex("Name") .IsUnique(); b.ToTable("OfferingsCategories", (string)null); }); modelBuilder.Entity("SlpModularCms.Modules.Offerings.Data.Entities.Offering", b => { b.HasOne("SlpModularCms.Modules.Offerings.Data.Entities.OfferingCategory", "Category") .WithMany() .HasForeignKey("CategoryId") .OnDelete(DeleteBehavior.Restrict); b.Navigation("Category"); }); #pragma warning restore 612, 618 } } }