package com.zksy.base.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
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_point_rel", schema = "app_user")
public class EquipmentPointRel {


    @TableId(value = "rel_id", type = IdType.AUTO)
    @ApiModelProperty("关联ID")
    private Integer relId;

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

    @ApiModelProperty("监测点ID")
    private String pointId;

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

    @TableLogic(value = "0", delval = "2")
    @ApiModelProperty("删除标志（0=正常 2=删除）")
    private String delFlag;
}
