package com.bcxin.tenant.open.domains.entities;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.bcxin.tenant.open.infrastructures.entities.Aggregate;
import com.bcxin.tenant.open.infrastructures.entities.EntityAbstract;
import lombok.Data;

import java.sql.Timestamp;

@TableName(value = "rd_community_user_summary", autoResultMap = true)
@Data
public class RdCommunityUserEntity  extends EntityAbstract implements Aggregate {
    @TableId("pk_id")
    private Long pkId;

    @TableField(value = "id")
    private String id;

    @TableField(value = "name")
    private String name;

    @TableField(value = "employee_id")
    private String employeeId;

    @TableField(value = "idCard_no")
    private String idCardNo;

    @TableField(value = "tenant_user_id")
    private String tenantUserId;

    @TableField(value = "organization_id")
    private String organizationId;

    @TableField(value = "organization_name")
    private String organizationName;

    @TableField(value = "supervise_depart_id")
    private String superviseDepartId;

    @TableField(value = "supervise_depart_name")
    private String superviseDepartName;

    @TableField(value = "last_sync_time")
    private Timestamp lastSyncTime;

    @TableField(value = "last_updated_time")
    private Timestamp lastUpdatedTime;

    @TableField(value = "is_deleted")
    private boolean deleted;
}