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.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

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

/**
 * <p>
 * NVR录像机设备表
 * </p>
 *
 * @author sz
 * @since 2026-02-03
 */
@Data
@Table(value = "ry_nvr", onInsert = EntityChangeListener.class, onUpdate = EntityChangeListener.class)
@Schema(description = "NVR录像机设备表")
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class Nvr implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

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

    @Schema(description = "NVR设备名称")
    private String name;

    @Schema(description = "所属变电站Id")
    private Long stationId;

    @Schema(description = "IP地址")
    private String ip;

    @Schema(description = "端口号")
    private Integer port;

    @Schema(description = "登录用户名")
    private String account;

    @Schema(description = "密码")
    private String password;


    @Schema(description = "nvr的类型，1-大华, 0-海康威视")
    private Integer driver;

    @Schema(description = "在线状态：1-在线, 0-离线")
    private Integer status;

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

}