//package org.egl_cepgl.pm.model;
//
//import lombok.AllArgsConstructor;
//import lombok.Data;
//import lombok.NoArgsConstructor;
//import org.bson.types.ObjectId;
//import org.springframework.data.annotation.Id;
//import org.springframework.data.annotation.ReadOnlyProperty;
//import org.springframework.data.mongodb.core.mapping.Document;
//import org.springframework.data.mongodb.core.mapping.DocumentReference;
//import org.springframework.data.mongodb.core.mapping.Field;
//
//import java.time.Instant;
//import java.util.UUID;
//
//@Data
//@NoArgsConstructor
//@AllArgsConstructor
//@Document
//public class ChatMessage
//{
//    @Id
//    private String id;
//
//    private String msg;
//    private Instant sentAt;
//    private String sentBy;
//    private Boolean read;
//
//    private String indBoxId;
//
//    public ChatMessage(String msg, Instant sentAt, String sentBy, boolean read, String indBoxId) {
//        this.id= UUID.randomUUID().toString();
//        this.msg= msg;
//        this.sentAt= sentAt;
//        this.sentBy= sentBy;
//        this.read= read;
//        this.indBoxId= indBoxId;
//    }
//
////
////    @Field("inbox")
////    @ReadOnlyProperty
////    @DocumentReference(lookup = "{ 'namep' : ?#{#target} }")
////    ChatInbox inbox;
//}
//
//
//
//
//
//
//
//
//
