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 lombok.Data;
import lombok.EqualsAndHashCode;

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

/**
 * vpp_tenant_config 虚拟电厂租户配置
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("vpp_tenant_config")
public class VppTenantConfig implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @TableField("tenant_id")
    private Integer tenantId;

    @TableField("dn_id")
    private String dnId;

    @TableField("dn_name")
    private String dnName;

    @TableField("base_url")
    private String baseUrl;

    @TableField("transport_address")
    private String transportAddress;

    @TableField("un_public_key")
    private String unPublicKey;

    @TableField("dn_public_key")
    private String dnPublicKey;

    @TableField("dn_private_key")
    private String dnPrivateKey;

    @TableField(value = "token",exist = false)
    private String token;

    @TableField("poll_interval_sec")
    private Integer pollIntervalSec;

    @TableField("outbound_enabled")
    private Boolean outboundEnabled;

    @TableField("poll_enabled")
    private Boolean pollEnabled;

    @TableField("crypto_enabled")
    private Boolean cryptoEnabled;

    @TableField("price_down_coeff")
    private String priceDownCoeff;

    @TableField("auto_ack_clearing")
    private Boolean autoAckClearing;

    @TableField("auto_register_on_startup")
    private Boolean autoRegisterOnStartup;

    @TableField("create_by")
    private String createBy;

    @TableField("create_time")
    private LocalDateTime createTime;

    @TableField("update_by")
    private String updateBy;

    @TableField("update_time")
    private LocalDateTime updateTime;
}
