//
using System;
using CMSMicroservice.Infrastructure.Persistence;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Metadata;
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
#nullable disable
namespace CMSMicroservice.Infrastructure.Persistence.Migrations
{
[DbContext(typeof(ApplicationDbContext))]
partial class ApplicationDbContextModelSnapshot : ModelSnapshot
{
protected override void BuildModel(ModelBuilder modelBuilder)
{
#pragma warning disable 612, 618
modelBuilder
.HasDefaultSchema("CMS")
.HasAnnotation("ProductVersion", "9.0.11")
.HasAnnotation("Relational:MaxIdentifierLength", 128);
SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder);
modelBuilder.Entity("CMSMicroservice.Domain.Entities.Category", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("bigint");
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id"));
b.Property("Created")
.HasColumnType("datetime2");
b.Property("CreatedBy")
.HasColumnType("nvarchar(max)");
b.Property("Description")
.HasColumnType("nvarchar(max)");
b.Property("ImagePath")
.HasColumnType("nvarchar(max)");
b.Property("IsActive")
.HasColumnType("bit");
b.Property("IsDeleted")
.HasColumnType("bit");
b.Property("LastModified")
.HasColumnType("datetime2");
b.Property("LastModifiedBy")
.HasColumnType("nvarchar(max)");
b.Property("Name")
.IsRequired()
.HasColumnType("nvarchar(max)");
b.Property("ParentId")
.HasColumnType("bigint");
b.Property("SortOrder")
.HasColumnType("int");
b.Property("Title")
.IsRequired()
.HasColumnType("nvarchar(max)");
b.HasKey("Id");
b.HasIndex("ParentId");
b.ToTable("Categorys", "CMS");
});
modelBuilder.Entity("CMSMicroservice.Domain.Entities.Club.ClubFeature", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("bigint");
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id"));
b.Property("Created")
.HasColumnType("datetime2");
b.Property("CreatedBy")
.HasColumnType("nvarchar(max)");
b.Property("Description")
.HasMaxLength(1000)
.HasColumnType("nvarchar(1000)");
b.Property("IsActive")
.HasColumnType("bit");
b.Property("IsDeleted")
.HasColumnType("bit");
b.Property("LastModified")
.HasColumnType("datetime2");
b.Property("LastModifiedBy")
.HasColumnType("nvarchar(max)");
b.Property("RequiredPoints")
.HasColumnType("int");
b.Property("SortOrder")
.HasColumnType("int");
b.Property("Title")
.IsRequired()
.HasMaxLength(200)
.HasColumnType("nvarchar(200)");
b.HasKey("Id");
b.HasIndex("IsActive", "SortOrder")
.HasDatabaseName("IX_ClubFeature_IsActive_SortOrder");
b.ToTable("ClubFeatures", "CMS");
});
modelBuilder.Entity("CMSMicroservice.Domain.Entities.Club.ClubMembership", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("bigint");
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id"));
b.Property("ActivatedAt")
.HasColumnType("datetime2");
b.Property("Created")
.HasColumnType("datetime2");
b.Property("CreatedBy")
.HasColumnType("nvarchar(max)");
b.Property("InitialContribution")
.HasColumnType("bigint");
b.Property("IsActive")
.HasColumnType("bit");
b.Property("IsDeleted")
.HasColumnType("bit");
b.Property("LastModified")
.HasColumnType("datetime2");
b.Property("LastModifiedBy")
.HasColumnType("nvarchar(max)");
b.Property("TotalEarned")
.HasColumnType("bigint");
b.Property("UserId")
.HasColumnType("bigint");
b.HasKey("Id");
b.HasIndex("IsActive")
.HasDatabaseName("IX_ClubMembership_IsActive");
b.HasIndex("UserId")
.IsUnique()
.HasDatabaseName("IX_ClubMembership_UserId");
b.ToTable("ClubMemberships", "CMS");
});
modelBuilder.Entity("CMSMicroservice.Domain.Entities.Club.UserClubFeature", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("bigint");
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id"));
b.Property("ClubFeatureId")
.HasColumnType("bigint");
b.Property("ClubMembershipId")
.HasColumnType("bigint");
b.Property("Created")
.HasColumnType("datetime2");
b.Property("CreatedBy")
.HasColumnType("nvarchar(max)");
b.Property("GrantedAt")
.HasColumnType("datetime2");
b.Property("IsDeleted")
.HasColumnType("bit");
b.Property("LastModified")
.HasColumnType("datetime2");
b.Property("LastModifiedBy")
.HasColumnType("nvarchar(max)");
b.Property("Notes")
.HasMaxLength(500)
.HasColumnType("nvarchar(500)");
b.Property("UserId")
.HasColumnType("bigint");
b.HasKey("Id");
b.HasIndex("ClubFeatureId");
b.HasIndex("ClubMembershipId")
.HasDatabaseName("IX_UserClubFeature_ClubMembershipId");
b.HasIndex("UserId", "ClubFeatureId")
.IsUnique()
.HasDatabaseName("IX_UserClubFeature_UserId_ClubFeatureId");
b.ToTable("UserClubFeatures", "CMS");
});
modelBuilder.Entity("CMSMicroservice.Domain.Entities.Commission.UserCommissionPayout", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("bigint");
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id"));
b.Property("BalancesEarned")
.HasColumnType("int");
b.Property("Created")
.HasColumnType("datetime2");
b.Property("CreatedBy")
.HasColumnType("nvarchar(max)");
b.Property("IbanNumber")
.HasMaxLength(26)
.HasColumnType("nvarchar(26)");
b.Property("IsDeleted")
.HasColumnType("bit");
b.Property("LastModified")
.HasColumnType("datetime2");
b.Property("LastModifiedBy")
.HasColumnType("nvarchar(max)");
b.Property("PaidAt")
.HasColumnType("datetime2");
b.Property("Status")
.HasColumnType("int");
b.Property("TotalAmount")
.HasColumnType("bigint");
b.Property("UserId")
.HasColumnType("bigint");
b.Property("ValuePerBalance")
.HasColumnType("bigint");
b.Property("WeekNumber")
.IsRequired()
.HasMaxLength(20)
.HasColumnType("nvarchar(20)");
b.Property("WeeklyPoolId")
.HasColumnType("bigint");
b.Property("WithdrawalMethod")
.HasColumnType("int");
b.Property("WithdrawnAt")
.HasColumnType("datetime2");
b.HasKey("Id");
b.HasIndex("Status")
.HasDatabaseName("IX_UserCommissionPayout_Status");
b.HasIndex("WeekNumber")
.HasDatabaseName("IX_UserCommissionPayout_WeekNumber");
b.HasIndex("WeeklyPoolId")
.HasDatabaseName("IX_UserCommissionPayout_WeeklyPoolId");
b.HasIndex("UserId", "WeekNumber")
.IsUnique()
.HasDatabaseName("IX_UserCommissionPayout_UserId_WeekNumber");
b.ToTable("UserCommissionPayouts", "CMS");
});
modelBuilder.Entity("CMSMicroservice.Domain.Entities.Commission.WeeklyCommissionPool", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("bigint");
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id"));
b.Property("CalculatedAt")
.HasColumnType("datetime2");
b.Property("Created")
.HasColumnType("datetime2");
b.Property("CreatedBy")
.HasColumnType("nvarchar(max)");
b.Property("IsCalculated")
.HasColumnType("bit");
b.Property("IsDeleted")
.HasColumnType("bit");
b.Property("LastModified")
.HasColumnType("datetime2");
b.Property("LastModifiedBy")
.HasColumnType("nvarchar(max)");
b.Property("TotalBalances")
.HasColumnType("int");
b.Property("TotalPoolAmount")
.HasColumnType("bigint");
b.Property("ValuePerBalance")
.HasColumnType("bigint");
b.Property("WeekNumber")
.IsRequired()
.HasMaxLength(20)
.HasColumnType("nvarchar(20)");
b.HasKey("Id");
b.HasIndex("IsCalculated")
.HasDatabaseName("IX_WeeklyCommissionPool_IsCalculated");
b.HasIndex("WeekNumber")
.IsUnique()
.HasDatabaseName("IX_WeeklyCommissionPool_WeekNumber");
b.ToTable("WeeklyCommissionPools", "CMS");
});
modelBuilder.Entity("CMSMicroservice.Domain.Entities.Configuration.SystemConfiguration", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("bigint");
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id"));
b.Property("Created")
.HasColumnType("datetime2");
b.Property("CreatedBy")
.HasColumnType("nvarchar(max)");
b.Property("DataType")
.HasMaxLength(50)
.HasColumnType("nvarchar(50)");
b.Property("Description")
.HasMaxLength(500)
.HasColumnType("nvarchar(500)");
b.Property("IsActive")
.HasColumnType("bit");
b.Property("IsDeleted")
.HasColumnType("bit");
b.Property("Key")
.IsRequired()
.HasMaxLength(200)
.HasColumnType("nvarchar(200)");
b.Property("LastModified")
.HasColumnType("datetime2");
b.Property("LastModifiedBy")
.HasColumnType("nvarchar(max)");
b.Property("Scope")
.HasColumnType("int");
b.Property("Value")
.IsRequired()
.HasMaxLength(1000)
.HasColumnType("nvarchar(1000)");
b.HasKey("Id");
b.HasIndex("IsActive")
.HasDatabaseName("IX_SystemConfiguration_IsActive");
b.HasIndex("Scope", "Key")
.IsUnique()
.HasDatabaseName("IX_SystemConfiguration_Scope_Key");
b.ToTable("SystemConfigurations", "CMS");
});
modelBuilder.Entity("CMSMicroservice.Domain.Entities.Contract", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("bigint");
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id"));
b.Property("Created")
.HasColumnType("datetime2");
b.Property("CreatedBy")
.HasColumnType("nvarchar(max)");
b.Property("Description")
.IsRequired()
.HasColumnType("nvarchar(max)");
b.Property("HtmlContent")
.IsRequired()
.HasColumnType("nvarchar(max)");
b.Property("IsDeleted")
.HasColumnType("bit");
b.Property("LastModified")
.HasColumnType("datetime2");
b.Property("LastModifiedBy")
.HasColumnType("nvarchar(max)");
b.Property("Title")
.IsRequired()
.HasColumnType("nvarchar(max)");
b.Property("Type")
.HasColumnType("int");
b.HasKey("Id");
b.ToTable("Contracts", "CMS");
});
modelBuilder.Entity("CMSMicroservice.Domain.Entities.FactorDetails", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("bigint");
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id"));
b.Property("Count")
.HasColumnType("int");
b.Property("Created")
.HasColumnType("datetime2");
b.Property("CreatedBy")
.HasColumnType("nvarchar(max)");
b.Property("IsChangePrice")
.HasColumnType("bit");
b.Property("IsDeleted")
.HasColumnType("bit");
b.Property("LastModified")
.HasColumnType("datetime2");
b.Property("LastModifiedBy")
.HasColumnType("nvarchar(max)");
b.Property("OrderId")
.HasColumnType("bigint");
b.Property("ProductId")
.HasColumnType("bigint");
b.Property("UnitDiscount")
.HasColumnType("int");
b.Property("UnitDiscountPrice")
.HasColumnType("bigint");
b.Property("UnitPrice")
.HasColumnType("bigint");
b.HasKey("Id");
b.HasIndex("OrderId");
b.HasIndex("ProductId");
b.ToTable("FactorDetailss", "CMS");
});
modelBuilder.Entity("CMSMicroservice.Domain.Entities.History.ClubMembershipHistory", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("bigint");
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id"));
b.Property("Action")
.HasColumnType("int");
b.Property("ClubMembershipId")
.HasColumnType("bigint");
b.Property("Created")
.HasColumnType("datetime2");
b.Property("CreatedBy")
.HasColumnType("nvarchar(max)");
b.Property("IsDeleted")
.HasColumnType("bit");
b.Property("LastModified")
.HasColumnType("datetime2");
b.Property("LastModifiedBy")
.HasColumnType("nvarchar(max)");
b.Property("NewInitialContribution")
.HasColumnType("bigint");
b.Property("NewIsActive")
.HasColumnType("bit");
b.Property("OldInitialContribution")
.HasColumnType("bigint");
b.Property("OldIsActive")
.HasColumnType("bit");
b.Property("PerformedBy")
.HasMaxLength(100)
.HasColumnType("nvarchar(100)");
b.Property("Reason")
.HasMaxLength(500)
.HasColumnType("nvarchar(500)");
b.Property("UserId")
.HasColumnType("bigint");
b.HasKey("Id");
b.HasIndex("Action")
.HasDatabaseName("IX_ClubMembershipHistory_Action");
b.HasIndex("ClubMembershipId")
.HasDatabaseName("IX_ClubMembershipHistory_ClubMembershipId");
b.HasIndex("UserId", "Created")
.HasDatabaseName("IX_ClubMembershipHistory_UserId_Created");
b.ToTable("ClubMembershipHistories", "CMS");
});
modelBuilder.Entity("CMSMicroservice.Domain.Entities.History.CommissionPayoutHistory", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("bigint");
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id"));
b.Property("Action")
.HasColumnType("int");
b.Property("AmountAfter")
.HasColumnType("bigint");
b.Property("AmountBefore")
.HasColumnType("bigint");
b.Property("Created")
.HasColumnType("datetime2");
b.Property("CreatedBy")
.HasColumnType("nvarchar(max)");
b.Property("IsDeleted")
.HasColumnType("bit");
b.Property("LastModified")
.HasColumnType("datetime2");
b.Property("LastModifiedBy")
.HasColumnType("nvarchar(max)");
b.Property("NewStatus")
.HasColumnType("int");
b.Property("OldStatus")
.HasColumnType("int");
b.Property("PerformedBy")
.HasMaxLength(100)
.HasColumnType("nvarchar(100)");
b.Property("Reason")
.HasMaxLength(500)
.HasColumnType("nvarchar(500)");
b.Property("UserCommissionPayoutId")
.HasColumnType("bigint");
b.Property("UserId")
.HasColumnType("bigint");
b.Property("WeekNumber")
.IsRequired()
.HasMaxLength(20)
.HasColumnType("nvarchar(20)");
b.HasKey("Id");
b.HasIndex("Action")
.HasDatabaseName("IX_CommissionPayoutHistory_Action");
b.HasIndex("UserCommissionPayoutId")
.HasDatabaseName("IX_CommissionPayoutHistory_PayoutId");
b.HasIndex("WeekNumber")
.HasDatabaseName("IX_CommissionPayoutHistory_WeekNumber");
b.HasIndex("UserId", "Created")
.HasDatabaseName("IX_CommissionPayoutHistory_UserId_Created");
b.ToTable("CommissionPayoutHistories", "CMS");
});
modelBuilder.Entity("CMSMicroservice.Domain.Entities.History.NetworkMembershipHistory", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("bigint");
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id"));
b.Property("Action")
.HasColumnType("int");
b.Property("Created")
.HasColumnType("datetime2");
b.Property("CreatedBy")
.HasColumnType("nvarchar(max)");
b.Property("IsDeleted")
.HasColumnType("bit");
b.Property("LastModified")
.HasColumnType("datetime2");
b.Property("LastModifiedBy")
.HasColumnType("nvarchar(max)");
b.Property("NewLegPosition")
.HasColumnType("int");
b.Property("NewParentId")
.HasColumnType("bigint");
b.Property("OldLegPosition")
.HasColumnType("int");
b.Property("OldParentId")
.HasColumnType("bigint");
b.Property("PerformedBy")
.HasMaxLength(100)
.HasColumnType("nvarchar(100)");
b.Property("Reason")
.HasMaxLength(500)
.HasColumnType("nvarchar(500)");
b.Property("UserId")
.HasColumnType("bigint");
b.HasKey("Id");
b.HasIndex("Action")
.HasDatabaseName("IX_NetworkMembershipHistory_Action");
b.HasIndex("UserId", "Created")
.HasDatabaseName("IX_NetworkMembershipHistory_UserId_Created");
b.ToTable("NetworkMembershipHistories", "CMS");
});
modelBuilder.Entity("CMSMicroservice.Domain.Entities.History.SystemConfigurationHistory", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("bigint");
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id"));
b.Property("ConfigurationId")
.HasColumnType("bigint");
b.Property("Created")
.HasColumnType("datetime2");
b.Property("CreatedBy")
.HasColumnType("nvarchar(max)");
b.Property("IsDeleted")
.HasColumnType("bit");
b.Property("Key")
.IsRequired()
.HasMaxLength(200)
.HasColumnType("nvarchar(200)");
b.Property("LastModified")
.HasColumnType("datetime2");
b.Property("LastModifiedBy")
.HasColumnType("nvarchar(max)");
b.Property("NewValue")
.IsRequired()
.HasMaxLength(1000)
.HasColumnType("nvarchar(1000)");
b.Property("OldValue")
.IsRequired()
.HasMaxLength(1000)
.HasColumnType("nvarchar(1000)");
b.Property("PerformedBy")
.HasMaxLength(100)
.HasColumnType("nvarchar(100)");
b.Property("Reason")
.HasMaxLength(500)
.HasColumnType("nvarchar(500)");
b.Property("Scope")
.HasColumnType("int");
b.HasKey("Id");
b.HasIndex("ConfigurationId", "Created")
.HasDatabaseName("IX_SystemConfigurationHistory_ConfigId_Created");
b.HasIndex("Scope", "Key")
.HasDatabaseName("IX_SystemConfigurationHistory_Scope_Key");
b.ToTable("SystemConfigurationHistories", "CMS");
});
modelBuilder.Entity("CMSMicroservice.Domain.Entities.Network.NetworkWeeklyBalance", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("bigint");
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id"));
b.Property("CalculatedAt")
.HasColumnType("datetime2");
b.Property("Created")
.HasColumnType("datetime2");
b.Property("CreatedBy")
.HasColumnType("nvarchar(max)");
b.Property("IsDeleted")
.HasColumnType("bit");
b.Property("IsExpired")
.HasColumnType("bit");
b.Property("LastModified")
.HasColumnType("datetime2");
b.Property("LastModifiedBy")
.HasColumnType("nvarchar(max)");
b.Property("LeftLegBalances")
.HasColumnType("int");
b.Property("RightLegBalances")
.HasColumnType("int");
b.Property("TotalBalances")
.HasColumnType("int");
b.Property("UserId")
.HasColumnType("bigint");
b.Property("WeekNumber")
.IsRequired()
.HasMaxLength(20)
.HasColumnType("nvarchar(20)");
b.Property("WeeklyPoolContribution")
.HasColumnType("bigint");
b.HasKey("Id");
b.HasIndex("IsExpired")
.HasDatabaseName("IX_NetworkWeeklyBalance_IsExpired");
b.HasIndex("WeekNumber")
.HasDatabaseName("IX_NetworkWeeklyBalance_WeekNumber");
b.HasIndex("UserId", "WeekNumber")
.IsUnique()
.HasDatabaseName("IX_NetworkWeeklyBalance_UserId_WeekNumber");
b.ToTable("NetworkWeeklyBalances", "CMS");
});
modelBuilder.Entity("CMSMicroservice.Domain.Entities.OtpToken", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("bigint");
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id"));
b.Property("Attempts")
.HasColumnType("int");
b.Property("CodeHash")
.IsRequired()
.HasColumnType("nvarchar(max)");
b.Property("Created")
.HasColumnType("datetime2");
b.Property("CreatedBy")
.HasColumnType("nvarchar(max)");
b.Property("ExpiresAt")
.HasColumnType("datetime2");
b.Property("IsDeleted")
.HasColumnType("bit");
b.Property("IsUsed")
.HasColumnType("bit");
b.Property("LastModified")
.HasColumnType("datetime2");
b.Property("LastModifiedBy")
.HasColumnType("nvarchar(max)");
b.Property("Mobile")
.IsRequired()
.HasColumnType("nvarchar(max)");
b.Property("Purpose")
.IsRequired()
.HasColumnType("nvarchar(max)");
b.HasKey("Id");
b.ToTable("OtpTokens", "CMS");
});
modelBuilder.Entity("CMSMicroservice.Domain.Entities.Package", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("bigint");
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id"));
b.Property("Created")
.HasColumnType("datetime2");
b.Property("CreatedBy")
.HasColumnType("nvarchar(max)");
b.Property("Description")
.IsRequired()
.HasColumnType("nvarchar(max)");
b.Property("ImagePath")
.IsRequired()
.HasColumnType("nvarchar(max)");
b.Property("IsDeleted")
.HasColumnType("bit");
b.Property("LastModified")
.HasColumnType("datetime2");
b.Property("LastModifiedBy")
.HasColumnType("nvarchar(max)");
b.Property("Price")
.HasColumnType("bigint");
b.Property("Title")
.IsRequired()
.HasColumnType("nvarchar(max)");
b.HasKey("Id");
b.ToTable("Packages", "CMS");
});
modelBuilder.Entity("CMSMicroservice.Domain.Entities.ProductGallerys", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("bigint");
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id"));
b.Property("Created")
.HasColumnType("datetime2");
b.Property("CreatedBy")
.HasColumnType("nvarchar(max)");
b.Property("IsDeleted")
.HasColumnType("bit");
b.Property("LastModified")
.HasColumnType("datetime2");
b.Property("LastModifiedBy")
.HasColumnType("nvarchar(max)");
b.Property("ProductId")
.HasColumnType("bigint");
b.Property("ProductImageId")
.HasColumnType("bigint");
b.HasKey("Id");
b.HasIndex("ProductId");
b.HasIndex("ProductImageId");
b.ToTable("ProductGalleryss", "CMS");
});
modelBuilder.Entity("CMSMicroservice.Domain.Entities.ProductImages", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("bigint");
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id"));
b.Property("Created")
.HasColumnType("datetime2");
b.Property("CreatedBy")
.HasColumnType("nvarchar(max)");
b.Property("ImagePath")
.IsRequired()
.HasColumnType("nvarchar(max)");
b.Property("ImageThumbnailPath")
.IsRequired()
.HasColumnType("nvarchar(max)");
b.Property("IsDeleted")
.HasColumnType("bit");
b.Property("LastModified")
.HasColumnType("datetime2");
b.Property("LastModifiedBy")
.HasColumnType("nvarchar(max)");
b.Property("Title")
.IsRequired()
.HasColumnType("nvarchar(max)");
b.HasKey("Id");
b.ToTable("ProductImagess", "CMS");
});
modelBuilder.Entity("CMSMicroservice.Domain.Entities.Products", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("bigint");
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id"));
b.Property("ClubDiscountPercent")
.HasColumnType("int");
b.Property("Created")
.HasColumnType("datetime2");
b.Property("CreatedBy")
.HasColumnType("nvarchar(max)");
b.Property("Description")
.IsRequired()
.HasColumnType("nvarchar(max)");
b.Property("Discount")
.HasColumnType("int");
b.Property("FullInformation")
.IsRequired()
.HasColumnType("nvarchar(max)");
b.Property("ImagePath")
.IsRequired()
.HasColumnType("nvarchar(max)");
b.Property("IsClubExclusive")
.HasColumnType("bit");
b.Property("IsDeleted")
.HasColumnType("bit");
b.Property("LastModified")
.HasColumnType("datetime2");
b.Property("LastModifiedBy")
.HasColumnType("nvarchar(max)");
b.Property("Price")
.HasColumnType("bigint");
b.Property("Rate")
.HasColumnType("int");
b.Property