baoshiwei
2025-04-23 c2375c2bcc0bf9e6a3af7f9776d5a0eb14370b40
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
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;
}