package com.zksy.drainage.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
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.math.BigDecimal;
import java.time.LocalDateTime;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "psgw_drainage_partition", schema = "app_user")
public class DrainagePartition {

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

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

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

    @ApiModelProperty("分区类型（雨水分区/污水分区）")
    private String partitionType;

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

    @ApiModelProperty("排水量")
    private BigDecimal drainage;

    @ApiModelProperty("积水量")
    private BigDecimal waterlogging;

    @ApiModelProperty("积水等级")
    @TableField("\"level\"")
    private Integer level;

    @ApiModelProperty("经度")
    private BigDecimal longitude;

    @ApiModelProperty("纬度")
    private BigDecimal latitude;

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