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

import com.rf.psychological.base.model.BaseEntity;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

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

/**
 * @Description:浏览记录实体
 * @Author: mimang
 * @Date: 2023/5/16
 */
@Entity
@Data
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper=false)
@Table(name = "t_browse_log")
@org.hibernate.annotations.Table(appliesTo = "t_browse_log", comment = "浏览记录实体")
public class BrowseEntity extends BaseEntity {

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

    @Column(name = "business_id", columnDefinition = "varchar(36) not null comment '量表或认知任务id'")
    private String businessId;

    @Column(name = "flag", columnDefinition = "varchar(36) not null comment '量表或认知任务flag'")
    private String flag;

    @Column(name = "type", columnDefinition = "varchar(10) not null comment '浏览类型0量表1认知任务'")
    private String type;

    @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;

    @Transient
    private String name;//名称

    @Transient
    private String description;//描述

    @Transient
    private String testNum;//测试数

    @Transient
    private String questionNum;//题目数

    @Transient
    private String reportVersion;//报告版本

    @Transient
    private String imageUrl;//图片地址


    @Transient
    private String pageUrl;//认知任务路径

    @Transient
    private double price;
}
