// using System; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Storage.ValueConversion; using Netina.Repository.Models; using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata; #nullable disable namespace NetinaShop.Repository.Migrations { [DbContext(typeof(ApplicationContext))] partial class ApplicationContextModelSnapshot : ModelSnapshot { protected override void BuildModel(ModelBuilder modelBuilder) { #pragma warning disable 612, 618 modelBuilder .HasDefaultSchema("public") .HasAnnotation("ProductVersion", "8.0.8") .HasAnnotation("Relational:MaxIdentifierLength", 63); NpgsqlModelBuilderExtensions.HasPostgresExtension(modelBuilder, "fuzzystrmatch"); NpgsqlModelBuilderExtensions.HasPostgresExtension(modelBuilder, "pg_trgm"); NpgsqlModelBuilderExtensions.UseIdentityByDefaultColumns(modelBuilder); modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRoleClaim", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("integer"); NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); b.Property("ClaimType") .HasColumnType("text"); b.Property("ClaimValue") .HasColumnType("text"); b.Property("RoleId") .HasColumnType("uuid"); b.HasKey("Id"); b.HasIndex("RoleId"); b.ToTable("RoleClaims", "public"); }); modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserClaim", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("integer"); NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); b.Property("ClaimType") .HasColumnType("text"); b.Property("ClaimValue") .HasColumnType("text"); b.Property("UserId") .HasColumnType("uuid"); b.HasKey("Id"); b.HasIndex("UserId"); b.ToTable("Claims", "public"); }); modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserLogin", b => { b.Property("LoginProvider") .HasColumnType("text"); b.Property("ProviderKey") .HasColumnType("text"); b.Property("ProviderDisplayName") .HasColumnType("text"); b.Property("UserId") .HasColumnType("uuid"); b.HasKey("LoginProvider", "ProviderKey"); b.HasIndex("UserId"); b.ToTable("Logins", "public"); }); modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserRole", b => { b.Property("UserId") .HasColumnType("uuid"); b.Property("RoleId") .HasColumnType("uuid"); b.HasKey("UserId", "RoleId"); b.HasIndex("RoleId"); b.ToTable("UserRoles", "public"); }); modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserToken", b => { b.Property("UserId") .HasColumnType("uuid"); b.Property("LoginProvider") .HasColumnType("text"); b.Property("Name") .HasColumnType("text"); b.Property("Value") .HasColumnType("text"); b.HasKey("UserId", "LoginProvider", "Name"); b.ToTable("Tokens", "public"); }); modelBuilder.Entity("Netina.Domain.Entities.Accounting.Payment", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("uuid"); b.Property("Amount") .HasColumnType("double precision"); b.Property("Authority") .IsRequired() .HasColumnType("text"); b.Property("CardPan") .IsRequired() .HasColumnType("text"); b.Property("CreatedAt") .HasColumnType("timestamp without time zone"); b.Property("CreatedBy") .IsRequired() .HasColumnType("text"); b.Property("CustomerId") .HasColumnType("uuid"); b.Property("Description") .IsRequired() .HasColumnType("text"); b.Property("FactorNumber") .IsRequired() .HasColumnType("text"); b.Property("IsRemoved") .HasColumnType("boolean"); b.Property("ModifiedAt") .HasColumnType("timestamp without time zone"); b.Property("ModifiedBy") .IsRequired() .HasColumnType("text"); b.Property("OrderId") .HasColumnType("uuid"); b.Property("RemovedAt") .HasColumnType("timestamp without time zone"); b.Property("RemovedBy") .IsRequired() .HasColumnType("text"); b.Property("Status") .HasColumnType("integer"); b.Property("TransactionCode") .IsRequired() .HasColumnType("text"); b.Property("Type") .HasColumnType("integer"); b.HasKey("Id"); b.HasIndex("CustomerId"); b.HasIndex("OrderId"); b.ToTable("Payments", "public"); }); modelBuilder.Entity("Netina.Domain.Entities.Blogs.Blog", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("uuid"); b.Property("AuthorId") .HasColumnType("uuid"); b.Property("CategoryId") .HasColumnType("uuid"); b.Property("Content") .IsRequired() .HasColumnType("text"); b.Property("CreatedAt") .HasColumnType("timestamp without time zone"); b.Property("CreatedBy") .IsRequired() .HasColumnType("text"); b.Property("IsRemoved") .HasColumnType("boolean"); b.Property("IsSuggested") .HasColumnType("boolean"); b.Property("ModifiedAt") .HasColumnType("timestamp without time zone"); b.Property("ModifiedBy") .IsRequired() .HasColumnType("text"); b.Property("ReadingTime") .HasColumnType("integer"); b.Property("RemovedAt") .HasColumnType("timestamp without time zone"); b.Property("RemovedBy") .IsRequired() .HasColumnType("text"); b.Property("Slug") .IsRequired() .HasColumnType("text"); b.Property("Summery") .IsRequired() .HasColumnType("text"); b.Property("Tags") .IsRequired() .HasColumnType("text"); b.Property("Title") .IsRequired() .HasColumnType("text"); b.HasKey("Id"); b.HasIndex("AuthorId"); b.HasIndex("CategoryId"); b.ToTable("Blogs", "public"); }); modelBuilder.Entity("Netina.Domain.Entities.Blogs.BlogCategory", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("uuid"); b.Property("CreatedAt") .HasColumnType("timestamp without time zone"); b.Property("CreatedBy") .IsRequired() .HasColumnType("text"); b.Property("Description") .IsRequired() .HasColumnType("text"); b.Property("IsMain") .HasColumnType("boolean"); b.Property("IsRemoved") .HasColumnType("boolean"); b.Property("ModifiedAt") .HasColumnType("timestamp without time zone"); b.Property("ModifiedBy") .IsRequired() .HasColumnType("text"); b.Property("Name") .IsRequired() .HasColumnType("text"); b.Property("ParentId") .HasColumnType("uuid"); b.Property("RemovedAt") .HasColumnType("timestamp without time zone"); b.Property("RemovedBy") .IsRequired() .HasColumnType("text"); b.Property("Slug") .IsRequired() .HasColumnType("text"); b.HasKey("Id"); b.HasIndex("ParentId"); b.ToTable("BlogCategories", "public"); }); modelBuilder.Entity("Netina.Domain.Entities.Brands.Brand", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("uuid"); b.Property("CreatedAt") .HasColumnType("timestamp without time zone"); b.Property("CreatedBy") .IsRequired() .HasColumnType("text"); b.Property("Description") .IsRequired() .HasColumnType("text"); b.Property("EnglishName") .IsRequired() .HasColumnType("text"); b.Property("HasSpecialPage") .HasColumnType("boolean"); b.Property("IsRemoved") .HasColumnType("boolean"); b.Property("ModifiedAt") .HasColumnType("timestamp without time zone"); b.Property("ModifiedBy") .IsRequired() .HasColumnType("text"); b.Property("PageUrl") .IsRequired() .HasColumnType("text"); b.Property("PersianName") .IsRequired() .HasColumnType("text"); b.Property("RemovedAt") .HasColumnType("timestamp without time zone"); b.Property("RemovedBy") .IsRequired() .HasColumnType("text"); b.Property("Slug") .IsRequired() .HasColumnType("text"); b.HasKey("Id"); b.ToTable("Brands", "public"); }); modelBuilder.Entity("Netina.Domain.Entities.Comments.Comment", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("uuid"); b.Property("Content") .IsRequired() .HasColumnType("text"); b.Property("CreatedAt") .HasColumnType("timestamp without time zone"); b.Property("CreatedBy") .IsRequired() .HasColumnType("text"); b.Property("Discriminator") .IsRequired() .HasMaxLength(21) .HasColumnType("character varying(21)"); b.Property("IsAdmin") .HasColumnType("boolean"); b.Property("IsConfirmed") .HasColumnType("boolean"); b.Property("IsRemoved") .HasColumnType("boolean"); b.Property("IsRoot") .HasColumnType("boolean"); b.Property("ModifiedAt") .HasColumnType("timestamp without time zone"); b.Property("ModifiedBy") .IsRequired() .HasColumnType("text"); b.Property("ParentId") .HasColumnType("uuid"); b.Property("Rate") .HasColumnType("real"); b.Property("RemovedAt") .HasColumnType("timestamp without time zone"); b.Property("RemovedBy") .IsRequired() .HasColumnType("text"); b.Property("Title") .IsRequired() .HasColumnType("text"); b.Property("UserId") .HasColumnType("uuid"); b.HasKey("Id"); b.HasIndex("ParentId"); b.HasIndex("UserId"); b.ToTable("Comments", "public"); b.HasDiscriminator().HasValue("Comment"); b.UseTphMappingStrategy(); }); modelBuilder.Entity("Netina.Domain.Entities.Discounts.Discount", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("uuid"); b.Property("AmountType") .HasColumnType("integer"); b.Property("Code") .IsRequired() .HasColumnType("text"); b.Property("Count") .HasColumnType("integer"); b.Property("CreatedAt") .HasColumnType("timestamp without time zone"); b.Property("CreatedBy") .IsRequired() .HasColumnType("text"); b.Property("Description") .IsRequired() .HasColumnType("text"); b.Property("DiscountAmount") .HasColumnType("bigint"); b.Property("DiscountPercent") .HasColumnType("integer"); b.Property("Discriminator") .IsRequired() .HasMaxLength(21) .HasColumnType("character varying(21)"); b.Property("ExpireDate") .HasColumnType("timestamp without time zone"); b.Property("HasCode") .HasColumnType("boolean"); b.Property("HasPriceCeiling") .HasColumnType("boolean"); b.Property("HasPriceFloor") .HasColumnType("boolean"); b.Property("Immortal") .HasColumnType("boolean"); b.Property("IsForFirstPurchase") .HasColumnType("boolean"); b.Property("IsForInvitation") .HasColumnType("boolean"); b.Property("IsForSaleCooperation") .HasColumnType("boolean"); b.Property("IsInfinity") .HasColumnType("boolean"); b.Property("IsRemoved") .HasColumnType("boolean"); b.Property("IsSpecialOffer") .HasColumnType("boolean"); b.Property("MarketerId") .HasColumnType("uuid"); b.Property("ModifiedAt") .HasColumnType("timestamp without time zone"); b.Property("ModifiedBy") .IsRequired() .HasColumnType("text"); b.Property("PriceCeiling") .HasColumnType("bigint"); b.Property("PriceFloor") .HasColumnType("bigint"); b.Property("RemovedAt") .HasColumnType("timestamp without time zone"); b.Property("RemovedBy") .IsRequired() .HasColumnType("text"); b.Property("StartDate") .HasColumnType("timestamp without time zone"); b.Property("Type") .HasColumnType("integer"); b.Property("UseCount") .HasColumnType("bigint"); b.HasKey("Id"); b.HasIndex("MarketerId") .IsUnique(); b.ToTable("Discounts", "public"); b.HasDiscriminator().HasValue("Discount"); b.UseTphMappingStrategy(); }); modelBuilder.Entity("Netina.Domain.Entities.Orders.Order", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("uuid"); b.Property("CreatedAt") .HasColumnType("timestamp without time zone"); b.Property("CreatedBy") .IsRequired() .HasColumnType("text"); b.Property("CustomerId") .HasColumnType("uuid"); b.Property("DeliveredAt") .HasColumnType("timestamp without time zone"); b.Property("DeliveryPrice") .HasColumnType("double precision"); b.Property("DiscountCode") .IsRequired() .HasColumnType("text"); b.Property("DiscountCodePrice") .HasColumnType("double precision"); b.Property("DiscountId") .HasColumnType("uuid"); b.Property("DiscountPrice") .HasColumnType("double precision"); b.Property("DoneAt") .HasColumnType("timestamp without time zone"); b.Property("FactorCode") .IsRequired() .HasColumnType("text"); b.Property("IsPayed") .HasColumnType("boolean"); b.Property("IsRemoved") .HasColumnType("boolean"); b.Property("ModifiedAt") .HasColumnType("timestamp without time zone"); b.Property("ModifiedBy") .IsRequired() .HasColumnType("text"); b.Property("OrderAt") .HasColumnType("timestamp without time zone"); b.Property("OrderStatus") .HasColumnType("integer"); b.Property("PackingPrice") .HasColumnType("double precision"); b.Property("PayedAt") .HasColumnType("timestamp without time zone"); b.Property("PaymentMethod") .HasColumnType("integer"); b.Property("PreparingMinute") .HasColumnType("integer"); b.Property("ProductDiscountPrice") .HasColumnType("double precision"); b.Property("RemovedAt") .HasColumnType("timestamp without time zone"); b.Property("RemovedBy") .IsRequired() .HasColumnType("text"); b.Property("ServicePrice") .HasColumnType("double precision"); b.Property("TaxesPrice") .HasColumnType("double precision"); b.Property("TotalPrice") .HasColumnType("double precision"); b.Property("TotalProductsPrice") .HasColumnType("double precision"); b.HasKey("Id"); b.HasIndex("CustomerId"); b.HasIndex("DiscountId"); b.ToTable("Orders", "public"); }); modelBuilder.Entity("Netina.Domain.Entities.Orders.OrderDelivery", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("uuid"); b.Property("AddressId") .HasColumnType("uuid"); b.Property("CreatedAt") .HasColumnType("timestamp without time zone"); b.Property("CreatedBy") .IsRequired() .HasColumnType("text"); b.Property("DeliveryCost") .HasColumnType("double precision"); b.Property("IsRemoved") .HasColumnType("boolean"); b.Property("ModifiedAt") .HasColumnType("timestamp without time zone"); b.Property("ModifiedBy") .IsRequired() .HasColumnType("text"); b.Property("OrderId") .HasColumnType("uuid"); b.Property("RemovedAt") .HasColumnType("timestamp without time zone"); b.Property("RemovedBy") .IsRequired() .HasColumnType("text"); b.Property("ShippingId") .HasColumnType("uuid"); b.Property("TrackingCode") .IsRequired() .HasColumnType("text"); b.HasKey("Id"); b.HasIndex("AddressId"); b.HasIndex("OrderId") .IsUnique(); b.HasIndex("ShippingId"); b.ToTable("OrderDeliveries", "public"); }); modelBuilder.Entity("Netina.Domain.Entities.Orders.OrderProduct", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("uuid"); b.Property("Count") .HasColumnType("integer"); b.Property("CreatedAt") .HasColumnType("timestamp without time zone"); b.Property("CreatedBy") .IsRequired() .HasColumnType("text"); b.Property("HasDiscount") .HasColumnType("boolean"); b.Property("IsRemoved") .HasColumnType("boolean"); b.Property("ModifiedAt") .HasColumnType("timestamp without time zone"); b.Property("ModifiedBy") .IsRequired() .HasColumnType("text"); b.Property("OrderId") .HasColumnType("uuid"); b.Property("OrderProductStatus") .HasColumnType("integer"); b.Property("PackingCost") .HasColumnType("double precision"); b.Property("PackingFee") .HasColumnType("double precision"); b.Property("ProductCategoryId") .HasColumnType("uuid"); b.Property("ProductCost") .HasColumnType("double precision"); b.Property("ProductFee") .HasColumnType("double precision"); b.Property("ProductFeeWithDiscount") .HasColumnType("double precision"); b.Property("ProductId") .HasColumnType("uuid"); b.Property("RemovedAt") .HasColumnType("timestamp without time zone"); b.Property("RemovedBy") .IsRequired() .HasColumnType("text"); b.HasKey("Id"); b.HasIndex("OrderId"); b.HasIndex("ProductId"); b.ToTable("OrderProducts", "public"); }); modelBuilder.Entity("Netina.Domain.Entities.ProductCategories.ProductCategory", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("uuid"); b.Property("CreatedAt") .HasColumnType("timestamp without time zone"); b.Property("CreatedBy") .IsRequired() .HasColumnType("text"); b.Property("Description") .IsRequired() .HasColumnType("text"); b.Property("IsMain") .HasColumnType("boolean"); b.Property("IsRemoved") .HasColumnType("boolean"); b.Property("ModifiedAt") .HasColumnType("timestamp without time zone"); b.Property("ModifiedBy") .IsRequired() .HasColumnType("text"); b.Property("Name") .IsRequired() .HasColumnType("text"); b.Property("ParentId") .HasColumnType("uuid"); b.Property("RemovedAt") .HasColumnType("timestamp without time zone"); b.Property("RemovedBy") .IsRequired() .HasColumnType("text"); b.Property("Slug") .IsRequired() .HasColumnType("text"); b.HasKey("Id"); b.HasIndex("ParentId"); b.ToTable("ProductCategories", "public"); }); modelBuilder.Entity("Netina.Domain.Entities.Products.Product", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("uuid"); b.Property("AuthorId") .HasColumnType("uuid"); b.Property("BeDisplayed") .HasColumnType("boolean"); b.Property("BrandId") .HasColumnType("uuid"); b.Property("CategoryId") .HasColumnType("uuid"); b.Property("Cost") .HasColumnType("double precision"); b.Property("CreatedAt") .HasColumnType("timestamp without time zone"); b.Property("CreatedBy") .IsRequired() .HasColumnType("text"); b.Property("EnglishName") .IsRequired() .HasColumnType("text"); b.Property("ExpertCheck") .IsRequired() .HasColumnType("text"); b.Property("HasExpressDelivery") .HasColumnType("boolean"); b.Property("IsEnable") .HasColumnType("boolean"); b.Property("IsRemoved") .HasColumnType("boolean"); b.Property("MaxOrderCount") .HasColumnType("integer"); b.Property("ModifiedAt") .HasColumnType("timestamp without time zone"); b.Property("ModifiedBy") .IsRequired() .HasColumnType("text"); b.Property("PackingCost") .HasColumnType("double precision"); b.Property("PersianName") .IsRequired() .HasColumnType("text"); b.Property("Rate") .HasColumnType("real"); b.Property("RemovedAt") .HasColumnType("timestamp without time zone"); b.Property("RemovedBy") .IsRequired() .HasColumnType("text"); b.Property("ReviewCount") .HasColumnType("integer"); b.Property("Slug") .IsRequired() .HasColumnType("text"); b.Property("Stock") .HasColumnType("integer"); b.Property("Summery") .IsRequired() .HasColumnType("text"); b.Property("Tags") .IsRequired() .HasColumnType("text"); b.Property("Viewed") .HasColumnType("integer"); b.Property("Warranty") .IsRequired() .HasColumnType("text"); b.HasKey("Id"); b.HasIndex("AuthorId"); b.HasIndex("BrandId"); b.HasIndex("CategoryId"); b.ToTable("Products", "public"); }); modelBuilder.Entity("Netina.Domain.Entities.Products.Specification", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("uuid"); b.Property("CreatedAt") .HasColumnType("timestamp without time zone"); b.Property("CreatedBy") .IsRequired() .HasColumnType("text"); b.Property("Detail") .IsRequired() .HasColumnType("text"); b.Property("IsFeature") .HasColumnType("boolean"); b.Property("IsRemoved") .HasColumnType("boolean"); b.Property("ModifiedAt") .HasColumnType("timestamp without time zone"); b.Property("ModifiedBy") .IsRequired() .HasColumnType("text"); b.Property("ParentId") .HasColumnType("uuid"); b.Property("ProductId") .HasColumnType("uuid"); b.Property("RemovedAt") .HasColumnType("timestamp without time zone"); b.Property("RemovedBy") .IsRequired() .HasColumnType("text"); b.Property("Title") .IsRequired() .HasColumnType("text"); b.Property("Value") .IsRequired() .HasColumnType("text"); b.HasKey("Id"); b.HasIndex("ParentId"); b.HasIndex("ProductId"); b.ToTable("Specifications", "public"); }); modelBuilder.Entity("Netina.Domain.Entities.Seo.MetaTag", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("uuid"); b.Property("CreatedAt") .HasColumnType("timestamp without time zone"); b.Property("CreatedBy") .IsRequired() .HasColumnType("text"); b.Property("Discriminator") .IsRequired() .HasMaxLength(34) .HasColumnType("character varying(34)"); b.Property("IsRemoved") .HasColumnType("boolean"); b.Property("ModifiedAt") .HasColumnType("timestamp without time zone"); b.Property("ModifiedBy") .IsRequired() .HasColumnType("text"); b.Property("RemovedAt") .HasColumnType("timestamp without time zone"); b.Property("RemovedBy") .IsRequired() .HasColumnType("text"); b.Property("Type") .IsRequired() .HasColumnType("text"); b.Property("Value") .IsRequired() .HasColumnType("text"); b.HasKey("Id"); b.ToTable("MetaTags", "public"); b.HasDiscriminator().HasValue("MetaTag"); b.UseTphMappingStrategy(); }); modelBuilder.Entity("Netina.Domain.Entities.StorageFiles.StorageFile", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("uuid"); b.Property("CreatedAt") .HasColumnType("timestamp without time zone"); b.Property("CreatedBy") .IsRequired() .HasColumnType("text"); b.Property("Discriminator") .IsRequired() .HasMaxLength(34) .HasColumnType("character varying(34)"); b.Property("FileLocation") .IsRequired() .HasColumnType("text"); b.Property("FileName") .IsRequired() .HasColumnType("text"); b.Property("FileType") .HasColumnType("integer"); b.Property("IsHeader") .HasColumnType("boolean"); b.Property("IsPrimary") .HasColumnType("boolean"); b.Property("IsRemoved") .HasColumnType("boolean"); b.Property("ModifiedAt") .HasColumnType("timestamp without time zone"); b.Property("ModifiedBy") .IsRequired() .HasColumnType("text"); b.Property("Name") .IsRequired() .HasColumnType("text"); b.Property("RemovedAt") .HasColumnType("timestamp without time zone"); b.Property("RemovedBy") .IsRequired() .HasColumnType("text"); b.HasKey("Id"); b.ToTable("StorageFiles", "public"); b.HasDiscriminator().HasValue("StorageFile"); b.UseTphMappingStrategy(); }); modelBuilder.Entity("Netina.Domain.Entities.Users.ApplicationRole", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("uuid"); b.Property("ConcurrencyStamp") .IsConcurrencyToken() .HasColumnType("text"); b.Property("Description") .IsRequired() .HasColumnType("text"); b.Property("EnglishName") .IsRequired() .HasColumnType("text"); b.Property("Name") .HasMaxLength(256) .HasColumnType("character varying(256)"); b.Property("NormalizedName") .HasMaxLength(256) .HasColumnType("character varying(256)"); b.Property("PersianName") .IsRequired() .HasColumnType("text"); b.HasKey("Id"); b.HasIndex("NormalizedName") .IsUnique() .HasDatabaseName("RoleNameIndex"); b.ToTable("Roles", "public"); }); modelBuilder.Entity("Netina.Domain.Entities.Users.ApplicationUser", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("uuid"); b.Property("AccessFailedCount") .HasColumnType("integer"); b.Property("BirthDate") .HasColumnType("timestamp without time zone"); b.Property("ConcurrencyStamp") .IsConcurrencyToken() .HasColumnType("text"); b.Property("Email") .HasMaxLength(256) .HasColumnType("character varying(256)"); b.Property("EmailConfirmed") .HasColumnType("boolean"); b.Property("FirstName") .IsRequired() .HasColumnType("text"); b.Property("Gender") .HasColumnType("integer"); b.Property("LastName") .IsRequired() .HasColumnType("text"); b.Property("LockoutEnabled") .HasColumnType("boolean"); b.Property("LockoutEnd") .HasColumnType("timestamp with time zone"); b.Property("NationalId") .IsRequired() .HasColumnType("text"); b.Property("NormalizedEmail") .HasMaxLength(256) .HasColumnType("character varying(256)"); b.Property("NormalizedUserName") .HasMaxLength(256) .HasColumnType("character varying(256)"); b.Property("PasswordHash") .HasColumnType("text"); b.Property("PhoneNumber") .HasColumnType("text"); b.Property("PhoneNumberConfirmed") .HasColumnType("boolean"); b.Property("SecurityStamp") .HasColumnType("text"); b.Property("SignUpStatus") .HasColumnType("integer"); b.Property("TwoFactorEnabled") .HasColumnType("boolean"); b.Property("UserName") .HasMaxLength(256) .HasColumnType("character varying(256)"); b.HasKey("Id"); b.HasIndex("NormalizedEmail") .HasDatabaseName("EmailIndex"); b.HasIndex("NormalizedUserName") .IsUnique() .HasDatabaseName("UserNameIndex"); b.ToTable("Users", "public"); }); modelBuilder.Entity("Netina.Domain.Entities.Users.Customer", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("uuid"); b.Property("CreatedAt") .HasColumnType("timestamp without time zone"); b.Property("CreatedBy") .IsRequired() .HasColumnType("text"); b.Property("IsRemoved") .HasColumnType("boolean"); b.Property("ModifiedAt") .HasColumnType("timestamp without time zone"); b.Property("ModifiedBy") .IsRequired() .HasColumnType("text"); b.Property("RemovedAt") .HasColumnType("timestamp without time zone"); b.Property("RemovedBy") .IsRequired() .HasColumnType("text"); b.Property("UserId") .HasColumnType("uuid"); b.HasKey("Id"); b.HasIndex("UserId") .IsUnique(); b.ToTable("Customers", "public"); }); modelBuilder.Entity("Netina.Domain.Entities.Users.Manager", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("uuid"); b.Property("CreatedAt") .HasColumnType("timestamp without time zone"); b.Property("CreatedBy") .IsRequired() .HasColumnType("text"); b.Property("IsRemoved") .HasColumnType("boolean"); b.Property("LatestVersionUsed") .HasColumnType("double precision"); b.Property("ModifiedAt") .HasColumnType("timestamp without time zone"); b.Property("ModifiedBy") .IsRequired() .HasColumnType("text"); b.Property("RemovedAt") .HasColumnType("timestamp without time zone"); b.Property("RemovedBy") .IsRequired() .HasColumnType("text"); b.Property("UserId") .HasColumnType("uuid"); b.HasKey("Id"); b.HasIndex("UserId") .IsUnique(); b.ToTable("Managers", "public"); }); modelBuilder.Entity("Netina.Domain.Entities.Users.Marketer", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("uuid"); b.Property("CreatedAt") .HasColumnType("timestamp without time zone"); b.Property("CreatedBy") .IsRequired() .HasColumnType("text"); b.Property("FatherName") .IsRequired() .HasColumnType("text"); b.Property("IsRemoved") .HasColumnType("boolean"); b.Property("LastSettlement") .HasColumnType("timestamp without time zone"); b.Property("ModifiedAt") .HasColumnType("timestamp without time zone"); b.Property("ModifiedBy") .IsRequired() .HasColumnType("text"); b.Property("RemovedAt") .HasColumnType("timestamp without time zone"); b.Property("RemovedBy") .IsRequired() .HasColumnType("text"); b.Property("Shaba") .IsRequired() .HasColumnType("text"); b.Property("UserId") .HasColumnType("uuid"); b.HasKey("Id"); b.HasIndex("UserId") .IsUnique(); b.ToTable("Marketers", "public"); }); modelBuilder.Entity("Netina.Domain.Entities.Users.NewsletterMember", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("uuid"); b.Property("CreatedAt") .HasColumnType("timestamp without time zone"); b.Property("CreatedBy") .IsRequired() .HasColumnType("text"); b.Property("Email") .IsRequired() .HasColumnType("text"); b.Property("IsRemoved") .HasColumnType("boolean"); b.Property("ModifiedAt") .HasColumnType("timestamp without time zone"); b.Property("ModifiedBy") .IsRequired() .HasColumnType("text"); b.Property("PhoneNumber") .IsRequired() .HasColumnType("text"); b.Property("RemovedAt") .HasColumnType("timestamp without time zone"); b.Property("RemovedBy") .IsRequired() .HasColumnType("text"); b.HasKey("Id"); b.ToTable("NewsletterMembers", "public"); }); modelBuilder.Entity("Netina.Domain.Entities.Users.UserAddress", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("uuid"); b.Property("Address") .IsRequired() .HasColumnType("text"); b.Property("BuildingUnit") .IsRequired() .HasColumnType("text"); b.Property("City") .IsRequired() .HasColumnType("text"); b.Property("CreatedAt") .HasColumnType("timestamp without time zone"); b.Property("CreatedBy") .IsRequired() .HasColumnType("text"); b.Property("IsRemoved") .HasColumnType("boolean"); b.Property("LocationLat") .HasColumnType("real"); b.Property("LocationLong") .HasColumnType("real"); b.Property("ModifiedAt") .HasColumnType("timestamp without time zone"); b.Property("ModifiedBy") .IsRequired() .HasColumnType("text"); b.Property("Plaque") .IsRequired() .HasColumnType("text"); b.Property("PostalCode") .IsRequired() .HasColumnType("text"); b.Property("Province") .IsRequired() .HasColumnType("text"); b.Property("ReceiverFullName") .IsRequired() .HasColumnType("text"); b.Property("ReceiverPhoneNumber") .IsRequired() .HasColumnType("text"); b.Property("RemovedAt") .HasColumnType("timestamp without time zone"); b.Property("RemovedBy") .IsRequired() .HasColumnType("text"); b.Property("UserId") .HasColumnType("uuid"); b.HasKey("Id"); b.HasIndex("UserId"); b.ToTable("UserAddresses", "public"); }); modelBuilder.Entity("Netina.Domain.Entities.Users.UserFavoriteProduct", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("uuid"); b.Property("CreatedAt") .HasColumnType("timestamp without time zone"); b.Property("CreatedBy") .IsRequired() .HasColumnType("text"); b.Property("IsRemoved") .HasColumnType("boolean"); b.Property("ModifiedAt") .HasColumnType("timestamp without time zone"); b.Property("ModifiedBy") .IsRequired() .HasColumnType("text"); b.Property("ProductId") .HasColumnType("uuid"); b.Property("RemovedAt") .HasColumnType("timestamp without time zone"); b.Property("RemovedBy") .IsRequired() .HasColumnType("text"); b.Property("UserId") .HasColumnType("uuid"); b.HasKey("Id"); b.HasIndex("ProductId"); b.HasIndex("UserId"); b.ToTable("UserFavoriteProducts", "public"); }); modelBuilder.Entity("Netina.Domain.Entities.Warehouses.Shipping", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("uuid"); b.Property("CreatedAt") .HasColumnType("timestamp without time zone"); b.Property("CreatedBy") .IsRequired() .HasColumnType("text"); b.Property("DeliveryCost") .HasColumnType("double precision"); b.Property("IsExpressShipping") .HasColumnType("boolean"); b.Property("IsOriginalWarehouse") .HasColumnType("boolean"); b.Property("IsRemoved") .HasColumnType("boolean"); b.Property("IsShipBySeller") .HasColumnType("boolean"); b.Property("ModifiedAt") .HasColumnType("timestamp without time zone"); b.Property("ModifiedBy") .IsRequired() .HasColumnType("text"); b.Property("Name") .IsRequired() .HasColumnType("text"); b.Property("RemovedAt") .HasColumnType("timestamp without time zone"); b.Property("RemovedBy") .IsRequired() .HasColumnType("text"); b.Property("WarehouseName") .IsRequired() .HasColumnType("text"); b.Property("WorkingDays") .HasColumnType("integer"); b.HasKey("Id"); b.ToTable("Shippings", "public"); }); modelBuilder.Entity("Netina.Domain.Entities.Blogs.BlogComment", b => { b.HasBaseType("Netina.Domain.Entities.Comments.Comment"); b.Property("BlogId") .HasColumnType("uuid"); b.HasIndex("BlogId"); b.HasDiscriminator().HasValue("BlogComment"); }); modelBuilder.Entity("Netina.Domain.Entities.Products.ProductComment", b => { b.HasBaseType("Netina.Domain.Entities.Comments.Comment"); b.Property("IsBuyer") .HasColumnType("boolean"); b.Property("ProductId") .HasColumnType("uuid"); b.HasIndex("ProductId"); b.HasDiscriminator().HasValue("ProductComment"); }); modelBuilder.Entity("Netina.Domain.Entities.Discounts.CategoryDiscount", b => { b.HasBaseType("Netina.Domain.Entities.Discounts.Discount"); b.Property("CategoryId") .HasColumnType("uuid"); b.HasIndex("CategoryId"); b.HasDiscriminator().HasValue("CategoryDiscount"); }); modelBuilder.Entity("Netina.Domain.Entities.Discounts.ProductDiscount", b => { b.HasBaseType("Netina.Domain.Entities.Discounts.Discount"); b.Property("ProductId") .HasColumnType("uuid"); b.HasIndex("ProductId"); b.HasDiscriminator().HasValue("ProductDiscount"); }); modelBuilder.Entity("Netina.Domain.Entities.Blogs.BlogMetaTag", b => { b.HasBaseType("Netina.Domain.Entities.Seo.MetaTag"); b.Property("BlogId") .HasColumnType("uuid"); b.HasIndex("BlogId"); b.HasDiscriminator().HasValue("BlogMetaTag"); }); modelBuilder.Entity("Netina.Domain.Entities.Brands.BrandMetaTag", b => { b.HasBaseType("Netina.Domain.Entities.Seo.MetaTag"); b.Property("BrandId") .HasColumnType("uuid"); b.HasIndex("BrandId"); b.HasDiscriminator().HasValue("BrandMetaTag"); }); modelBuilder.Entity("Netina.Domain.Entities.ProductCategories.ProductCategoryMetaTag", b => { b.HasBaseType("Netina.Domain.Entities.Seo.MetaTag"); b.Property("ProductCategoryId") .HasColumnType("uuid"); b.HasIndex("ProductCategoryId"); b.HasDiscriminator().HasValue("ProductCategoryMetaTag"); }); modelBuilder.Entity("Netina.Domain.Entities.Products.ProductMetaTag", b => { b.HasBaseType("Netina.Domain.Entities.Seo.MetaTag"); b.Property("ProductId") .HasColumnType("uuid"); b.HasIndex("ProductId"); b.HasDiscriminator().HasValue("ProductMetaTag"); }); modelBuilder.Entity("Netina.Domain.Entities.Blogs.BlogStorageFile", b => { b.HasBaseType("Netina.Domain.Entities.StorageFiles.StorageFile"); b.Property("BlogId") .HasColumnType("uuid"); b.HasIndex("BlogId"); b.HasDiscriminator().HasValue("BlogStorageFile"); }); modelBuilder.Entity("Netina.Domain.Entities.Brands.BrandStorageFile", b => { b.HasBaseType("Netina.Domain.Entities.StorageFiles.StorageFile"); b.Property("BrandId") .HasColumnType("uuid"); b.HasIndex("BrandId"); b.HasDiscriminator().HasValue("BrandStorageFile"); }); modelBuilder.Entity("Netina.Domain.Entities.ProductCategories.ProductCategoryStorageFile", b => { b.HasBaseType("Netina.Domain.Entities.StorageFiles.StorageFile"); b.Property("CategoryId") .HasColumnType("uuid"); b.HasIndex("CategoryId"); b.HasDiscriminator().HasValue("ProductCategoryStorageFile"); }); modelBuilder.Entity("Netina.Domain.Entities.Products.ProductStorageFile", b => { b.HasBaseType("Netina.Domain.Entities.StorageFiles.StorageFile"); b.Property("ProductId") .HasColumnType("uuid"); b.HasIndex("ProductId"); b.HasDiscriminator().HasValue("ProductStorageFile"); }); modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRoleClaim", b => { b.HasOne("Netina.Domain.Entities.Users.ApplicationRole", null) .WithMany() .HasForeignKey("RoleId") .OnDelete(DeleteBehavior.Restrict); }); modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserClaim", b => { b.HasOne("Netina.Domain.Entities.Users.ApplicationUser", null) .WithMany() .HasForeignKey("UserId") .OnDelete(DeleteBehavior.Restrict); }); modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserLogin", b => { b.HasOne("Netina.Domain.Entities.Users.ApplicationUser", null) .WithMany() .HasForeignKey("UserId") .OnDelete(DeleteBehavior.Restrict); }); modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserRole", b => { b.HasOne("Netina.Domain.Entities.Users.ApplicationRole", null) .WithMany() .HasForeignKey("RoleId") .OnDelete(DeleteBehavior.Restrict); b.HasOne("Netina.Domain.Entities.Users.ApplicationUser", null) .WithMany() .HasForeignKey("UserId") .OnDelete(DeleteBehavior.Restrict); }); modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserToken", b => { b.HasOne("Netina.Domain.Entities.Users.ApplicationUser", null) .WithMany() .HasForeignKey("UserId") .OnDelete(DeleteBehavior.Restrict); }); modelBuilder.Entity("Netina.Domain.Entities.Accounting.Payment", b => { b.HasOne("Netina.Domain.Entities.Users.Customer", "Customer") .WithMany() .HasForeignKey("CustomerId") .OnDelete(DeleteBehavior.Restrict); b.HasOne("Netina.Domain.Entities.Orders.Order", "Order") .WithMany("Payments") .HasForeignKey("OrderId") .OnDelete(DeleteBehavior.Restrict); b.Navigation("Customer"); b.Navigation("Order"); }); modelBuilder.Entity("Netina.Domain.Entities.Blogs.Blog", b => { b.HasOne("Netina.Domain.Entities.Users.ApplicationUser", "Author") .WithMany() .HasForeignKey("AuthorId") .OnDelete(DeleteBehavior.Restrict); b.HasOne("Netina.Domain.Entities.Blogs.BlogCategory", "Category") .WithMany("Blogs") .HasForeignKey("CategoryId") .OnDelete(DeleteBehavior.Restrict); b.Navigation("Author"); b.Navigation("Category"); }); modelBuilder.Entity("Netina.Domain.Entities.Blogs.BlogCategory", b => { b.HasOne("Netina.Domain.Entities.Blogs.BlogCategory", "Parent") .WithMany() .HasForeignKey("ParentId"); b.Navigation("Parent"); }); modelBuilder.Entity("Netina.Domain.Entities.Comments.Comment", b => { b.HasOne("Netina.Domain.Entities.Comments.Comment", "Parent") .WithMany("Children") .HasForeignKey("ParentId"); b.HasOne("Netina.Domain.Entities.Users.ApplicationUser", "User") .WithMany() .HasForeignKey("UserId") .OnDelete(DeleteBehavior.Restrict); b.Navigation("Parent"); b.Navigation("User"); }); modelBuilder.Entity("Netina.Domain.Entities.Discounts.Discount", b => { b.HasOne("Netina.Domain.Entities.Users.Marketer", "Marketer") .WithOne("Discount") .HasForeignKey("Netina.Domain.Entities.Discounts.Discount", "MarketerId"); b.Navigation("Marketer"); }); modelBuilder.Entity("Netina.Domain.Entities.Orders.Order", b => { b.HasOne("Netina.Domain.Entities.Users.Customer", "Customer") .WithMany() .HasForeignKey("CustomerId") .OnDelete(DeleteBehavior.Restrict); b.HasOne("Netina.Domain.Entities.Discounts.Discount", null) .WithMany("Orders") .HasForeignKey("DiscountId"); b.Navigation("Customer"); }); modelBuilder.Entity("Netina.Domain.Entities.Orders.OrderDelivery", b => { b.HasOne("Netina.Domain.Entities.Users.UserAddress", "Address") .WithMany() .HasForeignKey("AddressId") .OnDelete(DeleteBehavior.Restrict); b.HasOne("Netina.Domain.Entities.Orders.Order", "Order") .WithOne("OrderDelivery") .HasForeignKey("Netina.Domain.Entities.Orders.OrderDelivery", "OrderId") .OnDelete(DeleteBehavior.Restrict); b.HasOne("Netina.Domain.Entities.Warehouses.Shipping", "Shipping") .WithMany() .HasForeignKey("ShippingId") .OnDelete(DeleteBehavior.Restrict); b.Navigation("Address"); b.Navigation("Order"); b.Navigation("Shipping"); }); modelBuilder.Entity("Netina.Domain.Entities.Orders.OrderProduct", b => { b.HasOne("Netina.Domain.Entities.Orders.Order", "Order") .WithMany("OrderProducts") .HasForeignKey("OrderId") .OnDelete(DeleteBehavior.Restrict); b.HasOne("Netina.Domain.Entities.Products.Product", "Product") .WithMany("OrderProducts") .HasForeignKey("ProductId") .OnDelete(DeleteBehavior.Restrict); b.Navigation("Order"); b.Navigation("Product"); }); modelBuilder.Entity("Netina.Domain.Entities.ProductCategories.ProductCategory", b => { b.HasOne("Netina.Domain.Entities.ProductCategories.ProductCategory", "Parent") .WithMany() .HasForeignKey("ParentId"); b.Navigation("Parent"); }); modelBuilder.Entity("Netina.Domain.Entities.Products.Product", b => { b.HasOne("Netina.Domain.Entities.Users.ApplicationUser", "Author") .WithMany() .HasForeignKey("AuthorId") .OnDelete(DeleteBehavior.Restrict); b.HasOne("Netina.Domain.Entities.Brands.Brand", "Brand") .WithMany("Products") .HasForeignKey("BrandId") .OnDelete(DeleteBehavior.Restrict); b.HasOne("Netina.Domain.Entities.ProductCategories.ProductCategory", "Category") .WithMany("Products") .HasForeignKey("CategoryId") .OnDelete(DeleteBehavior.Restrict); b.Navigation("Author"); b.Navigation("Brand"); b.Navigation("Category"); }); modelBuilder.Entity("Netina.Domain.Entities.Products.Specification", b => { b.HasOne("Netina.Domain.Entities.Products.Specification", "Parent") .WithMany("Children") .HasForeignKey("ParentId"); b.HasOne("Netina.Domain.Entities.Products.Product", "Product") .WithMany("Specifications") .HasForeignKey("ProductId") .OnDelete(DeleteBehavior.Restrict); b.Navigation("Parent"); b.Navigation("Product"); }); modelBuilder.Entity("Netina.Domain.Entities.Users.Customer", b => { b.HasOne("Netina.Domain.Entities.Users.ApplicationUser", "User") .WithOne("Customer") .HasForeignKey("Netina.Domain.Entities.Users.Customer", "UserId") .OnDelete(DeleteBehavior.Restrict); b.Navigation("User"); }); modelBuilder.Entity("Netina.Domain.Entities.Users.Manager", b => { b.HasOne("Netina.Domain.Entities.Users.ApplicationUser", "User") .WithOne("Manager") .HasForeignKey("Netina.Domain.Entities.Users.Manager", "UserId") .OnDelete(DeleteBehavior.Restrict); b.Navigation("User"); }); modelBuilder.Entity("Netina.Domain.Entities.Users.Marketer", b => { b.HasOne("Netina.Domain.Entities.Users.ApplicationUser", "User") .WithOne("Marketer") .HasForeignKey("Netina.Domain.Entities.Users.Marketer", "UserId") .OnDelete(DeleteBehavior.Restrict); b.Navigation("User"); }); modelBuilder.Entity("Netina.Domain.Entities.Users.UserAddress", b => { b.HasOne("Netina.Domain.Entities.Users.ApplicationUser", "User") .WithMany("Addresses") .HasForeignKey("UserId") .OnDelete(DeleteBehavior.Restrict); b.Navigation("User"); }); modelBuilder.Entity("Netina.Domain.Entities.Users.UserFavoriteProduct", b => { b.HasOne("Netina.Domain.Entities.Products.Product", "Product") .WithMany() .HasForeignKey("ProductId") .OnDelete(DeleteBehavior.Restrict); b.HasOne("Netina.Domain.Entities.Users.ApplicationUser", "User") .WithMany() .HasForeignKey("UserId") .OnDelete(DeleteBehavior.Restrict); b.Navigation("Product"); b.Navigation("User"); }); modelBuilder.Entity("Netina.Domain.Entities.Blogs.BlogComment", b => { b.HasOne("Netina.Domain.Entities.Blogs.Blog", "Blog") .WithMany() .HasForeignKey("BlogId") .OnDelete(DeleteBehavior.Restrict); b.Navigation("Blog"); }); modelBuilder.Entity("Netina.Domain.Entities.Products.ProductComment", b => { b.HasOne("Netina.Domain.Entities.Products.Product", "Product") .WithMany("Comments") .HasForeignKey("ProductId") .OnDelete(DeleteBehavior.Restrict); b.Navigation("Product"); }); modelBuilder.Entity("Netina.Domain.Entities.Discounts.CategoryDiscount", b => { b.HasOne("Netina.Domain.Entities.ProductCategories.ProductCategory", "Category") .WithMany() .HasForeignKey("CategoryId") .OnDelete(DeleteBehavior.Restrict); b.Navigation("Category"); }); modelBuilder.Entity("Netina.Domain.Entities.Discounts.ProductDiscount", b => { b.HasOne("Netina.Domain.Entities.Products.Product", "Product") .WithMany() .HasForeignKey("ProductId") .OnDelete(DeleteBehavior.Restrict); b.Navigation("Product"); }); modelBuilder.Entity("Netina.Domain.Entities.Blogs.BlogMetaTag", b => { b.HasOne("Netina.Domain.Entities.Blogs.Blog", "Brand") .WithMany("MetaTags") .HasForeignKey("BlogId") .OnDelete(DeleteBehavior.Restrict); b.Navigation("Brand"); }); modelBuilder.Entity("Netina.Domain.Entities.Brands.BrandMetaTag", b => { b.HasOne("Netina.Domain.Entities.Brands.Brand", "Brand") .WithMany("MetaTags") .HasForeignKey("BrandId") .OnDelete(DeleteBehavior.Restrict); b.Navigation("Brand"); }); modelBuilder.Entity("Netina.Domain.Entities.ProductCategories.ProductCategoryMetaTag", b => { b.HasOne("Netina.Domain.Entities.ProductCategories.ProductCategory", "ProductCategory") .WithMany("MetaTags") .HasForeignKey("ProductCategoryId") .OnDelete(DeleteBehavior.Restrict); b.Navigation("ProductCategory"); }); modelBuilder.Entity("Netina.Domain.Entities.Products.ProductMetaTag", b => { b.HasOne("Netina.Domain.Entities.Products.Product", "Product") .WithMany("MetaTags") .HasForeignKey("ProductId") .OnDelete(DeleteBehavior.Restrict); b.Navigation("Product"); }); modelBuilder.Entity("Netina.Domain.Entities.Blogs.BlogStorageFile", b => { b.HasOne("Netina.Domain.Entities.Blogs.Blog", "Blog") .WithMany("Files") .HasForeignKey("BlogId") .OnDelete(DeleteBehavior.Restrict); b.Navigation("Blog"); }); modelBuilder.Entity("Netina.Domain.Entities.Brands.BrandStorageFile", b => { b.HasOne("Netina.Domain.Entities.Brands.Brand", "Brand") .WithMany("Files") .HasForeignKey("BrandId") .OnDelete(DeleteBehavior.Restrict); b.Navigation("Brand"); }); modelBuilder.Entity("Netina.Domain.Entities.ProductCategories.ProductCategoryStorageFile", b => { b.HasOne("Netina.Domain.Entities.ProductCategories.ProductCategory", "Category") .WithMany("Files") .HasForeignKey("CategoryId") .OnDelete(DeleteBehavior.Restrict); b.Navigation("Category"); }); modelBuilder.Entity("Netina.Domain.Entities.Products.ProductStorageFile", b => { b.HasOne("Netina.Domain.Entities.Products.Product", "Product") .WithMany("Files") .HasForeignKey("ProductId") .OnDelete(DeleteBehavior.Restrict); b.Navigation("Product"); }); modelBuilder.Entity("Netina.Domain.Entities.Blogs.Blog", b => { b.Navigation("Files"); b.Navigation("MetaTags"); }); modelBuilder.Entity("Netina.Domain.Entities.Blogs.BlogCategory", b => { b.Navigation("Blogs"); }); modelBuilder.Entity("Netina.Domain.Entities.Brands.Brand", b => { b.Navigation("Files"); b.Navigation("MetaTags"); b.Navigation("Products"); }); modelBuilder.Entity("Netina.Domain.Entities.Comments.Comment", b => { b.Navigation("Children"); }); modelBuilder.Entity("Netina.Domain.Entities.Discounts.Discount", b => { b.Navigation("Orders"); }); modelBuilder.Entity("Netina.Domain.Entities.Orders.Order", b => { b.Navigation("OrderDelivery"); b.Navigation("OrderProducts"); b.Navigation("Payments"); }); modelBuilder.Entity("Netina.Domain.Entities.ProductCategories.ProductCategory", b => { b.Navigation("Files"); b.Navigation("MetaTags"); b.Navigation("Products"); }); modelBuilder.Entity("Netina.Domain.Entities.Products.Product", b => { b.Navigation("Comments"); b.Navigation("Files"); b.Navigation("MetaTags"); b.Navigation("OrderProducts"); b.Navigation("Specifications"); }); modelBuilder.Entity("Netina.Domain.Entities.Products.Specification", b => { b.Navigation("Children"); }); modelBuilder.Entity("Netina.Domain.Entities.Users.ApplicationUser", b => { b.Navigation("Addresses"); b.Navigation("Customer"); b.Navigation("Manager"); b.Navigation("Marketer"); }); modelBuilder.Entity("Netina.Domain.Entities.Users.Marketer", b => { b.Navigation("Discount"); }); #pragma warning restore 612, 618 } } }