package com.usky.ems.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;

/**
 * 网关通道（leo.ems_channel）
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("ems_channel")
public class EmsChannel implements Serializable {

    private static final long serialVersionUID = 1L;

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

    @TableField("gateway_id")
    private String gatewayId;
    private String name;
    @TableField("channel_type_id")
    // 通道类型ID（1：Serial Port，2：TCP）
    private Integer channelTypeId;
    @TableField("updated_by")
    private Long updatedBy;
    @TableField("update_time")
    private LocalDateTime updateTime;
    @TableField("created_by")
    private Long createdBy;
    @TableField("create_time")
    private LocalDateTime createTime;
}
