namespace FrameworkDAL.DTO.EIPConversation
{
///
/// Admin CRUD DTO for MEIPCAPABILITYACTIONMAP — the ordered Capability -> Action sequence
/// that makes a Capability actually do something. Like MDIRECTACTIONDETAIL, this table has
/// NO Version/Status/audit/TenantId columns (confirmed against the live DDL) — Delete is a
/// real hard DELETE, and tenant scoping comes from the parent MEIPCAPABILITY row.
/// Distinct from the runtime-only EIPCapabilityActionMapDTO, which resolves by natural-key
/// code (CapabilityCode/ActionCode via sub-select) rather than by id — this admin DTO uses
/// the real integer FK columns directly, matching every other admin screen's convention.
///
public class EIPCapabilityActionMapAdminDTO
{
public int CapabilityActionMapId { get; set; }
/// FK -> MEIPCAPABILITY.CAPABILITYID.
public int CapabilityId { get; set; }
/// Execution order — lower runs first.
public short Slno { get; set; } = 1;
/// FK -> MEIPACTIONREGISTRY.ACTIONID.
public int ActionId { get; set; }
/// 0=No, 1=Yes.
public byte IsEnabled { get; set; } = 1;
// Display-only, resolved via JOIN on list/get — never written back.
public string? CapabilityCode { get; set; }
public string? ActionCode { get; set; }
}
}