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 = "dept")
public class Dept {
    @Id
    @Size(max = 10)
    @Column(name = "dept_cd", nullable = false, length = 10)
    private String deptCd;

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

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

    @Size(max = 50)
    @Column(name = "p_dept_cd", length = 50)
    private String pDeptCd;

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

    @Size(max = 10)
    @Column(name = "chief", length = 10)
    private String chief;

    @Column(name = "bonsa_yn")
    private Boolean bonsaYn;

}