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

import com.github.microservice.auth.security.type.AuthType;
import com.github.microservice.components.data.mongo.mongo.domain.SuperEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.springframework.data.mongodb.core.index.Indexed;

/**
 * @author TRX
 * @date 2024/5/30
 */
@Data
public class SuperMain extends SuperEntity {

    @Indexed
    @Schema(description = "所属机构ID")
    private String oid;

    @Indexed
    @Schema(description = "所属项目oid")
    private String projectOid;

    @Schema(description = "数据主题的oid")
    private String aboutOid;

    @Schema(description = "数据主题管理的oid机构类型")
    private AuthType aboutAuthType;

    @Schema(description = "排序")
    private Long sort = 1l;

    @Schema(description = "备注")
    private String remark;

    @Schema(description = "是否删除")
    private Boolean isDelete = Boolean.FALSE;

    @Schema(description = "创建用户ID")
    private String createUserId;

    @Schema(description = "添加用户名称")
    private String createUserName;

    @Schema(description = "添加用户电话", hidden = true)
    private String createPhone;

    @Schema(description = "创建用户ID")
    private String updateUserId;

    @Schema(description = "添加用户名称")
    private String updateUserName;

    @Schema(description = "添加用户电话", hidden = true)
    private String updatePhone;
}
