package cn.reghao.tnb.search.esapp.blog.model.po;

import cn.reghao.tnb.search.esapp.util.BaseEntity;
import jakarta.persistence.Column;
import jakarta.persistence.Entity;
import jakarta.persistence.Table;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;

/**
 * @author reghao
 * @date 2023-04-10 17:54:17
 */
@AllArgsConstructor
@NoArgsConstructor
@Getter
@Entity
@Table(name = "blog_category")
public class Category extends BaseEntity {
    @Column(nullable = false)
    private Integer type;
    @Column(nullable = false, unique = true)
    private String name;
}
