namespace DXPDAL.Party; // ── TDXPPARTYLINK ──────────────────────────────────────────────────────────── // T table — INT AutoNumber PK. Maps one MDXPPARTY row to one or more per-tenant MPARTY // rows. Lives in the DXP system database (same as MDXPPARTY) — TenantId here is a plain // business column identifying which tenant this link points to, not a session filter. public class PartyLinkDTO { public int DxpPartyLinkId { get; set; } public int DxpPartyId { get; set; } public int TenantId { get; set; } public string DatabaseName { get; set; } = string.Empty; public byte DatabaseType { get; set; } // 0=SQL 1=Oracle 2=PostGre 3=MySQL public int LocalPartyId { get; set; } // MPARTY.PARTYID in that tenant's DB public byte RelationshipType { get; set; } // 1=Vendor 2=Customer 3=Dealer 4=ServiceFranchisee 5=Consumer (scoped to this tenant) public DateTime LinkedOn { get; set; } public int LinkedById { get; set; } // Audit public byte Status { get; set; } = 1; // 1=Active 2=Suspended 3=Revoked public int CreatedById { get; set; } public DateTime CreatedOn { get; set; } public int ModifiedById { get; set; } public DateTime ModifiedOn { get; set; } }