package net.vtstar.zhongtong.avi.gateway.parts.domain;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import net.vtstar.user.search.Search;
import net.vtstar.zhongtong.avi.global.web.Show;
import net.vtstar.zhongtong.avi.global.web.domain.enums.FieldType;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;

@Data
@Search(code = "WELDING_ROBOT")
@ApiModel(value = "机器人焊接", description = "机器人焊接监控数据表")
@Table(name = "eqp_data_welding_robot")
public class WeldingRobotMachine{

    @Id
    private Long id;

    @Show(label = "设备编号")
    @Column(name = "eqp_code")
    @ApiModelProperty(notes = "设备编号")
    private String equipCode;

    @Show(label = "设备名称")
    @Column(name = "eqp_name")
    @ApiModelProperty(notes = "设备名称")
    @Search
    private String alias;

    @Show(label = "开机时间")
    @Column(name = "turn_on_time")
    @ApiModelProperty(notes = "开机时间")
    private String turnOnTime;

    @Show(label = "焊接时间")
    @Column(name = "welding_time")
    @ApiModelProperty(notes = "焊接时间")
    private String weldingTime;

    @Show(label = "采集时间",dataType = FieldType.DATETIME)
    @ApiModelProperty("时间")
    @Column(name = "create_time")
    @Search
    private Date createTime;

    @ApiModelProperty("采集状态")
    @Column(name = "status")
    private String status;
}
