| 对比新文件 |
| | |
| | | package com.ruoyi.ai.mongodbBean; |
| | | |
| | | import lombok.AllArgsConstructor; |
| | | import lombok.Data; |
| | | import lombok.NoArgsConstructor; |
| | | import org.bson.types.ObjectId; |
| | | import org.springframework.data.annotation.Id; |
| | | import org.springframework.data.mongodb.core.index.Indexed; |
| | | import org.springframework.data.mongodb.core.mapping.Document; |
| | | |
| | | import java.util.Date; |
| | | |
| | | @Data |
| | | @AllArgsConstructor |
| | | @NoArgsConstructor |
| | | @Document("chat_messages") |
| | | public class ChatMessages { |
| | | |
| | | @Id |
| | | private ObjectId id; |
| | | |
| | | @Indexed(unique = true) |
| | | private String memoryId; |
| | | |
| | | private String content; |
| | | |
| | | private Date createTime; |
| | | |
| | | private Date updateTime; |
| | | } |