package com.zksy.drainage.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 = "psgw_engineering_facility", schema = "app_user")
public class EngineeringFacility {

    @TableId(value = "id", type = IdType.ASSIGN_UUID)
    @ApiModelProperty("主键ID")
    private String id;

    @ApiModelProperty("监测点名称/设施名称")
    private String name;

    @ApiModelProperty("行政区域")
    private String area;

    @ApiModelProperty("设施类型（闸门/调蓄设施/泵站）")
    private String facilityType;

    @ApiModelProperty("数据时间")
    private String time;

    @ApiModelProperty("标记数量（自动计算）")
    private Integer pointCount;

    @ApiModelProperty("坐标数据JSON")
    private String points;

    @ApiModelProperty("关联设备ID（多个用逗号分隔）")
    private String equipmentId;

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

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