package com.github.microservice.auth.server.core.domain;

import com.github.microservice.components.data.mongo.mongo.domain.SuperEntity;
import lombok.*;
import org.springframework.data.mongodb.core.index.Indexed;
import org.springframework.data.mongodb.core.mapping.Document;

import java.util.List;

@Data
@EqualsAndHashCode(callSuper = true)
@Builder
@Document
@AllArgsConstructor
@NoArgsConstructor
public class UserFace extends SuperEntity {

    //用户id
    @Indexed
    private String userId;

    //人脸图片文件id
    @Indexed
    private String faceFSId;

    //人脸向量
    private List<Double> vector;

    private String faceDataKey;

}
