using vendorApproverBackend.Enums; using System.ComponentModel.DataAnnotations.Schema; using System.Text.Json.Serialization; namespace vendorApproverBackend.Entities; public class Vendor { [Column("id")] public long Id { get; set; } [Column("manifactory_name")] public string? ManifactoryName { get; set; } [Column("Local_agent_name")] public string? LocalAgentName { get; set; } [Column("Local_agent_phone")] public string? LocalAgentPhone { get; set; } [Column("Commercial_registratio_no")] public string? CommercialRegistrationNo { get; set; } [Column("representative_name")] public string? RepresentativeName { get; set; } [Column("representative_email")] public string? RepresentativeEmail { get; set; } [Column("position")] public string? Position { get; set; } [Column("partner_company")] public string? PartnerCompany { get; set; } [Column("timestmp")] public DateTime Timestamp { get; set; } = DateTime.UtcNow; public long UserId { get; set; } [JsonIgnore] public User User { get; set; } [JsonIgnore] public ICollection PrequalificationRequests { get; set; } = new List(); [JsonIgnore] public ICollection VendorRequestLetters { get; set; } = new List(); }