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;
import java.util.Date;

/**
 * 管网基础设施信息表
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "pipe_network_base", schema = "app_user")
public class PipeNetworkBase {

    @TableId(value = "network_id", type = IdType.ASSIGN_UUID)
    @ApiModelProperty("管网设施ID")
    private String networkId;

    @ApiModelProperty("设施编码")
    private String networkCode;

    @ApiModelProperty("设施名称")
    private String networkName;

    @ApiModelProperty("设施类型")
    private String networkType;

    @ApiModelProperty("等级")
    private String networkLevel;

    @ApiModelProperty("管养单位")
    private String managementUnit;

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

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

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

    @ApiModelProperty("长度（米）")
    private BigDecimal length;

    @ApiModelProperty("管径（毫米）")
    private BigDecimal diameter;

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

    @ApiModelProperty("建设日期")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date buildDate;

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

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

    @ApiModelProperty("创建人")
    private String createBy;

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

    @ApiModelProperty("更新人")
    private String updateBy;

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