package jnpf.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.experimental.Accessors;

import java.util.Date;

/**
 * @author Created by wyr on 2023/7/20.
 **/
@Data
@Accessors(chain = true)
public class BaseEntity extends BaseInsertEntity{

    @Schema(description = "有效标识")
    @TableField("F_EnabledMark")
    private Integer enabledMark;

    @Schema(description = "修改用户")
    @TableField(value = "F_LastModifyUserId")
    private String lastModifyUserId;

    @Schema(description = "修改时间")
    @TableField(value = "F_LastModifyTime", fill = FieldFill.UPDATE)
     @JsonFormat(pattern = "yyyy-MM-dd HH:mm")
    private Date lastModifyTime;

    @Schema(description = "删除用户")

    @TableField("F_DeleteUserId")
    private String deleteUserId;

    @Schema(description = "删除时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField(value = "F_DeleteTime", fill = FieldFill.UPDATE)
    private Date deleteTime;
}
