package com.emergencyrepair.common.entity; import com.baomidou.mybatisplus.annotation.FieldFill; import com.baomidou.mybatisplus.annotation.TableField; import com.baomidou.mybatisplus.annotation.TableLogic; import lombok.Data; /** * Shared audit and logical-delete fields for application-owned tables. */ @Data public abstract class BaseAuditEntity { @TableField(value = "CREATE_BY", fill = FieldFill.INSERT) private String createBy; @TableField(value = "UPDATE_BY", fill = FieldFill.INSERT_UPDATE) private String updateBy; @TableLogic(value = "0", delval = "1") @TableField("DEL_FLAG") private Integer delFlag; }