Application.java
1.63 KB
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
58
59
60
61
62
63
64
65
package isa.qa.entity;
import lombok.Data;
import org.hibernate.annotations.GenericGenerator;
import javax.persistence.*;
import java.io.Serializable;
import java.util.Date;
/**
* The third part application info
*
* @author May
* @date 2018/12/28 15:27
* @version 1.0
*/
@Data
@Entity
@Table(name = "i_application")
@GenericGenerator(name = "application-uuid", strategy = "uuid")
public class Application implements Serializable {
private static final long serialVersionUID = 1L;
@Id
@Column(name = "app_key")
@GeneratedValue(generator = "application-uuid")
private String appKey;
/**
* Client application's name
*/
@Column(name = "name", length = 64, nullable = false)
private String name;
/**
* Client application's domain or ip address
*/
@Column(name = "domain", length = 32)
private String domain;
/**
* Client application's secret
*/
@Column(name = "app_secret", length = 128, nullable = false)
private String appSecret;
/**
* Client application's create time
*/
@Column(name = "create_time", columnDefinition = "timestamp default current_timestamp comment '创建时间'")
private Date createTime;
/**
* Client application's info update time
*/
@Column(name = "update_time", columnDefinition = "timestamp default current_timestamp comment '更新时间'")
private Date updateTime;
/**
* The client application's oss auth expire time
*/
@Column(name = "expire_time", columnDefinition = "timestamp default current_timestamp comment '过期时间'")
private Date expireTime;
}