package com.zhitan.engine.entity;
|
|
import lombok.Data;
|
import org.hibernate.annotations.GenericGenerator;
|
|
import javax.persistence.*;
|
import java.time.LocalDateTime;
|
|
/**
|
* 指标存储配置实体类
|
* 对应数据库中的index_storage表
|
*/
|
@Data
|
@Entity
|
@Table(name = "index_storage")
|
public class IndexStorage {
|
private static final long serialVersionUID = 1L;
|
|
@Id
|
@GenericGenerator(name = "uuid", strategy = "uuid2")
|
@GeneratedValue(generator = "uuid")
|
@Column(name = "id", length = 36)
|
private String id;
|
|
@Column(name = "index_id", length = 36)
|
private String indexId;
|
|
/**
|
* 时间类型:HOUR, DAY, MONTH, YEAR, SCHEDULING
|
*/
|
@Column(name = "time_type", length = 20)
|
private String timeType;
|
|
/**
|
* 计算类型:CALC, INPUT
|
*/
|
@Column(name = "calc_type", length = 10)
|
private String calcType;
|
|
/**
|
* 计算表达式
|
*/
|
@Column(name = "calc_text", length = 1200)
|
private String calcText;
|
|
@Column(name = "create_time")
|
private LocalDateTime createTime;
|
|
@Column(name = "update_time")
|
private LocalDateTime updateTime;
|
|
/**
|
* 是否计算尖峰平谷(0:否,1:是)
|
*/
|
@Column(name = "is_pv_calc")
|
private Integer isPvCalc;
|
}
|