package com.xueyi.system.staff.domain.merge;

import com.baomidou.mybatisplus.annotation.TableName;
import com.xueyi.common.core.annotation.Correlation;
import com.xueyi.common.core.annotation.Correlations;
import com.xueyi.common.core.constant.basic.OperateConstants;
import com.xueyi.common.core.web.tenant.base.TBasisEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import static com.xueyi.system.api.staff.domain.merge.MergeGroup.STAFF_DmStaffFeatureMerge_GROUP;
import static com.xueyi.system.api.staff.domain.merge.MergeGroup.FEATURE_DmStaffFeatureMerge_GROUP;

@Data
@NoArgsConstructor
@EqualsAndHashCode(callSuper = true)
@TableName("dm_face_feature")
public class DmStaffFeatureMerge extends TBasisEntity {
    @Correlations({
            @Correlation(groupName = STAFF_DmStaffFeatureMerge_GROUP, keyType = OperateConstants.SubKeyType.MERGE_MAIN),
            @Correlation(groupName = FEATURE_DmStaffFeatureMerge_GROUP, keyType = OperateConstants.SubKeyType.MERGE_SLAVE)
    })
    private Long userId;

    /** 资源id */
    @Correlations({
            @Correlation(groupName = STAFF_DmStaffFeatureMerge_GROUP, keyType = OperateConstants.SubKeyType.MERGE_SLAVE),
            @Correlation(groupName = FEATURE_DmStaffFeatureMerge_GROUP, keyType = OperateConstants.SubKeyType.MERGE_MAIN)
    })

    private Long resourceId;

}
