package com.yeejoin.amos.boot.module.ccs.api.entity;

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;

/**
 * 公共实体类
 *
 * @author DELL
 */
@Data
public class BaseEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.ID_WORKER)
    protected String id;

    /**
     * 同步日期
     */
    @TableField(value = "syn_date", fill = FieldFill.INSERT_UPDATE)
    protected Date synDate;

    /**
     * 业务创建日期
     */
    @TableField(value = "create_date")
    protected Date createDate;

}
