package org.dromara.main.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.dromara.common.tenant.core.TenantEntity;

import java.io.Serial;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

@Data
@EqualsAndHashCode(callSuper = true)
@TableName("main_exam_evaluation")
public class MainExamEvaluation extends TenantEntity {

    @Serial
    private static final long serialVersionUID = 1L;

    @TableId(value = "id")
    private Long id;

    private String evaluationName;
    private String grade;
    private String position;
    private String positionType;
    private String tags;
    private Long mainImage;
    private String imageAlbum;
    private String detail;
    private BigDecimal price;
    private Date onTime;
    private Date downTime;
    private String status;

    @TableLogic
    private String delFlag;

    /**
     * 能力配置列表（一对多关联，不存储到数据库）
     */
    @TableField(exist = false)
    private List<MainAbilityConfig> abilityConfigs;
}
