package ru.mtusi.messenger.dto; import com.fasterxml.jackson.annotation.JsonProperty; import java.time.OffsetDateTime; import java.util.List; import java.util.UUID; public record Message( @JsonProperty("id") UUID id, @JsonProperty("chat_id") UUID chatId, @JsonProperty("sender_id") UUID senderId, @JsonProperty("text") String text, @JsonProperty("attachment_ids") List attachmentIds, @JsonProperty("created_at") OffsetDateTime createdAt ) {}