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: ServerUserDetail
 * package: com.sptg.estate.api.entity
 * description: 服务人员管理单元详情
 *
 *             
 *                
 */
@Setter
@Getter
@TableName(value="estate_server_user_detail")
public class ServerUserDetail {
    /**
     * 主键
     */
    @TableId(value = "l_id",type= IdType.AUTO)
    private Long id;

    /**
     * serverUser外键，服务人员id
     */
    @TableField(value = "l_server_user_id")
    private Long serverUserId;

    /**
     * 服务人员所服务的单元id
     */
    @TableField(value = "l_unit_id")
    private Long unitId;

    /**
     * 服务人员所服务的单元名称
     */
    @TableField(value = "s_unit_name")
    private String unitName;
}
