package com.ltgk.boat.domain.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.ltgk.common.core.page.BasePage;
import com.ltgk.common.validation.groups.Add;
import com.ltgk.common.validation.groups.Detail;
import com.ltgk.common.validation.groups.Update;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Date;

/**
 * 渔船信用等级标准表 (DsBoatCreditGrade)实体类
 *
 * @author Qi ChengBin
 * @date 2025-02-27
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName(value = "ds_boat_credit_grade")
@ApiModel(value = "渔船信用等级标准表对象", description = "DsBoatCreditGrade表")
public class DsBoatCreditGrade extends BasePage implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    @NotBlank(message = "主键信息不能为空", groups = {Detail.class, Update.class})
    private String id;

    @ApiModelProperty(value = "积分最小值")
    @TableField(value = "integral_min")
    @NotNull(message = "积分最小值不能为空", groups = {Add.class, Update.class})
    private Integer integralMin;

    @ApiModelProperty(value = "积分最大值")
    @TableField(value = "integral_max")
    @NotNull(message = "积分最大值不能为空", groups = {Add.class, Update.class})
    private Integer integralMax;

    @ApiModelProperty(value = "信用等级")
    @TableField(value = "credit_grade")
    @NotBlank(message = "信用等级不能为空", groups = {Add.class, Update.class})
    private String creditGrade;

    @TableLogic(delval = "1", value = "0")
    @ApiModelProperty(value = "删除标识")
    @TableField(value = "del_flag")
    private Integer delFlag;

    @ApiModelProperty(value = "行政区域编码")
    @TableField(value = "area_code")
    @NotBlank(message = "行政区域编码不能为空", groups = {Add.class, Update.class})
    private String areaCode;

    @ApiModelProperty(value = "行政区域名称")
    @TableField(value = "area_name")
    @NotBlank(message = "行政区域名称不能为空", groups = {Add.class, Update.class})
    private String areaName;

    @ApiModelProperty(value = "创建人")
    @TableField(value = "create_by")
    private String createBy;

    @ApiModelProperty(value = "创建时间")
    @TableField(value = "create_at")
    private Date createAt;

    @ApiModelProperty(value = "更新人")
    @TableField(value = "update_by")
    private String updateBy;

    @ApiModelProperty(value = "更新时间")
    @TableField(value = "update_at")
    private Date updateAt;

    @ApiModelProperty(value = "备注")
    @TableField(value = "remark")
    private String remark;

}

