package com.gz.core;

import com.gz.utils.UUIdGenId;
import lombok.Data;
import tk.mybatis.mapper.annotation.KeySql;
import tk.mybatis.mapper.annotation.LogicDelete;

import javax.persistence.Column;
import javax.persistence.Id;

/**
 * @author LiuchangLan
 * @date 2021/3/9 16:07
 */
@Data
public class UUIDBaseDTO {

    /**
     * 主键id
     */
    @Id
    @KeySql(genId = UUIdGenId.class)
    private String id;
    /**
     * 创建时间
     */
    @Column(name = "create_time")
    private String createTime;
    /**
     * 修改时间
     */
    @Column(name = "update_time")
    private String updateTime;
    /**
     * 创建人
     */
    @Column(name = "created")
    private String created;
    /**
     * 修改人
     */
    @Column(name = "updated")
    private String updated;

    /**
     * @description 逻辑删除
     * @author LiuChangLan
     * @since 2021/2/23 14:49
     */
    @Column(name = "deleted")
    @LogicDelete(notDeletedValue = 0,isDeletedValue = 1)
    private Integer deleted;

}
