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

import com.github.microservice.components.data.mongo.mongo.domain.SuperEntity;
import com.zhongshu.card.client.type.LeaveStatus;
import com.zhongshu.card.server.core.domain.org.UserAccount;
import lombok.Data;
import org.springframework.data.mongodb.core.index.Indexed;
import org.springframework.data.mongodb.core.mapping.DBRef;
import org.springframework.data.mongodb.core.mapping.Document;

import java.util.List;

@Data
@Document
public class LeaveApproval extends SuperEntity {

    @Indexed
    private String projectId;

    //场景id
    @Indexed
    private String sceneId;

    //请假类型
    @Indexed
    private String leaveType;

    @Indexed
    private Long startTime;

    @Indexed
    private Long endTime;

    //请假原因
    private String leaveReason;

    //图片
    private List<String> pic;

    //审批人
    @Indexed
    private String approvalUser;

    @Indexed
    private String approvalUserName;

    //审核状态
    @Indexed
    private LeaveStatus leaveStatus;

    @Indexed
    private Long approvalTime;

    //审核意见
    private String approvalRemark;

    //请假人
    @Indexed
    private String leaveUser;

    @Indexed
    private String leaveUserName;

    //请假人手机
    @Indexed
    private String leaveUserPhone;
}
