package com.rf.psychological.miniapp.praise.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;

/**
 * @Description:点赞记录
 * @Author: mimang
 * @Date: 2023/5/26
 */
@Entity
@Data
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper=false)
@Table(name = "t_praise_log")
@org.hibernate.annotations.Table(appliesTo = "t_praise_log", comment = "点赞记录表")
public class PraiseEntity 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;
}
