65 行
1.8 KiB
Java
65 行
1.8 KiB
Java
|
|
package com.xuqm.log.entity;
|
||
|
|
|
||
|
|
import jakarta.persistence.*;
|
||
|
|
import java.time.LocalDateTime;
|
||
|
|
|
||
|
|
@Entity
|
||
|
|
@Table(name = "log_events")
|
||
|
|
public class LogEventEntity {
|
||
|
|
|
||
|
|
@Id
|
||
|
|
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
||
|
|
private Long id;
|
||
|
|
|
||
|
|
@Column(nullable = false, length = 64)
|
||
|
|
private String appKey;
|
||
|
|
|
||
|
|
@Column(nullable = false, length = 256)
|
||
|
|
private String name;
|
||
|
|
|
||
|
|
@Column(length = 128)
|
||
|
|
private String userId;
|
||
|
|
|
||
|
|
@Column(length = 128)
|
||
|
|
private String sessionId;
|
||
|
|
|
||
|
|
@Column(columnDefinition = "JSON")
|
||
|
|
private String properties;
|
||
|
|
|
||
|
|
@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 String getAppKey() { return appKey; }
|
||
|
|
public void setAppKey(String appKey) { this.appKey = appKey; }
|
||
|
|
|
||
|
|
public String getName() { return name; }
|
||
|
|
public void setName(String name) { this.name = name; }
|
||
|
|
|
||
|
|
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 getProperties() { return properties; }
|
||
|
|
public void setProperties(String properties) { this.properties = properties; }
|
||
|
|
|
||
|
|
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; }
|
||
|
|
}
|