package com.rf.psychological.miniapp.searchhistory.model;

import com.rf.psychological.base.model.BaseEntity;
import lombok.*;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * @Description:搜索历史记录
 * @Author: mimang
 * @Date: 2023/5/16
 */
@Entity
@Data
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper=false)
@Table(name = "t_search_history_log")
@org.hibernate.annotations.Table(appliesTo = "t_search_history_log", comment = "搜索历史记录表")
public class SearchHistoryEntity extends BaseEntity {

    @Column(name = "user_id", columnDefinition = "varchar(36) not null comment '用户id'")
    private String userId;

    @Column(name = "search_value", columnDefinition = "varchar(255) not null comment '搜索内容'")
    private String searchValue;

    @Column(name = "status", columnDefinition = "varchar(10) not null comment '状态0无效1有效'")
    private String status;

    @Column(name = "create_time", columnDefinition = "varchar(30) not null comment '创建时间'")
    private String createTime;

    @Column(name = "update_time", columnDefinition = "varchar(30)  comment '更新时间'")
    private String updateTime;

}
