shoc-backend/Data.SeaHavenIndustries/Models/Addresses.cs
2026-01-21 15:41:19 -06:00

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