shoc-backend/Data.SeaHavenIndustries/Models/Quotes.cs
2024-09-28 14:58:36 -04:00

37 lines
1.4 KiB
C#

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<QuotesLineItems>? 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; }
}
}