mirror of
https://github.com/Sea-Haven-Industries/shoc-backend.git
synced 2026-10-01 13:23:13 +00:00
27 lines
842 B
C#
27 lines
842 B
C#
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|||
|
|
|
|||
|
|
namespace Data.SeaHavenIndustries
|
|||
|
|
{
|
|||
|
|
public class Addresses : FullAuditEntity
|
|||
|
|
{
|
|||
|
|
public string? AddressType { get; set; } // Billing / Shipping / Other
|
|||
|
|
public string? Address1 { get; set; }
|
|||
|
|
public string? Address2 { get; set; }
|
|||
|
|
public string? City { get; set; }
|
|||
|
|
public string? State { get; set; }
|
|||
|
|
public string? Zip { get; set; }
|
|||
|
|
public string? Country { get; set; }
|
|||
|
|
public string? County { get; set; }
|
|||
|
|
|
|||
|
|
// Foreign Keys
|
|||
|
|
public int? AccountId { get; set; }
|
|||
|
|
public int? ContactId { get; set; }
|
|||
|
|
|
|||
|
|
[ForeignKey(nameof(AccountId))]
|
|||
|
|
public virtual Accounts? Account { get; set; }
|
|||
|
|
|
|||
|
|
[ForeignKey(nameof(ContactId))]
|
|||
|
|
public virtual Contacts? Contact { get; set; }
|
|||
|
|
}
|
|||
|
|
}
|