package com.rf.psychological.miniapp.collect.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/19
 */

@Entity
@Data
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper=false)
@Table(name = "t_collect_log")
@org.hibernate.annotations.Table(appliesTo = "t_collect_log", comment = "收藏记录实体")
public class CollectEntity 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 = "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 flag;

    @Transient
    private int testNum;

    @Transient
    private double price;
}
