package com.yh.saas.plugin.operation.entity;

import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.enums.IdType;
import com.yh.saas.common.support.entity.BaseModel;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

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

/**
 * <p>
 * 'winsea_platform.certificate_view' is not BASE TABLE
 * </p>
 *
 * @author hs
 * @since 2019-06-10
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
public class TenantOperateHis extends BaseModel<TenantOperateHis> {

    private static final long serialVersionUID = 1L;
    /**
     * 主键ID
     */
    @TableId(type = IdType.INPUT)
    private String id;

    /**
     * 租户id
     */
    private String tenantId;

    /**
     * 操作人
     */
    private String operateUser;
    /**
     * 操作时间
     */
    private String operateDate;
    /**
     * 内容
     */
    private String operateContent;

    /**
     * 查询用字段
     */
    public static class QueryFields {

        public static final String TENANT_ID = "tenant_id";

        private QueryFields() {
        }
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
