package com.simuwang.base.common.support.dos;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.simuwang.base.common.support.vo.BaseVO;
import lombok.Getter;
import lombok.Setter;

import java.util.Date;

/**
 * @author wangzaijun
 * @date 2023/11/7 17:23
 * @description base数据模型
 */
@Setter
@Getter
public abstract class DataEntity<VO extends BaseVO> extends BaseEntity<VO> {
    /**
     * 更新人
     */
    @TableField(value = "updaterid", fill = FieldFill.INSERT_UPDATE)
    private Integer updaterId;
    /**
     * 更新时间
     */
    @TableField(value = "updatetime", fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;
    /**
     * 是否有效标识
     */
    @TableLogic(value = "1", delval = "0")
    @TableField(value = "isvalid", fill = FieldFill.INSERT)
    private Integer valid;
}
