package com.sptg.estate.api.entity;


import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import com.baomidou.mybatisplus.plugins.Page;
import lombok.Getter;
import lombok.Setter;

import java.util.List;

@Setter
@Getter
@TableName(value = "estate_member_device")
public class MemberDevice {

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

    /**
     * app会员id
     */
    @TableField(value = "l_member_id")
    private Long memberId;

    /**
     * 设备id
     */
    @TableField(value = "l_device_id")
    private Long deviceId;

    /**
     * 设备别名
     */
    @TableField(value = "s_device_alias")
    private String deviceAlias;

    /**
     * 设备名称
     */
    @TableField(value = "s_device_name")
    private String deviceName;

    /**
     * 设备序列号
     */
    @TableField(value = "s_serial_number")
    private String serialNumber;

    /**
     * 设备安装位置
     */
    @TableField(value = "s_install_path")
    private String installPath;

    /**
     * 小区id
     */
    @TableField(value = "l_residential_id")
    private Long residentialId;

    /**
     * 小区名称
     */
    @TableField(value = "s_residential_name")
    private String residentialName;

    /**
     * 授权状态
     * 1：启用
     * 2：禁用
     */
    /*@TableField(value = "i_enable")
    private Integer enable;*/


    @TableField(exist = false)
    private Page<MemberDevice> page;

    @TableField(exist = false)
    private List<Long> deviceIds;

    @TableField(exist = false)
    private List<Long> ids;
}
