/*
 * Copyright (c) 2023 codvision.com All Rights Reserved.
 */

package com.codvision.webcore.bean;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableLogic;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

/**
 * 包含逻辑删除基础实体
 *
 * @author lingee
 * @since 2024/4/28
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
public class LogicDeletionEntity extends BasicEntity {

    private static final long serialVersionUID = 1L;

    @TableField(fill = FieldFill.INSERT)
    @TableLogic
    @ApiModelProperty(value = "删除标记,1:已删除,0:正常", hidden = true)
    private Integer deleteFlag;
}
