package com.xuqm.license.entity; import jakarta.persistence.Column; import jakarta.persistence.Entity; import jakarta.persistence.Id; import jakarta.persistence.Index; import jakarta.persistence.Table; import java.time.LocalDateTime; @Entity @Table(name = "license_operation_log", indexes = { @Index(name = "idx_license_op_log_app_time", columnList = "app_key,created_at") }) public class LicenseOperationLogEntity { @Id private String id; @Column(nullable = false, length = 64) private String appKey; @Column(nullable = false, length = 128) private String operator; @Column(nullable = false, length = 64) private String action; @Column(nullable = false, length = 64) private String resourceType; @Column(length = 128) private String resourceId; @Column(length = 255) private String summary; @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 getOperator() { return operator; } public void setOperator(String operator) { this.operator = operator; } public String getAction() { return action; } public void setAction(String action) { this.action = action; } 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 getSummary() { return summary; } public void setSummary(String summary) { this.summary = summary; } 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; } }