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

import com.rf.psychological.base.model.BaseEntity;
import lombok.*;

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

/**
 * @Author:zzf
 * @Date:2022/10/9:11:17
 * @Description:机构维度表
 */

@Entity
@EqualsAndHashCode(callSuper=false)
@Data
@Getter
@Setter
@NoArgsConstructor
@AllArgsConstructor
@Table(name = "t_dimension_org")
@org.hibernate.annotations.Table(appliesTo = "t_dimension_org", comment = "机构维度表")
public class DimensionOrgEntity extends BaseEntity {

    @Column(name = "institution_no",columnDefinition = "varchar(50) not null comment '机构编号'")
    private String institutionNo;

    @Column(name = "flag", columnDefinition = "varchar(50) comment '查询标志'")
    private String flag;

    @Column(name = "dimension_id",columnDefinition = "varchar(36) not null comment '维度编号'")
    private String dimensionId;

    @Column(name = "threshold",columnDefinition = "varchar(5) not null comment '阈值'")
    private String threshold;

    @Column(name = "logic",columnDefinition = "varchar(2) not null comment '逻辑：lt(小于，less than);le:(小于等于，less than or equal to);eq:(等于，equal to);ne(不等于，not equal);ge(大于等于，greater than or equal to);gt(大于，greater than)'")
    private String logic;
}
