package com.sz.admin.monitor.pojo.po;

import com.mybatisflex.annotation.*;
import com.sz.mysql.EntityChangeListener;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

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

/**
 * <p>
 * 变电站和超高压信息表
 * </p>
 *
 * @author sz
 * @since 2026-02-03
 */
@Data
@Table(value = "ry_substation", onInsert = EntityChangeListener.class, onUpdate = EntityChangeListener.class)
@Schema(description = "变电站和超高压信息表")
public class Substation implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    @Id(keyType = KeyType.Auto)
    @Schema(description = "主键ID")
    private Long id;

    @Schema(description = "变电站名称")
    private String name;

    @Schema(description = "所属区域")
    private Long regionId;

    @Schema(description = "1- 普通变电站 2-超高压变电站")
    private Integer type;

    @Schema(description = "详细地址")
    private String address;

    @Schema(description = "0-停用  1-启用")
    private Integer status;

    @Schema(description = "创建时间")
    private LocalDateTime createTime;

}