package com.usky.vpp.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 lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * vpp_customer_access
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("vpp_customer_access")
public class VppCustomerAccess implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    @TableField("apply_no")
    private String applyNo;
    @TableField("account_no")
    private String accountNo;
    @TableField("customer_name")
    private String customerName;
    @TableField("customer_type")
    private Integer customerType;
    @TableField("power_company")
    private String powerCompany;
    @TableField("contract_capacity")
    private BigDecimal contractCapacity;
    @TableField("business_license_url")
    private String businessLicenseUrl;
    @TableField("credit_status")
    private Integer creditStatus;
    @TableField("access_status")
    private Integer accessStatus;
    @TableField("audit_opinion")
    private String auditOpinion;
    @TableField("audit_at")
    private LocalDateTime auditAt;
    @TableField("customer_id")
    private Long customerId;

    @TableField(exist = false)
    private String contactName;

    @TableField(exist = false)
    private String contactPhone;

    @TableField(exist = false)
    private String contactEmail;

    @TableField(exist = false)
    private String address;

    @TableField(exist = false)
    private LocalDateTime signingDate;

    @TableField("apply_at")
    private LocalDateTime applyAt;
    @TableField("tenant_id")
    private Integer tenantId;
    @TableField("create_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;
    @TableField("update_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateTime;
    @TableField("created_by")
    private String createdBy;
    @TableField("updated_by")
    private String updatedBy;
    @TableField("delete_flag")
    private Integer deleteFlag;
    @TableField("deleted_at")
    private LocalDateTime deletedAt;
}
