package com.yeejoin.amos.boot.module.elevator.api.common;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * @description: 公共实体
 * @author: duanwei
 **/
@Data
public class BaseEntity implements Serializable {
    private static final long serialVersionUID = -5464322936854328207L;
    @TableId(type = IdType.ID_WORKER)
    private Long id;
    /**
     * 创建时间
     */
    @TableField(value = "create_date", fill = FieldFill.INSERT)
    private Date createDate;
    
    /**
     * 更新时间
     */
    @TableField(value = "update_time", fill = FieldFill.UPDATE)
    private Date updateTime;
}
