package com.rf.psychological.scale.dao.model;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.rf.psychological.base.model.BaseEntity;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import org.hibernate.annotations.DynamicUpdate;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Index;
import javax.persistence.Table;
import java.time.LocalDateTime;

/**
 * @author zsy
 * @description: 心理资本认知任务实体类
 * @date 2022/5/28 16:15
 */
@Entity
@Data
@EqualsAndHashCode(callSuper=true)
@NoArgsConstructor
@AllArgsConstructor
@Table(name = "t_psychological_capital")
@org.hibernate.annotations.Table(appliesTo = "t_psychological_capital", comment = "心理资本信息表")
@DynamicUpdate
public class PsychologicalCapitalEntity extends BaseEntity {

    @Column(name = "task_mark", columnDefinition = "varchar(60) comment '任务关联标识（phone-机构编号-测试时间）'")
    private String taskMark;

    @Column(name = "hierarchy", columnDefinition = "varchar(10) comment '层级（1.1；1.2；1.3；2.1；2.2）'")
    private String hierarchy;

    @Column(name = "record_id", columnDefinition = "varchar(500) comment '测试记录id和用户基本信息'")
    private String recordId;

    @Column(name = "group_index", columnDefinition = "varchar(10) comment '1:高心理资本；2:低心理资本'")
    private String groupIndex;

    @Column(name = "strong_type", columnDefinition = "varchar(10) comment '1:强说服信息；2：弱说服信息'")
    private String strongType;

    @Column(name = "test_date", columnDefinition = "varchar(50) not null comment '测试日期'")
    private String testDate;


}
