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

import com.github.microservice.components.data.mongo.mongo.domain.SuperEntity;
import com.zhongshu.card.server.core.domain.org.Role;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
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
@NoArgsConstructor
@AllArgsConstructor
public class LeaveSetting extends SuperEntity {

    @Indexed
    private String projectId;

    //场景id
    @Indexed(unique = true)
    private String sceneId;

    //审批人（角色）
    @DBRef(lazy = true)
    private List<Role> approvalRoles;

    //表单
    private String form;
}
