package com.rj.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

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

@Data
@EqualsAndHashCode(callSuper = false)
@TableName("lb_department_user")
@Schema(description = "部门用户表")
public class LbDepartmentUser implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId("id")
    @Schema(description = "表id（UUID）")
    private String id;

    @TableField("user_id")
    @Schema(description = "用户ID")
    private String userId;

    @TableField("parent_id")
    @Schema(description = "父id（UUID）")
    private String parentId;

    @TableField("parent_name")
    @Schema(description = "父用户姓名")
    private String parentName;

    @TableField("tenant_id")
    @Schema(description = "租户id")
    private String tenantId;

    @TableField("name")
    @Schema(description = "姓名")
    private String name;

    @TableField("phone")
    @Schema(description = "电话")
    private String phone;

    @TableField("address")
    @Schema(description = "地址")
    private String address;

    @TableField("industry")
    @Schema(description = "从事的行业")
    private String industry;

    @TableField("join_date")
    @Schema(description = "加入日期（不含时分秒）")
    private LocalDate joinDate;

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

    @TableField("update_time")
    @Schema(description = "修改时间")
    private LocalDateTime updateTime;
}
