package com.kospo.talk.model;

import jakarta.persistence.Column;
import jakarta.persistence.EmbeddedId;
import jakarta.persistence.Entity;
import jakarta.persistence.Table;
import jakarta.validation.constraints.Size;
import lombok.*;

import java.util.Date;

@Getter
@Setter
@Entity
@NoArgsConstructor
@AllArgsConstructor
@Builder
@Table(name = "talk_attach")
public class TalkAttach {
    @EmbeddedId
    private TalkAttachId id;

    @Size(max = 100)
    @Column(name = "onm", length = 100)
    private String onm;

    @Size(max = 100)
    @Column(name = "vnm", length = 100)
    private String vnm;

    @Size(max = 100)
    @Column(name = "path", length = 100)
    private String path;

    @Size(max = 20)
    @Column(name = "type", length = 100)
    private String type;

    @Column(name = "size")
    private Long size;

    @Column(name = "uploading")
    private Boolean uploading;

    @Column(name = "del_yn")
    private Boolean delYn;
}