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

import com.baomidou.mybatisplus.activerecord.Model;
import java.io.Serializable;

import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.annotations.Version;

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

/**
 * <p>
 * 搜索记录
 * </p>
 *
 * @author Gongdc
 * @since 2021-07-20
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("search_records_info")
public class SearchRecordsInfo extends BaseModel<SearchRecordsInfo> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(type = IdType.UUID)
    private String id;
    /**
     * 个人id
     */
    private String commonId;
    /**
     * 搜索内容
     */
    private String searchContent;
    /**
     * 搜索次数
     */
    private Long searchCount;
    /**
     * 功能类型
     * 1交易2粮脉3收购客户
     */
    private String functionType;


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

    public static class QueryFiles {

        public static final String COMMON_ID = "common_id";

        public static final String DELETE_FLAG = "delete_flag";

        public static final String FUNCTION_TYPE = "function_type";

    }

}
