package com.kospo.talk.model;

import jakarta.persistence.Column;
import jakarta.persistence.EmbeddedId;
import jakarta.persistence.Entity;
import jakarta.persistence.Table;
import lombok.*;

@Getter
@Setter
@NoArgsConstructor
@AllArgsConstructor
@Builder
@Entity
@Table(name = "talk_message")
public class TalkMessage {
    @EmbeddedId
    private TalkMessageId id;

    @Column(name = "message", length = Integer.MAX_VALUE)
    private String message;

    @Column(name = "ins_name", length = 20)
    private String insName;

    @Column(name = "search_yn")
    private Boolean searchYn;

}