package jnpf.model.cultivate.entiy;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.FieldStrategy;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

import java.util.Date;

/**
 * 培训基础字段
 * @author fantaibao
 * @date 2023/12/17
 */
@Data
@ToString
@EqualsAndHashCode
public abstract class BaseEntity {

    /**
     * 主键
     */
    @TableId("F_ID")
    public String id;

    /**
     * 删除标志
     */
    @TableField(value = "F_DELETEMARK" , updateStrategy = FieldStrategy.IGNORED)
    private Integer deleteMark;

    /**
     * 删除时间
     */
    @TableField(value = "F_DELETETIME" , fill = FieldFill.UPDATE)
    private Date deleteTime;

    /**
     * 删除用户
     */
    @TableField(value = "F_DELETEUSERID" , fill = FieldFill.UPDATE)
    private String deleteUserId;

    /**
     * 修改时间
     */
    @TableField(value = "F_LASTMODIFYTIME" , fill = FieldFill.UPDATE)
    private Date lastModifyTime;

    /**
     * 修改用户
     */
    @TableField(value = "F_LASTMODIFYUSERID" , fill = FieldFill.UPDATE)
    private String lastModifyUserId;

    /**
     * 创建时间
     */
    @TableField(value = "F_CREATORTIME" , fill = FieldFill.INSERT)
    private Date creatorTime;

    /**
     * 创建用户
     */
    @TableField(value = "F_CREATORUSERID" , fill = FieldFill.INSERT)
    private String creatorUserId;

    /**
     * 租户id
     */
    @TableField("F_TENANTID")
    private String tenantId;

}
