package com.kospo.talk.model;

import jakarta.persistence.Column;
import jakarta.persistence.Entity;
import jakarta.persistence.Id;
import jakarta.persistence.Table;
import jakarta.validation.constraints.Size;
import lombok.Getter;
import lombok.Setter;

@Getter
@Setter
@Entity
@Table(name = "p_code")
public class PCode {
    @Id
    @Column(name = "id", nullable = false)
    private Integer id;

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

    @Size(max = 200)
    @Column(name = "description", length = 200)
    private String description;

    @Column(name = "use_yn")
    private Boolean useYn;

}