package cn.reghao.bnt.web.admin.model.po;

import cn.reghao.bnt.web.util.BaseEntity;
import lombok.Getter;
import lombok.Setter;
import org.hibernate.validator.constraints.Length;

import jakarta.persistence.Column;
import jakarta.persistence.Entity;
import jakarta.persistence.Table;
import jakarta.validation.constraints.NotNull;

/**
 * 站点配置项
 *
 * @author reghao
 * @date 2023-04-18 08:31:24
 */
@Setter
@Getter
@Table(name = "sys_site_option")
@Entity
public class SiteOption extends BaseEntity {
    @NotNull
    @Length(min = 1, max = 64, message = "propKey 长度应小于 64 个字符")
    @Column(nullable = false, unique = true)
    private String propKey;
    @Length(min = 1, max = 64, message = "propDesc 长度应小于 64 个字符")
    @Column(nullable = false)
    private String propDesc;
    @NotNull
    @Length(min = 1, max = 255, message = "propValue 长度应小于 255 个字符")
    @Column(nullable = false)
    private String propValue;
}
