mirror of
https://github.com/Sea-Haven-Industries/shoc-backend.git
synced 2026-09-30 16:33:12 +00:00
26 lines
842 B
C#
26 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; }
|
|
}
|
|
}
|