ChatSession entity mapping to chat_sessions table
Database schema: CREATE TABLE chat_sessions ( session_id UUID PRIMARY KEY DEFAULT uuid_generate_v4(), application_id UUID NOT NULL UNIQUE, status chat_status DEFAULT 'ACTIVE', message_count INTEGER DEFAULT 0, started_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP, completed_at TIMESTAMP );
{
"sessionId": "string",
"application": {
"applicationId": "string",
"submittedAt": "string",
"status": "ApplicationStatus.SUBMITTED",
"resumeText": "string",
"resumeFilePath": "string",
"updatedAt": "string",
"candidateId": "string",
"jobId": "string",
"hrDecision": "SHORTLISTED",
"hrComments": "string",
"assessment": {
"assessmentId": "string",
"application": {},
"resumeScore": 0,
"interviewScore": 0,
"resumeComment": "string",
"interviewComment": "string",
"recommendation": "RECOMMEND",
"createdAt": "string",
"updatedAt": "string"
},
"chatSession": {
"sessionId": "string",
"messages": "new ArrayList<>()",
"status": "ChatStatus.ACTIVE",
"startedAt": "string",
"completedAt": "string",
"messageCount": 0
}
},
"messages": "new ArrayList<>()",
"status": "ChatStatus.ACTIVE",
"startedAt": "string",
"completedAt": "string",
"messageCount": 0
}