package com.rf.psychological.opLog.dao;

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/6
 */
@Entity
@ToString
@Data
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper=false)
@Table(name = "t_user_operate_log")
@org.hibernate.annotations.Table(appliesTo = "t_user_operate_log", comment = "用户操作埋点记录")
public class UserOperateLogEntity extends BaseEntity {

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

    @Column(name = "user_name", columnDefinition = "varchar(50)  comment '操作用户名'")
    private String userName;

    @Column(name = "operate_type", columnDefinition = "varchar(50) not null comment '操作类型0搜索1分享2查看3提交4支付'")
    private String operateType;

    @Column(name = "business_type", columnDefinition = "varchar(50) not null comment '业务类型0量表1认知任务2测试记录3量表分类4认知任务分类'")
    private String businessType;

    @Column(name = "business_value", columnDefinition = "varchar(50) not null comment '业务ID值'")
    private String businessValue;

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