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.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * 窨井基础信息表
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "manhole_base", schema = "app_user")
public class ManholeBase {

    @TableId(value = "manhole_id", type = IdType.ASSIGN_UUID)
    @ApiModelProperty("窨井ID")
    private String manholeId;

    @ApiModelProperty("窨井编码")
    private String manholeCode;

    @ApiModelProperty("窨井名称")
    private String manholeName;

    @ApiModelProperty("关联管网设施ID")
    private String networkId;

    @ApiModelProperty("位置描述")
    private String location;

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

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

    @ApiModelProperty("窨井深度（米）")
    private BigDecimal manholeDepth;

    @ApiModelProperty("形状")
    private String manholeShape;

    @ApiModelProperty("材质")
    private String material;

    @ApiModelProperty("权属单位")
    private String ownershipUnit;

    @ApiModelProperty("状态")
    private String status;

    @ApiModelProperty("备注")
    private String remark;

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

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