package com.zksy.base.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

/**
 * 设备测试记录表
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "equipment_test", schema = "app_user")
public class EquipmentTest {

    @TableId(value = "test_id", type = IdType.ASSIGN_UUID)
    @ApiModelProperty("测试记录ID")
    private String testId;

    @ApiModelProperty("设备ID")
    private String equipmentId;

    @ApiModelProperty("测试类型")
    private String testType;

    @ApiModelProperty("测试结果")
    private String testResult;

    @ApiModelProperty("测试详情")
    private String testDetail;

    @ApiModelProperty("测试时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime testTime;

    @ApiModelProperty("测试人")
    private String testUser;

    @ApiModelProperty("创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime createTime;
}
