using System; using System.ComponentModel.DataAnnotations.Schema; using static System.Runtime.InteropServices.JavaScript.JSType; namespace Data.SeaHavenIndustries { public class Quotes : FullAuditEntity { public string? QuotId { get; set; } public DateTime? Date { get; set; } public string? TT { get; set; } public string? PO { get; set; } public int? ContactId { get; set; } [ForeignKey(nameof(ContactId))] public virtual Contacts? Contacts { get; set; } public int? WorkorderId { get; set; } [ForeignKey(nameof(WorkorderId))] public virtual WorkOrder? WorkOrder { get; set; } public string? ProjectName { get; set; } public string? SiteName { get; set; } public string? SiteId { get; set; } public string? Status { get; set; } public string? BillingAddress { get; set; } public string? ShippingAddress { get; set; } public ICollection? LineItems { get; set; } } public class QuotesLineItems : FullAuditEntity { public int? LineitemNumber { get; set; } public decimal? Lineitem { get; set; } public string? Descriptions { get; set; } public int? QuoteId { get; set; } [ForeignKey(nameof(QuoteId))] public virtual Quotes? Quotes { get; set; } } }