package com.fkzy.warn.model;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

/**
 * @author zhangjing
 * @date 2024/04/14 10:05
 * @description
 */
@Data
public class BaseField extends Model<BaseField>  {
    /**
     * 创建时间
     */

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @ApiModelProperty("创建时间")
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private Date createTime;
    /**
     * 修改时间
     */
    @ApiModelProperty("修改时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @TableField(value = "update_time", fill = FieldFill.UPDATE)
    private Date updateTime;
    /**
     * 创建人
     */
    @ApiModelProperty("创建人")
    @TableField(value = "creator_id", fill = FieldFill.INSERT)
    private Integer creatorId;
    /**
     * 修改人
     */
    @ApiModelProperty("修改人")
    @TableField(value = "updater_id", fill = FieldFill.UPDATE)
    private Integer updaterId;
    /**
     * 是否删除
     */
    @ApiModelProperty("是否删除")
    @TableField(value = "is_del")
    private Integer isDel;
}
