//
using System;
using System.Collections.Generic;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Migrations;
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata;
using vendorApproverBackend.Data;
using vendorApproverBackend.Entities;
#nullable disable
namespace vendorApproverBackend.Migrations
{
[DbContext(typeof(DataContext))]
[Migration("20260414140700_UpdateRenewRequestAddCommentAtt")]
partial class UpdateRenewRequestAddCommentAtt
{
///
protected override void BuildTargetModel(ModelBuilder modelBuilder)
{
#pragma warning disable 612, 618
modelBuilder
.HasAnnotation("ProductVersion", "9.0.9")
.HasAnnotation("Relational:MaxIdentifierLength", 63);
NpgsqlModelBuilderExtensions.UseIdentityByDefaultColumns(modelBuilder);
modelBuilder.Entity("ApplicationCategoryUser", b =>
{
b.Property("CategoriesId")
.HasColumnType("bigint");
b.Property("UserId")
.HasColumnType("bigint");
b.HasKey("CategoriesId", "UserId");
b.HasIndex("UserId");
b.ToTable("UserApplicationCategories", (string)null);
});
modelBuilder.Entity("AssessmentReport", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("bigint");
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id"));
b.Property("CreatedById")
.HasColumnType("bigint");
b.Property("Grade")
.HasColumnType("text");
b.Property("PrequalificationRequestId")
.HasColumnType("bigint");
b.Property("Timestamp")
.HasColumnType("timestamp without time zone")
.HasColumnName("timestmp");
b.Property("TotalMarks")
.HasColumnType("double precision");
b.Property("passed")
.HasColumnType("boolean");
b.HasKey("Id");
b.HasIndex("CreatedById");
b.HasIndex("PrequalificationRequestId")
.IsUnique();
b.ToTable("AssessmentReports");
});
modelBuilder.Entity("DegreeUser", b =>
{
b.Property("DegreesId")
.HasColumnType("bigint");
b.Property("UserId")
.HasColumnType("bigint");
b.HasKey("DegreesId", "UserId");
b.HasIndex("UserId");
b.ToTable("UserDegrees", (string)null);
});
modelBuilder.Entity("EmployeeCertificationUser", b =>
{
b.Property("CertificationsId")
.HasColumnType("bigint");
b.Property("UserId")
.HasColumnType("bigint");
b.HasKey("CertificationsId", "UserId");
b.HasIndex("UserId");
b.ToTable("UserCertifications", (string)null);
});
modelBuilder.Entity("FileModelVendorResponse", b =>
{
b.Property("DocumentsId")
.HasColumnType("bigint");
b.Property("VendorResponseId")
.HasColumnType("bigint");
b.HasKey("DocumentsId", "VendorResponseId");
b.HasIndex("VendorResponseId");
b.ToTable("vendor_response_files", (string)null);
});
modelBuilder.Entity("PrequalificationRequestUser", b =>
{
b.Property("InspectedPrequalificationRequestsId")
.HasColumnType("bigint");
b.Property("InspectorsId")
.HasColumnType("bigint");
b.HasKey("InspectedPrequalificationRequestsId", "InspectorsId");
b.HasIndex("InspectorsId");
b.ToTable("PqRequestInspector", (string)null);
});
modelBuilder.Entity("UserWorkExperience", b =>
{
b.Property("UserId")
.HasColumnType("bigint");
b.Property("WorkExperiencesId")
.HasColumnType("bigint");
b.HasKey("UserId", "WorkExperiencesId");
b.HasIndex("WorkExperiencesId");
b.ToTable("UserWorkExperiences", (string)null);
});
modelBuilder.Entity("vendorApproverBackend.Entities.ApplicationCategory", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("bigint");
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id"));
b.Property("EmployeeApplicationId")
.HasColumnType("bigint");
b.Property("Name")
.IsRequired()
.HasMaxLength(255)
.HasColumnType("character varying(255)");
b.Property("NameAr")
.IsRequired()
.HasMaxLength(255)
.HasColumnType("character varying(255)");
b.Property("Timestamp")
.HasColumnType("timestamp without time zone");
b.HasKey("Id");
b.HasIndex("EmployeeApplicationId");
b.ToTable("ApplicationCategories");
});
modelBuilder.Entity("vendorApproverBackend.Entities.Category", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("bigint");
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id"));
b.Property("ApplicationCategoryId")
.HasColumnType("bigint");
b.Property("Label")
.IsRequired()
.HasMaxLength(255)
.HasColumnType("character varying(255)");
b.Property("LabelAr")
.IsRequired()
.HasMaxLength(255)
.HasColumnType("character varying(255)");
b.HasKey("Id");
b.HasIndex("ApplicationCategoryId");
b.ToTable("Categories");
});
modelBuilder.Entity("vendorApproverBackend.Entities.Certification", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("bigint")
.HasColumnName("id");
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id"));
b.Property("CertificationNumber")
.IsRequired()
.HasColumnType("text")
.HasColumnName("certification_number");
b.Property("CertificationType")
.IsRequired()
.HasColumnType("text")
.HasColumnName("certification_type");
b.Property("ExpiryDate")
.HasColumnType("timestamp without time zone")
.HasColumnName("expiry_date");
b.Property("IssueDate")
.HasColumnType("timestamp without time zone")
.HasColumnName("issue_date");
b.Property("PrequalificationRequestId")
.HasColumnType("bigint")
.HasColumnName("prequalification_request_id");
b.Property("RequiresReinspection")
.HasColumnType("boolean")
.HasColumnName("requires_reinspection");
b.Property("Status")
.HasColumnType("integer")
.HasColumnName("status");
b.Property("SupplierId")
.HasColumnType("bigint")
.HasColumnName("supplier_id");
b.Property("SupplierName")
.IsRequired()
.HasColumnType("text")
.HasColumnName("supplier_name");
b.Property("Timestamp")
.HasColumnType("timestamp without time zone")
.HasColumnName("timestmp");
b.Property("VerifiedById")
.HasColumnType("bigint")
.HasColumnName("verified_by_user_id");
b.HasKey("Id");
b.HasIndex("PrequalificationRequestId")
.IsUnique();
b.HasIndex("VerifiedById");
b.ToTable("certifications");
});
modelBuilder.Entity("vendorApproverBackend.Entities.CertificationPack", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("bigint");
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id"));
b.Property("Description")
.IsRequired()
.HasColumnType("TEXT");
b.Property("Name")
.IsRequired()
.HasMaxLength(255)
.HasColumnType("character varying(255)");
b.Property("Price")
.HasColumnType("double precision")
.HasColumnName("price");
b.Property("Timestamp")
.HasColumnType("timestamp without time zone");
b.HasKey("Id");
b.ToTable("CertificationPacks");
});
modelBuilder.Entity("vendorApproverBackend.Entities.Degree", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("bigint");
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id"));
b.Property("FileId")
.HasColumnType("bigint")
.HasColumnName("file_id");
b.Property("Institution")
.IsRequired()
.HasMaxLength(255)
.HasColumnType("character varying(255)");
b.Property("Year")
.HasColumnType("integer")
.HasColumnName("completion_year");
b.HasKey("Id");
b.ToTable("Degrees");
});
modelBuilder.Entity("vendorApproverBackend.Entities.EmployeeApplication", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("bigint")
.HasColumnName("id");
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id"));
b.Property("Category")
.HasColumnType("integer")
.HasColumnName("Category");
b.PrimitiveCollection>("CertificationIds")
.IsRequired()
.HasColumnType("bigint[]")
.HasColumnName("certification_ids");
b.Property("Experience")
.HasColumnType("integer")
.HasColumnName("experience");
b.Property("Qualifications")
.HasColumnType("text")
.HasColumnName("qualifications");
b.Property("Reason")
.HasColumnType("text")
.HasColumnName("reason");
b.Property("Status")
.HasColumnType("integer")
.HasColumnName("status");
b.Property("SubmissionDate")
.HasColumnType("timestamp without time zone")
.HasColumnName("submission_date");
b.Property("Type")
.HasColumnType("integer")
.HasColumnName("type");
b.Property("UserId")
.HasColumnType("bigint")
.HasColumnName("user_id");
b.HasKey("Id");
b.HasIndex("UserId");
b.ToTable("employee_applications");
});
modelBuilder.Entity("vendorApproverBackend.Entities.EmployeeCertification", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("bigint");
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id"));
b.Property("FileId")
.HasColumnType("bigint")
.HasColumnName("file_id");
b.Property("Name")
.IsRequired()
.HasMaxLength(255)
.HasColumnType("character varying(255)");
b.HasKey("Id");
b.ToTable("EmployeeCertifications");
});
modelBuilder.Entity("vendorApproverBackend.Entities.EvaluationData", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("bigint")
.HasColumnName("id");
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id"));
b.Property("EvaluatedBy")
.IsRequired()
.HasColumnType("text")
.HasColumnName("evaluated_by");
b.Property("EvaluationDate")
.IsRequired()
.HasColumnType("text")
.HasColumnName("evaluation_date");
b.Property("RequestRenewId")
.HasColumnType("bigint")
.HasColumnName("request_renew_id");
b.Property("Status")
.HasColumnType("integer")
.HasColumnName("status");
b.Property("Timestamp")
.HasColumnType("timestamp without time zone")
.HasColumnName("timestmp");
b.Property("TotalScore")
.HasColumnType("double precision")
.HasColumnName("total_score");
b.HasKey("Id");
b.ToTable("evaluation_data", (string)null);
});
modelBuilder.Entity("vendorApproverBackend.Entities.FileModel", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("bigint")
.HasColumnName("id");
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id"));
b.Property("Description")
.HasColumnType("text")
.HasColumnName("description");
b.Property("Name")
.HasColumnType("text")
.HasColumnName("file_name");
b.Property("Range")
.HasColumnType("integer")
.HasColumnName("range");
b.Property("Share")
.HasColumnType("boolean")
.HasColumnName("share");
b.Property("Size")
.HasColumnType("bigint")
.HasColumnName("file_size");
b.Property("Timestamp")
.HasColumnType("timestamp without time zone")
.HasColumnName("timestmp");
b.Property("Type")
.HasColumnType("text")
.HasColumnName("file_type");
b.Property("Url")
.IsRequired()
.HasColumnType("text")
.HasColumnName("file_url");
b.HasKey("Id");
b.ToTable("File_model");
});
modelBuilder.Entity("vendorApproverBackend.Entities.LetterProducts", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("bigint")
.HasColumnName("Id");
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id"));
b.Property("AdminComment")
.HasColumnType("text")
.HasColumnName("AdminComment");
b.Property("Category")
.HasColumnType("text")
.HasColumnName("Category");
b.Property("ManagerComment")
.HasColumnType("text")
.HasColumnName("ManagerComment");
b.Property("ProductCity")
.HasColumnType("text")
.HasColumnName("ProductCity");
b.Property("ProductCountry")
.HasColumnType("text")
.HasColumnName("ProductCountry");
b.Property("ProductDesc")
.HasColumnType("text")
.HasColumnName("ProductDesc");
b.Property("ProductName")
.HasColumnType("text")
.HasColumnName("ProductName");
b.Property("ProductType")
.HasColumnType("text")
.HasColumnName("ProductType");
b.Property("RejectionReason")
.HasColumnType("text")
.HasColumnName("RejectionReason");
b.Property("Status")
.HasColumnType("integer")
.HasColumnName("Status");
b.Property("Subcategory")
.HasColumnType("text")
.HasColumnName("Subcategory");
b.Property("VendorRequestLetterId")
.HasColumnType("bigint")
.HasColumnName("VendorRequestLetterId");
b.HasKey("Id");
b.HasIndex("VendorRequestLetterId");
b.ToTable("letter_products", (string)null);
});
modelBuilder.Entity("vendorApproverBackend.Entities.NotificationModel", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("bigint")
.HasColumnName("notificatoin_id");
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id"));
b.Property("Action")
.HasColumnType("integer")
.HasColumnName("action");
b.Property("ActionId")
.HasColumnType("bigint")
.HasColumnName("action_id");
b.Property("Content")
.IsRequired()
.HasColumnType("text")
.HasColumnName("content");
b.Property("LogUrl")
.IsRequired()
.HasColumnType("text")
.HasColumnName("logUrl");
b.Property("ReciverId")
.HasColumnType("bigint")
.HasColumnName("ReciverId");
b.Property("SenderId")
.HasColumnType("bigint")
.HasColumnName("SenderId");
b.Property("Status")
.HasColumnType("integer")
.HasColumnName("status");
b.Property("Subject")
.IsRequired()
.HasColumnType("text")
.HasColumnName("subject");
b.Property("Timestmp")
.HasColumnType("timestamp without time zone")
.HasColumnName("timestmp");
b.HasKey("Id");
b.HasIndex("ReciverId");
b.HasIndex("SenderId");
b.ToTable("notificationmodel");
});
modelBuilder.Entity("vendorApproverBackend.Entities.PaymentDetail", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("bigint")
.HasColumnName("id");
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id"));
b.Property("Amount")
.HasColumnType("double precision")
.HasColumnName("amount");
b.Property("AttachementId")
.HasColumnType("bigint")
.HasColumnName("attachement_id");
b.Property("Description")
.IsRequired()
.HasColumnType("TEXT")
.HasColumnName("description");
b.Property("PaymentDate")
.HasColumnType("timestamp without time zone")
.HasColumnName("payment_date");
b.Property("PaymentMethode")
.HasColumnType("integer")
.HasColumnName("payment_methode");
b.Property("Reference")
.IsRequired()
.HasColumnType("text")
.HasColumnName("reference");
b.Property("Status")
.HasColumnType("integer")
.HasColumnName("status");
b.Property("Timestamp")
.HasColumnType("timestamp without time zone")
.HasColumnName("timestmp");
b.HasKey("Id");
b.ToTable("PaymentDetail");
});
modelBuilder.Entity("vendorApproverBackend.Entities.PerformanceLetter", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("bigint")
.HasColumnName("id");
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id"));
b.Property("FileId")
.HasColumnType("bigint")
.HasColumnName("file_id");
b.Property("Order")
.HasColumnType("integer")
.HasColumnName("display_order");
b.Property("RequestRenewId")
.HasColumnType("bigint")
.HasColumnName("request_renew_id");
b.HasKey("Id");
b.HasIndex("FileId");
b.HasIndex("RequestRenewId");
b.ToTable("performance_letters");
});
modelBuilder.Entity("vendorApproverBackend.Entities.PqRequestClarification", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("bigint")
.HasColumnName("id");
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id"));
b.Property("Comment")
.HasColumnType("text")
.HasColumnName("comment");
b.Property("DeadlineReply")
.HasColumnType("timestamp without time zone")
.HasColumnName("deadline_reply");
b.Property("PrequalificationRequestId")
.HasColumnType("bigint")
.HasColumnName("prequalification_request_id");
b.Property("Receiver")
.HasColumnType("integer")
.HasColumnName("receiver_role");
b.Property("Sender")
.HasColumnType("integer")
.HasColumnName("sender_role");
b.Property>("StepObservations")
.HasColumnType("jsonb")
.HasColumnName("step_observations");
b.Property("Timestamp")
.HasColumnType("timestamp without time zone")
.HasColumnName("timestamp");
b.HasKey("Id");
b.HasIndex("PrequalificationRequestId");
b.ToTable("pq_request_clarifications", (string)null);
});
modelBuilder.Entity("vendorApproverBackend.Entities.PrequalificationRequest", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("bigint")
.HasColumnName("id");
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id"));
b.Property("ApprovalDate")
.HasColumnType("timestamp without time zone");
b.Property("AssignedToUserId")
.HasColumnType("bigint")
.HasColumnName("assigned_to_user_id");
b.Property("AssignmentDate")
.HasColumnType("timestamp without time zone")
.HasColumnName("assignment_date");
b.Property("FirstApprovalDate")
.HasColumnType("timestamp without time zone");
b.Property("PaymentDetailId")
.HasColumnType("bigint")
.HasColumnName("payment_detail_id");
b.Property("Reason")
.HasColumnType("text");
b.Property("Status")
.HasColumnType("integer")
.HasColumnName("status");
b.Property("SubmissionDate")
.HasColumnType("timestamp without time zone")
.HasColumnName("submission_date");
b.Property("Timestamp")
.HasColumnType("timestamp without time zone")
.HasColumnName("timestmp");
b.Property("VendorId")
.HasColumnType("bigint");
b.Property("VisitRequestId")
.HasColumnType("bigint");
b.Property("deadline")
.HasColumnType("timestamp without time zone");
b.HasKey("Id");
b.HasIndex("AssignedToUserId");
b.HasIndex("PaymentDetailId")
.IsUnique();
b.HasIndex("VendorId");
b.HasIndex("VisitRequestId")
.IsUnique();
b.ToTable("PrequalificationRequests");
});
modelBuilder.Entity("vendorApproverBackend.Entities.Product", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("bigint")
.HasColumnName("id");
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id"));
b.Property("ApprovalDate")
.HasColumnType("timestamp without time zone")
.HasColumnName("approvalDate");
b.Property("Category")
.HasColumnType("text")
.HasColumnName("category");
b.Property("ExpiryDate")
.HasColumnType("timestamp without time zone")
.HasColumnName("expiryDate");
b.Property("FirstApprovalDate")
.HasColumnType("timestamp without time zone")
.HasColumnName("firstapprovalDate");
b.Property("LocalAgent")
.HasColumnType("text")
.HasColumnName("local_agent");
b.Property("LocalAgentEmail")
.HasColumnType("text")
.HasColumnName("localAgentEmail");
b.Property("Manufacturer")
.HasColumnType("text")
.HasColumnName("manufacturer");
b.Property("ManufacturerEmail")
.HasColumnType("text")
.HasColumnName("manufacturerEmail");
b.Property("PrequalificationRequestId")
.HasColumnType("bigint")
.HasColumnName("prequalification_request_id");
b.Property("ProductCity")
.HasColumnType("text")
.HasColumnName("product_city");
b.Property("ProductCountry")
.HasColumnType("text")
.HasColumnName("product_country");
b.Property("ProductDesc")
.HasColumnType("text")
.HasColumnName("product_desc");
b.Property("ProductName")
.HasColumnType("text")
.HasColumnName("product_name");
b.Property("ProductType")
.HasColumnType("text")
.HasColumnName("product_type");
b.Property("Sku")
.HasColumnType("text")
.HasColumnName("sku");
b.Property("Status")
.HasColumnType("integer")
.HasColumnName("status");
b.Property("Subcategory")
.HasColumnType("text")
.HasColumnName("sub_category");
b.Property("Timestamp")
.HasColumnType("timestamp without time zone")
.HasColumnName("timestmp");
b.Property("VendorId")
.HasColumnType("bigint")
.HasColumnName("vendor_id");
b.Property("VendorName")
.HasColumnType("text")
.HasColumnName("vendor_name");
b.HasKey("Id");
b.HasIndex("PrequalificationRequestId")
.IsUnique();
b.ToTable("products");
});
modelBuilder.Entity("vendorApproverBackend.Entities.RenewalClarification", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("bigint")
.HasColumnName("id");
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id"));
b.Property("Comments")
.HasColumnType("text");
b.Property("RequestedBy")
.HasColumnType("text");
b.Property("RequestedDate")
.HasColumnType("timestamp without time zone");
b.PrimitiveCollection>("RequiredDocuments")
.IsRequired()
.HasColumnType("jsonb");
b.Property("VendorResponseId")
.HasColumnType("bigint");
b.HasKey("Id");
b.HasIndex("VendorResponseId");
b.ToTable("renewal_clarifications");
});
modelBuilder.Entity("vendorApproverBackend.Entities.RenewalFinalDecision", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("bigint")
.HasColumnName("id");
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id"));
b.Property("Comments")
.HasColumnType("text")
.HasColumnName("comments");
b.Property("Decision")
.HasColumnType("text")
.HasColumnName("decision");
b.Property("ReviewDate")
.HasColumnType("timestamp without time zone")
.HasColumnName("review_date");
b.Property("SupportingDocumentId")
.HasColumnType("bigint")
.HasColumnName("supporting_document_id");
b.HasKey("Id");
b.HasIndex("SupportingDocumentId");
b.ToTable("renewal_final_decisions", (string)null);
});
modelBuilder.Entity("vendorApproverBackend.Entities.RenewalPart2Evaluation", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("bigint")
.HasColumnName("id");
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id"));
b.Property("TotalScore")
.HasColumnType("double precision")
.HasColumnName("total_score");
b.HasKey("Id");
b.ToTable("renewal_part2_evaluations");
});
modelBuilder.Entity("vendorApproverBackend.Entities.RenewalPart3Decision", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("bigint")
.HasColumnName("id");
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id"));
b.Property("DecidedBy")
.HasColumnType("text")
.HasColumnName("decided_by");
b.Property("Decision")
.HasColumnType("text")
.HasColumnName("decision");
b.Property("DecisionDate")
.HasColumnType("timestamp without time zone")
.HasColumnName("decision_date");
b.Property("Reason")
.HasColumnType("text")
.HasColumnName("reason");
b.Property("SupportingDocumentId")
.HasColumnType("bigint")
.HasColumnName("supporting_document_id");
b.HasKey("Id");
b.HasIndex("SupportingDocumentId");
b.ToTable("renewal_part3_decisions", (string)null);
});
modelBuilder.Entity("vendorApproverBackend.Entities.RenewalPayment", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("bigint")
.HasColumnName("id");
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id"));
b.Property("Amount")
.HasColumnType("double precision")
.HasColumnName("amount");
b.Property("Currency")
.HasColumnType("text")
.HasColumnName("currency");
b.Property("PaymentDate")
.HasColumnType("timestamp without time zone")
.HasColumnName("payment_date");
b.Property("Status")
.IsRequired()
.HasColumnType("text")
.HasColumnName("status");
b.Property("TransactionId")
.HasColumnType("text")
.HasColumnName("transaction_id");
b.HasKey("Id");
b.ToTable("renewal_payments");
});
modelBuilder.Entity("vendorApproverBackend.Entities.RequestRenew", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("bigint")
.HasColumnName("id");
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id"));
b.Property("ApprovedDesignFileId")
.HasColumnType("bigint")
.HasColumnName("approved_design_file_id");
b.Property("ApprovedDesignRemark")
.HasColumnType("text");
b.Property("AssignDate")
.HasColumnType("timestamp without time zone")
.HasColumnName("assign_date");
b.Property("AssignedToId")
.HasColumnType("bigint")
.HasColumnName("assigned_to_id");
b.Property("CertificationId")
.HasColumnType("bigint")
.HasColumnName("certification_id");
b.Property("ChangeApprovalComment")
.HasColumnType("text")
.HasColumnName("change_approval_comment");
b.Property("ChangeRejectionComment")
.HasColumnType("text")
.HasColumnName("change_rejection_comment");
b.Property("ClarificationId")
.HasColumnType("bigint");
b.Property("Comments")
.IsRequired()
.HasColumnType("text")
.HasColumnName("comments");
b.Property("ExpiredProductCertificateFileId")
.HasColumnType("bigint")
.HasColumnName("expired_cert_file_id");
b.Property("ExpiredProductCertificateRemark")
.HasColumnType("text");
b.Property("FinalDecisionId")
.HasColumnType("bigint");
b.Property("InspectionRequired")
.HasColumnType("boolean")
.HasColumnName("inspection_required");
b.Property("IsExpiredOver2Years")
.HasColumnType("boolean")
.HasColumnName("is_expired_over_two_years");
b.Property("ManagerRenewComment")
.HasColumnType("text");
b.Property("ManagerRenewFileId")
.HasColumnType("bigint")
.HasColumnName("manager_renew_file_id");
b.Property("OfficialLetterFileId")
.HasColumnType("bigint")
.HasColumnName("official_letter_file_id");
b.Property("OfficialLetterFileRemarkId")
.HasColumnType("bigint")
.HasColumnName("official_letter_file_remark_id");
b.Property("Part2EvaluationId")
.HasColumnType("bigint");
b.Property("Part3DecisionId")
.HasColumnType("bigint");
b.Property("PaymentId")
.HasColumnType("bigint");
b.Property("ReferenceOrdersFileId")
.HasColumnType("bigint")
.HasColumnName("ref_orders_file_id");
b.Property("ReferenceOrdersRemark")
.HasColumnType("text");
b.Property("RenewComment")
.HasColumnType("text")
.HasColumnName("renew_comment");
b.Property("RenewRequestFileId")
.HasColumnType("bigint")
.HasColumnName("renew_request_file_id");
b.Property("RenewalDate")
.HasColumnType("timestamp without time zone")
.HasColumnName("renewal_date");
b.Property("RenewalStep")
.HasColumnType("integer")
.HasColumnName("renewal_step");
b.Property("RequestNumber")
.HasColumnType("integer")
.HasColumnName("request_number");
b.Property("RequestType")
.HasColumnType("integer")
.HasColumnName("request_type");
b.Property("RequiresFactoryAudit")
.HasColumnType("boolean")
.HasColumnName("require_factory_audit");
b.Property("SignatureId")
.HasColumnType("bigint")
.HasColumnName("signature_id");
b.Property("Status")
.HasColumnType("integer")
.HasColumnName("status");
b.Property("TdcDocumentId")
.HasColumnType("bigint")
.HasColumnName("tdc_document_id");
b.Property("Timestamp")
.HasColumnType("timestamp without time zone")
.HasColumnName("timestmp");
b.Property("UpdateTDSFileId")
.HasColumnType("bigint")
.HasColumnName("update_tds_file_id");
b.Property("UpdateTDSRemark")
.HasColumnType("text");
b.Property("UpdatedVendorDataId")
.HasColumnType("bigint")
.HasColumnName("updated_vendor_data_id");
b.Property("ValidAgencyAgreementFileId")
.HasColumnType("bigint")
.HasColumnName("valid_agency_agreement_id");
b.Property("ValidAgencyAgreementFileRemark")
.HasColumnType("text")
.HasColumnName("valid_agency_agreement_file_remark");
b.HasKey("Id");
b.HasIndex("ApprovedDesignFileId")
.IsUnique();
b.HasIndex("AssignedToId");
b.HasIndex("CertificationId");
b.HasIndex("ClarificationId")
.IsUnique();
b.HasIndex("ExpiredProductCertificateFileId")
.IsUnique();
b.HasIndex("FinalDecisionId")
.IsUnique();
b.HasIndex("ManagerRenewFileId")
.IsUnique();
b.HasIndex("OfficialLetterFileId")
.IsUnique();
b.HasIndex("OfficialLetterFileRemarkId")
.IsUnique();
b.HasIndex("Part2EvaluationId")
.IsUnique();
b.HasIndex("Part3DecisionId")
.IsUnique();
b.HasIndex("PaymentId")
.IsUnique();
b.HasIndex("ReferenceOrdersFileId")
.IsUnique();
b.HasIndex("RenewRequestFileId")
.IsUnique();
b.HasIndex("SignatureId")
.IsUnique();
b.HasIndex("TdcDocumentId")
.IsUnique();
b.HasIndex("UpdateTDSFileId")
.IsUnique();
b.HasIndex("UpdatedVendorDataId")
.IsUnique();
b.HasIndex("ValidAgencyAgreementFileId")
.IsUnique();
b.ToTable("request_renews");
});
modelBuilder.Entity("vendorApproverBackend.Entities.RequestRenewClarification", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("bigint")
.HasColumnName("id");
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id"));
b.Property("Message")
.IsRequired()
.HasColumnType("TEXT")
.HasColumnName("message");
b.Property("PrequalificationRequestId")
.HasColumnType("bigint")
.HasColumnName("prequalification_request_id");
b.Property("RequestRenewId")
.HasColumnType("bigint")
.HasColumnName("request_renew_id");
b.Property("SenderId")
.HasColumnType("bigint")
.HasColumnName("sender_id");
b.Property("Timestamp")
.HasColumnType("timestamp without time zone")
.HasColumnName("timestmp");
b.Property("VendorRequestLetterId")
.HasColumnType("bigint")
.HasColumnName("vendor_request_letter_id");
b.HasKey("Id");
b.HasIndex("PrequalificationRequestId");
b.HasIndex("RequestRenewId");
b.HasIndex("SenderId");
b.HasIndex("VendorRequestLetterId");
b.ToTable("request_renew_clarifications");
});
modelBuilder.Entity("vendorApproverBackend.Entities.Signature", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("bigint")
.HasColumnName("id");
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id"));
b.Property