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_pipe_network_info", schema = "app_user")
public class PipeNetworkInfo {

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

    @ApiModelProperty("监测点名称/管网名称")
    private String name;

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

    @ApiModelProperty("管网类型（管线/管点/排口）")
    private String networkType;

    @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;
}
