model ChatMessage {
    id           Int      @id @default(autoincrement())
    text         String
    senderId     String
    receiverId   String
    timestamp    DateTime @default(now())
    receiverName String
    senderName   String

    //    relations:
    sender   User @relation("SentMessages", fields: [senderId], references: [id])
    receiver User @relation("ReceivedMessages", fields: [receiverId], references: [id])
}
