package com.zhongshu.card.server.core.domain.projectAbout;

import com.zhongshu.card.server.core.domain.base.SuperMain;
import com.zhongshu.card.server.core.domain.org.UserAccount;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.mongodb.core.mapping.DBRef;
import org.springframework.data.mongodb.core.mapping.Document;

/**
 * 项目人脸信息
 *
 * @author TRX
 * @date 2024/10/12
 */
@Data
@Builder
@Document
@AllArgsConstructor
@NoArgsConstructor
public class OrgUserFace extends SuperMain {

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

    @Schema(description = "用户信息")
    @DBRef(lazy = true)
    private UserAccount userAccount;

    @Schema(description = "图片名称")
    private String name;

    @Schema(description = "人脸图片地址")
    private String img;

    @Schema(description = "是否可使用")
    private Boolean isCanUsed = Boolean.TRUE;

    @Schema(description = "权限中心的人脸id")
    private String updateFaceFileId;
}
