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

/**
 * title: MemberAndUser
 * package: com.sptg.estate.api.entity
 * description: 会员和住户的中间表
 *
 *               
 *                
 */
@Setter
@Getter
@TableName(value = "app_member_and_user")
public class MemberAndUser {

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

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

    /**
     * 住户id
     */
    @TableField(value = "l_user_id")
    private Long userId;
    /**
     * 房间id--方便查询
     */
    @TableField(value = "l_room_id")
    private Long roomId;
}
