package cn.cslg.report.common.model;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.util.Date;

/**
 * @author 沈永艺
 * @date 2022-8-2
 * @description Entity基类
 */

@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = true)
public class BaseEntity<T extends Model> extends Model {
    private static final long serialVersionUID = -4851055162892178225L;

    /**
     * 主键ID
     */
    @TableId(value = "ID", type = IdType.AUTO)
    private Integer id;

//    /**
//     * 创建人
//     */
//    @TableField(value = "CREATE_USER", fill = FieldFill.INSERT)
//    private Integer createUser;

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

//    /**
//     * 删除标记(1是0否)
//     */
//    @TableField(value = "IS_DELETE")
//    @TableLogic(value = "0", delval = "1")
//    private int isDelete;

}
