package com.hdkj.lt.core.bizms.modle.po;

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.Getter;
import lombok.Setter;

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

/**
 * <p>
 * 保电用户配置信息历史表
 * </p>
 *
 * @author luorui
 * @since 2025-06-05
 */
@Getter
@Setter
@TableName("fhzg_customer_power_protection_config_hist")
public class CustomerPowerProtectionConfigHist implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "id",type = IdType.ASSIGN_ID)
    private Long id;

    /**
     * 所属变压器编码(变压器psr_id),(关联fhzg_dist_transformer_customer表transformer_no)
     */
    @TableField("transformer_no")
    private String transformerNo;

    /**
     * 所属变压器名称
     */
    @TableField("transformer_name")
    private String transformerName;

    /**
     * 保电开始时间
     */
    @TableField("protection_start_time")
    @JsonFormat(locale = "zh", timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime protectionStartTime;

    /**
     * 保电结束时间
     */
    @TableField("protection_end_time")
    @JsonFormat(locale = "zh", timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime protectionEndTime;

    /**
     * 创建人
     */
    @TableField("creator")
    private Long creator;

    /**
     * 创建时间
     */
    @TableField("create_time")
    private LocalDateTime createTime;

    /**
     * 最后一次修改人
     */
    @TableField("last_editor")
    private Long lastEditor;

    /**
     * 最后一次修改时间
     */
    @TableField("last_time")
    private LocalDateTime lastTime;


}
