package com.yice.webadmin.app.model;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.yice.common.core.base.mapper.BaseModelMapper;
import com.yice.common.core.base.model.BaseModel;
import com.yice.webadmin.app.vo.ModelInstanceVo;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

/**
 * 实体对象。
 *
 * @author linking
 * @date 2023-04-13
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName(value = "lmp_model_instance")
public class ModelInstance extends BaseModel {

    /**
     * 部署ID。
     */
    @TableId(value = "deploy_id")
    private Long deployId;

    /**
     * 模型ID，外键。
     */
    private Long modelId;

    /**
     * 版本ID，外键。
     */
    private Long versionId;

    /**
     * 模型版本名称。
     */
    private String versionName;

    /**
     * 部署状态。
     */
    private Integer deployStatus;

    @Mapper
    public interface ModelInstanceMapper extends BaseModelMapper<ModelInstanceVo, ModelInstance> {
    }

    public static final ModelInstanceMapper INSTANCE = Mappers.getMapper(ModelInstanceMapper.class);
}
