XuqmGroup-Server/update-service/src/main/java/com/xuqm/update/entity/UpdateOperationLogEntity.java

68 行
2.0 KiB
Java

package com.xuqm.update.entity;
import jakarta.persistence.Column;
import jakarta.persistence.Entity;
import jakarta.persistence.Id;
import jakarta.persistence.Table;
import java.time.LocalDateTime;
@Entity
@Table(name = "update_operation_log")
public class UpdateOperationLogEntity {
@Id
private String id;
@Column(nullable = false, length = 64)
private String appKey;
@Column(nullable = false, length = 32)
private String resourceType;
@Column(nullable = false, length = 64)
private String resourceId;
@Column(nullable = false, length = 32)
private String action;
@Column(length = 128)
private String operator;
@Column(length = 1024)
private String reason;
@Column(columnDefinition = "TEXT")
private String detailJson;
@Column(nullable = false)
private LocalDateTime createdAt;
public String getId() { return id; }
public void setId(String id) { this.id = id; }
public String getAppKey() { return appKey; }
public void setAppKey(String appKey) { this.appKey = appKey; }
public String getResourceType() { return resourceType; }
public void setResourceType(String resourceType) { this.resourceType = resourceType; }
public String getResourceId() { return resourceId; }
public void setResourceId(String resourceId) { this.resourceId = resourceId; }
public String getAction() { return action; }
public void setAction(String action) { this.action = action; }
public String getOperator() { return operator; }
public void setOperator(String operator) { this.operator = operator; }
public String getReason() { return reason; }
public void setReason(String reason) { this.reason = reason; }
public String getDetailJson() { return detailJson; }
public void setDetailJson(String detailJson) { this.detailJson = detailJson; }
public LocalDateTime getCreatedAt() { return createdAt; }
public void setCreatedAt(LocalDateTime createdAt) { this.createdAt = createdAt; }
}