|
@@ -5,6 +5,7 @@ import javax.persistence.Entity;
|
|
|
import javax.persistence.GeneratedValue;
|
|
|
import javax.persistence.GenerationType;
|
|
|
import javax.persistence.Id;
|
|
|
+import javax.persistence.Index;
|
|
|
import javax.persistence.Table;
|
|
|
|
|
|
import cn.com.qmth.examcloud.web.jpa.JpaEntity;
|
|
@@ -17,7 +18,9 @@ import cn.com.qmth.examcloud.web.jpa.JpaEntity;
|
|
|
* @Copyright (c) 2018-? http:
|
|
|
*/
|
|
|
@Entity
|
|
|
-@Table(name = "EC_B_APP")
|
|
|
+@Table(name = "EC_B_APP", indexes = {
|
|
|
+ @Index(name = "IDX_B_APP_001001", columnList = "name", unique = true),
|
|
|
+ @Index(name = "IDX_B_APP_001002", columnList = "code", unique = true)})
|
|
|
public class AppEntity extends JpaEntity {
|
|
|
|
|
|
private static final long serialVersionUID = -6288949236298877031L;
|
|
@@ -41,6 +44,18 @@ public class AppEntity extends JpaEntity {
|
|
|
@Column(unique = true, nullable = false)
|
|
|
private String code;
|
|
|
|
|
|
+
|
|
|
+ * 密钥
|
|
|
+ */
|
|
|
+ @Column(nullable = false, length = 100)
|
|
|
+ private String secretKey;
|
|
|
+
|
|
|
+
|
|
|
+ * 接口鉴权时差范围
|
|
|
+ */
|
|
|
+ @Column(nullable = false, length = 100)
|
|
|
+ private Long timeRange;
|
|
|
+
|
|
|
public Long getId() {
|
|
|
return id;
|
|
|
}
|