import type { ConversationStatus } from '../value-objects/conversation-status.vo';

export interface ConversationParticipantEntity {
  id: string;
  conversationId: string;
  userId: string;
  unreadCount: number;
  lastReadAt: Date | null;
  joinedAt: Date;
}

export interface ConversationEntity {
  id: string;
  listingId: string | null;
  subject: string | null;
  status: ConversationStatus;
  lastMessage: string | null;
  lastMessageAt: Date | null;
  createdAt: Date;
  updatedAt: Date;
  participants: ConversationParticipantEntity[];
}
