package com.pressing.domain.audit;

import com.pressing.common.entity.SiteScopedEntity;
import jakarta.persistence.Column;
import jakarta.persistence.Entity;
import jakarta.persistence.Table;
import java.time.LocalDateTime;
import lombok.Getter;
import lombok.Setter;

@Getter
@Setter
@Entity
@Table(name = "audit_logs")
public class AuditLog extends SiteScopedEntity {

    @Column(nullable = false)
    private LocalDateTime eventDateTime;

    @Column(nullable = false, length = 80)
    private String action;

    @Column(nullable = false, length = 500)
    private String details;

    @Column(nullable = false, length = 80)
    private String operatorName;

    @Column(length = 40)
    private String operatorId;

    @Column(length = 80)
    private String entityType;

    @Column
    private Long entityId;
}
