83 行
2.5 KiB
Java
83 行
2.5 KiB
Java
|
|
package com.xuqm.log.entity;
|
||
|
|
|
||
|
|
import jakarta.persistence.*;
|
||
|
|
import java.time.LocalDateTime;
|
||
|
|
|
||
|
|
@Entity
|
||
|
|
@Table(name = "log_issue_events")
|
||
|
|
public class LogIssueEventEntity {
|
||
|
|
|
||
|
|
@Id
|
||
|
|
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
||
|
|
private Long id;
|
||
|
|
|
||
|
|
@Column(nullable = false)
|
||
|
|
private Long issueId;
|
||
|
|
|
||
|
|
@Column(nullable = false, length = 64)
|
||
|
|
private String appKey;
|
||
|
|
|
||
|
|
@Column(length = 128)
|
||
|
|
private String userId;
|
||
|
|
|
||
|
|
@Column(length = 128)
|
||
|
|
private String sessionId;
|
||
|
|
|
||
|
|
@Column(columnDefinition = "TEXT")
|
||
|
|
private String message;
|
||
|
|
|
||
|
|
@Column(columnDefinition = "LONGTEXT")
|
||
|
|
private String stack;
|
||
|
|
|
||
|
|
@Column(name = "stack_symbolicated", columnDefinition = "LONGTEXT")
|
||
|
|
private String stackSymbolicated;
|
||
|
|
|
||
|
|
@Column(columnDefinition = "JSON")
|
||
|
|
private String metadata;
|
||
|
|
|
||
|
|
@Column(length = 16)
|
||
|
|
private String platform;
|
||
|
|
|
||
|
|
@Column(length = 32)
|
||
|
|
private String appVersion;
|
||
|
|
|
||
|
|
@Column(nullable = false)
|
||
|
|
private LocalDateTime createdAt;
|
||
|
|
|
||
|
|
public Long getId() { return id; }
|
||
|
|
public void setId(Long id) { this.id = id; }
|
||
|
|
|
||
|
|
public Long getIssueId() { return issueId; }
|
||
|
|
public void setIssueId(Long issueId) { this.issueId = issueId; }
|
||
|
|
|
||
|
|
public String getAppKey() { return appKey; }
|
||
|
|
public void setAppKey(String appKey) { this.appKey = appKey; }
|
||
|
|
|
||
|
|
public String getUserId() { return userId; }
|
||
|
|
public void setUserId(String userId) { this.userId = userId; }
|
||
|
|
|
||
|
|
public String getSessionId() { return sessionId; }
|
||
|
|
public void setSessionId(String sessionId) { this.sessionId = sessionId; }
|
||
|
|
|
||
|
|
public String getMessage() { return message; }
|
||
|
|
public void setMessage(String message) { this.message = message; }
|
||
|
|
|
||
|
|
public String getStack() { return stack; }
|
||
|
|
public void setStack(String stack) { this.stack = stack; }
|
||
|
|
|
||
|
|
public String getStackSymbolicated() { return stackSymbolicated; }
|
||
|
|
public void setStackSymbolicated(String stackSymbolicated) { this.stackSymbolicated = stackSymbolicated; }
|
||
|
|
|
||
|
|
public String getMetadata() { return metadata; }
|
||
|
|
public void setMetadata(String metadata) { this.metadata = metadata; }
|
||
|
|
|
||
|
|
public String getPlatform() { return platform; }
|
||
|
|
public void setPlatform(String platform) { this.platform = platform; }
|
||
|
|
|
||
|
|
public String getAppVersion() { return appVersion; }
|
||
|
|
public void setAppVersion(String appVersion) { this.appVersion = appVersion; }
|
||
|
|
|
||
|
|
public LocalDateTime getCreatedAt() { return createdAt; }
|
||
|
|
public void setCreatedAt(LocalDateTime createdAt) { this.createdAt = createdAt; }
|
||
|
|
}
|