using System; using System.Collections.Generic; namespace FrameworkDAL.DTO.EIPConversation { /// /// Maps to TEIUSERSESSION. /// Persists a user's active conversational flow state across messages. /// public class EIPUserSessionDTO { public System.Guid SessionId { get; set; } = System.Guid.NewGuid(); public string UserIdentifier { get; set; } = string.Empty; public int TenantId { get; set; } /// Matches EIPChannelType enum numeric value. public int ChannelType { get; set; } public string FlowCode { get; set; } = string.Empty; public string CurrentStepCode { get; set; } = string.Empty; /// JSON-serialized Dictionary<string, object> session context variables. public string? ContextJson { get; set; } public DateTime StartedAt { get; set; } = DateTime.UtcNow; public DateTime LastActivityAt { get; set; } = DateTime.UtcNow; } }